From a0c23d483bfe9b82298cce4bfa45321c5bd3951c Mon Sep 17 00:00:00 2001 From: Antonio Pitasi Date: Mon, 25 Mar 2024 11:51:03 +0100 Subject: [PATCH 1/3] feat(x/warden): refactor and improve perf for Keys queries --- api/warden/warden/v1beta2/query.pulsar.go | 3203 ++++++++++++----- api/warden/warden/v1beta2/query_grpc.pb.go | 106 +- proto/warden/warden/v1beta2/query.proto | 37 +- warden/x/warden/keeper/genesis.go | 4 +- warden/x/warden/keeper/keeper.go | 9 +- warden/x/warden/keeper/keys.go | 41 +- ...msg_server_new_sign_transaction_request.go | 4 +- .../msg_server_new_signature_request.go | 4 +- .../x/warden/keeper/msg_server_update_key.go | 6 +- .../keeper/msg_server_update_key_request.go | 2 +- warden/x/warden/keeper/query_all_keys.go | 37 + warden/x/warden/keeper/query_key_by_id.go | 29 + warden/x/warden/keeper/query_keys.go | 125 - .../x/warden/keeper/query_keys_by_space_id.go | 48 + .../keeper/query_sign_transaction_requests.go | 2 +- .../warden/keeper/query_signature_requests.go | 2 +- warden/x/warden/migrations/v2/store.go | 35 +- warden/x/warden/types/v1beta2/address.go | 27 + warden/x/warden/types/v1beta2/query.pb.go | 1172 ++++-- warden/x/warden/types/v1beta2/query.pb.gw.go | 200 +- 20 files changed, 3744 insertions(+), 1349 deletions(-) create mode 100644 warden/x/warden/keeper/query_all_keys.go create mode 100644 warden/x/warden/keeper/query_key_by_id.go delete mode 100644 warden/x/warden/keeper/query_keys.go create mode 100644 warden/x/warden/keeper/query_keys_by_space_id.go diff --git a/api/warden/warden/v1beta2/query.pulsar.go b/api/warden/warden/v1beta2/query.pulsar.go index f5f1397b2..090bacba5 100644 --- a/api/warden/warden/v1beta2/query.pulsar.go +++ b/api/warden/warden/v1beta2/query.pulsar.go @@ -6991,33 +6991,1259 @@ func (x *fastReflection_QueryKeyRequestByIdResponse) ProtoMethods() *protoiface. } } +var _ protoreflect.List = (*_QueryAllKeysRequest_2_list)(nil) + +type _QueryAllKeysRequest_2_list struct { + list *[]WalletType +} + +func (x *_QueryAllKeysRequest_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryAllKeysRequest_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)((*x.list)[i])) +} + +func (x *_QueryAllKeysRequest_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Enum() + concreteValue := (WalletType)(valueUnwrapped) + (*x.list)[i] = concreteValue +} + +func (x *_QueryAllKeysRequest_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Enum() + concreteValue := (WalletType)(valueUnwrapped) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryAllKeysRequest_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message QueryAllKeysRequest at list field DeriveWallets as it is not of Message kind")) +} + +func (x *_QueryAllKeysRequest_2_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_QueryAllKeysRequest_2_list) NewElement() protoreflect.Value { + v := 0 + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(v)) +} + +func (x *_QueryAllKeysRequest_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryAllKeysRequest protoreflect.MessageDescriptor + fd_QueryAllKeysRequest_pagination protoreflect.FieldDescriptor + fd_QueryAllKeysRequest_derive_wallets protoreflect.FieldDescriptor +) + +func init() { + file_warden_warden_v1beta2_query_proto_init() + md_QueryAllKeysRequest = File_warden_warden_v1beta2_query_proto.Messages().ByName("QueryAllKeysRequest") + fd_QueryAllKeysRequest_pagination = md_QueryAllKeysRequest.Fields().ByName("pagination") + fd_QueryAllKeysRequest_derive_wallets = md_QueryAllKeysRequest.Fields().ByName("derive_wallets") +} + +var _ protoreflect.Message = (*fastReflection_QueryAllKeysRequest)(nil) + +type fastReflection_QueryAllKeysRequest QueryAllKeysRequest + +func (x *QueryAllKeysRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAllKeysRequest)(x) +} + +func (x *QueryAllKeysRequest) slowProtoReflect() protoreflect.Message { + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[15] + 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_QueryAllKeysRequest_messageType fastReflection_QueryAllKeysRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAllKeysRequest_messageType{} + +type fastReflection_QueryAllKeysRequest_messageType struct{} + +func (x fastReflection_QueryAllKeysRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAllKeysRequest)(nil) +} +func (x fastReflection_QueryAllKeysRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAllKeysRequest) +} +func (x fastReflection_QueryAllKeysRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllKeysRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryAllKeysRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAllKeysRequest +} + +// 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_QueryAllKeysRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAllKeysRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryAllKeysRequest) New() protoreflect.Message { + return new(fastReflection_QueryAllKeysRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryAllKeysRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAllKeysRequest)(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_QueryAllKeysRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryAllKeysRequest_pagination, value) { + return + } + } + if len(x.DeriveWallets) != 0 { + value := protoreflect.ValueOfList(&_QueryAllKeysRequest_2_list{list: &x.DeriveWallets}) + if !f(fd_QueryAllKeysRequest_derive_wallets, 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_QueryAllKeysRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "warden.warden.v1beta2.QueryAllKeysRequest.pagination": + return x.Pagination != nil + case "warden.warden.v1beta2.QueryAllKeysRequest.derive_wallets": + return len(x.DeriveWallets) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryAllKeysRequest")) + } + panic(fmt.Errorf("message warden.warden.v1beta2.QueryAllKeysRequest 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_QueryAllKeysRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "warden.warden.v1beta2.QueryAllKeysRequest.pagination": + x.Pagination = nil + case "warden.warden.v1beta2.QueryAllKeysRequest.derive_wallets": + x.DeriveWallets = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryAllKeysRequest")) + } + panic(fmt.Errorf("message warden.warden.v1beta2.QueryAllKeysRequest 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_QueryAllKeysRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "warden.warden.v1beta2.QueryAllKeysRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "warden.warden.v1beta2.QueryAllKeysRequest.derive_wallets": + if len(x.DeriveWallets) == 0 { + return protoreflect.ValueOfList(&_QueryAllKeysRequest_2_list{}) + } + listValue := &_QueryAllKeysRequest_2_list{list: &x.DeriveWallets} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryAllKeysRequest")) + } + panic(fmt.Errorf("message warden.warden.v1beta2.QueryAllKeysRequest 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_QueryAllKeysRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "warden.warden.v1beta2.QueryAllKeysRequest.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) + case "warden.warden.v1beta2.QueryAllKeysRequest.derive_wallets": + lv := value.List() + clv := lv.(*_QueryAllKeysRequest_2_list) + x.DeriveWallets = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryAllKeysRequest")) + } + panic(fmt.Errorf("message warden.warden.v1beta2.QueryAllKeysRequest 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_QueryAllKeysRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "warden.warden.v1beta2.QueryAllKeysRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "warden.warden.v1beta2.QueryAllKeysRequest.derive_wallets": + if x.DeriveWallets == nil { + x.DeriveWallets = []WalletType{} + } + value := &_QueryAllKeysRequest_2_list{list: &x.DeriveWallets} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryAllKeysRequest")) + } + panic(fmt.Errorf("message warden.warden.v1beta2.QueryAllKeysRequest 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_QueryAllKeysRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "warden.warden.v1beta2.QueryAllKeysRequest.pagination": + m := new(v1beta1.PageRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "warden.warden.v1beta2.QueryAllKeysRequest.derive_wallets": + list := []WalletType{} + return protoreflect.ValueOfList(&_QueryAllKeysRequest_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryAllKeysRequest")) + } + panic(fmt.Errorf("message warden.warden.v1beta2.QueryAllKeysRequest 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_QueryAllKeysRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in warden.warden.v1beta2.QueryAllKeysRequest", 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_QueryAllKeysRequest) 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_QueryAllKeysRequest) 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_QueryAllKeysRequest) 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_QueryAllKeysRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryAllKeysRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.DeriveWallets) > 0 { + l = 0 + for _, e := range x.DeriveWallets { + l += runtime.Sov(uint64(e)) + } + n += 1 + runtime.Sov(uint64(l)) + 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().(*QueryAllKeysRequest) + 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.DeriveWallets) > 0 { + var pksize2 int + for _, num := range x.DeriveWallets { + pksize2 += runtime.Sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num1 := range x.DeriveWallets { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x12 + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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] = 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().(*QueryAllKeysRequest) + 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: QueryAllKeysRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllKeysRequest: 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 Pagination", 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType == 0 { + var v WalletType + 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++ + v |= WalletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.DeriveWallets = append(x.DeriveWallets, v) + } else if wireType == 2 { + var packedLen 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++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + packedLen + 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 + } + var elementCount int + if elementCount != 0 && len(x.DeriveWallets) == 0 { + x.DeriveWallets = make([]WalletType, 0, elementCount) + } + for iNdEx < postIndex { + var v WalletType + 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++ + v |= WalletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.DeriveWallets = append(x.DeriveWallets, v) + } + } else { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DeriveWallets", wireType) + } + 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, + } +} + +var _ protoreflect.List = (*_QueryKeysResponse_2_list)(nil) + +type _QueryKeysResponse_2_list struct { + list *[]*QueryKeyResponse +} + +func (x *_QueryKeysResponse_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryKeysResponse_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryKeysResponse_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryKeyResponse) + (*x.list)[i] = concreteValue +} + +func (x *_QueryKeysResponse_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*QueryKeyResponse) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryKeysResponse_2_list) AppendMutable() protoreflect.Value { + v := new(QueryKeyResponse) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryKeysResponse_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryKeysResponse_2_list) NewElement() protoreflect.Value { + v := new(QueryKeyResponse) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryKeysResponse_2_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryKeysResponse protoreflect.MessageDescriptor + fd_QueryKeysResponse_pagination protoreflect.FieldDescriptor + fd_QueryKeysResponse_keys protoreflect.FieldDescriptor +) + +func init() { + file_warden_warden_v1beta2_query_proto_init() + md_QueryKeysResponse = File_warden_warden_v1beta2_query_proto.Messages().ByName("QueryKeysResponse") + fd_QueryKeysResponse_pagination = md_QueryKeysResponse.Fields().ByName("pagination") + fd_QueryKeysResponse_keys = md_QueryKeysResponse.Fields().ByName("keys") +} + +var _ protoreflect.Message = (*fastReflection_QueryKeysResponse)(nil) + +type fastReflection_QueryKeysResponse QueryKeysResponse + +func (x *QueryKeysResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeysResponse)(x) +} + +func (x *QueryKeysResponse) slowProtoReflect() protoreflect.Message { + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[16] + 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_QueryKeysResponse_messageType fastReflection_QueryKeysResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeysResponse_messageType{} + +type fastReflection_QueryKeysResponse_messageType struct{} + +func (x fastReflection_QueryKeysResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeysResponse)(nil) +} +func (x fastReflection_QueryKeysResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeysResponse) +} +func (x fastReflection_QueryKeysResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeysResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryKeysResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeysResponse +} + +// 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_QueryKeysResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryKeysResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryKeysResponse) New() protoreflect.Message { + return new(fastReflection_QueryKeysResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryKeysResponse) Interface() protoreflect.ProtoMessage { + return (*QueryKeysResponse)(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_QueryKeysResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryKeysResponse_pagination, value) { + return + } + } + if len(x.Keys) != 0 { + value := protoreflect.ValueOfList(&_QueryKeysResponse_2_list{list: &x.Keys}) + if !f(fd_QueryKeysResponse_keys, 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_QueryKeysResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "warden.warden.v1beta2.QueryKeysResponse.pagination": + return x.Pagination != nil + case "warden.warden.v1beta2.QueryKeysResponse.keys": + return len(x.Keys) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysResponse")) + } + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysResponse 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_QueryKeysResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "warden.warden.v1beta2.QueryKeysResponse.pagination": + x.Pagination = nil + case "warden.warden.v1beta2.QueryKeysResponse.keys": + x.Keys = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysResponse")) + } + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysResponse 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_QueryKeysResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "warden.warden.v1beta2.QueryKeysResponse.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "warden.warden.v1beta2.QueryKeysResponse.keys": + if len(x.Keys) == 0 { + return protoreflect.ValueOfList(&_QueryKeysResponse_2_list{}) + } + listValue := &_QueryKeysResponse_2_list{list: &x.Keys} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysResponse")) + } + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysResponse 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_QueryKeysResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "warden.warden.v1beta2.QueryKeysResponse.pagination": + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) + case "warden.warden.v1beta2.QueryKeysResponse.keys": + lv := value.List() + clv := lv.(*_QueryKeysResponse_2_list) + x.Keys = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysResponse")) + } + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysResponse 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_QueryKeysResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "warden.warden.v1beta2.QueryKeysResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(v1beta1.PageResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "warden.warden.v1beta2.QueryKeysResponse.keys": + if x.Keys == nil { + x.Keys = []*QueryKeyResponse{} + } + value := &_QueryKeysResponse_2_list{list: &x.Keys} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysResponse")) + } + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysResponse 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_QueryKeysResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "warden.warden.v1beta2.QueryKeysResponse.pagination": + m := new(v1beta1.PageResponse) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "warden.warden.v1beta2.QueryKeysResponse.keys": + list := []*QueryKeyResponse{} + return protoreflect.ValueOfList(&_QueryKeysResponse_2_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysResponse")) + } + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysResponse 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_QueryKeysResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in warden.warden.v1beta2.QueryKeysResponse", 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_QueryKeysResponse) 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_QueryKeysResponse) 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_QueryKeysResponse) 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_QueryKeysResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryKeysResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Pagination != nil { + l = options.Size(x.Pagination) + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.Keys) > 0 { + for _, e := range x.Keys { + l = options.Size(e) + 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().(*QueryKeysResponse) + 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.Keys) > 0 { + for iNdEx := len(x.Keys) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Keys[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] = 0x12 + } + } + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + 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] = 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().(*QueryKeysResponse) + 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: QueryKeysResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeysResponse: 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 Pagination", 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 + } + if x.Pagination == nil { + x.Pagination = &v1beta1.PageResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Keys", 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.Keys = append(x.Keys, &QueryKeyResponse{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Keys[len(x.Keys)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + 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, + } +} + +var _ protoreflect.List = (*_QueryKeysBySpaceIdRequest_3_list)(nil) + +type _QueryKeysBySpaceIdRequest_3_list struct { + list *[]WalletType +} + +func (x *_QueryKeysBySpaceIdRequest_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryKeysBySpaceIdRequest_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)((*x.list)[i])) +} + +func (x *_QueryKeysBySpaceIdRequest_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Enum() + concreteValue := (WalletType)(valueUnwrapped) + (*x.list)[i] = concreteValue +} + +func (x *_QueryKeysBySpaceIdRequest_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Enum() + concreteValue := (WalletType)(valueUnwrapped) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryKeysBySpaceIdRequest_3_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message QueryKeysBySpaceIdRequest at list field DeriveWallets as it is not of Message kind")) +} + +func (x *_QueryKeysBySpaceIdRequest_3_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_QueryKeysBySpaceIdRequest_3_list) NewElement() protoreflect.Value { + v := 0 + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(v)) +} + +func (x *_QueryKeysBySpaceIdRequest_3_list) IsValid() bool { + return x.list != nil +} + var ( - md_QueryKeysRequest protoreflect.MessageDescriptor - fd_QueryKeysRequest_pagination protoreflect.FieldDescriptor - fd_QueryKeysRequest_space_id protoreflect.FieldDescriptor - fd_QueryKeysRequest_type protoreflect.FieldDescriptor - fd_QueryKeysRequest_key_id protoreflect.FieldDescriptor + md_QueryKeysBySpaceIdRequest protoreflect.MessageDescriptor + fd_QueryKeysBySpaceIdRequest_pagination protoreflect.FieldDescriptor + fd_QueryKeysBySpaceIdRequest_space_id protoreflect.FieldDescriptor + fd_QueryKeysBySpaceIdRequest_derive_wallets protoreflect.FieldDescriptor ) func init() { file_warden_warden_v1beta2_query_proto_init() - md_QueryKeysRequest = File_warden_warden_v1beta2_query_proto.Messages().ByName("QueryKeysRequest") - fd_QueryKeysRequest_pagination = md_QueryKeysRequest.Fields().ByName("pagination") - fd_QueryKeysRequest_space_id = md_QueryKeysRequest.Fields().ByName("space_id") - fd_QueryKeysRequest_type = md_QueryKeysRequest.Fields().ByName("type") - fd_QueryKeysRequest_key_id = md_QueryKeysRequest.Fields().ByName("key_id") + md_QueryKeysBySpaceIdRequest = File_warden_warden_v1beta2_query_proto.Messages().ByName("QueryKeysBySpaceIdRequest") + fd_QueryKeysBySpaceIdRequest_pagination = md_QueryKeysBySpaceIdRequest.Fields().ByName("pagination") + fd_QueryKeysBySpaceIdRequest_space_id = md_QueryKeysBySpaceIdRequest.Fields().ByName("space_id") + fd_QueryKeysBySpaceIdRequest_derive_wallets = md_QueryKeysBySpaceIdRequest.Fields().ByName("derive_wallets") } -var _ protoreflect.Message = (*fastReflection_QueryKeysRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryKeysBySpaceIdRequest)(nil) -type fastReflection_QueryKeysRequest QueryKeysRequest +type fastReflection_QueryKeysBySpaceIdRequest QueryKeysBySpaceIdRequest -func (x *QueryKeysRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryKeysRequest)(x) +func (x *QueryKeysBySpaceIdRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeysBySpaceIdRequest)(x) } -func (x *QueryKeysRequest) slowProtoReflect() protoreflect.Message { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[15] +func (x *QueryKeysBySpaceIdRequest) slowProtoReflect() protoreflect.Message { + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7028,43 +8254,43 @@ func (x *QueryKeysRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryKeysRequest_messageType fastReflection_QueryKeysRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryKeysRequest_messageType{} +var _fastReflection_QueryKeysBySpaceIdRequest_messageType fastReflection_QueryKeysBySpaceIdRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeysBySpaceIdRequest_messageType{} -type fastReflection_QueryKeysRequest_messageType struct{} +type fastReflection_QueryKeysBySpaceIdRequest_messageType struct{} -func (x fastReflection_QueryKeysRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryKeysRequest)(nil) +func (x fastReflection_QueryKeysBySpaceIdRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeysBySpaceIdRequest)(nil) } -func (x fastReflection_QueryKeysRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryKeysRequest) +func (x fastReflection_QueryKeysBySpaceIdRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeysBySpaceIdRequest) } -func (x fastReflection_QueryKeysRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeysRequest +func (x fastReflection_QueryKeysBySpaceIdRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeysBySpaceIdRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryKeysRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeysRequest +func (x *fastReflection_QueryKeysBySpaceIdRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeysBySpaceIdRequest } // 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_QueryKeysRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryKeysRequest_messageType +func (x *fastReflection_QueryKeysBySpaceIdRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryKeysBySpaceIdRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryKeysRequest) New() protoreflect.Message { - return new(fastReflection_QueryKeysRequest) +func (x *fastReflection_QueryKeysBySpaceIdRequest) New() protoreflect.Message { + return new(fastReflection_QueryKeysBySpaceIdRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryKeysRequest) Interface() protoreflect.ProtoMessage { - return (*QueryKeysRequest)(x) +func (x *fastReflection_QueryKeysBySpaceIdRequest) Interface() protoreflect.ProtoMessage { + return (*QueryKeysBySpaceIdRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -7072,28 +8298,22 @@ func (x *fastReflection_QueryKeysRequest) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryKeysRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryKeysBySpaceIdRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryKeysRequest_pagination, value) { + if !f(fd_QueryKeysBySpaceIdRequest_pagination, value) { return } } if x.SpaceId != uint64(0) { value := protoreflect.ValueOfUint64(x.SpaceId) - if !f(fd_QueryKeysRequest_space_id, value) { - return - } - } - if x.Type_ != 0 { - value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Type_)) - if !f(fd_QueryKeysRequest_type, value) { + if !f(fd_QueryKeysBySpaceIdRequest_space_id, value) { return } } - if x.KeyId != uint64(0) { - value := protoreflect.ValueOfUint64(x.KeyId) - if !f(fd_QueryKeysRequest_key_id, value) { + if len(x.DeriveWallets) != 0 { + value := protoreflect.ValueOfList(&_QueryKeysBySpaceIdRequest_3_list{list: &x.DeriveWallets}) + if !f(fd_QueryKeysBySpaceIdRequest_derive_wallets, value) { return } } @@ -7110,21 +8330,19 @@ func (x *fastReflection_QueryKeysRequest) Range(f func(protoreflect.FieldDescrip // 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_QueryKeysRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryKeysBySpaceIdRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "warden.warden.v1beta2.QueryKeysRequest.pagination": + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.pagination": return x.Pagination != nil - case "warden.warden.v1beta2.QueryKeysRequest.space_id": + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.space_id": return x.SpaceId != uint64(0) - case "warden.warden.v1beta2.QueryKeysRequest.type": - return x.Type_ != 0 - case "warden.warden.v1beta2.QueryKeysRequest.key_id": - return x.KeyId != uint64(0) + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.derive_wallets": + return len(x.DeriveWallets) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysBySpaceIdRequest")) } - panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysBySpaceIdRequest does not contain field %s", fd.FullName())) } } @@ -7134,21 +8352,19 @@ func (x *fastReflection_QueryKeysRequest) Has(fd protoreflect.FieldDescriptor) b // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeysRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryKeysBySpaceIdRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "warden.warden.v1beta2.QueryKeysRequest.pagination": + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.pagination": x.Pagination = nil - case "warden.warden.v1beta2.QueryKeysRequest.space_id": + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.space_id": x.SpaceId = uint64(0) - case "warden.warden.v1beta2.QueryKeysRequest.type": - x.Type_ = 0 - case "warden.warden.v1beta2.QueryKeysRequest.key_id": - x.KeyId = uint64(0) + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.derive_wallets": + x.DeriveWallets = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysBySpaceIdRequest")) } - panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysBySpaceIdRequest does not contain field %s", fd.FullName())) } } @@ -7158,25 +8374,25 @@ func (x *fastReflection_QueryKeysRequest) Clear(fd protoreflect.FieldDescriptor) // 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_QueryKeysRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeysBySpaceIdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "warden.warden.v1beta2.QueryKeysRequest.pagination": + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "warden.warden.v1beta2.QueryKeysRequest.space_id": + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.space_id": value := x.SpaceId return protoreflect.ValueOfUint64(value) - case "warden.warden.v1beta2.QueryKeysRequest.type": - value := x.Type_ - return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "warden.warden.v1beta2.QueryKeysRequest.key_id": - value := x.KeyId - return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.derive_wallets": + if len(x.DeriveWallets) == 0 { + return protoreflect.ValueOfList(&_QueryKeysBySpaceIdRequest_3_list{}) + } + listValue := &_QueryKeysBySpaceIdRequest_3_list{list: &x.DeriveWallets} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysBySpaceIdRequest")) } - panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysBySpaceIdRequest does not contain field %s", descriptor.FullName())) } } @@ -7190,21 +8406,21 @@ func (x *fastReflection_QueryKeysRequest) Get(descriptor protoreflect.FieldDescr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeysRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryKeysBySpaceIdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "warden.warden.v1beta2.QueryKeysRequest.pagination": + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) - case "warden.warden.v1beta2.QueryKeysRequest.space_id": + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.space_id": x.SpaceId = value.Uint() - case "warden.warden.v1beta2.QueryKeysRequest.type": - x.Type_ = (WalletType)(value.Enum()) - case "warden.warden.v1beta2.QueryKeysRequest.key_id": - x.KeyId = value.Uint() + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.derive_wallets": + lv := value.List() + clv := lv.(*_QueryKeysBySpaceIdRequest_3_list) + x.DeriveWallets = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysBySpaceIdRequest")) } - panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysBySpaceIdRequest does not contain field %s", fd.FullName())) } } @@ -7218,56 +8434,57 @@ func (x *fastReflection_QueryKeysRequest) Set(fd protoreflect.FieldDescriptor, v // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeysRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeysBySpaceIdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.warden.v1beta2.QueryKeysRequest.pagination": + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "warden.warden.v1beta2.QueryKeysRequest.space_id": - panic(fmt.Errorf("field space_id of message warden.warden.v1beta2.QueryKeysRequest is not mutable")) - case "warden.warden.v1beta2.QueryKeysRequest.type": - panic(fmt.Errorf("field type of message warden.warden.v1beta2.QueryKeysRequest is not mutable")) - case "warden.warden.v1beta2.QueryKeysRequest.key_id": - panic(fmt.Errorf("field key_id of message warden.warden.v1beta2.QueryKeysRequest is not mutable")) + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.derive_wallets": + if x.DeriveWallets == nil { + x.DeriveWallets = []WalletType{} + } + value := &_QueryKeysBySpaceIdRequest_3_list{list: &x.DeriveWallets} + return protoreflect.ValueOfList(value) + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.space_id": + panic(fmt.Errorf("field space_id of message warden.warden.v1beta2.QueryKeysBySpaceIdRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysBySpaceIdRequest")) } - panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysBySpaceIdRequest 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_QueryKeysRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeysBySpaceIdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.warden.v1beta2.QueryKeysRequest.pagination": + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "warden.warden.v1beta2.QueryKeysRequest.space_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "warden.warden.v1beta2.QueryKeysRequest.type": - return protoreflect.ValueOfEnum(0) - case "warden.warden.v1beta2.QueryKeysRequest.key_id": + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.space_id": return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta2.QueryKeysBySpaceIdRequest.derive_wallets": + list := []WalletType{} + return protoreflect.ValueOfList(&_QueryKeysBySpaceIdRequest_3_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysBySpaceIdRequest")) } - panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysBySpaceIdRequest 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_QueryKeysRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryKeysBySpaceIdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.warden.v1beta2.QueryKeysRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.warden.v1beta2.QueryKeysBySpaceIdRequest", d.FullName())) } panic("unreachable") } @@ -7275,7 +8492,7 @@ func (x *fastReflection_QueryKeysRequest) WhichOneof(d protoreflect.OneofDescrip // 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_QueryKeysRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryKeysBySpaceIdRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7286,7 +8503,7 @@ func (x *fastReflection_QueryKeysRequest) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeysRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryKeysBySpaceIdRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7298,7 +8515,7 @@ func (x *fastReflection_QueryKeysRequest) SetUnknown(fields protoreflect.RawFiel // 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_QueryKeysRequest) IsValid() bool { +func (x *fastReflection_QueryKeysBySpaceIdRequest) IsValid() bool { return x != nil } @@ -7308,9 +8525,9 @@ func (x *fastReflection_QueryKeysRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryKeysRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryKeysBySpaceIdRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryKeysRequest) + x := input.Message.Interface().(*QueryKeysBySpaceIdRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7329,11 +8546,12 @@ func (x *fastReflection_QueryKeysRequest) ProtoMethods() *protoiface.Methods { if x.SpaceId != 0 { n += 1 + runtime.Sov(uint64(x.SpaceId)) } - if x.Type_ != 0 { - n += 1 + runtime.Sov(uint64(x.Type_)) - } - if x.KeyId != 0 { - n += 1 + runtime.Sov(uint64(x.KeyId)) + if len(x.DeriveWallets) > 0 { + l = 0 + for _, e := range x.DeriveWallets { + l += runtime.Sov(uint64(e)) + } + n += 1 + runtime.Sov(uint64(l)) + l } if x.unknownFields != nil { n += len(x.unknownFields) @@ -7345,7 +8563,7 @@ func (x *fastReflection_QueryKeysRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryKeysRequest) + x := input.Message.Interface().(*QueryKeysBySpaceIdRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7364,15 +8582,26 @@ func (x *fastReflection_QueryKeysRequest) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.KeyId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyId)) - i-- - dAtA[i] = 0x20 - } - if x.Type_ != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Type_)) + if len(x.DeriveWallets) > 0 { + var pksize2 int + for _, num := range x.DeriveWallets { + pksize2 += runtime.Sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num1 := range x.DeriveWallets { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) i-- - dAtA[i] = 0x18 + dAtA[i] = 0x1a } if x.SpaceId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.SpaceId)) @@ -7404,7 +8633,7 @@ func (x *fastReflection_QueryKeysRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryKeysRequest) + x := input.Message.Interface().(*QueryKeysBySpaceIdRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7436,10 +8665,10 @@ func (x *fastReflection_QueryKeysRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeysRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeysBySpaceIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeysBySpaceIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7480,28 +8709,9 @@ func (x *fastReflection_QueryKeysRequest) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 2: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SpaceId", wireType) - } - x.SpaceId = 0 - 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++ - x.SpaceId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Type_", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field SpaceId", wireType) } - x.Type_ = 0 + x.SpaceId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -7511,29 +8721,79 @@ func (x *fastReflection_QueryKeysRequest) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.Type_ |= WalletType(b&0x7F) << shift + x.SpaceId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyId", wireType) - } - x.KeyId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + case 3: + if wireType == 0 { + var v WalletType + 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++ + v |= WalletType(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { + x.DeriveWallets = append(x.DeriveWallets, v) + } else if wireType == 2 { + var packedLen 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++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + packedLen + 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 } - b := dAtA[iNdEx] - iNdEx++ - x.KeyId |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var elementCount int + if elementCount != 0 && len(x.DeriveWallets) == 0 { + x.DeriveWallets = make([]WalletType, 0, elementCount) + } + for iNdEx < postIndex { + var v WalletType + 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++ + v |= WalletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.DeriveWallets = append(x.DeriveWallets, v) } + } else { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DeriveWallets", wireType) } default: iNdEx = preIndex @@ -7570,80 +8830,75 @@ func (x *fastReflection_QueryKeysRequest) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_QueryKeysResponse_2_list)(nil) +var _ protoreflect.List = (*_QueryKeyByIdRequest_2_list)(nil) -type _QueryKeysResponse_2_list struct { - list *[]*KeyResponse +type _QueryKeyByIdRequest_2_list struct { + list *[]WalletType } -func (x *_QueryKeysResponse_2_list) Len() int { +func (x *_QueryKeyByIdRequest_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryKeysResponse_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +func (x *_QueryKeyByIdRequest_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)((*x.list)[i])) } -func (x *_QueryKeysResponse_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*KeyResponse) +func (x *_QueryKeyByIdRequest_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Enum() + concreteValue := (WalletType)(valueUnwrapped) (*x.list)[i] = concreteValue } -func (x *_QueryKeysResponse_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*KeyResponse) +func (x *_QueryKeyByIdRequest_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Enum() + concreteValue := (WalletType)(valueUnwrapped) *x.list = append(*x.list, concreteValue) } -func (x *_QueryKeysResponse_2_list) AppendMutable() protoreflect.Value { - v := new(KeyResponse) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x *_QueryKeyByIdRequest_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message QueryKeyByIdRequest at list field DeriveWallets as it is not of Message kind")) } -func (x *_QueryKeysResponse_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } +func (x *_QueryKeyByIdRequest_2_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_QueryKeysResponse_2_list) NewElement() protoreflect.Value { - v := new(KeyResponse) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x *_QueryKeyByIdRequest_2_list) NewElement() protoreflect.Value { + v := 0 + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(v)) } -func (x *_QueryKeysResponse_2_list) IsValid() bool { +func (x *_QueryKeyByIdRequest_2_list) IsValid() bool { return x.list != nil } var ( - md_QueryKeysResponse protoreflect.MessageDescriptor - fd_QueryKeysResponse_pagination protoreflect.FieldDescriptor - fd_QueryKeysResponse_keys protoreflect.FieldDescriptor + md_QueryKeyByIdRequest protoreflect.MessageDescriptor + fd_QueryKeyByIdRequest_id protoreflect.FieldDescriptor + fd_QueryKeyByIdRequest_derive_wallets protoreflect.FieldDescriptor ) func init() { file_warden_warden_v1beta2_query_proto_init() - md_QueryKeysResponse = File_warden_warden_v1beta2_query_proto.Messages().ByName("QueryKeysResponse") - fd_QueryKeysResponse_pagination = md_QueryKeysResponse.Fields().ByName("pagination") - fd_QueryKeysResponse_keys = md_QueryKeysResponse.Fields().ByName("keys") + md_QueryKeyByIdRequest = File_warden_warden_v1beta2_query_proto.Messages().ByName("QueryKeyByIdRequest") + fd_QueryKeyByIdRequest_id = md_QueryKeyByIdRequest.Fields().ByName("id") + fd_QueryKeyByIdRequest_derive_wallets = md_QueryKeyByIdRequest.Fields().ByName("derive_wallets") } -var _ protoreflect.Message = (*fastReflection_QueryKeysResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryKeyByIdRequest)(nil) -type fastReflection_QueryKeysResponse QueryKeysResponse +type fastReflection_QueryKeyByIdRequest QueryKeyByIdRequest -func (x *QueryKeysResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryKeysResponse)(x) +func (x *QueryKeyByIdRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeyByIdRequest)(x) } -func (x *QueryKeysResponse) slowProtoReflect() protoreflect.Message { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[16] +func (x *QueryKeyByIdRequest) slowProtoReflect() protoreflect.Message { + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7654,43 +8909,43 @@ func (x *QueryKeysResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryKeysResponse_messageType fastReflection_QueryKeysResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryKeysResponse_messageType{} +var _fastReflection_QueryKeyByIdRequest_messageType fastReflection_QueryKeyByIdRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeyByIdRequest_messageType{} -type fastReflection_QueryKeysResponse_messageType struct{} +type fastReflection_QueryKeyByIdRequest_messageType struct{} -func (x fastReflection_QueryKeysResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryKeysResponse)(nil) +func (x fastReflection_QueryKeyByIdRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeyByIdRequest)(nil) } -func (x fastReflection_QueryKeysResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryKeysResponse) +func (x fastReflection_QueryKeyByIdRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeyByIdRequest) } -func (x fastReflection_QueryKeysResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeysResponse +func (x fastReflection_QueryKeyByIdRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyByIdRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryKeysResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeysResponse +func (x *fastReflection_QueryKeyByIdRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyByIdRequest } // 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_QueryKeysResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryKeysResponse_messageType +func (x *fastReflection_QueryKeyByIdRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryKeyByIdRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryKeysResponse) New() protoreflect.Message { - return new(fastReflection_QueryKeysResponse) +func (x *fastReflection_QueryKeyByIdRequest) New() protoreflect.Message { + return new(fastReflection_QueryKeyByIdRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryKeysResponse) Interface() protoreflect.ProtoMessage { - return (*QueryKeysResponse)(x) +func (x *fastReflection_QueryKeyByIdRequest) Interface() protoreflect.ProtoMessage { + return (*QueryKeyByIdRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -7698,16 +8953,16 @@ func (x *fastReflection_QueryKeysResponse) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryKeysResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryKeysResponse_pagination, value) { +func (x *fastReflection_QueryKeyByIdRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Id != uint64(0) { + value := protoreflect.ValueOfUint64(x.Id) + if !f(fd_QueryKeyByIdRequest_id, value) { return } } - if len(x.Keys) != 0 { - value := protoreflect.ValueOfList(&_QueryKeysResponse_2_list{list: &x.Keys}) - if !f(fd_QueryKeysResponse_keys, value) { + if len(x.DeriveWallets) != 0 { + value := protoreflect.ValueOfList(&_QueryKeyByIdRequest_2_list{list: &x.DeriveWallets}) + if !f(fd_QueryKeyByIdRequest_derive_wallets, value) { return } } @@ -7724,17 +8979,17 @@ func (x *fastReflection_QueryKeysResponse) Range(f func(protoreflect.FieldDescri // 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_QueryKeysResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryKeyByIdRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "warden.warden.v1beta2.QueryKeysResponse.pagination": - return x.Pagination != nil - case "warden.warden.v1beta2.QueryKeysResponse.keys": - return len(x.Keys) != 0 + case "warden.warden.v1beta2.QueryKeyByIdRequest.id": + return x.Id != uint64(0) + case "warden.warden.v1beta2.QueryKeyByIdRequest.derive_wallets": + return len(x.DeriveWallets) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeyByIdRequest")) } - panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeyByIdRequest does not contain field %s", fd.FullName())) } } @@ -7744,17 +8999,17 @@ func (x *fastReflection_QueryKeysResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeysResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryKeyByIdRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "warden.warden.v1beta2.QueryKeysResponse.pagination": - x.Pagination = nil - case "warden.warden.v1beta2.QueryKeysResponse.keys": - x.Keys = nil + case "warden.warden.v1beta2.QueryKeyByIdRequest.id": + x.Id = uint64(0) + case "warden.warden.v1beta2.QueryKeyByIdRequest.derive_wallets": + x.DeriveWallets = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeyByIdRequest")) } - panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeyByIdRequest does not contain field %s", fd.FullName())) } } @@ -7764,22 +9019,22 @@ func (x *fastReflection_QueryKeysResponse) Clear(fd protoreflect.FieldDescriptor // 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_QueryKeysResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyByIdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "warden.warden.v1beta2.QueryKeysResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "warden.warden.v1beta2.QueryKeysResponse.keys": - if len(x.Keys) == 0 { - return protoreflect.ValueOfList(&_QueryKeysResponse_2_list{}) + case "warden.warden.v1beta2.QueryKeyByIdRequest.id": + value := x.Id + return protoreflect.ValueOfUint64(value) + case "warden.warden.v1beta2.QueryKeyByIdRequest.derive_wallets": + if len(x.DeriveWallets) == 0 { + return protoreflect.ValueOfList(&_QueryKeyByIdRequest_2_list{}) } - listValue := &_QueryKeysResponse_2_list{list: &x.Keys} + listValue := &_QueryKeyByIdRequest_2_list{list: &x.DeriveWallets} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeyByIdRequest")) } - panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeyByIdRequest does not contain field %s", descriptor.FullName())) } } @@ -7793,19 +9048,19 @@ func (x *fastReflection_QueryKeysResponse) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeysResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryKeyByIdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "warden.warden.v1beta2.QueryKeysResponse.pagination": - x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) - case "warden.warden.v1beta2.QueryKeysResponse.keys": + case "warden.warden.v1beta2.QueryKeyByIdRequest.id": + x.Id = value.Uint() + case "warden.warden.v1beta2.QueryKeyByIdRequest.derive_wallets": lv := value.List() - clv := lv.(*_QueryKeysResponse_2_list) - x.Keys = *clv.list + clv := lv.(*_QueryKeyByIdRequest_2_list) + x.DeriveWallets = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeyByIdRequest")) } - panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeyByIdRequest does not contain field %s", fd.FullName())) } } @@ -7819,53 +9074,49 @@ func (x *fastReflection_QueryKeysResponse) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeysResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyByIdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.warden.v1beta2.QueryKeysResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(v1beta1.PageResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - case "warden.warden.v1beta2.QueryKeysResponse.keys": - if x.Keys == nil { - x.Keys = []*KeyResponse{} + case "warden.warden.v1beta2.QueryKeyByIdRequest.derive_wallets": + if x.DeriveWallets == nil { + x.DeriveWallets = []WalletType{} } - value := &_QueryKeysResponse_2_list{list: &x.Keys} + value := &_QueryKeyByIdRequest_2_list{list: &x.DeriveWallets} return protoreflect.ValueOfList(value) + case "warden.warden.v1beta2.QueryKeyByIdRequest.id": + panic(fmt.Errorf("field id of message warden.warden.v1beta2.QueryKeyByIdRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeyByIdRequest")) } - panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeyByIdRequest 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_QueryKeysResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyByIdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.warden.v1beta2.QueryKeysResponse.pagination": - m := new(v1beta1.PageResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "warden.warden.v1beta2.QueryKeysResponse.keys": - list := []*KeyResponse{} - return protoreflect.ValueOfList(&_QueryKeysResponse_2_list{list: &list}) + case "warden.warden.v1beta2.QueryKeyByIdRequest.id": + return protoreflect.ValueOfUint64(uint64(0)) + case "warden.warden.v1beta2.QueryKeyByIdRequest.derive_wallets": + list := []WalletType{} + return protoreflect.ValueOfList(&_QueryKeyByIdRequest_2_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeysResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeyByIdRequest")) } - panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeysResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeyByIdRequest 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_QueryKeysResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryKeyByIdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.warden.v1beta2.QueryKeysResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.warden.v1beta2.QueryKeyByIdRequest", d.FullName())) } panic("unreachable") } @@ -7873,7 +9124,7 @@ func (x *fastReflection_QueryKeysResponse) WhichOneof(d protoreflect.OneofDescri // 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_QueryKeysResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryKeyByIdRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7884,7 +9135,7 @@ func (x *fastReflection_QueryKeysResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeysResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryKeyByIdRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7896,7 +9147,7 @@ func (x *fastReflection_QueryKeysResponse) SetUnknown(fields protoreflect.RawFie // 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_QueryKeysResponse) IsValid() bool { +func (x *fastReflection_QueryKeyByIdRequest) IsValid() bool { return x != nil } @@ -7906,9 +9157,9 @@ func (x *fastReflection_QueryKeysResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryKeysResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryKeyByIdRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryKeysResponse) + x := input.Message.Interface().(*QueryKeyByIdRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7920,15 +9171,15 @@ func (x *fastReflection_QueryKeysResponse) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.Pagination != nil { - l = options.Size(x.Pagination) - n += 1 + l + runtime.Sov(uint64(l)) + if x.Id != 0 { + n += 1 + runtime.Sov(uint64(x.Id)) } - if len(x.Keys) > 0 { - for _, e := range x.Keys { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) + if len(x.DeriveWallets) > 0 { + l = 0 + for _, e := range x.DeriveWallets { + l += runtime.Sov(uint64(e)) } + n += 1 + runtime.Sov(uint64(l)) + l } if x.unknownFields != nil { n += len(x.unknownFields) @@ -7940,7 +9191,7 @@ func (x *fastReflection_QueryKeysResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryKeysResponse) + x := input.Message.Interface().(*QueryKeyByIdRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7959,35 +9210,31 @@ func (x *fastReflection_QueryKeysResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Keys) > 0 { - for iNdEx := len(x.Keys) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Keys[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] = 0x12 + if len(x.DeriveWallets) > 0 { + var pksize2 int + for _, num := range x.DeriveWallets { + pksize2 += runtime.Sov(uint64(num)) } - } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err + i -= pksize2 + j1 := i + for _, num1 := range x.DeriveWallets { + num := uint64(num1) + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if x.Id != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + i-- + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -8000,7 +9247,7 @@ func (x *fastReflection_QueryKeysResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryKeysResponse) + x := input.Message.Interface().(*QueryKeyByIdRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8032,17 +9279,17 @@ func (x *fastReflection_QueryKeysResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeysResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyByIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyByIdRequest: 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 Pagination", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } - var msglen int + x.Id = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -8052,62 +9299,80 @@ func (x *fastReflection_QueryKeysResponse) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + x.Id |= uint64(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 - } - if x.Pagination == nil { - x.Pagination = &v1beta1.PageResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Keys", 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 wireType == 0 { + var v WalletType + 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++ + v |= WalletType(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { + x.DeriveWallets = append(x.DeriveWallets, v) + } else if wireType == 2 { + var packedLen 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++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + packedLen + 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 } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break + var elementCount int + if elementCount != 0 && len(x.DeriveWallets) == 0 { + x.DeriveWallets = make([]WalletType, 0, elementCount) } + for iNdEx < postIndex { + var v WalletType + 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++ + v |= WalletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.DeriveWallets = append(x.DeriveWallets, v) + } + } else { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DeriveWallets", wireType) } - 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.Keys = append(x.Keys, &KeyResponse{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Keys[len(x.Keys)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -8143,80 +9408,80 @@ func (x *fastReflection_QueryKeysResponse) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_KeyResponse_2_list)(nil) +var _ protoreflect.List = (*_QueryKeyResponse_2_list)(nil) -type _KeyResponse_2_list struct { +type _QueryKeyResponse_2_list struct { list *[]*WalletKeyResponse } -func (x *_KeyResponse_2_list) Len() int { +func (x *_QueryKeyResponse_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_KeyResponse_2_list) Get(i int) protoreflect.Value { +func (x *_QueryKeyResponse_2_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_KeyResponse_2_list) Set(i int, value protoreflect.Value) { +func (x *_QueryKeyResponse_2_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*WalletKeyResponse) (*x.list)[i] = concreteValue } -func (x *_KeyResponse_2_list) Append(value protoreflect.Value) { +func (x *_QueryKeyResponse_2_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*WalletKeyResponse) *x.list = append(*x.list, concreteValue) } -func (x *_KeyResponse_2_list) AppendMutable() protoreflect.Value { +func (x *_QueryKeyResponse_2_list) AppendMutable() protoreflect.Value { v := new(WalletKeyResponse) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_KeyResponse_2_list) Truncate(n int) { +func (x *_QueryKeyResponse_2_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_KeyResponse_2_list) NewElement() protoreflect.Value { +func (x *_QueryKeyResponse_2_list) NewElement() protoreflect.Value { v := new(WalletKeyResponse) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_KeyResponse_2_list) IsValid() bool { +func (x *_QueryKeyResponse_2_list) IsValid() bool { return x.list != nil } var ( - md_KeyResponse protoreflect.MessageDescriptor - fd_KeyResponse_key protoreflect.FieldDescriptor - fd_KeyResponse_wallets protoreflect.FieldDescriptor + md_QueryKeyResponse protoreflect.MessageDescriptor + fd_QueryKeyResponse_key protoreflect.FieldDescriptor + fd_QueryKeyResponse_wallets protoreflect.FieldDescriptor ) func init() { file_warden_warden_v1beta2_query_proto_init() - md_KeyResponse = File_warden_warden_v1beta2_query_proto.Messages().ByName("KeyResponse") - fd_KeyResponse_key = md_KeyResponse.Fields().ByName("key") - fd_KeyResponse_wallets = md_KeyResponse.Fields().ByName("wallets") + md_QueryKeyResponse = File_warden_warden_v1beta2_query_proto.Messages().ByName("QueryKeyResponse") + fd_QueryKeyResponse_key = md_QueryKeyResponse.Fields().ByName("key") + fd_QueryKeyResponse_wallets = md_QueryKeyResponse.Fields().ByName("wallets") } -var _ protoreflect.Message = (*fastReflection_KeyResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryKeyResponse)(nil) -type fastReflection_KeyResponse KeyResponse +type fastReflection_QueryKeyResponse QueryKeyResponse -func (x *KeyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_KeyResponse)(x) +func (x *QueryKeyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeyResponse)(x) } -func (x *KeyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[17] +func (x *QueryKeyResponse) slowProtoReflect() protoreflect.Message { + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8227,43 +9492,43 @@ func (x *KeyResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_KeyResponse_messageType fastReflection_KeyResponse_messageType -var _ protoreflect.MessageType = fastReflection_KeyResponse_messageType{} +var _fastReflection_QueryKeyResponse_messageType fastReflection_QueryKeyResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeyResponse_messageType{} -type fastReflection_KeyResponse_messageType struct{} +type fastReflection_QueryKeyResponse_messageType struct{} -func (x fastReflection_KeyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_KeyResponse)(nil) +func (x fastReflection_QueryKeyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeyResponse)(nil) } -func (x fastReflection_KeyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_KeyResponse) +func (x fastReflection_QueryKeyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeyResponse) } -func (x fastReflection_KeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_KeyResponse +func (x fastReflection_QueryKeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_KeyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_KeyResponse +func (x *fastReflection_QueryKeyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyResponse } // 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_KeyResponse) Type() protoreflect.MessageType { - return _fastReflection_KeyResponse_messageType +func (x *fastReflection_QueryKeyResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryKeyResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_KeyResponse) New() protoreflect.Message { - return new(fastReflection_KeyResponse) +func (x *fastReflection_QueryKeyResponse) New() protoreflect.Message { + return new(fastReflection_QueryKeyResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_KeyResponse) Interface() protoreflect.ProtoMessage { - return (*KeyResponse)(x) +func (x *fastReflection_QueryKeyResponse) Interface() protoreflect.ProtoMessage { + return (*QueryKeyResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -8271,16 +9536,16 @@ func (x *fastReflection_KeyResponse) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_KeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Key != nil { value := protoreflect.ValueOfMessage(x.Key.ProtoReflect()) - if !f(fd_KeyResponse_key, value) { + if !f(fd_QueryKeyResponse_key, value) { return } } if len(x.Wallets) != 0 { - value := protoreflect.ValueOfList(&_KeyResponse_2_list{list: &x.Wallets}) - if !f(fd_KeyResponse_wallets, value) { + value := protoreflect.ValueOfList(&_QueryKeyResponse_2_list{list: &x.Wallets}) + if !f(fd_QueryKeyResponse_wallets, value) { return } } @@ -8297,17 +9562,17 @@ func (x *fastReflection_KeyResponse) Range(f func(protoreflect.FieldDescriptor, // 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_KeyResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "warden.warden.v1beta2.KeyResponse.key": + case "warden.warden.v1beta2.QueryKeyResponse.key": return x.Key != nil - case "warden.warden.v1beta2.KeyResponse.wallets": + case "warden.warden.v1beta2.QueryKeyResponse.wallets": return len(x.Wallets) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.KeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeyResponse")) } - panic(fmt.Errorf("message warden.warden.v1beta2.KeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeyResponse does not contain field %s", fd.FullName())) } } @@ -8317,17 +9582,17 @@ func (x *fastReflection_KeyResponse) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_KeyResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryKeyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "warden.warden.v1beta2.KeyResponse.key": + case "warden.warden.v1beta2.QueryKeyResponse.key": x.Key = nil - case "warden.warden.v1beta2.KeyResponse.wallets": + case "warden.warden.v1beta2.QueryKeyResponse.wallets": x.Wallets = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.KeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeyResponse")) } - panic(fmt.Errorf("message warden.warden.v1beta2.KeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeyResponse does not contain field %s", fd.FullName())) } } @@ -8337,22 +9602,22 @@ func (x *fastReflection_KeyResponse) Clear(fd protoreflect.FieldDescriptor) { // 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_KeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "warden.warden.v1beta2.KeyResponse.key": + case "warden.warden.v1beta2.QueryKeyResponse.key": value := x.Key return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "warden.warden.v1beta2.KeyResponse.wallets": + case "warden.warden.v1beta2.QueryKeyResponse.wallets": if len(x.Wallets) == 0 { - return protoreflect.ValueOfList(&_KeyResponse_2_list{}) + return protoreflect.ValueOfList(&_QueryKeyResponse_2_list{}) } - listValue := &_KeyResponse_2_list{list: &x.Wallets} + listValue := &_QueryKeyResponse_2_list{list: &x.Wallets} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.KeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeyResponse")) } - panic(fmt.Errorf("message warden.warden.v1beta2.KeyResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeyResponse does not contain field %s", descriptor.FullName())) } } @@ -8366,19 +9631,19 @@ func (x *fastReflection_KeyResponse) Get(descriptor protoreflect.FieldDescriptor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_KeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "warden.warden.v1beta2.KeyResponse.key": + case "warden.warden.v1beta2.QueryKeyResponse.key": x.Key = value.Message().Interface().(*Key) - case "warden.warden.v1beta2.KeyResponse.wallets": + case "warden.warden.v1beta2.QueryKeyResponse.wallets": lv := value.List() - clv := lv.(*_KeyResponse_2_list) + clv := lv.(*_QueryKeyResponse_2_list) x.Wallets = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.KeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeyResponse")) } - panic(fmt.Errorf("message warden.warden.v1beta2.KeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeyResponse does not contain field %s", fd.FullName())) } } @@ -8392,53 +9657,53 @@ func (x *fastReflection_KeyResponse) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_KeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.warden.v1beta2.KeyResponse.key": + case "warden.warden.v1beta2.QueryKeyResponse.key": if x.Key == nil { x.Key = new(Key) } return protoreflect.ValueOfMessage(x.Key.ProtoReflect()) - case "warden.warden.v1beta2.KeyResponse.wallets": + case "warden.warden.v1beta2.QueryKeyResponse.wallets": if x.Wallets == nil { x.Wallets = []*WalletKeyResponse{} } - value := &_KeyResponse_2_list{list: &x.Wallets} + value := &_QueryKeyResponse_2_list{list: &x.Wallets} return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.KeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeyResponse")) } - panic(fmt.Errorf("message warden.warden.v1beta2.KeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeyResponse 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_KeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "warden.warden.v1beta2.KeyResponse.key": + case "warden.warden.v1beta2.QueryKeyResponse.key": m := new(Key) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "warden.warden.v1beta2.KeyResponse.wallets": + case "warden.warden.v1beta2.QueryKeyResponse.wallets": list := []*WalletKeyResponse{} - return protoreflect.ValueOfList(&_KeyResponse_2_list{list: &list}) + return protoreflect.ValueOfList(&_QueryKeyResponse_2_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.KeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: warden.warden.v1beta2.QueryKeyResponse")) } - panic(fmt.Errorf("message warden.warden.v1beta2.KeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message warden.warden.v1beta2.QueryKeyResponse 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_KeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryKeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in warden.warden.v1beta2.KeyResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in warden.warden.v1beta2.QueryKeyResponse", d.FullName())) } panic("unreachable") } @@ -8446,7 +9711,7 @@ func (x *fastReflection_KeyResponse) WhichOneof(d protoreflect.OneofDescriptor) // 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_KeyResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryKeyResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8457,7 +9722,7 @@ func (x *fastReflection_KeyResponse) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_KeyResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryKeyResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8469,7 +9734,7 @@ func (x *fastReflection_KeyResponse) SetUnknown(fields protoreflect.RawFields) { // 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_KeyResponse) IsValid() bool { +func (x *fastReflection_QueryKeyResponse) IsValid() bool { return x != nil } @@ -8479,9 +9744,9 @@ func (x *fastReflection_KeyResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_KeyResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryKeyResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*KeyResponse) + x := input.Message.Interface().(*QueryKeyResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8513,7 +9778,7 @@ func (x *fastReflection_KeyResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*KeyResponse) + x := input.Message.Interface().(*QueryKeyResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8573,7 +9838,7 @@ func (x *fastReflection_KeyResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*KeyResponse) + x := input.Message.Interface().(*QueryKeyResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8605,10 +9870,10 @@ func (x *fastReflection_KeyResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: KeyResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: KeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8738,7 +10003,7 @@ func (x *WalletKeyResponse) ProtoReflect() protoreflect.Message { } func (x *WalletKeyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[18] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9208,7 +10473,7 @@ func (x *QuerySignatureRequestsRequest) ProtoReflect() protoreflect.Message { } func (x *QuerySignatureRequestsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[19] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9788,7 +11053,7 @@ func (x *QuerySignatureRequestsResponse) ProtoReflect() protoreflect.Message { } func (x *QuerySignatureRequestsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[20] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10308,7 +11573,7 @@ func (x *QuerySignatureRequestByIdRequest) ProtoReflect() protoreflect.Message { } func (x *QuerySignatureRequestByIdRequest) slowProtoReflect() protoreflect.Message { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[21] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10712,7 +11977,7 @@ func (x *QuerySignatureRequestByIdResponse) ProtoReflect() protoreflect.Message } func (x *QuerySignatureRequestByIdResponse) slowProtoReflect() protoreflect.Message { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[22] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11153,7 +12418,7 @@ func (x *QuerySignTransactionRequestsRequest) ProtoReflect() protoreflect.Messag } func (x *QuerySignTransactionRequestsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[23] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11728,7 +12993,7 @@ func (x *SignTransactionRequestResponse) ProtoReflect() protoreflect.Message { } func (x *SignTransactionRequestResponse) slowProtoReflect() protoreflect.Message { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[24] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12293,7 +13558,7 @@ func (x *QuerySignTransactionRequestsResponse) ProtoReflect() protoreflect.Messa } func (x *QuerySignTransactionRequestsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[25] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12813,7 +14078,7 @@ func (x *QuerySignTransactionRequestByIdRequest) ProtoReflect() protoreflect.Mes } func (x *QuerySignTransactionRequestByIdRequest) slowProtoReflect() protoreflect.Message { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[26] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13217,7 +14482,7 @@ func (x *QuerySignTransactionRequestByIdResponse) ProtoReflect() protoreflect.Me } func (x *QuerySignTransactionRequestByIdResponse) slowProtoReflect() protoreflect.Message { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[27] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14220,19 +15485,17 @@ func (x *QueryKeyRequestByIdResponse) GetKeyRequest() *KeyRequest { return nil } -type QueryKeysRequest struct { +type QueryAllKeysRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` // Optional - Type_ WalletType `protobuf:"varint,3,opt,name=type,proto3,enum=warden.warden.v1beta2.WalletType" json:"type,omitempty"` // Optional - KeyId uint64 `protobuf:"varint,4,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` // Optional + Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + DeriveWallets []WalletType `protobuf:"varint,2,rep,packed,name=derive_wallets,json=deriveWallets,proto3,enum=warden.warden.v1beta2.WalletType" json:"derive_wallets,omitempty"` // Optional } -func (x *QueryKeysRequest) Reset() { - *x = QueryKeysRequest{} +func (x *QueryAllKeysRequest) Reset() { + *x = QueryAllKeysRequest{} if protoimpl.UnsafeEnabled { mi := &file_warden_warden_v1beta2_query_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -14240,43 +15503,29 @@ func (x *QueryKeysRequest) Reset() { } } -func (x *QueryKeysRequest) String() string { +func (x *QueryAllKeysRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryKeysRequest) ProtoMessage() {} +func (*QueryAllKeysRequest) ProtoMessage() {} -// Deprecated: Use QueryKeysRequest.ProtoReflect.Descriptor instead. -func (*QueryKeysRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryAllKeysRequest.ProtoReflect.Descriptor instead. +func (*QueryAllKeysRequest) Descriptor() ([]byte, []int) { return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{15} } -func (x *QueryKeysRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryAllKeysRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } return nil } -func (x *QueryKeysRequest) GetSpaceId() uint64 { - if x != nil { - return x.SpaceId - } - return 0 -} - -func (x *QueryKeysRequest) GetType_() WalletType { - if x != nil { - return x.Type_ - } - return WalletType_WALLET_TYPE_UNSPECIFIED -} - -func (x *QueryKeysRequest) GetKeyId() uint64 { +func (x *QueryAllKeysRequest) GetDeriveWallets() []WalletType { if x != nil { - return x.KeyId + return x.DeriveWallets } - return 0 + return nil } type QueryKeysResponse struct { @@ -14285,7 +15534,7 @@ type QueryKeysResponse struct { unknownFields protoimpl.UnknownFields Pagination *v1beta1.PageResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Keys []*KeyResponse `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` + Keys []*QueryKeyResponse `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` } func (x *QueryKeysResponse) Reset() { @@ -14315,24 +15564,25 @@ func (x *QueryKeysResponse) GetPagination() *v1beta1.PageResponse { return nil } -func (x *QueryKeysResponse) GetKeys() []*KeyResponse { +func (x *QueryKeysResponse) GetKeys() []*QueryKeyResponse { if x != nil { return x.Keys } return nil } -type KeyResponse struct { +type QueryKeysBySpaceIdRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Wallets []*WalletKeyResponse `protobuf:"bytes,2,rep,name=wallets,proto3" json:"wallets,omitempty"` + Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` + DeriveWallets []WalletType `protobuf:"varint,3,rep,packed,name=derive_wallets,json=deriveWallets,proto3,enum=warden.warden.v1beta2.WalletType" json:"derive_wallets,omitempty"` // Optional } -func (x *KeyResponse) Reset() { - *x = KeyResponse{} +func (x *QueryKeysBySpaceIdRequest) Reset() { + *x = QueryKeysBySpaceIdRequest{} if protoimpl.UnsafeEnabled { mi := &file_warden_warden_v1beta2_query_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -14340,25 +15590,118 @@ func (x *KeyResponse) Reset() { } } -func (x *KeyResponse) String() string { +func (x *QueryKeysBySpaceIdRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*KeyResponse) ProtoMessage() {} +func (*QueryKeysBySpaceIdRequest) ProtoMessage() {} -// Deprecated: Use KeyResponse.ProtoReflect.Descriptor instead. -func (*KeyResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryKeysBySpaceIdRequest.ProtoReflect.Descriptor instead. +func (*QueryKeysBySpaceIdRequest) Descriptor() ([]byte, []int) { return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{17} } -func (x *KeyResponse) GetKey() *Key { +func (x *QueryKeysBySpaceIdRequest) GetPagination() *v1beta1.PageRequest { + if x != nil { + return x.Pagination + } + return nil +} + +func (x *QueryKeysBySpaceIdRequest) GetSpaceId() uint64 { + if x != nil { + return x.SpaceId + } + return 0 +} + +func (x *QueryKeysBySpaceIdRequest) GetDeriveWallets() []WalletType { + if x != nil { + return x.DeriveWallets + } + return nil +} + +type QueryKeyByIdRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + DeriveWallets []WalletType `protobuf:"varint,2,rep,packed,name=derive_wallets,json=deriveWallets,proto3,enum=warden.warden.v1beta2.WalletType" json:"derive_wallets,omitempty"` // Optional +} + +func (x *QueryKeyByIdRequest) Reset() { + *x = QueryKeyByIdRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryKeyByIdRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryKeyByIdRequest) ProtoMessage() {} + +// Deprecated: Use QueryKeyByIdRequest.ProtoReflect.Descriptor instead. +func (*QueryKeyByIdRequest) Descriptor() ([]byte, []int) { + return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{18} +} + +func (x *QueryKeyByIdRequest) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *QueryKeyByIdRequest) GetDeriveWallets() []WalletType { + if x != nil { + return x.DeriveWallets + } + return nil +} + +type QueryKeyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Wallets []*WalletKeyResponse `protobuf:"bytes,2,rep,name=wallets,proto3" json:"wallets,omitempty"` +} + +func (x *QueryKeyResponse) Reset() { + *x = QueryKeyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryKeyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryKeyResponse) ProtoMessage() {} + +// Deprecated: Use QueryKeyResponse.ProtoReflect.Descriptor instead. +func (*QueryKeyResponse) Descriptor() ([]byte, []int) { + return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{19} +} + +func (x *QueryKeyResponse) GetKey() *Key { if x != nil { return x.Key } return nil } -func (x *KeyResponse) GetWallets() []*WalletKeyResponse { +func (x *QueryKeyResponse) GetWallets() []*WalletKeyResponse { if x != nil { return x.Wallets } @@ -14377,7 +15720,7 @@ type WalletKeyResponse struct { func (x *WalletKeyResponse) Reset() { *x = WalletKeyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[18] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14391,7 +15734,7 @@ func (*WalletKeyResponse) ProtoMessage() {} // Deprecated: Use WalletKeyResponse.ProtoReflect.Descriptor instead. func (*WalletKeyResponse) Descriptor() ([]byte, []int) { - return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{18} + return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{20} } func (x *WalletKeyResponse) GetAddress() string { @@ -14421,7 +15764,7 @@ type QuerySignatureRequestsRequest struct { func (x *QuerySignatureRequestsRequest) Reset() { *x = QuerySignatureRequestsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[19] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14435,7 +15778,7 @@ func (*QuerySignatureRequestsRequest) ProtoMessage() {} // Deprecated: Use QuerySignatureRequestsRequest.ProtoReflect.Descriptor instead. func (*QuerySignatureRequestsRequest) Descriptor() ([]byte, []int) { - return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{19} + return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{21} } func (x *QuerySignatureRequestsRequest) GetPagination() *v1beta1.PageRequest { @@ -14471,7 +15814,7 @@ type QuerySignatureRequestsResponse struct { func (x *QuerySignatureRequestsResponse) Reset() { *x = QuerySignatureRequestsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[20] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14485,7 +15828,7 @@ func (*QuerySignatureRequestsResponse) ProtoMessage() {} // Deprecated: Use QuerySignatureRequestsResponse.ProtoReflect.Descriptor instead. func (*QuerySignatureRequestsResponse) Descriptor() ([]byte, []int) { - return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{20} + return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{22} } func (x *QuerySignatureRequestsResponse) GetPagination() *v1beta1.PageResponse { @@ -14513,7 +15856,7 @@ type QuerySignatureRequestByIdRequest struct { func (x *QuerySignatureRequestByIdRequest) Reset() { *x = QuerySignatureRequestByIdRequest{} if protoimpl.UnsafeEnabled { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[21] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14527,7 +15870,7 @@ func (*QuerySignatureRequestByIdRequest) ProtoMessage() {} // Deprecated: Use QuerySignatureRequestByIdRequest.ProtoReflect.Descriptor instead. func (*QuerySignatureRequestByIdRequest) Descriptor() ([]byte, []int) { - return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{21} + return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{23} } func (x *QuerySignatureRequestByIdRequest) GetId() uint64 { @@ -14548,7 +15891,7 @@ type QuerySignatureRequestByIdResponse struct { func (x *QuerySignatureRequestByIdResponse) Reset() { *x = QuerySignatureRequestByIdResponse{} if protoimpl.UnsafeEnabled { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[22] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14562,7 +15905,7 @@ func (*QuerySignatureRequestByIdResponse) ProtoMessage() {} // Deprecated: Use QuerySignatureRequestByIdResponse.ProtoReflect.Descriptor instead. func (*QuerySignatureRequestByIdResponse) Descriptor() ([]byte, []int) { - return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{22} + return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{24} } func (x *QuerySignatureRequestByIdResponse) GetSignRequest() *SignRequest { @@ -14586,7 +15929,7 @@ type QuerySignTransactionRequestsRequest struct { func (x *QuerySignTransactionRequestsRequest) Reset() { *x = QuerySignTransactionRequestsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[23] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14600,7 +15943,7 @@ func (*QuerySignTransactionRequestsRequest) ProtoMessage() {} // Deprecated: Use QuerySignTransactionRequestsRequest.ProtoReflect.Descriptor instead. func (*QuerySignTransactionRequestsRequest) Descriptor() ([]byte, []int) { - return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{23} + return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{25} } func (x *QuerySignTransactionRequestsRequest) GetPagination() *v1beta1.PageRequest { @@ -14643,7 +15986,7 @@ type SignTransactionRequestResponse struct { func (x *SignTransactionRequestResponse) Reset() { *x = SignTransactionRequestResponse{} if protoimpl.UnsafeEnabled { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[24] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14657,7 +16000,7 @@ func (*SignTransactionRequestResponse) ProtoMessage() {} // Deprecated: Use SignTransactionRequestResponse.ProtoReflect.Descriptor instead. func (*SignTransactionRequestResponse) Descriptor() ([]byte, []int) { - return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{24} + return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{26} } func (x *SignTransactionRequestResponse) GetSignTransactionRequest() *SignTransactionRequest { @@ -14686,7 +16029,7 @@ type QuerySignTransactionRequestsResponse struct { func (x *QuerySignTransactionRequestsResponse) Reset() { *x = QuerySignTransactionRequestsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[25] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14700,7 +16043,7 @@ func (*QuerySignTransactionRequestsResponse) ProtoMessage() {} // Deprecated: Use QuerySignTransactionRequestsResponse.ProtoReflect.Descriptor instead. func (*QuerySignTransactionRequestsResponse) Descriptor() ([]byte, []int) { - return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{25} + return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{27} } func (x *QuerySignTransactionRequestsResponse) GetPagination() *v1beta1.PageResponse { @@ -14728,7 +16071,7 @@ type QuerySignTransactionRequestByIdRequest struct { func (x *QuerySignTransactionRequestByIdRequest) Reset() { *x = QuerySignTransactionRequestByIdRequest{} if protoimpl.UnsafeEnabled { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[26] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14742,7 +16085,7 @@ func (*QuerySignTransactionRequestByIdRequest) ProtoMessage() {} // Deprecated: Use QuerySignTransactionRequestByIdRequest.ProtoReflect.Descriptor instead. func (*QuerySignTransactionRequestByIdRequest) Descriptor() ([]byte, []int) { - return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{26} + return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{28} } func (x *QuerySignTransactionRequestByIdRequest) GetId() uint64 { @@ -14763,7 +16106,7 @@ type QuerySignTransactionRequestByIdResponse struct { func (x *QuerySignTransactionRequestByIdResponse) Reset() { *x = QuerySignTransactionRequestByIdResponse{} if protoimpl.UnsafeEnabled { - mi := &file_warden_warden_v1beta2_query_proto_msgTypes[27] + mi := &file_warden_warden_v1beta2_query_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -14777,7 +16120,7 @@ func (*QuerySignTransactionRequestByIdResponse) ProtoMessage() {} // Deprecated: Use QuerySignTransactionRequestByIdResponse.ProtoReflect.Descriptor instead. func (*QuerySignTransactionRequestByIdResponse) Descriptor() ([]byte, []int) { - return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{27} + return file_warden_warden_v1beta2_query_proto_rawDescGZIP(), []int{29} } func (x *QuerySignTransactionRequestByIdResponse) GetSignTransactionRequest() *SignTransactionRequest { @@ -14911,286 +16254,325 @@ var file_warden_warden_v1beta2_query_proto_rawDesc = []byte{ 0x0b, 0x32, 0x21, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x22, 0xc3, 0x01, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, - 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, + 0x22, 0xa7, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4b, 0x65, 0x79, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x48, 0x0a, 0x0e, 0x64, 0x65, 0x72, 0x69, 0x76, 0x65, 0x5f, 0x77, 0x61, 0x6c, 0x6c, 0x65, + 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, + 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x64, 0x65, 0x72, + 0x69, 0x76, 0x65, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x11, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x04, 0x6b, 0x65, 0x79, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x22, 0xc8, 0x01, 0x0a, + 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x42, 0x79, 0x53, 0x70, 0x61, 0x63, + 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x48, 0x0a, + 0x0e, 0x64, 0x65, 0x72, 0x69, 0x76, 0x65, 0x5f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x73, 0x18, + 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x57, 0x61, + 0x6c, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x64, 0x65, 0x72, 0x69, 0x76, 0x65, + 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x73, 0x22, 0x6f, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x4b, 0x65, 0x79, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x48, + 0x0a, 0x0e, 0x64, 0x65, 0x72, 0x69, 0x76, 0x65, 0x5f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x57, - 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x94, 0x01, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, + 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x64, 0x65, 0x72, 0x69, 0x76, + 0x65, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x73, 0x22, 0x90, 0x01, 0x0a, 0x10, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x61, 0x72, + 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x32, 0x2e, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x48, 0x0a, 0x07, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, + 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, + 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x07, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x73, 0x22, 0x64, 0x0a, 0x11, 0x57, + 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, + 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x22, 0xca, 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x6b, + 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x40, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x77, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xb2, + 0x01, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x0d, 0x73, 0x69, + 0x67, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x73, 0x22, 0x32, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x6a, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0c, + 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, + 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0x8a, 0x02, 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, + 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x0b, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, + 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x77, 0x61, 0x6c, + 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x40, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, + 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x22, 0xd0, 0x01, 0x0a, 0x1e, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x18, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x53, 0x69, + 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x16, 0x73, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x0c, + 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, + 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0xe2, 0x01, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, + 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x4b, 0x65, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x22, 0x7f, 0x0a, - 0x0b, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x32, 0x2e, 0x4b, 0x65, 0x79, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x42, 0x0a, 0x07, 0x77, 0x61, - 0x6c, 0x6c, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x32, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x07, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x73, 0x22, 0x64, - 0x0a, 0x11, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x35, 0x0a, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x32, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x22, 0xca, 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, - 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, - 0x0a, 0x0b, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, - 0x40, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x28, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x22, 0xb2, 0x01, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, - 0x0d, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x53, 0x69, 0x67, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x32, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, - 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, - 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x6a, 0x0a, 0x21, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x45, 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, - 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x53, 0x69, - 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x8a, 0x02, 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, - 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, - 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, - 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x0b, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x32, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, - 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, - 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, - 0x64, 0x12, 0x40, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x28, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, - 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x22, 0xd0, 0x01, 0x0a, 0x1e, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x18, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x71, 0x0a, 0x19, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x16, 0x73, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x45, 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, - 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x53, 0x69, - 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xe2, 0x01, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x71, 0x0a, 0x19, 0x73, 0x69, 0x67, 0x6e, - 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x77, 0x61, - 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x52, 0x17, 0x73, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x38, 0x0a, 0x26, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x92, 0x01, 0x0a, 0x27, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, - 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x67, 0x0a, 0x18, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, + 0x17, 0x73, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x38, 0x0a, 0x26, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, + 0x69, 0x64, 0x22, 0x92, 0x01, 0x0a, 0x27, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x16, 0x73, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x32, 0x84, 0x11, 0x0a, 0x05, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x12, 0x86, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, - 0x29, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, - 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x86, 0x01, - 0x0a, 0x06, 0x53, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, - 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x53, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x9d, 0x01, 0x0a, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, - 0x73, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x30, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, - 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x70, 0x61, 0x63, 0x65, 0x73, 0x42, 0x79, 0x4f, 0x77, - 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, - 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x5f, 0x62, 0x79, - 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x92, 0x01, 0x0a, 0x09, 0x4b, 0x65, 0x79, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x73, 0x12, 0x2c, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, + 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, + 0x0a, 0x18, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, + 0x16, 0x73, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x32, 0xb5, 0x13, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x12, 0x86, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x29, 0x2e, 0x77, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x86, 0x01, 0x0a, 0x06, 0x53, + 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x29, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x53, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x70, + 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x73, 0x12, 0x9d, 0x01, 0x0a, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x73, 0x42, 0x79, + 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x30, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x53, 0x70, 0x61, 0x63, 0x65, 0x73, 0x42, 0x79, 0x4f, 0x77, 0x6e, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x32, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x12, 0x92, 0x01, 0x0a, 0x09, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x73, 0x12, 0x2c, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, + 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x6b, + 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x99, 0x01, 0x0a, 0x09, 0x53, 0x70, 0x61, + 0x63, 0x65, 0x42, 0x79, 0x49, 0x64, 0x12, 0x2c, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x53, 0x70, 0x61, 0x63, 0x65, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x32, 0x2f, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x99, 0x01, 0x0a, 0x09, - 0x53, 0x70, 0x61, 0x63, 0x65, 0x42, 0x79, 0x49, 0x64, 0x12, 0x2c, 0x2e, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x70, 0x61, 0x63, 0x65, 0x42, 0x79, 0x49, 0x64, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x72, 0x79, 0x53, 0x70, 0x61, 0x63, 0x65, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x32, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x62, 0x79, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0xa0, 0x01, 0x0a, 0x0c, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x42, 0x79, 0x49, 0x64, 0x12, 0x2f, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x79, 0x49, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x79, 0x49, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, + 0x12, 0x25, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x6b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x5f, 0x62, 0x79, 0x5f, 0x69, 0x64, 0x12, 0x9b, 0x01, 0x0a, 0x0b, 0x4b, 0x65, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x2e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x70, 0x61, 0x63, 0x65, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, - 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x62, 0x79, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0xa0, 0x01, 0x0a, 0x0c, 0x4b, 0x65, 0x79, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x42, 0x79, 0x49, 0x64, 0x12, 0x2f, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, + 0x12, 0x23, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x6b, 0x65, 0x79, 0x5f, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0xa9, 0x01, 0x0a, 0x0e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x12, 0x31, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x79, - 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, - 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x6b, 0x65, 0x79, 0x63, - 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x62, 0x79, 0x5f, 0x69, 0x64, 0x12, 0x9b, 0x01, 0x0a, 0x0b, 0x4b, - 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x2e, 0x2e, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x6b, 0x65, 0x79, 0x5f, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0xa9, 0x01, 0x0a, 0x0e, 0x4b, 0x65, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x12, 0x31, 0x2e, 0x77, 0x61, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, - 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x32, 0x2f, 0x6b, 0x65, 0x79, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x62, - 0x79, 0x5f, 0x69, 0x64, 0x12, 0x7e, 0x0a, 0x04, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x27, 0x2e, 0x77, + 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, + 0x6b, 0x65, 0x79, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x62, 0x79, 0x5f, 0x69, + 0x64, 0x12, 0x84, 0x01, 0x0a, 0x07, 0x41, 0x6c, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x2a, 0x2e, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4b, 0x65, + 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x77, 0x61, 0x72, 0x64, + 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x32, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x12, 0x9c, 0x01, 0x0a, 0x0d, 0x4b, 0x65, 0x79, + 0x73, 0x42, 0x79, 0x53, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x30, 0x2e, 0x77, 0x61, 0x72, + 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x42, 0x79, 0x53, 0x70, + 0x61, 0x63, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, + 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x5f, 0x62, 0x79, 0x5f, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x12, 0x88, 0x01, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x42, + 0x79, 0x49, 0x64, 0x12, 0x2a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, + 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x4b, 0x65, 0x79, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x27, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, + 0x12, 0x20, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x6b, 0x65, 0x79, 0x5f, 0x62, 0x79, 0x5f, + 0x69, 0x64, 0x12, 0xb7, 0x01, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x34, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, + 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, + 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, + 0x75, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0xc4, 0x01, 0x0a, + 0x14, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x42, 0x79, 0x49, 0x64, 0x12, 0x37, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, - 0x6b, 0x65, 0x79, 0x73, 0x12, 0xb7, 0x01, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, - 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x34, 0x2e, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x35, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, - 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, - 0x2d, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x69, 0x67, 0x6e, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0xc4, - 0x01, 0x0a, 0x14, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x12, 0x37, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x38, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, - 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x79, - 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x33, 0x12, 0x31, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x5f, 0x70, 0x62, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, - 0x62, 0x79, 0x5f, 0x69, 0x64, 0x12, 0xcc, 0x01, 0x0a, 0x17, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x73, 0x12, 0x3a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, + 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, + 0x12, 0x31, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x5f, 0x70, 0x62, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x62, 0x79, + 0x5f, 0x69, 0x64, 0x12, 0xcc, 0x01, 0x0a, 0x17, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, + 0x3a, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, + 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x77, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, + 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, + 0x12, 0x30, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x72, + 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x73, 0x12, 0xda, 0x01, 0x0a, 0x1a, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, + 0x64, 0x12, 0x3d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, - 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x32, 0x12, 0x30, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x5f, - 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x73, 0x12, 0xda, 0x01, 0x0a, 0x1a, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, - 0x79, 0x49, 0x64, 0x12, 0x3d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, - 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x53, 0x69, 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x32, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x62, 0x79, 0x5f, 0x69, - 0x64, 0x42, 0xf0, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x42, - 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x77, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x32, 0x3b, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, - 0xa2, 0x02, 0x03, 0x57, 0x57, 0x58, 0xaa, 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, - 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0xca, 0x02, - 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0xe2, 0x02, 0x21, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, - 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x57, 0x61, 0x72, - 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x3e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x69, + 0x67, 0x6e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x42, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, + 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x62, 0x79, 0x5f, 0x69, 0x64, 0x42, + 0xf0, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x77, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x42, 0x0a, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x51, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2d, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x2f, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, + 0x3b, 0x77, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0xa2, 0x02, + 0x03, 0x57, 0x57, 0x58, 0xaa, 0x02, 0x15, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x57, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0xca, 0x02, 0x15, 0x57, + 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x32, 0xe2, 0x02, 0x21, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x57, 0x61, + 0x72, 0x64, 0x65, 0x6e, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x17, 0x57, 0x61, 0x72, 0x64, 0x65, + 0x6e, 0x3a, 0x3a, 0x57, 0x61, 0x72, 0x64, 0x65, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -15205,7 +16587,7 @@ func file_warden_warden_v1beta2_query_proto_rawDescGZIP() []byte { return file_warden_warden_v1beta2_query_proto_rawDescData } -var file_warden_warden_v1beta2_query_proto_msgTypes = make([]protoimpl.MessageInfo, 28) +var file_warden_warden_v1beta2_query_proto_msgTypes = make([]protoimpl.MessageInfo, 30) var file_warden_warden_v1beta2_query_proto_goTypes = []interface{}{ (*QueryParamsRequest)(nil), // 0: warden.warden.v1beta2.QueryParamsRequest (*QueryParamsResponse)(nil), // 1: warden.warden.v1beta2.QueryParamsResponse @@ -15222,99 +16604,108 @@ var file_warden_warden_v1beta2_query_proto_goTypes = []interface{}{ (*QueryKeyRequestsResponse)(nil), // 12: warden.warden.v1beta2.QueryKeyRequestsResponse (*QueryKeyRequestByIdRequest)(nil), // 13: warden.warden.v1beta2.QueryKeyRequestByIdRequest (*QueryKeyRequestByIdResponse)(nil), // 14: warden.warden.v1beta2.QueryKeyRequestByIdResponse - (*QueryKeysRequest)(nil), // 15: warden.warden.v1beta2.QueryKeysRequest + (*QueryAllKeysRequest)(nil), // 15: warden.warden.v1beta2.QueryAllKeysRequest (*QueryKeysResponse)(nil), // 16: warden.warden.v1beta2.QueryKeysResponse - (*KeyResponse)(nil), // 17: warden.warden.v1beta2.KeyResponse - (*WalletKeyResponse)(nil), // 18: warden.warden.v1beta2.WalletKeyResponse - (*QuerySignatureRequestsRequest)(nil), // 19: warden.warden.v1beta2.QuerySignatureRequestsRequest - (*QuerySignatureRequestsResponse)(nil), // 20: warden.warden.v1beta2.QuerySignatureRequestsResponse - (*QuerySignatureRequestByIdRequest)(nil), // 21: warden.warden.v1beta2.QuerySignatureRequestByIdRequest - (*QuerySignatureRequestByIdResponse)(nil), // 22: warden.warden.v1beta2.QuerySignatureRequestByIdResponse - (*QuerySignTransactionRequestsRequest)(nil), // 23: warden.warden.v1beta2.QuerySignTransactionRequestsRequest - (*SignTransactionRequestResponse)(nil), // 24: warden.warden.v1beta2.SignTransactionRequestResponse - (*QuerySignTransactionRequestsResponse)(nil), // 25: warden.warden.v1beta2.QuerySignTransactionRequestsResponse - (*QuerySignTransactionRequestByIdRequest)(nil), // 26: warden.warden.v1beta2.QuerySignTransactionRequestByIdRequest - (*QuerySignTransactionRequestByIdResponse)(nil), // 27: warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse - (*Params)(nil), // 28: warden.warden.v1beta2.Params - (*v1beta1.PageRequest)(nil), // 29: cosmos.base.query.v1beta1.PageRequest - (*v1beta1.PageResponse)(nil), // 30: cosmos.base.query.v1beta1.PageResponse - (*Space)(nil), // 31: warden.warden.v1beta2.Space - (*Keychain)(nil), // 32: warden.warden.v1beta2.Keychain - (KeyRequestStatus)(0), // 33: warden.warden.v1beta2.KeyRequestStatus - (*KeyRequest)(nil), // 34: warden.warden.v1beta2.KeyRequest - (WalletType)(0), // 35: warden.warden.v1beta2.WalletType - (*Key)(nil), // 36: warden.warden.v1beta2.Key - (SignRequestStatus)(0), // 37: warden.warden.v1beta2.SignRequestStatus - (*SignRequest)(nil), // 38: warden.warden.v1beta2.SignRequest - (*SignTransactionRequest)(nil), // 39: warden.warden.v1beta2.SignTransactionRequest + (*QueryKeysBySpaceIdRequest)(nil), // 17: warden.warden.v1beta2.QueryKeysBySpaceIdRequest + (*QueryKeyByIdRequest)(nil), // 18: warden.warden.v1beta2.QueryKeyByIdRequest + (*QueryKeyResponse)(nil), // 19: warden.warden.v1beta2.QueryKeyResponse + (*WalletKeyResponse)(nil), // 20: warden.warden.v1beta2.WalletKeyResponse + (*QuerySignatureRequestsRequest)(nil), // 21: warden.warden.v1beta2.QuerySignatureRequestsRequest + (*QuerySignatureRequestsResponse)(nil), // 22: warden.warden.v1beta2.QuerySignatureRequestsResponse + (*QuerySignatureRequestByIdRequest)(nil), // 23: warden.warden.v1beta2.QuerySignatureRequestByIdRequest + (*QuerySignatureRequestByIdResponse)(nil), // 24: warden.warden.v1beta2.QuerySignatureRequestByIdResponse + (*QuerySignTransactionRequestsRequest)(nil), // 25: warden.warden.v1beta2.QuerySignTransactionRequestsRequest + (*SignTransactionRequestResponse)(nil), // 26: warden.warden.v1beta2.SignTransactionRequestResponse + (*QuerySignTransactionRequestsResponse)(nil), // 27: warden.warden.v1beta2.QuerySignTransactionRequestsResponse + (*QuerySignTransactionRequestByIdRequest)(nil), // 28: warden.warden.v1beta2.QuerySignTransactionRequestByIdRequest + (*QuerySignTransactionRequestByIdResponse)(nil), // 29: warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse + (*Params)(nil), // 30: warden.warden.v1beta2.Params + (*v1beta1.PageRequest)(nil), // 31: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 32: cosmos.base.query.v1beta1.PageResponse + (*Space)(nil), // 33: warden.warden.v1beta2.Space + (*Keychain)(nil), // 34: warden.warden.v1beta2.Keychain + (KeyRequestStatus)(0), // 35: warden.warden.v1beta2.KeyRequestStatus + (*KeyRequest)(nil), // 36: warden.warden.v1beta2.KeyRequest + (WalletType)(0), // 37: warden.warden.v1beta2.WalletType + (*Key)(nil), // 38: warden.warden.v1beta2.Key + (SignRequestStatus)(0), // 39: warden.warden.v1beta2.SignRequestStatus + (*SignRequest)(nil), // 40: warden.warden.v1beta2.SignRequest + (*SignTransactionRequest)(nil), // 41: warden.warden.v1beta2.SignTransactionRequest } var file_warden_warden_v1beta2_query_proto_depIdxs = []int32{ - 28, // 0: warden.warden.v1beta2.QueryParamsResponse.params:type_name -> warden.warden.v1beta2.Params - 29, // 1: warden.warden.v1beta2.QuerySpacesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 30, // 2: warden.warden.v1beta2.QuerySpacesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 31, // 3: warden.warden.v1beta2.QuerySpacesResponse.spaces:type_name -> warden.warden.v1beta2.Space - 29, // 4: warden.warden.v1beta2.QuerySpacesByOwnerRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 29, // 5: warden.warden.v1beta2.QueryKeychainsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 30, // 6: warden.warden.v1beta2.QueryKeychainsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 32, // 7: warden.warden.v1beta2.QueryKeychainsResponse.keychains:type_name -> warden.warden.v1beta2.Keychain - 31, // 8: warden.warden.v1beta2.QuerySpaceByIdResponse.space:type_name -> warden.warden.v1beta2.Space - 32, // 9: warden.warden.v1beta2.QueryKeychainByIdResponse.keychain:type_name -> warden.warden.v1beta2.Keychain - 29, // 10: warden.warden.v1beta2.QueryKeyRequestsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 33, // 11: warden.warden.v1beta2.QueryKeyRequestsRequest.status:type_name -> warden.warden.v1beta2.KeyRequestStatus - 30, // 12: warden.warden.v1beta2.QueryKeyRequestsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 34, // 13: warden.warden.v1beta2.QueryKeyRequestsResponse.key_requests:type_name -> warden.warden.v1beta2.KeyRequest - 34, // 14: warden.warden.v1beta2.QueryKeyRequestByIdResponse.key_request:type_name -> warden.warden.v1beta2.KeyRequest - 29, // 15: warden.warden.v1beta2.QueryKeysRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 35, // 16: warden.warden.v1beta2.QueryKeysRequest.type:type_name -> warden.warden.v1beta2.WalletType - 30, // 17: warden.warden.v1beta2.QueryKeysResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 17, // 18: warden.warden.v1beta2.QueryKeysResponse.keys:type_name -> warden.warden.v1beta2.KeyResponse - 36, // 19: warden.warden.v1beta2.KeyResponse.key:type_name -> warden.warden.v1beta2.Key - 18, // 20: warden.warden.v1beta2.KeyResponse.wallets:type_name -> warden.warden.v1beta2.WalletKeyResponse - 35, // 21: warden.warden.v1beta2.WalletKeyResponse.type:type_name -> warden.warden.v1beta2.WalletType - 29, // 22: warden.warden.v1beta2.QuerySignatureRequestsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 37, // 23: warden.warden.v1beta2.QuerySignatureRequestsRequest.status:type_name -> warden.warden.v1beta2.SignRequestStatus - 30, // 24: warden.warden.v1beta2.QuerySignatureRequestsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 38, // 25: warden.warden.v1beta2.QuerySignatureRequestsResponse.sign_requests:type_name -> warden.warden.v1beta2.SignRequest - 38, // 26: warden.warden.v1beta2.QuerySignatureRequestByIdResponse.sign_request:type_name -> warden.warden.v1beta2.SignRequest - 29, // 27: warden.warden.v1beta2.QuerySignTransactionRequestsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 35, // 28: warden.warden.v1beta2.QuerySignTransactionRequestsRequest.wallet_type:type_name -> warden.warden.v1beta2.WalletType - 37, // 29: warden.warden.v1beta2.QuerySignTransactionRequestsRequest.status:type_name -> warden.warden.v1beta2.SignRequestStatus - 39, // 30: warden.warden.v1beta2.SignTransactionRequestResponse.sign_transaction_request:type_name -> warden.warden.v1beta2.SignTransactionRequest - 38, // 31: warden.warden.v1beta2.SignTransactionRequestResponse.sign_request:type_name -> warden.warden.v1beta2.SignRequest - 30, // 32: warden.warden.v1beta2.QuerySignTransactionRequestsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 24, // 33: warden.warden.v1beta2.QuerySignTransactionRequestsResponse.sign_transaction_requests:type_name -> warden.warden.v1beta2.SignTransactionRequestResponse - 39, // 34: warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse.sign_transaction_request:type_name -> warden.warden.v1beta2.SignTransactionRequest - 0, // 35: warden.warden.v1beta2.Query.Params:input_type -> warden.warden.v1beta2.QueryParamsRequest - 2, // 36: warden.warden.v1beta2.Query.Spaces:input_type -> warden.warden.v1beta2.QuerySpacesRequest - 4, // 37: warden.warden.v1beta2.Query.SpacesByOwner:input_type -> warden.warden.v1beta2.QuerySpacesByOwnerRequest - 5, // 38: warden.warden.v1beta2.Query.Keychains:input_type -> warden.warden.v1beta2.QueryKeychainsRequest - 7, // 39: warden.warden.v1beta2.Query.SpaceById:input_type -> warden.warden.v1beta2.QuerySpaceByIdRequest - 9, // 40: warden.warden.v1beta2.Query.KeychainById:input_type -> warden.warden.v1beta2.QueryKeychainByIdRequest - 11, // 41: warden.warden.v1beta2.Query.KeyRequests:input_type -> warden.warden.v1beta2.QueryKeyRequestsRequest - 13, // 42: warden.warden.v1beta2.Query.KeyRequestById:input_type -> warden.warden.v1beta2.QueryKeyRequestByIdRequest - 15, // 43: warden.warden.v1beta2.Query.Keys:input_type -> warden.warden.v1beta2.QueryKeysRequest - 19, // 44: warden.warden.v1beta2.Query.SignatureRequests:input_type -> warden.warden.v1beta2.QuerySignatureRequestsRequest - 21, // 45: warden.warden.v1beta2.Query.SignatureRequestById:input_type -> warden.warden.v1beta2.QuerySignatureRequestByIdRequest - 23, // 46: warden.warden.v1beta2.Query.SignTransactionRequests:input_type -> warden.warden.v1beta2.QuerySignTransactionRequestsRequest - 26, // 47: warden.warden.v1beta2.Query.SignTransactionRequestById:input_type -> warden.warden.v1beta2.QuerySignTransactionRequestByIdRequest - 1, // 48: warden.warden.v1beta2.Query.Params:output_type -> warden.warden.v1beta2.QueryParamsResponse - 3, // 49: warden.warden.v1beta2.Query.Spaces:output_type -> warden.warden.v1beta2.QuerySpacesResponse - 3, // 50: warden.warden.v1beta2.Query.SpacesByOwner:output_type -> warden.warden.v1beta2.QuerySpacesResponse - 6, // 51: warden.warden.v1beta2.Query.Keychains:output_type -> warden.warden.v1beta2.QueryKeychainsResponse - 8, // 52: warden.warden.v1beta2.Query.SpaceById:output_type -> warden.warden.v1beta2.QuerySpaceByIdResponse - 10, // 53: warden.warden.v1beta2.Query.KeychainById:output_type -> warden.warden.v1beta2.QueryKeychainByIdResponse - 12, // 54: warden.warden.v1beta2.Query.KeyRequests:output_type -> warden.warden.v1beta2.QueryKeyRequestsResponse - 14, // 55: warden.warden.v1beta2.Query.KeyRequestById:output_type -> warden.warden.v1beta2.QueryKeyRequestByIdResponse - 16, // 56: warden.warden.v1beta2.Query.Keys:output_type -> warden.warden.v1beta2.QueryKeysResponse - 20, // 57: warden.warden.v1beta2.Query.SignatureRequests:output_type -> warden.warden.v1beta2.QuerySignatureRequestsResponse - 22, // 58: warden.warden.v1beta2.Query.SignatureRequestById:output_type -> warden.warden.v1beta2.QuerySignatureRequestByIdResponse - 25, // 59: warden.warden.v1beta2.Query.SignTransactionRequests:output_type -> warden.warden.v1beta2.QuerySignTransactionRequestsResponse - 27, // 60: warden.warden.v1beta2.Query.SignTransactionRequestById:output_type -> warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse - 48, // [48:61] is the sub-list for method output_type - 35, // [35:48] is the sub-list for method input_type - 35, // [35:35] is the sub-list for extension type_name - 35, // [35:35] is the sub-list for extension extendee - 0, // [0:35] is the sub-list for field type_name + 30, // 0: warden.warden.v1beta2.QueryParamsResponse.params:type_name -> warden.warden.v1beta2.Params + 31, // 1: warden.warden.v1beta2.QuerySpacesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 32, // 2: warden.warden.v1beta2.QuerySpacesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 33, // 3: warden.warden.v1beta2.QuerySpacesResponse.spaces:type_name -> warden.warden.v1beta2.Space + 31, // 4: warden.warden.v1beta2.QuerySpacesByOwnerRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 31, // 5: warden.warden.v1beta2.QueryKeychainsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 32, // 6: warden.warden.v1beta2.QueryKeychainsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 34, // 7: warden.warden.v1beta2.QueryKeychainsResponse.keychains:type_name -> warden.warden.v1beta2.Keychain + 33, // 8: warden.warden.v1beta2.QuerySpaceByIdResponse.space:type_name -> warden.warden.v1beta2.Space + 34, // 9: warden.warden.v1beta2.QueryKeychainByIdResponse.keychain:type_name -> warden.warden.v1beta2.Keychain + 31, // 10: warden.warden.v1beta2.QueryKeyRequestsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 35, // 11: warden.warden.v1beta2.QueryKeyRequestsRequest.status:type_name -> warden.warden.v1beta2.KeyRequestStatus + 32, // 12: warden.warden.v1beta2.QueryKeyRequestsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 36, // 13: warden.warden.v1beta2.QueryKeyRequestsResponse.key_requests:type_name -> warden.warden.v1beta2.KeyRequest + 36, // 14: warden.warden.v1beta2.QueryKeyRequestByIdResponse.key_request:type_name -> warden.warden.v1beta2.KeyRequest + 31, // 15: warden.warden.v1beta2.QueryAllKeysRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 37, // 16: warden.warden.v1beta2.QueryAllKeysRequest.derive_wallets:type_name -> warden.warden.v1beta2.WalletType + 32, // 17: warden.warden.v1beta2.QueryKeysResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 19, // 18: warden.warden.v1beta2.QueryKeysResponse.keys:type_name -> warden.warden.v1beta2.QueryKeyResponse + 31, // 19: warden.warden.v1beta2.QueryKeysBySpaceIdRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 37, // 20: warden.warden.v1beta2.QueryKeysBySpaceIdRequest.derive_wallets:type_name -> warden.warden.v1beta2.WalletType + 37, // 21: warden.warden.v1beta2.QueryKeyByIdRequest.derive_wallets:type_name -> warden.warden.v1beta2.WalletType + 38, // 22: warden.warden.v1beta2.QueryKeyResponse.key:type_name -> warden.warden.v1beta2.Key + 20, // 23: warden.warden.v1beta2.QueryKeyResponse.wallets:type_name -> warden.warden.v1beta2.WalletKeyResponse + 37, // 24: warden.warden.v1beta2.WalletKeyResponse.type:type_name -> warden.warden.v1beta2.WalletType + 31, // 25: warden.warden.v1beta2.QuerySignatureRequestsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 39, // 26: warden.warden.v1beta2.QuerySignatureRequestsRequest.status:type_name -> warden.warden.v1beta2.SignRequestStatus + 32, // 27: warden.warden.v1beta2.QuerySignatureRequestsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 40, // 28: warden.warden.v1beta2.QuerySignatureRequestsResponse.sign_requests:type_name -> warden.warden.v1beta2.SignRequest + 40, // 29: warden.warden.v1beta2.QuerySignatureRequestByIdResponse.sign_request:type_name -> warden.warden.v1beta2.SignRequest + 31, // 30: warden.warden.v1beta2.QuerySignTransactionRequestsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 37, // 31: warden.warden.v1beta2.QuerySignTransactionRequestsRequest.wallet_type:type_name -> warden.warden.v1beta2.WalletType + 39, // 32: warden.warden.v1beta2.QuerySignTransactionRequestsRequest.status:type_name -> warden.warden.v1beta2.SignRequestStatus + 41, // 33: warden.warden.v1beta2.SignTransactionRequestResponse.sign_transaction_request:type_name -> warden.warden.v1beta2.SignTransactionRequest + 40, // 34: warden.warden.v1beta2.SignTransactionRequestResponse.sign_request:type_name -> warden.warden.v1beta2.SignRequest + 32, // 35: warden.warden.v1beta2.QuerySignTransactionRequestsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 26, // 36: warden.warden.v1beta2.QuerySignTransactionRequestsResponse.sign_transaction_requests:type_name -> warden.warden.v1beta2.SignTransactionRequestResponse + 41, // 37: warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse.sign_transaction_request:type_name -> warden.warden.v1beta2.SignTransactionRequest + 0, // 38: warden.warden.v1beta2.Query.Params:input_type -> warden.warden.v1beta2.QueryParamsRequest + 2, // 39: warden.warden.v1beta2.Query.Spaces:input_type -> warden.warden.v1beta2.QuerySpacesRequest + 4, // 40: warden.warden.v1beta2.Query.SpacesByOwner:input_type -> warden.warden.v1beta2.QuerySpacesByOwnerRequest + 5, // 41: warden.warden.v1beta2.Query.Keychains:input_type -> warden.warden.v1beta2.QueryKeychainsRequest + 7, // 42: warden.warden.v1beta2.Query.SpaceById:input_type -> warden.warden.v1beta2.QuerySpaceByIdRequest + 9, // 43: warden.warden.v1beta2.Query.KeychainById:input_type -> warden.warden.v1beta2.QueryKeychainByIdRequest + 11, // 44: warden.warden.v1beta2.Query.KeyRequests:input_type -> warden.warden.v1beta2.QueryKeyRequestsRequest + 13, // 45: warden.warden.v1beta2.Query.KeyRequestById:input_type -> warden.warden.v1beta2.QueryKeyRequestByIdRequest + 15, // 46: warden.warden.v1beta2.Query.AllKeys:input_type -> warden.warden.v1beta2.QueryAllKeysRequest + 17, // 47: warden.warden.v1beta2.Query.KeysBySpaceId:input_type -> warden.warden.v1beta2.QueryKeysBySpaceIdRequest + 18, // 48: warden.warden.v1beta2.Query.KeyById:input_type -> warden.warden.v1beta2.QueryKeyByIdRequest + 21, // 49: warden.warden.v1beta2.Query.SignatureRequests:input_type -> warden.warden.v1beta2.QuerySignatureRequestsRequest + 23, // 50: warden.warden.v1beta2.Query.SignatureRequestById:input_type -> warden.warden.v1beta2.QuerySignatureRequestByIdRequest + 25, // 51: warden.warden.v1beta2.Query.SignTransactionRequests:input_type -> warden.warden.v1beta2.QuerySignTransactionRequestsRequest + 28, // 52: warden.warden.v1beta2.Query.SignTransactionRequestById:input_type -> warden.warden.v1beta2.QuerySignTransactionRequestByIdRequest + 1, // 53: warden.warden.v1beta2.Query.Params:output_type -> warden.warden.v1beta2.QueryParamsResponse + 3, // 54: warden.warden.v1beta2.Query.Spaces:output_type -> warden.warden.v1beta2.QuerySpacesResponse + 3, // 55: warden.warden.v1beta2.Query.SpacesByOwner:output_type -> warden.warden.v1beta2.QuerySpacesResponse + 6, // 56: warden.warden.v1beta2.Query.Keychains:output_type -> warden.warden.v1beta2.QueryKeychainsResponse + 8, // 57: warden.warden.v1beta2.Query.SpaceById:output_type -> warden.warden.v1beta2.QuerySpaceByIdResponse + 10, // 58: warden.warden.v1beta2.Query.KeychainById:output_type -> warden.warden.v1beta2.QueryKeychainByIdResponse + 12, // 59: warden.warden.v1beta2.Query.KeyRequests:output_type -> warden.warden.v1beta2.QueryKeyRequestsResponse + 14, // 60: warden.warden.v1beta2.Query.KeyRequestById:output_type -> warden.warden.v1beta2.QueryKeyRequestByIdResponse + 16, // 61: warden.warden.v1beta2.Query.AllKeys:output_type -> warden.warden.v1beta2.QueryKeysResponse + 16, // 62: warden.warden.v1beta2.Query.KeysBySpaceId:output_type -> warden.warden.v1beta2.QueryKeysResponse + 19, // 63: warden.warden.v1beta2.Query.KeyById:output_type -> warden.warden.v1beta2.QueryKeyResponse + 22, // 64: warden.warden.v1beta2.Query.SignatureRequests:output_type -> warden.warden.v1beta2.QuerySignatureRequestsResponse + 24, // 65: warden.warden.v1beta2.Query.SignatureRequestById:output_type -> warden.warden.v1beta2.QuerySignatureRequestByIdResponse + 27, // 66: warden.warden.v1beta2.Query.SignTransactionRequests:output_type -> warden.warden.v1beta2.QuerySignTransactionRequestsResponse + 29, // 67: warden.warden.v1beta2.Query.SignTransactionRequestById:output_type -> warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse + 53, // [53:68] is the sub-list for method output_type + 38, // [38:53] is the sub-list for method input_type + 38, // [38:38] is the sub-list for extension type_name + 38, // [38:38] is the sub-list for extension extendee + 0, // [0:38] is the sub-list for field type_name } func init() { file_warden_warden_v1beta2_query_proto_init() } @@ -15510,7 +16901,7 @@ func file_warden_warden_v1beta2_query_proto_init() { } } file_warden_warden_v1beta2_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeysRequest); i { + switch v := v.(*QueryAllKeysRequest); i { case 0: return &v.state case 1: @@ -15534,7 +16925,7 @@ func file_warden_warden_v1beta2_query_proto_init() { } } file_warden_warden_v1beta2_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyResponse); i { + switch v := v.(*QueryKeysBySpaceIdRequest); i { case 0: return &v.state case 1: @@ -15546,7 +16937,7 @@ func file_warden_warden_v1beta2_query_proto_init() { } } file_warden_warden_v1beta2_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WalletKeyResponse); i { + switch v := v.(*QueryKeyByIdRequest); i { case 0: return &v.state case 1: @@ -15558,7 +16949,7 @@ func file_warden_warden_v1beta2_query_proto_init() { } } file_warden_warden_v1beta2_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySignatureRequestsRequest); i { + switch v := v.(*QueryKeyResponse); i { case 0: return &v.state case 1: @@ -15570,7 +16961,7 @@ func file_warden_warden_v1beta2_query_proto_init() { } } file_warden_warden_v1beta2_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySignatureRequestsResponse); i { + switch v := v.(*WalletKeyResponse); i { case 0: return &v.state case 1: @@ -15582,7 +16973,7 @@ func file_warden_warden_v1beta2_query_proto_init() { } } file_warden_warden_v1beta2_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySignatureRequestByIdRequest); i { + switch v := v.(*QuerySignatureRequestsRequest); i { case 0: return &v.state case 1: @@ -15594,7 +16985,7 @@ func file_warden_warden_v1beta2_query_proto_init() { } } file_warden_warden_v1beta2_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySignatureRequestByIdResponse); i { + switch v := v.(*QuerySignatureRequestsResponse); i { case 0: return &v.state case 1: @@ -15606,7 +16997,7 @@ func file_warden_warden_v1beta2_query_proto_init() { } } file_warden_warden_v1beta2_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySignTransactionRequestsRequest); i { + switch v := v.(*QuerySignatureRequestByIdRequest); i { case 0: return &v.state case 1: @@ -15618,7 +17009,7 @@ func file_warden_warden_v1beta2_query_proto_init() { } } file_warden_warden_v1beta2_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignTransactionRequestResponse); i { + switch v := v.(*QuerySignatureRequestByIdResponse); i { case 0: return &v.state case 1: @@ -15630,7 +17021,7 @@ func file_warden_warden_v1beta2_query_proto_init() { } } file_warden_warden_v1beta2_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySignTransactionRequestsResponse); i { + switch v := v.(*QuerySignTransactionRequestsRequest); i { case 0: return &v.state case 1: @@ -15642,7 +17033,7 @@ func file_warden_warden_v1beta2_query_proto_init() { } } file_warden_warden_v1beta2_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuerySignTransactionRequestByIdRequest); i { + switch v := v.(*SignTransactionRequestResponse); i { case 0: return &v.state case 1: @@ -15654,6 +17045,30 @@ func file_warden_warden_v1beta2_query_proto_init() { } } file_warden_warden_v1beta2_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QuerySignTransactionRequestsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_warden_warden_v1beta2_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QuerySignTransactionRequestByIdRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_warden_warden_v1beta2_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QuerySignTransactionRequestByIdResponse); i { case 0: return &v.state @@ -15672,7 +17087,7 @@ func file_warden_warden_v1beta2_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_warden_warden_v1beta2_query_proto_rawDesc, NumEnums: 0, - NumMessages: 28, + NumMessages: 30, NumExtensions: 0, NumServices: 1, }, diff --git a/api/warden/warden/v1beta2/query_grpc.pb.go b/api/warden/warden/v1beta2/query_grpc.pb.go index edd1cd879..f87f9688f 100644 --- a/api/warden/warden/v1beta2/query_grpc.pb.go +++ b/api/warden/warden/v1beta2/query_grpc.pb.go @@ -27,7 +27,9 @@ const ( Query_KeychainById_FullMethodName = "/warden.warden.v1beta2.Query/KeychainById" Query_KeyRequests_FullMethodName = "/warden.warden.v1beta2.Query/KeyRequests" Query_KeyRequestById_FullMethodName = "/warden.warden.v1beta2.Query/KeyRequestById" - Query_Keys_FullMethodName = "/warden.warden.v1beta2.Query/Keys" + Query_AllKeys_FullMethodName = "/warden.warden.v1beta2.Query/AllKeys" + Query_KeysBySpaceId_FullMethodName = "/warden.warden.v1beta2.Query/KeysBySpaceId" + Query_KeyById_FullMethodName = "/warden.warden.v1beta2.Query/KeyById" Query_SignatureRequests_FullMethodName = "/warden.warden.v1beta2.Query/SignatureRequests" Query_SignatureRequestById_FullMethodName = "/warden.warden.v1beta2.Query/SignatureRequestById" Query_SignTransactionRequests_FullMethodName = "/warden.warden.v1beta2.Query/SignTransactionRequests" @@ -55,7 +57,11 @@ type QueryClient interface { // Queries a single KeyRequest by its id. KeyRequestById(ctx context.Context, in *QueryKeyRequestByIdRequest, opts ...grpc.CallOption) (*QueryKeyRequestByIdResponse, error) // Queries a list of Keys items. - Keys(ctx context.Context, in *QueryKeysRequest, opts ...grpc.CallOption) (*QueryKeysResponse, error) + AllKeys(ctx context.Context, in *QueryAllKeysRequest, opts ...grpc.CallOption) (*QueryKeysResponse, error) + // Queries a list of Keys items by their Space ID. + KeysBySpaceId(ctx context.Context, in *QueryKeysBySpaceIdRequest, opts ...grpc.CallOption) (*QueryKeysResponse, error) + // Queries a Key by its ID. + KeyById(ctx context.Context, in *QueryKeyByIdRequest, opts ...grpc.CallOption) (*QueryKeyResponse, error) // Queries a list of SignatureRequests items. SignatureRequests(ctx context.Context, in *QuerySignatureRequestsRequest, opts ...grpc.CallOption) (*QuerySignatureRequestsResponse, error) // Queries a single SignatureRequest by its id. @@ -146,9 +152,27 @@ func (c *queryClient) KeyRequestById(ctx context.Context, in *QueryKeyRequestByI return out, nil } -func (c *queryClient) Keys(ctx context.Context, in *QueryKeysRequest, opts ...grpc.CallOption) (*QueryKeysResponse, error) { +func (c *queryClient) AllKeys(ctx context.Context, in *QueryAllKeysRequest, opts ...grpc.CallOption) (*QueryKeysResponse, error) { out := new(QueryKeysResponse) - err := c.cc.Invoke(ctx, Query_Keys_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Query_AllKeys_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) KeysBySpaceId(ctx context.Context, in *QueryKeysBySpaceIdRequest, opts ...grpc.CallOption) (*QueryKeysResponse, error) { + out := new(QueryKeysResponse) + err := c.cc.Invoke(ctx, Query_KeysBySpaceId_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) KeyById(ctx context.Context, in *QueryKeyByIdRequest, opts ...grpc.CallOption) (*QueryKeyResponse, error) { + out := new(QueryKeyResponse) + err := c.cc.Invoke(ctx, Query_KeyById_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -212,7 +236,11 @@ type QueryServer interface { // Queries a single KeyRequest by its id. KeyRequestById(context.Context, *QueryKeyRequestByIdRequest) (*QueryKeyRequestByIdResponse, error) // Queries a list of Keys items. - Keys(context.Context, *QueryKeysRequest) (*QueryKeysResponse, error) + AllKeys(context.Context, *QueryAllKeysRequest) (*QueryKeysResponse, error) + // Queries a list of Keys items by their Space ID. + KeysBySpaceId(context.Context, *QueryKeysBySpaceIdRequest) (*QueryKeysResponse, error) + // Queries a Key by its ID. + KeyById(context.Context, *QueryKeyByIdRequest) (*QueryKeyResponse, error) // Queries a list of SignatureRequests items. SignatureRequests(context.Context, *QuerySignatureRequestsRequest) (*QuerySignatureRequestsResponse, error) // Queries a single SignatureRequest by its id. @@ -252,8 +280,14 @@ func (UnimplementedQueryServer) KeyRequests(context.Context, *QueryKeyRequestsRe func (UnimplementedQueryServer) KeyRequestById(context.Context, *QueryKeyRequestByIdRequest) (*QueryKeyRequestByIdResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KeyRequestById not implemented") } -func (UnimplementedQueryServer) Keys(context.Context, *QueryKeysRequest) (*QueryKeysResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Keys not implemented") +func (UnimplementedQueryServer) AllKeys(context.Context, *QueryAllKeysRequest) (*QueryKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AllKeys not implemented") +} +func (UnimplementedQueryServer) KeysBySpaceId(context.Context, *QueryKeysBySpaceIdRequest) (*QueryKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KeysBySpaceId not implemented") +} +func (UnimplementedQueryServer) KeyById(context.Context, *QueryKeyByIdRequest) (*QueryKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KeyById not implemented") } func (UnimplementedQueryServer) SignatureRequests(context.Context, *QuerySignatureRequestsRequest) (*QuerySignatureRequestsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SignatureRequests not implemented") @@ -424,20 +458,56 @@ func _Query_KeyRequestById_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } -func _Query_Keys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryKeysRequest) +func _Query_AllKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllKeysRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).Keys(ctx, in) + return srv.(QueryServer).AllKeys(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_Keys_FullMethodName, + FullMethod: Query_AllKeys_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Keys(ctx, req.(*QueryKeysRequest)) + return srv.(QueryServer).AllKeys(ctx, req.(*QueryAllKeysRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_KeysBySpaceId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryKeysBySpaceIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).KeysBySpaceId(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_KeysBySpaceId_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).KeysBySpaceId(ctx, req.(*QueryKeysBySpaceIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_KeyById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryKeyByIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).KeyById(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_KeyById_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).KeyById(ctx, req.(*QueryKeyByIdRequest)) } return interceptor(ctx, in, info, handler) } @@ -554,8 +624,16 @@ var Query_ServiceDesc = grpc.ServiceDesc{ Handler: _Query_KeyRequestById_Handler, }, { - MethodName: "Keys", - Handler: _Query_Keys_Handler, + MethodName: "AllKeys", + Handler: _Query_AllKeys_Handler, + }, + { + MethodName: "KeysBySpaceId", + Handler: _Query_KeysBySpaceId_Handler, + }, + { + MethodName: "KeyById", + Handler: _Query_KeyById_Handler, }, { MethodName: "SignatureRequests", diff --git a/proto/warden/warden/v1beta2/query.proto b/proto/warden/warden/v1beta2/query.proto index 9f47501f1..a85a5eab4 100644 --- a/proto/warden/warden/v1beta2/query.proto +++ b/proto/warden/warden/v1beta2/query.proto @@ -60,10 +60,20 @@ service Query { } // Queries a list of Keys items. - rpc Keys(QueryKeysRequest) returns (QueryKeysResponse) { + rpc AllKeys(QueryAllKeysRequest) returns (QueryKeysResponse) { option (google.api.http).get = "/warden/warden/v1beta2/keys"; } + // Queries a list of Keys items by their Space ID. + rpc KeysBySpaceId(QueryKeysBySpaceIdRequest) returns (QueryKeysResponse) { + option (google.api.http).get = "/warden/warden/v1beta2/keys_by_space_id"; + } + + // Queries a Key by its ID. + rpc KeyById(QueryKeyByIdRequest) returns (QueryKeyResponse) { + option (google.api.http).get = "/warden/warden/v1beta2/key_by_id"; + } + // Queries a list of SignatureRequests items. rpc SignatureRequests(QuerySignatureRequestsRequest) returns (QuerySignatureRequestsResponse) { @@ -153,21 +163,30 @@ message QueryKeyRequestByIdRequest { uint64 id = 1; } message QueryKeyRequestByIdResponse { KeyRequest key_request = 1; } -message QueryKeysRequest { +message QueryAllKeysRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; - uint64 space_id = 2; // Optional - WalletType type = 3; // Optional - uint64 key_id = 4; // Optional + repeated WalletType derive_wallets = 2; // Optional } message QueryKeysResponse { cosmos.base.query.v1beta1.PageResponse pagination = 1; - repeated KeyResponse keys = 2; + repeated QueryKeyResponse keys = 2 [ (gogoproto.nullable) = false ]; +} + +message QueryKeysBySpaceIdRequest { + cosmos.base.query.v1beta1.PageRequest pagination = 1; + uint64 space_id = 2; + repeated WalletType derive_wallets = 3; // Optional +} + +message QueryKeyByIdRequest { + uint64 id = 1; + repeated WalletType derive_wallets = 2; // Optional } -message KeyResponse { - Key key = 1; - repeated WalletKeyResponse wallets = 2; +message QueryKeyResponse { + Key key = 1 [ (gogoproto.nullable) = false ]; + repeated WalletKeyResponse wallets = 2 [ (gogoproto.nullable) = false ]; } message WalletKeyResponse { diff --git a/warden/x/warden/keeper/genesis.go b/warden/x/warden/keeper/genesis.go index 838926b50..7ad0b5e49 100644 --- a/warden/x/warden/keeper/genesis.go +++ b/warden/x/warden/keeper/genesis.go @@ -30,7 +30,7 @@ func (k *Keeper) ImportState(ctx sdk.Context, genState types.GenesisState) error } for _, key := range genState.Keys { - err := k.keys.Set(ctx, key.Id, key) + err := k.KeysKeeper.Set(ctx, key) if err != nil { return fmt.Errorf("failed to import keys: %w", err) } @@ -72,7 +72,7 @@ func (k *Keeper) ExportState(ctx sdk.Context, genState *types.GenesisState) erro } genState.KeyRequests = keyRequests - keysIter, err := k.keys.Iterate(ctx, nil) + keysIter, err := k.KeysKeeper.Coll().Iterate(ctx, nil) if err != nil { return fmt.Errorf("failed to iterate keys: %w", err) } diff --git a/warden/x/warden/keeper/keeper.go b/warden/x/warden/keeper/keeper.go index cfb30adb0..0f6498cd5 100644 --- a/warden/x/warden/keeper/keeper.go +++ b/warden/x/warden/keeper/keeper.go @@ -27,11 +27,12 @@ type ( spaces repo.SeqCollection[v1beta2.Space] keychains repo.SeqCollection[v1beta2.Keychain] - keys collections.Map[uint64, v1beta2.Key] keyRequests repo.SeqCollection[v1beta2.KeyRequest] signatureRequests repo.SeqCollection[v1beta2.SignRequest] signTransactionRequests repo.SeqCollection[v1beta2.SignTransactionRequest] + KeysKeeper KeysKeeper + bankKeeper types.BankKeeper intentKeeper types.IntentKeeper } @@ -50,6 +51,7 @@ var ( SignRequestsPrefix = collections.NewPrefix(9) SignTransactionRequestSeqPrefix = collections.NewPrefix(10) SignTransactionRequestsPrefix = collections.NewPrefix(11) + KeysSpaceIndexPrefix = collections.NewPrefix(12) ) func NewKeeper( @@ -74,7 +76,7 @@ func NewKeeper( keychainColl := collections.NewMap(sb, KeychainsPrefix, "keychains", collections.Uint64Key, codec.CollValue[v1beta2.Keychain](cdc)) keychains := repo.NewSeqCollection(keychainSeq, keychainColl, func(v *v1beta2.Keychain, u uint64) { v.Id = u }) - keys := collections.NewMap(sb, KeyPrefix, "keys", collections.Uint64Key, codec.CollValue[v1beta2.Key](cdc)) + keysKeeper := NewKeysKeeper(sb, cdc) keyRequestsSeq := collections.NewSequence(sb, KeyRequestSeqPrefix, "key requests sequence") keyRequestsColl := collections.NewMap(sb, KeyRequestsPrefix, "key requests", collections.Uint64Key, codec.CollValue[v1beta2.KeyRequest](cdc)) @@ -97,11 +99,12 @@ func NewKeeper( spaces: spaces, keychains: keychains, - keys: keys, keyRequests: keyRequests, signatureRequests: signatureRequests, signTransactionRequests: signTransactionRequests, + KeysKeeper: keysKeeper, + bankKeeper: bankKeeper, intentKeeper: intentKeeper, } diff --git a/warden/x/warden/keeper/keys.go b/warden/x/warden/keeper/keys.go index 115c77c44..75baf3585 100644 --- a/warden/x/warden/keeper/keys.go +++ b/warden/x/warden/keeper/keys.go @@ -1,12 +1,51 @@ package keeper import ( + "cosmossdk.io/collections" + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" types "github.com/warden-protocol/wardenprotocol/warden/x/warden/types/v1beta2" + v1beta2 "github.com/warden-protocol/wardenprotocol/warden/x/warden/types/v1beta2" ) -func (k Keeper) appendKey(ctx sdk.Context, key types.Key, keyRequest types.KeyRequest) error { +type KeysKeeper struct { + keys collections.Map[uint64, types.Key] + keysBySpace collections.KeySet[collections.Pair[uint64, uint64]] +} + +func NewKeysKeeper(sb *collections.SchemaBuilder, cdc codec.BinaryCodec) KeysKeeper { + keys := collections.NewMap(sb, KeyPrefix, "keys", collections.Uint64Key, codec.CollValue[v1beta2.Key](cdc)) + keysBySpace := collections.NewKeySet( + sb, KeysSpaceIndexPrefix, "keys_by_space", + collections.PairKeyCodec(collections.Uint64Key, collections.Uint64Key), + ) + return KeysKeeper{ + keys: keys, + keysBySpace: keysBySpace, + } +} + +func (k KeysKeeper) New(ctx sdk.Context, key types.Key, keyRequest types.KeyRequest) error { key.Id = keyRequest.Id + return k.Set(ctx, key) +} + +func (k KeysKeeper) Get(ctx sdk.Context, id uint64) (types.Key, error) { + return k.keys.Get(ctx, id) +} + +func (k KeysKeeper) Set(ctx sdk.Context, key types.Key) error { + if err := k.keysBySpace.Set(ctx, collections.Join(key.SpaceId, key.Id)); err != nil { + return err + } return k.keys.Set(ctx, key.Id, key) } + +func (k KeysKeeper) Coll() collections.Map[uint64, v1beta2.Key] { + return k.keys +} + +func (k KeysKeeper) KeysBySpace() collections.KeySet[collections.Pair[uint64, uint64]] { + return k.keysBySpace +} diff --git a/warden/x/warden/keeper/msg_server_new_sign_transaction_request.go b/warden/x/warden/keeper/msg_server_new_sign_transaction_request.go index d7f796361..7fa99f872 100644 --- a/warden/x/warden/keeper/msg_server_new_sign_transaction_request.go +++ b/warden/x/warden/keeper/msg_server_new_sign_transaction_request.go @@ -14,7 +14,7 @@ import ( func (k msgServer) NewSignTransactionRequest(goCtx context.Context, msg *v1beta2.MsgNewSignTransactionRequest) (*intenttypes.MsgActionCreated, error) { ctx := sdk.UnwrapSDKContext(goCtx) - key, err := k.keys.Get(ctx, msg.KeyId) + key, err := k.KeysKeeper.Get(ctx, msg.KeyId) if err != nil { return nil, err } @@ -62,7 +62,7 @@ func (k msgServer) NewSignTransactionRequestActionHandler(ctx sdk.Context, act i return nil, err } - key, err := k.keys.Get(ctx, msg.KeyId) + key, err := k.KeysKeeper.Get(ctx, msg.KeyId) if err != nil { return nil, err } diff --git a/warden/x/warden/keeper/msg_server_new_signature_request.go b/warden/x/warden/keeper/msg_server_new_signature_request.go index 10f32ed2b..ec4b812bd 100644 --- a/warden/x/warden/keeper/msg_server_new_signature_request.go +++ b/warden/x/warden/keeper/msg_server_new_signature_request.go @@ -14,7 +14,7 @@ import ( func (k msgServer) NewSignatureRequest(goCtx context.Context, msg *types.MsgNewSignatureRequest) (*intenttypes.MsgActionCreated, error) { ctx := sdk.UnwrapSDKContext(goCtx) - key, err := k.keys.Get(ctx, msg.KeyId) + key, err := k.KeysKeeper.Get(ctx, msg.KeyId) if err != nil { return nil, err } @@ -66,7 +66,7 @@ func (k msgServer) NewSignatureRequestActionHandler(ctx sdk.Context, act intentt return nil, err } - key, err := k.keys.Get(ctx, msg.KeyId) + key, err := k.KeysKeeper.Get(ctx, msg.KeyId) if err != nil { return nil, err } diff --git a/warden/x/warden/keeper/msg_server_update_key.go b/warden/x/warden/keeper/msg_server_update_key.go index 683dadb82..01e619127 100644 --- a/warden/x/warden/keeper/msg_server_update_key.go +++ b/warden/x/warden/keeper/msg_server_update_key.go @@ -12,7 +12,7 @@ import ( func (k msgServer) UpdateKey(goCtx context.Context, msg *types.MsgUpdateKey) (*intenttypes.MsgActionCreated, error) { ctx := sdk.UnwrapSDKContext(goCtx) - key, err := k.keys.Get(ctx, msg.KeyId) + key, err := k.KeysKeeper.Get(ctx, msg.KeyId) if err != nil { return nil, err } @@ -51,14 +51,14 @@ func (k msgServer) UpdateKeyActionHandler(ctx sdk.Context, act intenttypes.Actio return nil, err } - key, err := k.keys.Get(ctx, msg.KeyId) + key, err := k.KeysKeeper.Get(ctx, msg.KeyId) if err != nil { return nil, err } key.IntentId = msg.IntentId - if err := k.keys.Set(ctx, key.Id, key); err != nil { + if err := k.KeysKeeper.Set(ctx, key); err != nil { return nil, err } diff --git a/warden/x/warden/keeper/msg_server_update_key_request.go b/warden/x/warden/keeper/msg_server_update_key_request.go index 6b8a8b2d1..a38c75f28 100644 --- a/warden/x/warden/keeper/msg_server_update_key_request.go +++ b/warden/x/warden/keeper/msg_server_update_key_request.go @@ -64,7 +64,7 @@ func (k msgServer) UpdateKeyRequest(goCtx context.Context, msg *types.MsgUpdateK IntentId: req.IntentId, } - if err := k.appendKey(ctx, key, req); err != nil { + if err := k.KeysKeeper.New(ctx, key, req); err != nil { return nil, err } diff --git a/warden/x/warden/keeper/query_all_keys.go b/warden/x/warden/keeper/query_all_keys.go new file mode 100644 index 000000000..a2d552ee5 --- /dev/null +++ b/warden/x/warden/keeper/query_all_keys.go @@ -0,0 +1,37 @@ +package keeper + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + types "github.com/warden-protocol/wardenprotocol/warden/x/warden/types/v1beta2" +) + +func (k Keeper) AllKeys(goCtx context.Context, req *types.QueryAllKeysRequest) (*types.QueryKeysResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + keys, page, err := query.CollectionPaginate(ctx, k.KeysKeeper.Coll(), req.Pagination, func(key uint64, value types.Key) (types.QueryKeyResponse, error) { + response := types.QueryKeyResponse{ + Key: value, + Wallets: value.DeriveAddresses(ctx, req.DeriveWallets), + } + return response, nil + }) + + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + + return &types.QueryKeysResponse{ + Keys: keys, + Pagination: page, + }, nil +} diff --git a/warden/x/warden/keeper/query_key_by_id.go b/warden/x/warden/keeper/query_key_by_id.go new file mode 100644 index 000000000..53c68606e --- /dev/null +++ b/warden/x/warden/keeper/query_key_by_id.go @@ -0,0 +1,29 @@ +package keeper + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + types "github.com/warden-protocol/wardenprotocol/warden/x/warden/types/v1beta2" +) + +func (k Keeper) KeyById(goCtx context.Context, req *types.QueryKeyByIdRequest) (*types.QueryKeyResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + key, err := k.KeysKeeper.Get(ctx, req.Id) + if err != nil { + return nil, err + } + + return &types.QueryKeyResponse{ + Key: key, + Wallets: key.DeriveAddresses(ctx, req.DeriveWallets), + }, nil +} diff --git a/warden/x/warden/keeper/query_keys.go b/warden/x/warden/keeper/query_keys.go deleted file mode 100644 index 579b396d9..000000000 --- a/warden/x/warden/keeper/query_keys.go +++ /dev/null @@ -1,125 +0,0 @@ -package keeper - -import ( - "context" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - types "github.com/warden-protocol/wardenprotocol/warden/x/warden/types/v1beta2" -) - -func (k Keeper) Keys(goCtx context.Context, req *types.QueryKeysRequest) (*types.QueryKeysResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - - ctx := sdk.UnwrapSDKContext(goCtx) - - keys, page, err := query.CollectionFilteredPaginate(ctx, k.keys, req.Pagination, func(key uint64, value types.Key) (bool, error) { - if req.SpaceId > 0 && value.SpaceId != req.SpaceId { - return false, nil - } - - if req.KeyId > 0 && value.Id != req.KeyId { - return false, nil - } - - return true, nil - }, func(key uint64, value types.Key) (*types.KeyResponse, error) { - response := &types.KeyResponse{ - Key: &value, - } - - // create addresses for all wallets that require an ECDSA key - if value.Type == types.KeyType_KEY_TYPE_ECDSA_SECP256K1 { - var wTypesECDSA []types.WalletType - // all wallet types for ECDSA keys - switch req.Type { - case types.WalletType_WALLET_TYPE_ETH: - wTypesECDSA = []types.WalletType{types.WalletType_WALLET_TYPE_ETH} - case types.WalletType_WALLET_TYPE_CELESTIA: - wTypesECDSA = []types.WalletType{types.WalletType_WALLET_TYPE_CELESTIA} - case types.WalletType_WALLET_TYPE_UNSPECIFIED: - wTypesECDSA = []types.WalletType{types.WalletType_WALLET_TYPE_ETH, types.WalletType_WALLET_TYPE_CELESTIA} - } - - for _, wType := range wTypesECDSA { - var ( - address string - err error - walletType types.WalletType - ) - - switch wType { - case types.WalletType_WALLET_TYPE_ETH: - address, err = types.EthereumAddress(value) - walletType = types.WalletType_WALLET_TYPE_ETH - case types.WalletType_WALLET_TYPE_CELESTIA: - address, err = types.CelestiaAddress(value) - walletType = types.WalletType_WALLET_TYPE_CELESTIA - } - if err != nil { - ctx.Logger().Warn("failed to derive address for key %d: %w", value.Id, err) - continue - } - response.Wallets = append(response.Wallets, &types.WalletKeyResponse{ - Address: address, - Type: walletType, - }) - } - } - - // create addresses for all wallets that require an EdDSA key - if value.Type == types.KeyType_KEY_TYPE_EDDSA_ED25519 && (req.Type == types.WalletType_WALLET_TYPE_SUI || req.Type == types.WalletType_WALLET_TYPE_UNSPECIFIED) { - var wTypesEdDSA []types.WalletType - // all wallet types for EdDSA keys - switch req.Type { - case types.WalletType_WALLET_TYPE_SUI: - wTypesEdDSA = []types.WalletType{types.WalletType_WALLET_TYPE_SUI} - case types.WalletType_WALLET_TYPE_UNSPECIFIED: - wTypesEdDSA = []types.WalletType{types.WalletType_WALLET_TYPE_SUI} - } - - for _, wType := range wTypesEdDSA { - var ( - address string - err error - walletType types.WalletType - ) - - if wType == types.WalletType_WALLET_TYPE_SUI { - address, err = types.SuiAddress(value) - walletType = types.WalletType_WALLET_TYPE_SUI - } - // uncomment when we add more eddsa keys - // switch wType { - // case types.WalletType_WALLET_TYPE_SUI: - // address, err = types.SuiAddress(value) - // walletType = types.WalletType_WALLET_TYPE_SUI - // } - if err != nil { - ctx.Logger().Warn("failed to derive address for key %d: %w", value.Id, err) - continue - } - response.Wallets = append(response.Wallets, &types.WalletKeyResponse{ - Address: address, - Type: walletType, - }) - } - } - - return response, nil - }) - - if err != nil { - return nil, status.Error(codes.Internal, err.Error()) - } - - return &types.QueryKeysResponse{ - Keys: keys, - Pagination: page, - }, nil -} diff --git a/warden/x/warden/keeper/query_keys_by_space_id.go b/warden/x/warden/keeper/query_keys_by_space_id.go new file mode 100644 index 000000000..8a1bc5250 --- /dev/null +++ b/warden/x/warden/keeper/query_keys_by_space_id.go @@ -0,0 +1,48 @@ +package keeper + +import ( + "context" + + "cosmossdk.io/collections" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + + types "github.com/warden-protocol/wardenprotocol/warden/x/warden/types/v1beta2" +) + +func (k Keeper) KeysBySpaceId(goCtx context.Context, req *types.QueryKeysBySpaceIdRequest) (*types.QueryKeysResponse, error) { + if req == nil || req.SpaceId == 0 { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + ctx := sdk.UnwrapSDKContext(goCtx) + + keys, page, err := query.CollectionPaginate( + ctx, + k.KeysKeeper.KeysBySpace(), + req.Pagination, + func(keyPair collections.Pair[uint64, uint64], value collections.NoValue) (types.QueryKeyResponse, error) { + key, err := k.KeysKeeper.Get(ctx, keyPair.K2()) + if err != nil { + return types.QueryKeyResponse{}, err + } + + return types.QueryKeyResponse{ + Key: key, + Wallets: key.DeriveAddresses(ctx, req.DeriveWallets), + }, nil + }, + query.WithCollectionPaginationPairPrefix[uint64, uint64](req.SpaceId), + ) + + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + + return &types.QueryKeysResponse{ + Keys: keys, + Pagination: page, + }, nil +} diff --git a/warden/x/warden/keeper/query_sign_transaction_requests.go b/warden/x/warden/keeper/query_sign_transaction_requests.go index 721b36caf..1e708c8ad 100644 --- a/warden/x/warden/keeper/query_sign_transaction_requests.go +++ b/warden/x/warden/keeper/query_sign_transaction_requests.go @@ -22,7 +22,7 @@ func (k Keeper) SignTransactionRequests(goCtx context.Context, req *types.QueryS return false, nil } - _, err := k.keys.Get(ctx, value.KeyId) + _, err := k.KeysKeeper.Get(ctx, value.KeyId) if err != nil { return false, err } diff --git a/warden/x/warden/keeper/query_signature_requests.go b/warden/x/warden/keeper/query_signature_requests.go index 2e378d886..5e71bd81c 100644 --- a/warden/x/warden/keeper/query_signature_requests.go +++ b/warden/x/warden/keeper/query_signature_requests.go @@ -19,7 +19,7 @@ func (k Keeper) SignatureRequests(goCtx context.Context, req *types.QuerySignatu ctx := sdk.UnwrapSDKContext(goCtx) signRequests, pageRes, err := query.CollectionFilteredPaginate(ctx, k.signatureRequests, req.Pagination, func(signRequestID uint64, value types.SignRequest) (bool, error) { - key, err := k.keys.Get(ctx, value.KeyId) + key, err := k.KeysKeeper.Get(ctx, value.KeyId) if err != nil { return false, err } diff --git a/warden/x/warden/migrations/v2/store.go b/warden/x/warden/migrations/v2/store.go index 21d392935..a4e709893 100644 --- a/warden/x/warden/migrations/v2/store.go +++ b/warden/x/warden/migrations/v2/store.go @@ -15,14 +15,15 @@ import ( ) var ( - SpaceSeqPrefix = collections.NewPrefix(0) - SpacesPrefix = collections.NewPrefix(1) - KeychainSeqPrefix = collections.NewPrefix(2) - KeychainsPrefix = collections.NewPrefix(3) - KeySeqPrefix = collections.NewPrefix(4) - KeyPrefix = collections.NewPrefix(5) - KeyRequestSeqPrefix = collections.NewPrefix(6) - KeyRequestsPrefix = collections.NewPrefix(7) + SpaceSeqPrefix = collections.NewPrefix(0) + SpacesPrefix = collections.NewPrefix(1) + KeychainSeqPrefix = collections.NewPrefix(2) + KeychainsPrefix = collections.NewPrefix(3) + KeySeqPrefix = collections.NewPrefix(4) + KeyPrefix = collections.NewPrefix(5) + KeyRequestSeqPrefix = collections.NewPrefix(6) + KeyRequestsPrefix = collections.NewPrefix(7) + KeysSpaceIndexPrefix = collections.NewPrefix(12) ) func MigrateStore(ctx sdk.Context, storeService store.KVStoreService, cdc codec.BinaryCodec) error { @@ -41,6 +42,10 @@ func MigrateStore(ctx sdk.Context, storeService store.KVStoreService, cdc codec. oldKeysColl := collections.NewMap(sb, KeyPrefix, "keys", collections.Uint64Key, codec.CollValue[v1beta1.Key](cdc)) newKeysColl := collections.NewMap(sb, KeyPrefix, "keys", collections.Uint64Key, codec.CollValue[v1beta2.Key](cdc)) + keysBySpace := collections.NewKeySet( + sb, KeysSpaceIndexPrefix, "keys_by_space", + collections.PairKeyCodec(collections.Uint64Key, collections.Uint64Key), + ) // upgrade spaces spacesCount, err := spaceSeq.Peek(ctx) @@ -176,7 +181,7 @@ func MigrateStore(ctx sdk.Context, storeService store.KVStoreService, cdc codec. } // upgrade keys - if err := migrateKeys(ctx, oldKeysColl, newKeysColl, keychainIdMap, spaceIdMap); err != nil { + if err := migrateKeys(ctx, oldKeysColl, newKeysColl, keysBySpace, keychainIdMap, spaceIdMap); err != nil { return err } @@ -190,7 +195,14 @@ func address(num uint64) []byte { return addrHash[:8] } -func migrateKeys(ctx sdk.Context, oldKeysColl collections.Map[uint64, v1beta1.Key], newKeysColl collections.Map[uint64, v1beta2.Key], keychainIdMap map[string]uint64, spaceIdMap map[string]uint64) error { +func migrateKeys( + ctx sdk.Context, + oldKeysColl collections.Map[uint64, v1beta1.Key], + newKeysColl collections.Map[uint64, v1beta2.Key], + keysBySpace collections.KeySet[collections.Pair[uint64, uint64]], + keychainIdMap map[string]uint64, + spaceIdMap map[string]uint64, +) error { keysIter, err := oldKeysColl.Iterate(ctx, nil) if err != nil { return err @@ -225,6 +237,9 @@ func migrateKeys(ctx sdk.Context, oldKeysColl collections.Map[uint64, v1beta1.Ke return fmt.Errorf("failed to remove old key request %d: %w", key.Id, err) } + if err := keysBySpace.Set(ctx, collections.Join(newKey.SpaceId, newKey.Id)); err != nil { + return err + } if err := newKeysColl.Set(ctx, newKey.Id, newKey); err != nil { return fmt.Errorf("failed to set key request %d: %w", newKey.Id, err) } diff --git a/warden/x/warden/types/v1beta2/address.go b/warden/x/warden/types/v1beta2/address.go index b56416bd7..c2489c647 100644 --- a/warden/x/warden/types/v1beta2/address.go +++ b/warden/x/warden/types/v1beta2/address.go @@ -25,6 +25,33 @@ import ( "golang.org/x/crypto/blake2b" ) +func (k Key) DeriveAddresses(ctx sdk.Context, types []WalletType) []WalletKeyResponse { + responses := make([]WalletKeyResponse, 0, len(types)) + for _, wType := range types { + var ( + address string + err error + ) + switch wType { + case WalletType_WALLET_TYPE_ETH: + address, err = EthereumAddress(k) + case WalletType_WALLET_TYPE_CELESTIA: + address, err = CelestiaAddress(k) + case WalletType_WALLET_TYPE_SUI: + address, err = SuiAddress(k) + } + if err != nil { + ctx.Logger().Warn("failed to derive address for key %d: %w", k.Id, err) + continue + } + responses = append(responses, WalletKeyResponse{ + Address: address, + Type: wType, + }) + } + return responses +} + func WardenProtocolAddress(key Key) (string, error) { k, err := key.ToECDSASecp256k1() if err != nil { diff --git a/warden/x/warden/types/v1beta2/query.pb.go b/warden/x/warden/types/v1beta2/query.pb.go index 79dc6f0e9..ddf6f3607 100644 --- a/warden/x/warden/types/v1beta2/query.pb.go +++ b/warden/x/warden/types/v1beta2/query.pb.go @@ -742,25 +742,23 @@ func (m *QueryKeyRequestByIdResponse) GetKeyRequest() *KeyRequest { return nil } -type QueryKeysRequest struct { - Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` - Type WalletType `protobuf:"varint,3,opt,name=type,proto3,enum=warden.warden.v1beta2.WalletType" json:"type,omitempty"` - KeyId uint64 `protobuf:"varint,4,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` +type QueryAllKeysRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + DeriveWallets []WalletType `protobuf:"varint,2,rep,packed,name=derive_wallets,json=deriveWallets,proto3,enum=warden.warden.v1beta2.WalletType" json:"derive_wallets,omitempty"` } -func (m *QueryKeysRequest) Reset() { *m = QueryKeysRequest{} } -func (m *QueryKeysRequest) String() string { return proto.CompactTextString(m) } -func (*QueryKeysRequest) ProtoMessage() {} -func (*QueryKeysRequest) Descriptor() ([]byte, []int) { +func (m *QueryAllKeysRequest) Reset() { *m = QueryAllKeysRequest{} } +func (m *QueryAllKeysRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllKeysRequest) ProtoMessage() {} +func (*QueryAllKeysRequest) Descriptor() ([]byte, []int) { return fileDescriptor_a75bcc5c9476f392, []int{15} } -func (m *QueryKeysRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAllKeysRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAllKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryKeysRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAllKeysRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -770,49 +768,35 @@ func (m *QueryKeysRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return b[:n], nil } } -func (m *QueryKeysRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryKeysRequest.Merge(m, src) +func (m *QueryAllKeysRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllKeysRequest.Merge(m, src) } -func (m *QueryKeysRequest) XXX_Size() int { +func (m *QueryAllKeysRequest) XXX_Size() int { return m.Size() } -func (m *QueryKeysRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryKeysRequest.DiscardUnknown(m) +func (m *QueryAllKeysRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllKeysRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryKeysRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAllKeysRequest proto.InternalMessageInfo -func (m *QueryKeysRequest) GetPagination() *query.PageRequest { +func (m *QueryAllKeysRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -func (m *QueryKeysRequest) GetSpaceId() uint64 { - if m != nil { - return m.SpaceId - } - return 0 -} - -func (m *QueryKeysRequest) GetType() WalletType { - if m != nil { - return m.Type - } - return WalletType_WALLET_TYPE_UNSPECIFIED -} - -func (m *QueryKeysRequest) GetKeyId() uint64 { +func (m *QueryAllKeysRequest) GetDeriveWallets() []WalletType { if m != nil { - return m.KeyId + return m.DeriveWallets } - return 0 + return nil } type QueryKeysResponse struct { Pagination *query.PageResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` - Keys []*KeyResponse `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` + Keys []QueryKeyResponse `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys"` } func (m *QueryKeysResponse) Reset() { *m = QueryKeysResponse{} } @@ -855,30 +839,31 @@ func (m *QueryKeysResponse) GetPagination() *query.PageResponse { return nil } -func (m *QueryKeysResponse) GetKeys() []*KeyResponse { +func (m *QueryKeysResponse) GetKeys() []QueryKeyResponse { if m != nil { return m.Keys } return nil } -type KeyResponse struct { - Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Wallets []*WalletKeyResponse `protobuf:"bytes,2,rep,name=wallets,proto3" json:"wallets,omitempty"` +type QueryKeysBySpaceIdRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` + SpaceId uint64 `protobuf:"varint,2,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` + DeriveWallets []WalletType `protobuf:"varint,3,rep,packed,name=derive_wallets,json=deriveWallets,proto3,enum=warden.warden.v1beta2.WalletType" json:"derive_wallets,omitempty"` } -func (m *KeyResponse) Reset() { *m = KeyResponse{} } -func (m *KeyResponse) String() string { return proto.CompactTextString(m) } -func (*KeyResponse) ProtoMessage() {} -func (*KeyResponse) Descriptor() ([]byte, []int) { +func (m *QueryKeysBySpaceIdRequest) Reset() { *m = QueryKeysBySpaceIdRequest{} } +func (m *QueryKeysBySpaceIdRequest) String() string { return proto.CompactTextString(m) } +func (*QueryKeysBySpaceIdRequest) ProtoMessage() {} +func (*QueryKeysBySpaceIdRequest) Descriptor() ([]byte, []int) { return fileDescriptor_a75bcc5c9476f392, []int{17} } -func (m *KeyResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryKeysBySpaceIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *KeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryKeysBySpaceIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_KeyResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryKeysBySpaceIdRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -888,26 +873,137 @@ func (m *KeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *KeyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyResponse.Merge(m, src) +func (m *QueryKeysBySpaceIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryKeysBySpaceIdRequest.Merge(m, src) } -func (m *KeyResponse) XXX_Size() int { +func (m *QueryKeysBySpaceIdRequest) XXX_Size() int { return m.Size() } -func (m *KeyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_KeyResponse.DiscardUnknown(m) +func (m *QueryKeysBySpaceIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryKeysBySpaceIdRequest.DiscardUnknown(m) } -var xxx_messageInfo_KeyResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryKeysBySpaceIdRequest proto.InternalMessageInfo -func (m *KeyResponse) GetKey() *Key { +func (m *QueryKeysBySpaceIdRequest) GetPagination() *query.PageRequest { if m != nil { - return m.Key + return m.Pagination } return nil } -func (m *KeyResponse) GetWallets() []*WalletKeyResponse { +func (m *QueryKeysBySpaceIdRequest) GetSpaceId() uint64 { + if m != nil { + return m.SpaceId + } + return 0 +} + +func (m *QueryKeysBySpaceIdRequest) GetDeriveWallets() []WalletType { + if m != nil { + return m.DeriveWallets + } + return nil +} + +type QueryKeyByIdRequest struct { + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + DeriveWallets []WalletType `protobuf:"varint,2,rep,packed,name=derive_wallets,json=deriveWallets,proto3,enum=warden.warden.v1beta2.WalletType" json:"derive_wallets,omitempty"` +} + +func (m *QueryKeyByIdRequest) Reset() { *m = QueryKeyByIdRequest{} } +func (m *QueryKeyByIdRequest) String() string { return proto.CompactTextString(m) } +func (*QueryKeyByIdRequest) ProtoMessage() {} +func (*QueryKeyByIdRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_a75bcc5c9476f392, []int{18} +} +func (m *QueryKeyByIdRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryKeyByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryKeyByIdRequest.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 *QueryKeyByIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryKeyByIdRequest.Merge(m, src) +} +func (m *QueryKeyByIdRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryKeyByIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryKeyByIdRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryKeyByIdRequest proto.InternalMessageInfo + +func (m *QueryKeyByIdRequest) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *QueryKeyByIdRequest) GetDeriveWallets() []WalletType { + if m != nil { + return m.DeriveWallets + } + return nil +} + +type QueryKeyResponse struct { + Key Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key"` + Wallets []WalletKeyResponse `protobuf:"bytes,2,rep,name=wallets,proto3" json:"wallets"` +} + +func (m *QueryKeyResponse) Reset() { *m = QueryKeyResponse{} } +func (m *QueryKeyResponse) String() string { return proto.CompactTextString(m) } +func (*QueryKeyResponse) ProtoMessage() {} +func (*QueryKeyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_a75bcc5c9476f392, []int{19} +} +func (m *QueryKeyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryKeyResponse.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 *QueryKeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryKeyResponse.Merge(m, src) +} +func (m *QueryKeyResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryKeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryKeyResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryKeyResponse proto.InternalMessageInfo + +func (m *QueryKeyResponse) GetKey() Key { + if m != nil { + return m.Key + } + return Key{} +} + +func (m *QueryKeyResponse) GetWallets() []WalletKeyResponse { if m != nil { return m.Wallets } @@ -923,7 +1019,7 @@ func (m *WalletKeyResponse) Reset() { *m = WalletKeyResponse{} } func (m *WalletKeyResponse) String() string { return proto.CompactTextString(m) } func (*WalletKeyResponse) ProtoMessage() {} func (*WalletKeyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a75bcc5c9476f392, []int{18} + return fileDescriptor_a75bcc5c9476f392, []int{20} } func (m *WalletKeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -976,7 +1072,7 @@ func (m *QuerySignatureRequestsRequest) Reset() { *m = QuerySignatureReq func (m *QuerySignatureRequestsRequest) String() string { return proto.CompactTextString(m) } func (*QuerySignatureRequestsRequest) ProtoMessage() {} func (*QuerySignatureRequestsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a75bcc5c9476f392, []int{19} + return fileDescriptor_a75bcc5c9476f392, []int{21} } func (m *QuerySignatureRequestsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1035,7 +1131,7 @@ func (m *QuerySignatureRequestsResponse) Reset() { *m = QuerySignatureRe func (m *QuerySignatureRequestsResponse) String() string { return proto.CompactTextString(m) } func (*QuerySignatureRequestsResponse) ProtoMessage() {} func (*QuerySignatureRequestsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a75bcc5c9476f392, []int{20} + return fileDescriptor_a75bcc5c9476f392, []int{22} } func (m *QuerySignatureRequestsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1086,7 +1182,7 @@ func (m *QuerySignatureRequestByIdRequest) Reset() { *m = QuerySignature func (m *QuerySignatureRequestByIdRequest) String() string { return proto.CompactTextString(m) } func (*QuerySignatureRequestByIdRequest) ProtoMessage() {} func (*QuerySignatureRequestByIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a75bcc5c9476f392, []int{21} + return fileDescriptor_a75bcc5c9476f392, []int{23} } func (m *QuerySignatureRequestByIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1130,7 +1226,7 @@ func (m *QuerySignatureRequestByIdResponse) Reset() { *m = QuerySignatur func (m *QuerySignatureRequestByIdResponse) String() string { return proto.CompactTextString(m) } func (*QuerySignatureRequestByIdResponse) ProtoMessage() {} func (*QuerySignatureRequestByIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a75bcc5c9476f392, []int{22} + return fileDescriptor_a75bcc5c9476f392, []int{24} } func (m *QuerySignatureRequestByIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1177,7 +1273,7 @@ func (m *QuerySignTransactionRequestsRequest) Reset() { *m = QuerySignTr func (m *QuerySignTransactionRequestsRequest) String() string { return proto.CompactTextString(m) } func (*QuerySignTransactionRequestsRequest) ProtoMessage() {} func (*QuerySignTransactionRequestsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a75bcc5c9476f392, []int{23} + return fileDescriptor_a75bcc5c9476f392, []int{25} } func (m *QuerySignTransactionRequestsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1243,7 +1339,7 @@ func (m *SignTransactionRequestResponse) Reset() { *m = SignTransactionR func (m *SignTransactionRequestResponse) String() string { return proto.CompactTextString(m) } func (*SignTransactionRequestResponse) ProtoMessage() {} func (*SignTransactionRequestResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a75bcc5c9476f392, []int{24} + return fileDescriptor_a75bcc5c9476f392, []int{26} } func (m *SignTransactionRequestResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1295,7 +1391,7 @@ func (m *QuerySignTransactionRequestsResponse) Reset() { *m = QuerySignT func (m *QuerySignTransactionRequestsResponse) String() string { return proto.CompactTextString(m) } func (*QuerySignTransactionRequestsResponse) ProtoMessage() {} func (*QuerySignTransactionRequestsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a75bcc5c9476f392, []int{25} + return fileDescriptor_a75bcc5c9476f392, []int{27} } func (m *QuerySignTransactionRequestsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1348,7 +1444,7 @@ func (m *QuerySignTransactionRequestByIdRequest) Reset() { func (m *QuerySignTransactionRequestByIdRequest) String() string { return proto.CompactTextString(m) } func (*QuerySignTransactionRequestByIdRequest) ProtoMessage() {} func (*QuerySignTransactionRequestByIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a75bcc5c9476f392, []int{26} + return fileDescriptor_a75bcc5c9476f392, []int{28} } func (m *QuerySignTransactionRequestByIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1394,7 +1490,7 @@ func (m *QuerySignTransactionRequestByIdResponse) Reset() { func (m *QuerySignTransactionRequestByIdResponse) String() string { return proto.CompactTextString(m) } func (*QuerySignTransactionRequestByIdResponse) ProtoMessage() {} func (*QuerySignTransactionRequestByIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a75bcc5c9476f392, []int{27} + return fileDescriptor_a75bcc5c9476f392, []int{29} } func (m *QuerySignTransactionRequestByIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1446,9 +1542,11 @@ func init() { proto.RegisterType((*QueryKeyRequestsResponse)(nil), "warden.warden.v1beta2.QueryKeyRequestsResponse") proto.RegisterType((*QueryKeyRequestByIdRequest)(nil), "warden.warden.v1beta2.QueryKeyRequestByIdRequest") proto.RegisterType((*QueryKeyRequestByIdResponse)(nil), "warden.warden.v1beta2.QueryKeyRequestByIdResponse") - proto.RegisterType((*QueryKeysRequest)(nil), "warden.warden.v1beta2.QueryKeysRequest") + proto.RegisterType((*QueryAllKeysRequest)(nil), "warden.warden.v1beta2.QueryAllKeysRequest") proto.RegisterType((*QueryKeysResponse)(nil), "warden.warden.v1beta2.QueryKeysResponse") - proto.RegisterType((*KeyResponse)(nil), "warden.warden.v1beta2.KeyResponse") + proto.RegisterType((*QueryKeysBySpaceIdRequest)(nil), "warden.warden.v1beta2.QueryKeysBySpaceIdRequest") + proto.RegisterType((*QueryKeyByIdRequest)(nil), "warden.warden.v1beta2.QueryKeyByIdRequest") + proto.RegisterType((*QueryKeyResponse)(nil), "warden.warden.v1beta2.QueryKeyResponse") proto.RegisterType((*WalletKeyResponse)(nil), "warden.warden.v1beta2.WalletKeyResponse") proto.RegisterType((*QuerySignatureRequestsRequest)(nil), "warden.warden.v1beta2.QuerySignatureRequestsRequest") proto.RegisterType((*QuerySignatureRequestsResponse)(nil), "warden.warden.v1beta2.QuerySignatureRequestsResponse") @@ -1464,95 +1562,101 @@ func init() { func init() { proto.RegisterFile("warden/warden/v1beta2/query.proto", fileDescriptor_a75bcc5c9476f392) } var fileDescriptor_a75bcc5c9476f392 = []byte{ - // 1401 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x98, 0x4d, 0x6f, 0x1b, 0x55, - 0x17, 0xc7, 0x73, 0x1d, 0xc7, 0xad, 0x8f, 0xd3, 0xea, 0xc9, 0x7d, 0xd2, 0xc6, 0x71, 0x1b, 0xc7, - 0xb9, 0x69, 0x62, 0x37, 0x24, 0x9e, 0xc4, 0x25, 0x34, 0xb4, 0x2a, 0x54, 0xe6, 0x25, 0x8a, 0x40, - 0xa2, 0x4c, 0x2b, 0x15, 0x21, 0x24, 0x6b, 0xec, 0x19, 0xb9, 0x26, 0x89, 0xc7, 0xf1, 0x4c, 0x08, - 0xde, 0x80, 0x84, 0x10, 0x0b, 0x56, 0xa8, 0xb0, 0x01, 0x84, 0xc4, 0x0a, 0xd1, 0x1d, 0x62, 0xc3, - 0x07, 0x80, 0x45, 0x85, 0x58, 0x44, 0x62, 0x83, 0x58, 0x54, 0x28, 0x41, 0xe2, 0x6b, 0xa0, 0xb9, - 0x73, 0xae, 0x3d, 0x76, 0x66, 0xee, 0xd8, 0x91, 0x81, 0x4d, 0xe2, 0x19, 0x9f, 0x73, 0xcf, 0xef, - 0xfc, 0xcf, 0x99, 0xeb, 0x7b, 0x06, 0xe6, 0x0e, 0xb4, 0xa6, 0x6e, 0xd4, 0x15, 0xfc, 0xf7, 0xce, - 0x5a, 0xd9, 0xb0, 0xb5, 0x82, 0xb2, 0xb7, 0x6f, 0x34, 0x5b, 0xf9, 0x46, 0xd3, 0xb4, 0x4d, 0x7a, - 0xc1, 0xfd, 0x2e, 0x8f, 0xff, 0xd0, 0x24, 0x35, 0xa1, 0xed, 0xd6, 0xea, 0xa6, 0xc2, 0xff, 0xba, - 0x96, 0xa9, 0xc9, 0xaa, 0x59, 0x35, 0xf9, 0x47, 0xc5, 0xf9, 0x84, 0x77, 0x2f, 0x57, 0x4d, 0xb3, - 0xba, 0x63, 0x28, 0x5a, 0xa3, 0xa6, 0x68, 0xf5, 0xba, 0x69, 0x6b, 0x76, 0xcd, 0xac, 0x5b, 0xf8, - 0xed, 0x52, 0xc5, 0xb4, 0x76, 0x4d, 0x4b, 0x29, 0x6b, 0x96, 0xe1, 0x86, 0x45, 0x88, 0x35, 0xa5, - 0xa1, 0x55, 0x6b, 0x75, 0x6e, 0x8c, 0xb6, 0xb3, 0xfe, 0xb0, 0xdb, 0x06, 0xa2, 0xa6, 0xae, 0x04, - 0x1a, 0x54, 0x1e, 0x68, 0x35, 0xb1, 0x0c, 0xf3, 0xb7, 0x6a, 0x68, 0x4d, 0x6d, 0x57, 0x60, 0x2d, - 0xf8, 0xdb, 0x58, 0xb5, 0x6a, 0x5d, 0xb3, 0xf7, 0x9b, 0x06, 0x9a, 0x05, 0xc8, 0x67, 0x35, 0xb4, - 0x8a, 0x21, 0x8f, 0x76, 0xa0, 0xed, 0xec, 0x18, 0xb6, 0x6b, 0xc3, 0x26, 0x81, 0xbe, 0xee, 0xa4, - 0x7e, 0x87, 0x23, 0xa8, 0xc6, 0xde, 0xbe, 0x61, 0xd9, 0xec, 0x3e, 0xfc, 0xbf, 0xeb, 0xae, 0xd5, - 0x30, 0xeb, 0x96, 0x41, 0x6f, 0x43, 0xcc, 0x45, 0x4d, 0x92, 0x0c, 0xc9, 0x25, 0x0a, 0x33, 0x79, - 0xdf, 0x02, 0xe5, 0x5d, 0xb7, 0x62, 0xfc, 0xf1, 0x93, 0xd9, 0x91, 0x6f, 0xff, 0xfa, 0x6e, 0x89, - 0xa8, 0xe8, 0xc7, 0xde, 0xc2, 0x70, 0x77, 0x1d, 0x4c, 0x11, 0x8e, 0xbe, 0x0c, 0xd0, 0x51, 0x1c, - 0xd7, 0x5e, 0xcc, 0xbb, 0xe5, 0xc9, 0x3b, 0xe5, 0xc9, 0xbb, 0x5d, 0x81, 0xe5, 0xc9, 0xdf, 0xd1, - 0xaa, 0x06, 0xfa, 0xaa, 0x1e, 0x4f, 0xf6, 0x05, 0x41, 0x6e, 0xb1, 0x3c, 0x72, 0x6f, 0xfa, 0xac, - 0x9f, 0x0d, 0x5d, 0xdf, 0x75, 0xf6, 0x06, 0xa0, 0x37, 0x20, 0xc6, 0x05, 0xb6, 0x92, 0x91, 0xcc, - 0x68, 0x2e, 0x51, 0xb8, 0x1c, 0x20, 0x00, 0x8f, 0x5f, 0x8c, 0x3a, 0xf9, 0xab, 0xe8, 0xc1, 0x5a, - 0x30, 0xed, 0x61, 0x2b, 0xb6, 0x5e, 0x3b, 0xa8, 0x1b, 0xcd, 0x21, 0x2b, 0x40, 0x27, 0x61, 0xcc, - 0x74, 0xd6, 0x4d, 0x46, 0x32, 0x24, 0x17, 0x57, 0xdd, 0x0b, 0x56, 0x82, 0x0b, 0x3c, 0xf4, 0x2b, - 0xd8, 0x8d, 0x43, 0x17, 0xfe, 0x1b, 0x02, 0x17, 0x7b, 0x23, 0x0c, 0x5b, 0xfb, 0x17, 0x20, 0x2e, - 0x9e, 0x26, 0x21, 0xff, 0x6c, 0x80, 0xfc, 0x82, 0x02, 0x2b, 0xd0, 0xf1, 0x63, 0x59, 0x54, 0xc2, - 0x2d, 0x50, 0x6b, 0x4b, 0x17, 0x4a, 0x9c, 0x87, 0x48, 0x4d, 0xe7, 0x78, 0x51, 0x35, 0x52, 0xd3, - 0xd9, 0xab, 0x98, 0x90, 0xc7, 0x10, 0x13, 0x2a, 0xc0, 0x18, 0xaf, 0x28, 0xe6, 0x22, 0x6d, 0x01, - 0xd5, 0x35, 0x65, 0x4b, 0x90, 0xec, 0x92, 0x47, 0x16, 0xf9, 0x0d, 0xec, 0x93, 0x6e, 0x5b, 0x0c, - 0x7e, 0x13, 0xce, 0x8a, 0x64, 0x30, 0x7e, 0x98, 0x06, 0x6a, 0xdb, 0x81, 0x3d, 0x21, 0x30, 0x25, - 0x96, 0xc6, 0xe8, 0xc3, 0xee, 0x04, 0x3a, 0x0b, 0x09, 0x11, 0xaf, 0x54, 0xd3, 0x79, 0x1b, 0x46, - 0x55, 0x10, 0xb7, 0xb6, 0x74, 0xfa, 0x3c, 0xc4, 0x2c, 0x5b, 0xb3, 0xf7, 0xad, 0xe4, 0x68, 0x86, - 0xe4, 0xce, 0x17, 0xb2, 0xc1, 0xfc, 0xb8, 0xfe, 0x5d, 0x6e, 0xae, 0xa2, 0x1b, 0x9d, 0x86, 0xb3, - 0x5c, 0x54, 0x67, 0xf9, 0x28, 0x5f, 0xfe, 0x0c, 0xbf, 0xde, 0xd2, 0xd9, 0x23, 0xd2, 0xd1, 0xb9, - 0x93, 0xe0, 0xb0, 0x1b, 0xf1, 0x45, 0x18, 0xdf, 0x36, 0x5a, 0xa5, 0x26, 0x06, 0xc0, 0x5e, 0x9c, - 0x0b, 0xcd, 0x43, 0x75, 0x94, 0x11, 0x58, 0x6c, 0x19, 0x52, 0x3d, 0xa8, 0xb2, 0xa6, 0xd0, 0xe0, - 0x92, 0xaf, 0x35, 0xe6, 0x56, 0xe4, 0xaa, 0x0b, 0x24, 0x4c, 0xae, 0x0f, 0x22, 0xe8, 0x10, 0xb1, - 0x1f, 0x09, 0xfc, 0x4f, 0xc4, 0x18, 0x7a, 0x5b, 0x78, 0x8b, 0x16, 0xe9, 0x2a, 0x1a, 0x5d, 0x87, - 0xa8, 0xdd, 0x6a, 0x18, 0xd8, 0x0e, 0x41, 0xd0, 0xf7, 0xf9, 0x8f, 0xd6, 0xbd, 0x56, 0xc3, 0x50, - 0xb9, 0x39, 0xbd, 0x00, 0x31, 0x27, 0xe5, 0x76, 0x13, 0x8c, 0x6d, 0x1b, 0xad, 0x2d, 0x9d, 0x7d, - 0x46, 0x60, 0xc2, 0x93, 0xc5, 0xb0, 0x6b, 0xff, 0x0c, 0x44, 0xb7, 0x8d, 0x96, 0xa8, 0x39, 0x93, - 0x29, 0x8c, 0xde, 0xdc, 0x9e, 0xbd, 0x0f, 0x09, 0xcf, 0x4d, 0xba, 0x0c, 0xa3, 0xdb, 0x46, 0x0b, - 0x41, 0x52, 0x92, 0x55, 0x1c, 0x33, 0x5a, 0x84, 0x33, 0xee, 0x6f, 0xb6, 0x88, 0x9b, 0x93, 0x8a, - 0xe4, 0x8d, 0x2e, 0x1c, 0x99, 0x0e, 0x13, 0x27, 0xbe, 0xa5, 0x49, 0x38, 0xa3, 0xe9, 0x7a, 0xd3, - 0xb0, 0xdc, 0x1f, 0xf4, 0xb8, 0x2a, 0x2e, 0xdb, 0x45, 0x89, 0x0c, 0x54, 0x14, 0xf6, 0x33, 0x81, - 0x19, 0x77, 0xdb, 0x14, 0xa7, 0x95, 0xff, 0x6c, 0x9f, 0xb9, 0xdd, 0xb3, 0xcf, 0x04, 0x69, 0xe6, - 0x90, 0xfa, 0x6e, 0x34, 0xec, 0x7b, 0x02, 0xe9, 0xa0, 0x64, 0x86, 0xdd, 0x57, 0x9b, 0x70, 0xce, - 0x39, 0xe0, 0xf5, 0x6e, 0x2a, 0x2c, 0x1c, 0x5a, 0x1d, 0xb7, 0x3a, 0x17, 0x16, 0x2b, 0x40, 0xc6, - 0x97, 0x59, 0xb6, 0xb9, 0xbc, 0x0d, 0x73, 0x12, 0x1f, 0x4c, 0xf5, 0x25, 0x18, 0xf7, 0x12, 0x62, - 0xb2, 0xfd, 0x00, 0x26, 0x3c, 0x80, 0xec, 0xe3, 0x08, 0xcc, 0xb7, 0x83, 0xdd, 0x6b, 0x6a, 0x75, - 0x4b, 0xab, 0x38, 0x0a, 0xfc, 0x53, 0x7d, 0x52, 0x84, 0x84, 0xfb, 0x08, 0x94, 0x06, 0xeb, 0x67, - 0x38, 0x68, 0x7f, 0xf6, 0x6c, 0x35, 0xa3, 0x9e, 0xad, 0xc6, 0xd3, 0x61, 0xd1, 0x53, 0x76, 0xd8, - 0x21, 0x81, 0xb4, 0xbf, 0x0e, 0x6d, 0xd9, 0xab, 0x90, 0xe4, 0xb2, 0xdb, 0x1d, 0x93, 0x9e, 0x12, - 0xac, 0x48, 0xc2, 0xfa, 0x2c, 0x7c, 0xd1, 0xf2, 0xbd, 0x7f, 0xa2, 0xbe, 0x91, 0xd3, 0xd5, 0xf7, - 0x88, 0xc0, 0x15, 0x79, 0x7d, 0x87, 0xfd, 0xe8, 0xec, 0xc1, 0x74, 0x90, 0x42, 0xe2, 0x31, 0x5a, - 0x1f, 0x4c, 0x22, 0x11, 0x65, 0xca, 0x5f, 0x2a, 0x8b, 0x6d, 0xc0, 0xa2, 0x24, 0x47, 0xd9, 0xa3, - 0xf6, 0x90, 0x40, 0x36, 0xd4, 0xf5, 0x5f, 0x2e, 0x7d, 0xe1, 0xc3, 0x09, 0x18, 0xe3, 0x50, 0xf4, - 0x23, 0x02, 0x31, 0x77, 0x78, 0xa3, 0x57, 0x03, 0xd6, 0x3e, 0x39, 0x2d, 0xa6, 0x96, 0xfa, 0x31, - 0x75, 0x93, 0x62, 0x0b, 0x1f, 0xfc, 0xfa, 0xe7, 0xa7, 0x91, 0x59, 0x3a, 0xa3, 0xc8, 0x46, 0x61, - 0x0e, 0xe2, 0x0e, 0x4a, 0x72, 0x90, 0xae, 0x39, 0x52, 0x0e, 0xd2, 0x3d, 0x13, 0x86, 0x82, 0xb8, - 0x53, 0x1b, 0xfd, 0x8a, 0xc0, 0xb9, 0xae, 0x89, 0x8d, 0xae, 0x86, 0x07, 0xe9, 0x1e, 0xee, 0x06, - 0xc2, 0xca, 0x73, 0xac, 0x1c, 0x5d, 0x94, 0x62, 0x95, 0xca, 0xad, 0x12, 0x1f, 0xed, 0xe8, 0x43, - 0x02, 0xf1, 0xf6, 0xd0, 0x45, 0x97, 0x65, 0x91, 0x7a, 0xa7, 0xbf, 0xd4, 0x4a, 0x9f, 0xd6, 0x88, - 0x96, 0xe3, 0x68, 0x8c, 0x66, 0x14, 0xf9, 0xbb, 0x0e, 0x8b, 0x7e, 0x4e, 0x20, 0xde, 0x1e, 0x9c, - 0xe4, 0x50, 0xbd, 0x83, 0x98, 0x1c, 0xea, 0xc4, 0x34, 0xc6, 0x14, 0x0e, 0x75, 0x95, 0x66, 0x65, - 0x7a, 0x39, 0x72, 0x89, 0x93, 0xcd, 0xd7, 0x04, 0xc6, 0xbd, 0xa3, 0x15, 0x55, 0xfa, 0x51, 0xc1, - 0x4b, 0xb8, 0xda, 0xbf, 0x03, 0x42, 0xae, 0x70, 0xc8, 0x2c, 0x5d, 0x08, 0x51, 0xce, 0xe1, 0xac, - 0xe9, 0xf4, 0x4b, 0x82, 0xa7, 0x45, 0x77, 0xbb, 0xa1, 0xf9, 0x90, 0x80, 0x3d, 0xbf, 0x9d, 0x29, - 0xa5, 0x6f, 0x7b, 0xe4, 0x7b, 0x8a, 0xf3, 0x2d, 0xd0, 0xf9, 0x60, 0xbe, 0xf6, 0x96, 0x4a, 0x1f, - 0x11, 0x38, 0xdf, 0x3d, 0x86, 0xd0, 0xb5, 0xfe, 0x02, 0x7a, 0x45, 0x2c, 0x0c, 0xe2, 0x82, 0x98, - 0xab, 0x1c, 0x73, 0x89, 0xe6, 0xc2, 0x31, 0x51, 0xc9, 0xf7, 0x20, 0xea, 0xcc, 0x01, 0x34, 0x1b, - 0x12, 0xad, 0x2d, 0x5d, 0x2e, 0xdc, 0x10, 0x61, 0xe6, 0x39, 0xcc, 0x0c, 0xbd, 0x14, 0x0c, 0x63, - 0xd1, 0x1f, 0x08, 0x4c, 0x9c, 0x38, 0x3d, 0xd2, 0xa7, 0xa5, 0x2d, 0x1e, 0x70, 0x72, 0x4e, 0xad, - 0x0f, 0xe8, 0x85, 0x9c, 0xeb, 0x9c, 0x53, 0xa1, 0x2b, 0x01, 0x9c, 0x55, 0xc3, 0x2e, 0xb5, 0xdf, - 0x2d, 0x76, 0xaa, 0xfc, 0x13, 0x81, 0x49, 0xbf, 0xf3, 0x20, 0xbd, 0x3e, 0x08, 0x86, 0xb7, 0xe2, - 0x1b, 0x83, 0x3b, 0x62, 0x0a, 0xcf, 0xf2, 0x14, 0xae, 0xd1, 0x35, 0x25, 0xe4, 0xd5, 0x68, 0xa9, - 0x51, 0xee, 0x69, 0x80, 0x5f, 0x08, 0x4c, 0x05, 0x9c, 0x44, 0xe8, 0x8d, 0x30, 0xa0, 0xe0, 0xe3, - 0x69, 0xea, 0xe6, 0xa9, 0x7c, 0x31, 0x9f, 0x0d, 0x9e, 0x4f, 0x81, 0xae, 0x4a, 0xf2, 0xf1, 0x3d, - 0xce, 0xd0, 0xdf, 0x09, 0xa4, 0x82, 0x4f, 0x0e, 0xf4, 0xd6, 0xe0, 0x54, 0xde, 0x0a, 0x3d, 0x77, - 0x5a, 0x77, 0xcc, 0xeb, 0x16, 0xcf, 0xeb, 0x3a, 0x5d, 0x1f, 0x30, 0x2f, 0xb7, 0x56, 0x45, 0xed, - 0xf1, 0x51, 0x9a, 0x1c, 0x1e, 0xa5, 0xc9, 0x1f, 0x47, 0x69, 0xf2, 0xc9, 0x71, 0x7a, 0xe4, 0xf0, - 0x38, 0x3d, 0xf2, 0xdb, 0x71, 0x7a, 0xe4, 0xcd, 0xcd, 0x6a, 0xcd, 0x7e, 0xb0, 0x5f, 0xce, 0x57, - 0xcc, 0x5d, 0x5c, 0x73, 0x85, 0xbf, 0xbd, 0xae, 0x98, 0x3b, 0x78, 0xdd, 0x73, 0xa9, 0xbc, 0x2b, - 0x3e, 0x38, 0xa7, 0x7e, 0x4b, 0x10, 0x94, 0x63, 0xdc, 0xee, 0xda, 0xdf, 0x01, 0x00, 0x00, 0xff, - 0xff, 0x6c, 0x1b, 0x8c, 0x9c, 0x7c, 0x18, 0x00, 0x00, + // 1500 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x99, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xc7, 0x33, 0x8e, 0x93, 0x34, 0xcf, 0x49, 0x44, 0xa6, 0x69, 0xeb, 0xba, 0x8d, 0x93, 0x4e, + 0x9b, 0xc6, 0x0d, 0x8d, 0x37, 0x71, 0x89, 0x5a, 0x5a, 0x15, 0x5a, 0xf3, 0xa3, 0xad, 0x8a, 0x44, + 0xd9, 0x56, 0x2a, 0x42, 0x48, 0xd6, 0x26, 0x1e, 0xb9, 0x4b, 0x12, 0xaf, 0xeb, 0xdd, 0x34, 0xec, + 0x15, 0x21, 0x84, 0x38, 0x55, 0xe5, 0xc4, 0x2f, 0xc1, 0x09, 0xe8, 0x0d, 0x21, 0x21, 0xfe, 0x01, + 0x0e, 0x15, 0xe2, 0x50, 0x89, 0x0b, 0xe2, 0x50, 0xa1, 0x14, 0x89, 0x7f, 0x03, 0xed, 0xcc, 0x1b, + 0x7b, 0xd7, 0xd9, 0x1f, 0x76, 0xe4, 0xc2, 0xa5, 0xf1, 0xda, 0xef, 0xcd, 0xfb, 0xbc, 0xef, 0x7b, + 0x33, 0x9e, 0xe7, 0xc2, 0xb1, 0x6d, 0xa3, 0x59, 0xe5, 0x75, 0x0d, 0xff, 0xdc, 0x5b, 0x5e, 0xe5, + 0x8e, 0x51, 0xd2, 0xee, 0x6e, 0xf1, 0xa6, 0x5b, 0x6c, 0x34, 0x2d, 0xc7, 0xa2, 0x07, 0xe4, 0x67, + 0x45, 0xfc, 0x83, 0x26, 0xb9, 0x49, 0x63, 0xd3, 0xac, 0x5b, 0x9a, 0xf8, 0x57, 0x5a, 0xe6, 0xa6, + 0x6a, 0x56, 0xcd, 0x12, 0x2f, 0x35, 0xef, 0x15, 0xbe, 0x7b, 0xb4, 0x66, 0x59, 0xb5, 0x0d, 0xae, + 0x19, 0x0d, 0x53, 0x33, 0xea, 0x75, 0xcb, 0x31, 0x1c, 0xd3, 0xaa, 0xdb, 0xf8, 0xe9, 0xc2, 0x9a, + 0x65, 0x6f, 0x5a, 0xb6, 0xb6, 0x6a, 0xd8, 0x5c, 0x86, 0x45, 0x88, 0x65, 0xad, 0x61, 0xd4, 0xcc, + 0xba, 0x30, 0x46, 0xdb, 0x99, 0x70, 0xd8, 0x75, 0x8e, 0xa8, 0xb9, 0x13, 0x91, 0x06, 0x6b, 0x77, + 0x0c, 0x53, 0x2d, 0xc3, 0xc2, 0xad, 0x1a, 0x46, 0xd3, 0xd8, 0x54, 0x58, 0x73, 0xe1, 0x36, 0xb6, + 0x59, 0xab, 0x1b, 0xce, 0x56, 0x93, 0xa3, 0x59, 0x84, 0x7c, 0x76, 0xc3, 0x58, 0xe3, 0xf1, 0xd1, + 0xb6, 0x8d, 0x8d, 0x0d, 0xee, 0x48, 0x1b, 0x36, 0x05, 0xf4, 0x2d, 0x2f, 0xf5, 0x1b, 0x02, 0x41, + 0xe7, 0x77, 0xb7, 0xb8, 0xed, 0xb0, 0xdb, 0xb0, 0x3f, 0xf0, 0xae, 0xdd, 0xb0, 0xea, 0x36, 0xa7, + 0x97, 0x60, 0x58, 0xa2, 0x66, 0xc9, 0x2c, 0x29, 0x64, 0x4a, 0xd3, 0xc5, 0xd0, 0x02, 0x15, 0xa5, + 0x5b, 0x79, 0xf4, 0xd1, 0x93, 0x99, 0x81, 0xef, 0xff, 0xf9, 0x61, 0x81, 0xe8, 0xe8, 0xc7, 0xde, + 0xc5, 0x70, 0x37, 0x3d, 0x4c, 0x15, 0x8e, 0xbe, 0x0e, 0xd0, 0x56, 0x1c, 0xd7, 0x3e, 0x59, 0x94, + 0xe5, 0x29, 0x7a, 0xe5, 0x29, 0xca, 0xae, 0xc0, 0xf2, 0x14, 0x6f, 0x18, 0x35, 0x8e, 0xbe, 0xba, + 0xcf, 0x93, 0x7d, 0x4e, 0x90, 0x5b, 0x2d, 0x8f, 0xdc, 0x57, 0x42, 0xd6, 0x9f, 0x4f, 0x5c, 0x5f, + 0x3a, 0xfb, 0x03, 0xd0, 0xf3, 0x30, 0x2c, 0x04, 0xb6, 0xb3, 0xa9, 0xd9, 0xc1, 0x42, 0xa6, 0x74, + 0x34, 0x42, 0x00, 0x11, 0xbf, 0x9c, 0xf6, 0xf2, 0xd7, 0xd1, 0x83, 0xb9, 0x70, 0xd8, 0xc7, 0x56, + 0x76, 0xdf, 0xdc, 0xae, 0xf3, 0x66, 0x9f, 0x15, 0xa0, 0x53, 0x30, 0x64, 0x79, 0xeb, 0x66, 0x53, + 0xb3, 0xa4, 0x30, 0xaa, 0xcb, 0x07, 0x56, 0x81, 0x03, 0x22, 0xf4, 0x75, 0xec, 0xc6, 0xbe, 0x0b, + 0xff, 0x2d, 0x81, 0x83, 0x9d, 0x11, 0xfa, 0xad, 0xfd, 0x2b, 0x30, 0xaa, 0x76, 0x93, 0x92, 0x7f, + 0x26, 0x42, 0x7e, 0x45, 0x81, 0x15, 0x68, 0xfb, 0xb1, 0x79, 0x54, 0x42, 0x16, 0xc8, 0xbd, 0x56, + 0x55, 0x4a, 0x4c, 0x40, 0xca, 0xac, 0x0a, 0xbc, 0xb4, 0x9e, 0x32, 0xab, 0xec, 0x0d, 0x4c, 0xc8, + 0x67, 0x88, 0x09, 0x95, 0x60, 0x48, 0x54, 0x14, 0x73, 0x89, 0x6d, 0x01, 0x5d, 0x9a, 0xb2, 0x05, + 0xc8, 0x06, 0xe4, 0x89, 0x8b, 0xfc, 0x36, 0xf6, 0x49, 0xd0, 0x16, 0x83, 0x5f, 0x80, 0x7d, 0x2a, + 0x19, 0x8c, 0x9f, 0xa4, 0x81, 0xde, 0x72, 0x60, 0x4f, 0x08, 0x1c, 0x52, 0x4b, 0x63, 0xf4, 0x7e, + 0x77, 0x02, 0x9d, 0x81, 0x8c, 0x8a, 0x57, 0x31, 0xab, 0xa2, 0x0d, 0xd3, 0x3a, 0xa8, 0xb7, 0xae, + 0x55, 0xe9, 0xcb, 0x30, 0x6c, 0x3b, 0x86, 0xb3, 0x65, 0x67, 0x07, 0x67, 0x49, 0x61, 0xa2, 0x34, + 0x1f, 0xcd, 0x8f, 0xeb, 0xdf, 0x14, 0xe6, 0x3a, 0xba, 0xd1, 0xc3, 0xb0, 0x4f, 0x88, 0xea, 0x2d, + 0x9f, 0x16, 0xcb, 0x8f, 0x88, 0xe7, 0x6b, 0x55, 0xf6, 0x90, 0xb4, 0x75, 0x6e, 0x27, 0xd8, 0xef, + 0x46, 0x7c, 0x15, 0xc6, 0xd6, 0xb9, 0x5b, 0x69, 0x62, 0x00, 0xec, 0xc5, 0x63, 0x89, 0x79, 0xe8, + 0x9e, 0x32, 0x0a, 0x8b, 0x9d, 0x86, 0x5c, 0x07, 0x6a, 0x5c, 0x53, 0x18, 0x70, 0x24, 0xd4, 0x1a, + 0x73, 0x2b, 0x0b, 0xd5, 0x15, 0x12, 0x26, 0xd7, 0x05, 0x11, 0xb4, 0x89, 0xd8, 0x77, 0xea, 0xf0, + 0xbc, 0xbc, 0xb1, 0x71, 0x9d, 0xbb, 0x7d, 0xef, 0x8c, 0xab, 0x30, 0x51, 0xe5, 0x4d, 0xf3, 0x1e, + 0xaf, 0xc8, 0x2f, 0x20, 0x29, 0xdc, 0x44, 0x24, 0xe6, 0x6d, 0x61, 0x75, 0xcb, 0x6d, 0x70, 0x7d, + 0x5c, 0x3a, 0xca, 0x77, 0x6c, 0xf6, 0x35, 0x81, 0x49, 0xa5, 0xc6, 0x33, 0xa8, 0xef, 0x65, 0x48, + 0xaf, 0x73, 0x57, 0xd5, 0x35, 0xaa, 0x3f, 0xdb, 0xe5, 0x90, 0x4b, 0xe0, 0x59, 0x23, 0x5c, 0xd9, + 0x23, 0xd2, 0xde, 0xc4, 0x76, 0x59, 0x1e, 0x22, 0xed, 0xe2, 0xf6, 0x4b, 0x51, 0xff, 0x4e, 0x48, + 0x05, 0x76, 0x42, 0x88, 0xd8, 0x83, 0x7b, 0x14, 0xdb, 0xc2, 0xae, 0xb8, 0xce, 0xdd, 0x98, 0x06, + 0xed, 0x63, 0x75, 0xef, 0x13, 0x78, 0xae, 0x53, 0x5c, 0x5a, 0x82, 0xc1, 0x75, 0xee, 0xa2, 0x56, + 0xb9, 0xe8, 0xc6, 0xc6, 0x2a, 0x78, 0xc6, 0xf4, 0x2a, 0x8c, 0xf8, 0x59, 0x32, 0xa5, 0x42, 0x2c, + 0xcb, 0xee, 0x5a, 0x2a, 0x77, 0x56, 0x85, 0xc9, 0x5d, 0x36, 0x34, 0x0b, 0x23, 0x46, 0xb5, 0xda, + 0xe4, 0xb6, 0xbc, 0x0d, 0x8d, 0xea, 0xea, 0x91, 0xae, 0x40, 0xda, 0x71, 0x1b, 0x5c, 0xd4, 0xa4, + 0x2b, 0x05, 0x84, 0x39, 0xfb, 0x95, 0xc0, 0xb4, 0xfc, 0xce, 0x51, 0x57, 0xbd, 0xff, 0xed, 0x90, + 0xbe, 0xd4, 0x71, 0x48, 0x47, 0x29, 0xe7, 0x91, 0x86, 0x9e, 0xd2, 0xec, 0x47, 0x02, 0xf9, 0xa8, + 0x64, 0xfa, 0xbd, 0x61, 0xaf, 0xc0, 0xb8, 0x77, 0x3b, 0xee, 0x3c, 0x91, 0x59, 0x32, 0xb4, 0x3e, + 0x66, 0xb7, 0x1f, 0x6c, 0x56, 0x82, 0xd9, 0x50, 0xe6, 0xb8, 0x93, 0xf9, 0x3d, 0x38, 0x16, 0xe3, + 0x83, 0xa9, 0xbe, 0x06, 0x63, 0x7e, 0x42, 0x4c, 0xb6, 0x1b, 0xc0, 0x8c, 0x0f, 0x90, 0x7d, 0x92, + 0x82, 0xe3, 0xad, 0x60, 0xb7, 0x9a, 0x46, 0xdd, 0x36, 0xd6, 0x3c, 0x05, 0x9e, 0x55, 0x9f, 0x94, + 0x21, 0x23, 0xb7, 0x40, 0xa5, 0xb7, 0x7e, 0x86, 0xed, 0xd6, 0x6b, 0x7a, 0x00, 0x86, 0xbd, 0xaf, + 0x26, 0xb3, 0x2a, 0x5a, 0x29, 0xad, 0x0f, 0xad, 0x73, 0x37, 0xd0, 0x61, 0xe9, 0x3d, 0x76, 0xd8, + 0x63, 0x02, 0xf9, 0x70, 0x1d, 0x5a, 0xb2, 0xd7, 0x20, 0x2b, 0x64, 0x77, 0xda, 0x26, 0x1d, 0x25, + 0x58, 0x8c, 0x09, 0x1b, 0xb2, 0xf0, 0x41, 0x3b, 0xf4, 0xfd, 0x5d, 0xf5, 0x4d, 0xed, 0xad, 0xbe, + 0x3b, 0x04, 0x4e, 0xc4, 0xd7, 0xb7, 0xdf, 0x5b, 0xe7, 0x2e, 0x1c, 0x8e, 0x52, 0x48, 0x6d, 0xa3, + 0x95, 0xde, 0x24, 0x52, 0x51, 0x0e, 0x85, 0x4b, 0x65, 0xb3, 0x73, 0x70, 0x32, 0x26, 0xc7, 0xb8, + 0xad, 0xf6, 0x80, 0xc0, 0x7c, 0xa2, 0xeb, 0x7f, 0x5c, 0xfa, 0xd2, 0x4f, 0xfb, 0x61, 0x48, 0x40, + 0xd1, 0x8f, 0x08, 0x0c, 0xcb, 0xc9, 0x97, 0x9e, 0x8a, 0xbb, 0x34, 0x04, 0x46, 0xed, 0xdc, 0x42, + 0x37, 0xa6, 0x32, 0x29, 0x36, 0xf7, 0xc1, 0xef, 0x7f, 0x7f, 0x9a, 0x9a, 0xa1, 0xd3, 0x5a, 0xdc, + 0xef, 0x08, 0x02, 0x44, 0x4e, 0x99, 0xf1, 0x20, 0x81, 0x21, 0x3c, 0x1e, 0x24, 0x38, 0x50, 0x27, + 0x82, 0xc8, 0x91, 0x97, 0x7e, 0x45, 0x60, 0x3c, 0x30, 0xee, 0xd2, 0xa5, 0xe4, 0x20, 0xc1, 0xc9, + 0xb8, 0x27, 0xac, 0xa2, 0xc0, 0x2a, 0xd0, 0x93, 0xb1, 0x58, 0x95, 0x55, 0xb7, 0x22, 0xe6, 0x62, + 0xfa, 0x80, 0xc0, 0x68, 0x6b, 0x62, 0xa5, 0xa7, 0x13, 0x6e, 0x7a, 0x81, 0xd1, 0x39, 0xb7, 0xd8, + 0xa5, 0x35, 0xa2, 0x15, 0x04, 0x1a, 0xa3, 0xb3, 0x5a, 0xfc, 0x0f, 0x45, 0x36, 0xfd, 0x8c, 0xc0, + 0x68, 0x6b, 0xea, 0x8c, 0x87, 0xea, 0x9c, 0x62, 0xe3, 0xa1, 0x76, 0x8d, 0xb2, 0x4c, 0x13, 0x50, + 0xa7, 0xe8, 0x7c, 0x9c, 0x5e, 0x9e, 0x5c, 0xea, 0x66, 0xf3, 0x0d, 0x81, 0x31, 0xff, 0x5c, 0x4a, + 0xb5, 0x6e, 0x54, 0xf0, 0x13, 0x2e, 0x75, 0xef, 0x80, 0x90, 0x8b, 0x02, 0x72, 0x9e, 0xce, 0x25, + 0x28, 0xe7, 0x71, 0x9a, 0x55, 0xfa, 0x05, 0x81, 0x8c, 0x6f, 0xfc, 0xa3, 0xc5, 0xc4, 0xfb, 0x7b, + 0xe0, 0xbb, 0x33, 0xa7, 0x75, 0x6d, 0x8f, 0x7c, 0xcf, 0x0b, 0xbe, 0x39, 0x7a, 0x3c, 0x9a, 0xaf, + 0x75, 0xa4, 0xd2, 0x87, 0x04, 0x26, 0x82, 0x33, 0x1c, 0x5d, 0xee, 0x2e, 0xa0, 0x5f, 0xc4, 0x52, + 0x2f, 0x2e, 0x88, 0xb9, 0x24, 0x30, 0x17, 0x68, 0x21, 0x19, 0x13, 0x95, 0xfc, 0x90, 0xc0, 0x08, + 0xce, 0x82, 0x34, 0x76, 0x17, 0x06, 0x07, 0xc6, 0x5c, 0x21, 0x81, 0xae, 0x2d, 0xdd, 0x71, 0xc1, + 0x34, 0x4d, 0x8f, 0x44, 0x33, 0xd9, 0xf4, 0x4b, 0x02, 0xe3, 0x81, 0x31, 0x8a, 0x26, 0xf5, 0xd0, + 0xae, 0x89, 0xab, 0x07, 0xa4, 0xa4, 0x2d, 0xe1, 0x21, 0x79, 0xfa, 0xa8, 0xc1, 0x8b, 0x7e, 0x4c, + 0x60, 0x04, 0x67, 0xa3, 0x78, 0x95, 0x82, 0x03, 0x54, 0xae, 0xdb, 0xb9, 0xb2, 0x9b, 0x93, 0x03, + 0x0b, 0xf6, 0x33, 0x81, 0xc9, 0x5d, 0xd7, 0x6d, 0xfa, 0x42, 0xec, 0x99, 0x10, 0x31, 0x6a, 0xe4, + 0x56, 0x7a, 0xf4, 0x42, 0xd8, 0x15, 0x01, 0xab, 0xd1, 0xc5, 0x08, 0xd8, 0x1a, 0x77, 0x2a, 0xad, + 0x5f, 0xb2, 0xdb, 0xdb, 0xe2, 0x17, 0x02, 0x53, 0x61, 0x17, 0x68, 0x7a, 0xb6, 0x17, 0x0c, 0xbf, + 0xbc, 0xe7, 0x7a, 0x77, 0xc4, 0x14, 0x5e, 0x14, 0x29, 0x9c, 0xa1, 0xcb, 0x5a, 0xc2, 0x0f, 0xf1, + 0x95, 0xc6, 0x6a, 0xc7, 0x8e, 0xf9, 0x8d, 0xc0, 0xa1, 0x88, 0xab, 0x1b, 0x3d, 0x9f, 0x04, 0x14, + 0x7d, 0x9f, 0xcf, 0x5d, 0xd8, 0x93, 0x2f, 0xe6, 0x73, 0x4e, 0xe4, 0x53, 0xa2, 0x4b, 0x31, 0xf9, + 0x84, 0xde, 0xff, 0xe8, 0x9f, 0x04, 0x72, 0xd1, 0x57, 0x2d, 0x7a, 0xb1, 0x77, 0x2a, 0x7f, 0x85, + 0x5e, 0xda, 0xab, 0x3b, 0xe6, 0x75, 0x51, 0xe4, 0x75, 0x96, 0xae, 0xf4, 0x98, 0x97, 0xac, 0x55, + 0xd9, 0x78, 0xb4, 0x93, 0x27, 0x8f, 0x77, 0xf2, 0xe4, 0xaf, 0x9d, 0x3c, 0xb9, 0xff, 0x34, 0x3f, + 0xf0, 0xf8, 0x69, 0x7e, 0xe0, 0x8f, 0xa7, 0xf9, 0x81, 0x77, 0xae, 0xd4, 0x4c, 0xe7, 0xce, 0xd6, + 0x6a, 0x71, 0xcd, 0xda, 0xc4, 0x35, 0x17, 0xc5, 0xff, 0x95, 0xac, 0x59, 0x1b, 0xf8, 0xdc, 0xf1, + 0xa8, 0xbd, 0xaf, 0x5e, 0x78, 0x63, 0x92, 0xad, 0x08, 0x56, 0x87, 0x85, 0xdd, 0x99, 0x7f, 0x03, + 0x00, 0x00, 0xff, 0xff, 0x71, 0x26, 0x1c, 0x44, 0xea, 0x1a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1584,7 +1688,11 @@ type QueryClient interface { // Queries a single KeyRequest by its id. KeyRequestById(ctx context.Context, in *QueryKeyRequestByIdRequest, opts ...grpc.CallOption) (*QueryKeyRequestByIdResponse, error) // Queries a list of Keys items. - Keys(ctx context.Context, in *QueryKeysRequest, opts ...grpc.CallOption) (*QueryKeysResponse, error) + AllKeys(ctx context.Context, in *QueryAllKeysRequest, opts ...grpc.CallOption) (*QueryKeysResponse, error) + // Queries a list of Keys items by their Space ID. + KeysBySpaceId(ctx context.Context, in *QueryKeysBySpaceIdRequest, opts ...grpc.CallOption) (*QueryKeysResponse, error) + // Queries a Key by its ID. + KeyById(ctx context.Context, in *QueryKeyByIdRequest, opts ...grpc.CallOption) (*QueryKeyResponse, error) // Queries a list of SignatureRequests items. SignatureRequests(ctx context.Context, in *QuerySignatureRequestsRequest, opts ...grpc.CallOption) (*QuerySignatureRequestsResponse, error) // Queries a single SignatureRequest by its id. @@ -1675,9 +1783,27 @@ func (c *queryClient) KeyRequestById(ctx context.Context, in *QueryKeyRequestByI return out, nil } -func (c *queryClient) Keys(ctx context.Context, in *QueryKeysRequest, opts ...grpc.CallOption) (*QueryKeysResponse, error) { +func (c *queryClient) AllKeys(ctx context.Context, in *QueryAllKeysRequest, opts ...grpc.CallOption) (*QueryKeysResponse, error) { + out := new(QueryKeysResponse) + err := c.cc.Invoke(ctx, "/warden.warden.v1beta2.Query/AllKeys", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) KeysBySpaceId(ctx context.Context, in *QueryKeysBySpaceIdRequest, opts ...grpc.CallOption) (*QueryKeysResponse, error) { out := new(QueryKeysResponse) - err := c.cc.Invoke(ctx, "/warden.warden.v1beta2.Query/Keys", in, out, opts...) + err := c.cc.Invoke(ctx, "/warden.warden.v1beta2.Query/KeysBySpaceId", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) KeyById(ctx context.Context, in *QueryKeyByIdRequest, opts ...grpc.CallOption) (*QueryKeyResponse, error) { + out := new(QueryKeyResponse) + err := c.cc.Invoke(ctx, "/warden.warden.v1beta2.Query/KeyById", in, out, opts...) if err != nil { return nil, err } @@ -1739,7 +1865,11 @@ type QueryServer interface { // Queries a single KeyRequest by its id. KeyRequestById(context.Context, *QueryKeyRequestByIdRequest) (*QueryKeyRequestByIdResponse, error) // Queries a list of Keys items. - Keys(context.Context, *QueryKeysRequest) (*QueryKeysResponse, error) + AllKeys(context.Context, *QueryAllKeysRequest) (*QueryKeysResponse, error) + // Queries a list of Keys items by their Space ID. + KeysBySpaceId(context.Context, *QueryKeysBySpaceIdRequest) (*QueryKeysResponse, error) + // Queries a Key by its ID. + KeyById(context.Context, *QueryKeyByIdRequest) (*QueryKeyResponse, error) // Queries a list of SignatureRequests items. SignatureRequests(context.Context, *QuerySignatureRequestsRequest) (*QuerySignatureRequestsResponse, error) // Queries a single SignatureRequest by its id. @@ -1778,8 +1908,14 @@ func (*UnimplementedQueryServer) KeyRequests(ctx context.Context, req *QueryKeyR func (*UnimplementedQueryServer) KeyRequestById(ctx context.Context, req *QueryKeyRequestByIdRequest) (*QueryKeyRequestByIdResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KeyRequestById not implemented") } -func (*UnimplementedQueryServer) Keys(ctx context.Context, req *QueryKeysRequest) (*QueryKeysResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Keys not implemented") +func (*UnimplementedQueryServer) AllKeys(ctx context.Context, req *QueryAllKeysRequest) (*QueryKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AllKeys not implemented") +} +func (*UnimplementedQueryServer) KeysBySpaceId(ctx context.Context, req *QueryKeysBySpaceIdRequest) (*QueryKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KeysBySpaceId not implemented") +} +func (*UnimplementedQueryServer) KeyById(ctx context.Context, req *QueryKeyByIdRequest) (*QueryKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KeyById not implemented") } func (*UnimplementedQueryServer) SignatureRequests(ctx context.Context, req *QuerySignatureRequestsRequest) (*QuerySignatureRequestsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SignatureRequests not implemented") @@ -1942,20 +2078,56 @@ func _Query_KeyRequestById_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } -func _Query_Keys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryKeysRequest) +func _Query_AllKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllKeysRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).AllKeys(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/warden.warden.v1beta2.Query/AllKeys", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).AllKeys(ctx, req.(*QueryAllKeysRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_KeysBySpaceId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryKeysBySpaceIdRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).Keys(ctx, in) + return srv.(QueryServer).KeysBySpaceId(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/warden.warden.v1beta2.Query/Keys", + FullMethod: "/warden.warden.v1beta2.Query/KeysBySpaceId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Keys(ctx, req.(*QueryKeysRequest)) + return srv.(QueryServer).KeysBySpaceId(ctx, req.(*QueryKeysBySpaceIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_KeyById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryKeyByIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).KeyById(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/warden.warden.v1beta2.Query/KeyById", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).KeyById(ctx, req.(*QueryKeyByIdRequest)) } return interceptor(ctx, in, info, handler) } @@ -2069,8 +2241,16 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_KeyRequestById_Handler, }, { - MethodName: "Keys", - Handler: _Query_Keys_Handler, + MethodName: "AllKeys", + Handler: _Query_AllKeys_Handler, + }, + { + MethodName: "KeysBySpaceId", + Handler: _Query_KeysBySpaceId_Handler, + }, + { + MethodName: "KeyById", + Handler: _Query_KeyById_Handler, }, { MethodName: "SignatureRequests", @@ -2647,7 +2827,7 @@ func (m *QueryKeyRequestByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *QueryKeysRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAllKeysRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2657,30 +2837,33 @@ func (m *QueryKeysRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryKeysRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllKeysRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryKeysRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllKeysRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.KeyId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.KeyId)) + if len(m.DeriveWallets) > 0 { + dAtA13 := make([]byte, len(m.DeriveWallets)*10) + var j12 int + for _, num := range m.DeriveWallets { + for num >= 1<<7 { + dAtA13[j12] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j12++ + } + dAtA13[j12] = uint8(num) + j12++ + } + i -= j12 + copy(dAtA[i:], dAtA13[:j12]) + i = encodeVarintQuery(dAtA, i, uint64(j12)) i-- - dAtA[i] = 0x20 - } - if m.Type != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x18 - } - if m.SpaceId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.SpaceId)) - i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if m.Pagination != nil { { @@ -2746,7 +2929,7 @@ func (m *QueryKeysResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *KeyResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryKeysBySpaceIdRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2756,12 +2939,116 @@ func (m *KeyResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *KeyResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryKeysBySpaceIdRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *KeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryKeysBySpaceIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DeriveWallets) > 0 { + dAtA17 := make([]byte, len(m.DeriveWallets)*10) + var j16 int + for _, num := range m.DeriveWallets { + for num >= 1<<7 { + dAtA17[j16] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j16++ + } + dAtA17[j16] = uint8(num) + j16++ + } + i -= j16 + copy(dAtA[i:], dAtA17[:j16]) + i = encodeVarintQuery(dAtA, i, uint64(j16)) + i-- + dAtA[i] = 0x1a + } + if m.SpaceId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.SpaceId)) + i-- + dAtA[i] = 0x10 + } + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryKeyByIdRequest) 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 *QueryKeyByIdRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryKeyByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DeriveWallets) > 0 { + dAtA20 := make([]byte, len(m.DeriveWallets)*10) + var j19 int + for _, num := range m.DeriveWallets { + for num >= 1<<7 { + dAtA20[j19] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j19++ + } + dAtA20[j19] = uint8(num) + j19++ + } + i -= j19 + copy(dAtA[i:], dAtA20[:j19]) + i = encodeVarintQuery(dAtA, i, uint64(j19)) + i-- + dAtA[i] = 0x12 + } + if m.Id != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryKeyResponse) 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 *QueryKeyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2780,18 +3067,16 @@ func (m *KeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x12 } } - if m.Key != nil { - { - size, err := m.Key.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) + { + size, err := m.Key.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -3424,7 +3709,7 @@ func (m *QueryKeyRequestByIdResponse) Size() (n int) { return n } -func (m *QueryKeysRequest) Size() (n int) { +func (m *QueryAllKeysRequest) Size() (n int) { if m == nil { return 0 } @@ -3434,14 +3719,12 @@ func (m *QueryKeysRequest) Size() (n int) { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } - if m.SpaceId != 0 { - n += 1 + sovQuery(uint64(m.SpaceId)) - } - if m.Type != 0 { - n += 1 + sovQuery(uint64(m.Type)) - } - if m.KeyId != 0 { - n += 1 + sovQuery(uint64(m.KeyId)) + if len(m.DeriveWallets) > 0 { + l = 0 + for _, e := range m.DeriveWallets { + l += sovQuery(uint64(e)) + } + n += 1 + sovQuery(uint64(l)) + l } return n } @@ -3465,16 +3748,56 @@ func (m *QueryKeysResponse) Size() (n int) { return n } -func (m *KeyResponse) Size() (n int) { +func (m *QueryKeysBySpaceIdRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Key != nil { - l = m.Key.Size() + if m.Pagination != nil { + l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } + if m.SpaceId != 0 { + n += 1 + sovQuery(uint64(m.SpaceId)) + } + if len(m.DeriveWallets) > 0 { + l = 0 + for _, e := range m.DeriveWallets { + l += sovQuery(uint64(e)) + } + n += 1 + sovQuery(uint64(l)) + l + } + return n +} + +func (m *QueryKeyByIdRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovQuery(uint64(m.Id)) + } + if len(m.DeriveWallets) > 0 { + l = 0 + for _, e := range m.DeriveWallets { + l += sovQuery(uint64(e)) + } + n += 1 + sovQuery(uint64(l)) + l + } + return n +} + +func (m *QueryKeyResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Key.Size() + n += 1 + l + sovQuery(uint64(l)) if len(m.Wallets) > 0 { for _, e := range m.Wallets { l = e.Size() @@ -5043,7 +5366,7 @@ func (m *QueryKeyRequestByIdResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryKeysRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAllKeysRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5066,10 +5389,10 @@ func (m *QueryKeysRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryKeysRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAllKeysRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAllKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5109,29 +5432,129 @@ func (m *QueryKeysRequest) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SpaceId", wireType) - } - m.SpaceId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { + if wireType == 0 { + var v WalletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= WalletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DeriveWallets = append(m.DeriveWallets, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - m.SpaceId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + var elementCount int + if elementCount != 0 && len(m.DeriveWallets) == 0 { + m.DeriveWallets = make([]WalletType, 0, elementCount) + } + for iNdEx < postIndex { + var v WalletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= WalletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DeriveWallets = append(m.DeriveWallets, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field DeriveWallets", wireType) } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err } - m.Type = 0 + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryKeysResponse) 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 ErrIntOverflowQuery + } + 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: QueryKeysResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5141,16 +5564,33 @@ func (m *QueryKeysRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= WalletType(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyId", wireType) + if msglen < 0 { + return ErrInvalidLengthQuery } - m.KeyId = 0 + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) + } + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5160,11 +5600,26 @@ func (m *QueryKeysRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyId |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Keys = append(m.Keys, QueryKeyResponse{}) + if err := m.Keys[len(m.Keys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -5186,7 +5641,7 @@ func (m *QueryKeysRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryKeysResponse) Unmarshal(dAtA []byte) error { +func (m *QueryKeysBySpaceIdRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5209,10 +5664,10 @@ func (m *QueryKeysResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryKeysResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryKeysBySpaceIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryKeysBySpaceIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5245,17 +5700,17 @@ func (m *QueryKeysResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Pagination == nil { - m.Pagination = &query.PageResponse{} + m.Pagination = &query.PageRequest{} } if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SpaceId", wireType) } - var msglen int + m.SpaceId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -5265,26 +5720,218 @@ func (m *QueryKeysResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.SpaceId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthQuery + case 3: + if wireType == 0 { + var v WalletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= WalletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DeriveWallets = append(m.DeriveWallets, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + if elementCount != 0 && len(m.DeriveWallets) == 0 { + m.DeriveWallets = make([]WalletType, 0, elementCount) + } + for iNdEx < postIndex { + var v WalletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= WalletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DeriveWallets = append(m.DeriveWallets, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field DeriveWallets", wireType) } - postIndex := iNdEx + msglen - if postIndex < 0 { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.Keys = append(m.Keys, &KeyResponse{}) - if err := m.Keys[len(m.Keys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryKeyByIdRequest) 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 ErrIntOverflowQuery + } + 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: QueryKeyByIdRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryKeyByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType == 0 { + var v WalletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= WalletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DeriveWallets = append(m.DeriveWallets, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + if elementCount != 0 && len(m.DeriveWallets) == 0 { + m.DeriveWallets = make([]WalletType, 0, elementCount) + } + for iNdEx < postIndex { + var v WalletType + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= WalletType(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DeriveWallets = append(m.DeriveWallets, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field DeriveWallets", wireType) } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -5306,7 +5953,7 @@ func (m *QueryKeysResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *KeyResponse) Unmarshal(dAtA []byte) error { +func (m *QueryKeyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5329,10 +5976,10 @@ func (m *KeyResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: KeyResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: KeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5364,9 +6011,6 @@ func (m *KeyResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Key == nil { - m.Key = &Key{} - } if err := m.Key.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -5400,7 +6044,7 @@ func (m *KeyResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Wallets = append(m.Wallets, &WalletKeyResponse{}) + m.Wallets = append(m.Wallets, WalletKeyResponse{}) if err := m.Wallets[len(m.Wallets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/warden/x/warden/types/v1beta2/query.pb.gw.go b/warden/x/warden/types/v1beta2/query.pb.gw.go index f7e48b6d2..69077c8b6 100644 --- a/warden/x/warden/types/v1beta2/query.pb.gw.go +++ b/warden/x/warden/types/v1beta2/query.pb.gw.go @@ -304,37 +304,109 @@ func local_request_Query_KeyRequestById_0(ctx context.Context, marshaler runtime } var ( - filter_Query_Keys_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_AllKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_Keys_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryKeysRequest +func request_Query_AllKeys_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllKeysRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Keys_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AllKeys_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.Keys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.AllKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_Keys_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryKeysRequest +func local_request_Query_AllKeys_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllKeysRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_Keys_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AllKeys_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.Keys(ctx, &protoReq) + msg, err := server.AllKeys(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_KeysBySpaceId_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_KeysBySpaceId_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryKeysBySpaceIdRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_KeysBySpaceId_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.KeysBySpaceId(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_KeysBySpaceId_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryKeysBySpaceIdRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_KeysBySpaceId_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.KeysBySpaceId(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_KeyById_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_KeyById_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryKeyByIdRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_KeyById_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.KeyById(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_KeyById_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryKeyByIdRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_KeyById_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.KeyById(ctx, &protoReq) return msg, metadata, err } @@ -673,7 +745,30 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_Keys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_AllKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_AllKeys_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AllKeys_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_KeysBySpaceId_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -684,7 +779,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_Keys_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_KeysBySpaceId_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -692,7 +787,30 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_Keys_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_KeysBySpaceId_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_KeyById_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_KeyById_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_KeyById_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -989,7 +1107,27 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_Keys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_AllKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_AllKeys_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_AllKeys_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_KeysBySpaceId_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -998,14 +1136,34 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_Keys_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_KeysBySpaceId_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_Keys_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_KeysBySpaceId_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_KeyById_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_KeyById_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_KeyById_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1109,7 +1267,11 @@ var ( pattern_Query_KeyRequestById_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 0, 2, 1, 2, 2}, []string{"warden", "v1beta2", "key_request_by_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Keys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 0, 2, 1, 2, 2}, []string{"warden", "v1beta2", "keys"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_AllKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 0, 2, 1, 2, 2}, []string{"warden", "v1beta2", "keys"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_KeysBySpaceId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 0, 2, 1, 2, 2}, []string{"warden", "v1beta2", "keys_by_space_id"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_KeyById_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 0, 2, 1, 2, 2}, []string{"warden", "v1beta2", "key_by_id"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_SignatureRequests_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 0, 2, 1, 2, 2}, []string{"warden", "v1beta2", "get_signature_requests"}, "", runtime.AssumeColonVerbOpt(false))) @@ -1137,7 +1299,11 @@ var ( forward_Query_KeyRequestById_0 = runtime.ForwardResponseMessage - forward_Query_Keys_0 = runtime.ForwardResponseMessage + forward_Query_AllKeys_0 = runtime.ForwardResponseMessage + + forward_Query_KeysBySpaceId_0 = runtime.ForwardResponseMessage + + forward_Query_KeyById_0 = runtime.ForwardResponseMessage forward_Query_SignatureRequests_0 = runtime.ForwardResponseMessage From 9d73e7adca8f7b2fb9cb02e06c84dc966757685a Mon Sep 17 00:00:00 2001 From: Antonio Pitasi Date: Mon, 25 Mar 2024 11:53:26 +0100 Subject: [PATCH 2/3] chore(spaceward): regen hooks --- docs/static/openapi.yml | 14247 +++++++--------- .../src/hooks/useWardenWardenV1Beta2/index.ts | 32 +- ts-client/cosmos.auth.v1beta1/module.ts | 612 +- ts-client/cosmos.auth.v1beta1/registry.ts | 76 +- ts-client/cosmos.authz.v1beta1/module.ts | 402 +- ts-client/cosmos.authz.v1beta1/registry.ts | 52 +- ts-client/cosmos.bank.v1beta1/module.ts | 1046 +- ts-client/cosmos.bank.v1beta1/registry.ts | 124 +- ts-client/cosmos.base.node.v1beta1/module.ts | 92 +- .../cosmos.base.node.v1beta1/registry.ts | 8 +- .../cosmos.base.tendermint.v1beta1/module.ts | 416 +- .../registry.ts | 48 +- ts-client/cosmos.circuit.v1/module.ts | 338 +- ts-client/cosmos.circuit.v1/registry.ts | 32 +- ts-client/cosmos.crisis.v1beta1/module.ts | 48 +- ts-client/cosmos.crisis.v1beta1/registry.ts | 4 +- .../cosmos.distribution.v1beta1/module.ts | 1276 +- .../cosmos.distribution.v1beta1/registry.ts | 172 +- ts-client/cosmos.evidence.v1beta1/module.ts | 170 +- ts-client/cosmos.evidence.v1beta1/registry.ts | 16 +- ts-client/cosmos.feegrant.v1beta1/module.ts | 312 +- ts-client/cosmos.feegrant.v1beta1/registry.ts | 48 +- ts-client/cosmos.gov.v1/module.ts | 986 +- ts-client/cosmos.gov.v1/registry.ts | 128 +- ts-client/cosmos.gov.v1beta1/module.ts | 780 +- ts-client/cosmos.gov.v1beta1/registry.ts | 104 +- ts-client/cosmos.group.v1/module.ts | 1774 +- ts-client/cosmos.group.v1/registry.ts | 248 +- ts-client/cosmos.mint.v1beta1/module.ts | 248 +- ts-client/cosmos.mint.v1beta1/registry.ts | 28 +- ts-client/cosmos.params.v1beta1/module.ts | 158 +- ts-client/cosmos.params.v1beta1/registry.ts | 16 +- ts-client/cosmos.slashing.v1beta1/module.ts | 356 +- ts-client/cosmos.slashing.v1beta1/registry.ts | 36 +- ts-client/cosmos.staking.v1beta1/module.ts | 1538 +- ts-client/cosmos.staking.v1beta1/registry.ts | 212 +- ts-client/cosmos.tx.v1beta1/module.ts | 704 +- ts-client/cosmos.tx.v1beta1/registry.ts | 84 +- ts-client/cosmos.upgrade.v1beta1/module.ts | 410 +- ts-client/cosmos.upgrade.v1beta1/registry.ts | 48 +- ts-client/cosmos.vesting.v1beta1/module.ts | 282 +- ts-client/cosmos.vesting.v1beta1/registry.ts | 32 +- ts-client/ibc.applications.fee.v1/module.ts | 890 +- ts-client/ibc.applications.fee.v1/registry.ts | 112 +- .../module.ts | 222 +- .../registry.ts | 24 +- .../module.ts | 96 +- .../registry.ts | 12 +- .../ibc.applications.transfer.v1/module.ts | 476 +- .../ibc.applications.transfer.v1/registry.ts | 56 +- ts-client/ibc.core.channel.v1/module.ts | 1308 +- ts-client/ibc.core.channel.v1/registry.ts | 172 +- ts-client/ibc.core.client.v1/module.ts | 966 +- ts-client/ibc.core.client.v1/registry.ts | 116 +- ts-client/ibc.core.connection.v1/module.ts | 636 +- ts-client/ibc.core.connection.v1/registry.ts | 76 +- ts-client/lib/cosmos.auth.v1beta1/module.d.ts | 312 +- ts-client/lib/cosmos.auth.v1beta1/module.js | 396 +- ts-client/lib/cosmos.auth.v1beta1/registry.js | 76 +- .../lib/cosmos.authz.v1beta1/module.d.ts | 222 +- ts-client/lib/cosmos.authz.v1beta1/module.js | 280 +- .../lib/cosmos.authz.v1beta1/registry.js | 52 +- ts-client/lib/cosmos.bank.v1beta1/module.d.ts | 530 +- ts-client/lib/cosmos.bank.v1beta1/module.js | 696 +- ts-client/lib/cosmos.bank.v1beta1/registry.js | 128 +- .../lib/cosmos.base.node.v1beta1/module.d.ts | 38 +- .../lib/cosmos.base.node.v1beta1/module.js | 62 +- .../lib/cosmos.base.node.v1beta1/registry.js | 8 +- .../module.d.ts | 230 +- .../cosmos.base.tendermint.v1beta1/module.js | 308 +- .../registry.js | 56 +- ts-client/lib/cosmos.circuit.v1/module.d.ts | 156 +- ts-client/lib/cosmos.circuit.v1/module.js | 220 +- ts-client/lib/cosmos.circuit.v1/registry.js | 36 +- ts-client/lib/cosmos.consensus.v1/module.d.ts | 24 +- ts-client/lib/cosmos.consensus.v1/module.js | 44 +- ts-client/lib/cosmos.consensus.v1/registry.js | 4 +- .../lib/cosmos.crisis.v1beta1/module.d.ts | 24 +- ts-client/lib/cosmos.crisis.v1beta1/module.js | 44 +- .../lib/cosmos.crisis.v1beta1/registry.js | 4 +- .../cosmos.distribution.v1beta1/module.d.ts | 678 +- .../lib/cosmos.distribution.v1beta1/module.js | 818 +- .../cosmos.distribution.v1beta1/registry.js | 176 +- .../lib/cosmos.evidence.v1beta1/module.d.ts | 70 +- .../lib/cosmos.evidence.v1beta1/module.js | 94 +- .../lib/cosmos.evidence.v1beta1/registry.js | 16 +- .../lib/cosmos.feegrant.v1beta1/module.d.ts | 198 +- .../lib/cosmos.feegrant.v1beta1/module.js | 250 +- .../lib/cosmos.feegrant.v1beta1/registry.js | 48 +- ts-client/lib/cosmos.gov.v1/module.d.ts | 484 +- ts-client/lib/cosmos.gov.v1/module.js | 634 +- ts-client/lib/cosmos.gov.v1/registry.js | 116 +- ts-client/lib/cosmos.gov.v1beta1/module.d.ts | 412 +- ts-client/lib/cosmos.gov.v1beta1/module.js | 528 +- ts-client/lib/cosmos.gov.v1beta1/registry.js | 100 +- ts-client/lib/cosmos.group.v1/module.d.ts | 994 +- ts-client/lib/cosmos.group.v1/module.js | 1226 +- ts-client/lib/cosmos.group.v1/registry.js | 252 +- ts-client/lib/cosmos.mint.v1beta1/module.d.ts | 120 +- ts-client/lib/cosmos.mint.v1beta1/module.js | 162 +- ts-client/lib/cosmos.mint.v1beta1/registry.js | 28 +- .../lib/cosmos.params.v1beta1/module.d.ts | 68 +- ts-client/lib/cosmos.params.v1beta1/module.js | 100 +- .../lib/cosmos.params.v1beta1/registry.js | 16 +- .../lib/cosmos.slashing.v1beta1/module.d.ts | 190 +- .../lib/cosmos.slashing.v1beta1/module.js | 248 +- .../lib/cosmos.slashing.v1beta1/registry.js | 44 +- .../types/google/protobuf/descriptor.d.ts | 346 +- .../lib/cosmos.staking.v1beta1/module.d.ts | 836 +- .../lib/cosmos.staking.v1beta1/module.js | 1044 +- .../lib/cosmos.staking.v1beta1/registry.js | 208 +- ts-client/lib/cosmos.tx.v1beta1/module.d.ts | 374 +- ts-client/lib/cosmos.tx.v1beta1/module.js | 468 +- ts-client/lib/cosmos.tx.v1beta1/registry.js | 92 +- .../lib/cosmos.upgrade.v1beta1/module.d.ts | 212 +- .../lib/cosmos.upgrade.v1beta1/module.js | 266 +- .../lib/cosmos.upgrade.v1beta1/registry.js | 52 +- .../lib/cosmos.vesting.v1beta1/module.d.ts | 140 +- .../lib/cosmos.vesting.v1beta1/module.js | 186 +- .../lib/cosmos.vesting.v1beta1/registry.js | 32 +- .../lib/ibc.applications.fee.v1/module.d.ts | 496 +- .../lib/ibc.applications.fee.v1/module.js | 612 +- .../lib/ibc.applications.fee.v1/registry.js | 128 +- .../module.d.ts | 124 +- .../module.js | 170 +- .../registry.js | 28 +- .../ibc.applications.transfer.v1/module.d.ts | 210 +- .../ibc.applications.transfer.v1/module.js | 266 +- .../ibc.applications.transfer.v1/registry.js | 52 +- ts-client/lib/ibc.core.channel.v1/module.d.ts | 710 +- ts-client/lib/ibc.core.channel.v1/module.js | 876 +- ts-client/lib/ibc.core.channel.v1/registry.js | 180 +- ts-client/lib/ibc.core.client.v1/module.d.ts | 508 +- ts-client/lib/ibc.core.client.v1/module.js | 638 +- ts-client/lib/ibc.core.client.v1/registry.js | 128 +- .../lib/ibc.core.connection.v1/module.d.ts | 360 +- .../lib/ibc.core.connection.v1/module.js | 458 +- .../lib/ibc.core.connection.v1/registry.js | 92 +- ts-client/lib/index.d.ts | 6736 ++++---- ts-client/lib/warden.intent/module.d.ts | 278 +- ts-client/lib/warden.intent/module.js | 382 +- ts-client/lib/warden.intent/registry.js | 64 +- ts-client/lib/warden.intent/rest.d.ts | 67 +- .../types/warden/intent/action.d.ts | 141 +- .../types/warden/intent/action.js | 33 +- .../types/warden/intent/intent.d.ts | 15 +- .../types/warden/intent/intent.js | 36 +- .../types/warden/intent/query.d.ts | 340 +- .../lib/warden.warden.v1beta1/module.d.ts | 830 +- ts-client/lib/warden.warden.v1beta1/module.js | 1018 +- .../lib/warden.warden.v1beta1/registry.js | 212 +- ts-client/lib/warden.warden.v1beta1/rest.d.ts | 25 +- .../types/warden/intent/action.d.ts | 141 +- .../types/warden/intent/action.js | 33 +- .../types/warden/intent/intent.d.ts | 54 + .../types/warden/intent/intent.js | 140 + .../lib/warden.warden.v1beta2/module.d.ts | 878 +- ts-client/lib/warden.warden.v1beta2/module.js | 1114 +- .../lib/warden.warden.v1beta2/registry.js | 224 +- ts-client/lib/warden.warden.v1beta2/rest.d.ts | 127 +- ts-client/lib/warden.warden.v1beta2/rest.js | 30 +- .../types/warden/intent/action.d.ts | 141 +- .../types/warden/intent/action.js | 33 +- .../types/warden/intent/intent.d.ts | 54 + .../types/warden/intent/intent.js | 140 + .../types/warden/warden/v1beta2/genesis.d.ts | 20 + .../types/warden/warden/v1beta2/key.d.ts | 16 + .../types/warden/warden/v1beta2/key.js | 32 +- .../types/warden/warden/v1beta2/query.d.ts | 197 +- .../types/warden/warden/v1beta2/query.js | 279 +- .../types/warden/warden/v1beta2/tx.d.ts | 52 + .../types/warden/warden/v1beta2/tx.js | 153 +- ts-client/warden.intent/module.ts | 612 +- ts-client/warden.intent/registry.ts | 76 +- ts-client/warden.warden.v1beta1/module.ts | 1552 +- ts-client/warden.warden.v1beta1/registry.ts | 216 +- .../warden.warden.v1beta2/api.swagger.yml | 327 +- ts-client/warden.warden.v1beta2/module.ts | 1636 +- ts-client/warden.warden.v1beta2/registry.ts | 228 +- ts-client/warden.warden.v1beta2/rest.ts | 120 +- .../types/warden/warden/v1beta2/query.ts | 360 +- 181 files changed, 36887 insertions(+), 37492 deletions(-) create mode 100644 ts-client/lib/warden.warden.v1beta1/types/warden/intent/intent.d.ts create mode 100644 ts-client/lib/warden.warden.v1beta1/types/warden/intent/intent.js create mode 100644 ts-client/lib/warden.warden.v1beta2/types/warden/intent/intent.d.ts create mode 100644 ts-client/lib/warden.warden.v1beta2/types/warden/intent/intent.js diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 3e171daf1..2fefdd368 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -19205,245 +19205,18 @@ paths: parameters. tags: - Msg - /wardenprotocol/warden/intent/action_by_id: - get: - operationId: WardenIntentQuery_ActionById + /warden.intent.Msg/ApproveAction: + post: + summary: Add an approval to an existing Action. + operationId: WardenIntentMsg_ApproveAction responses: '200': description: A successful response. schema: type: object properties: - action: - type: object - properties: - id: - type: string - format: uint64 - approvers: - type: array - items: - type: object - properties: - address: - type: string - title: address is the address of the approver - approved_at: - type: string - format: date-time - title: >- - approved_at is a timestamp specifying when the - approver approved an action - status: - type: string - enum: - - ACTION_STATUS_UNSPECIFIED - - ACTION_STATUS_PENDING - - ACTION_STATUS_COMPLETED - - ACTION_STATUS_REVOKED - - ACTION_STATUS_TIMEOUT - default: ACTION_STATUS_UNSPECIFIED - description: |- - Current status of an action. - - - ACTION_STATUS_UNSPECIFIED: Unspecified status. - - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. - - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. - - ACTION_STATUS_REVOKED: Action has been revoked by its creator. - - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired - msg: - description: >- - Original message that started the action, it will be - executed when the - - intent is satisfied. - 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: {} - result: - description: >- - Result of the action, it will be set when the action is - completed. - 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: {} - creator: - type: string - btl: - type: string - format: uint64 - description: >- - BTL (blocks to live) is the block height up until this - action can be - - approved or rejected. - created_at: - type: string - format: date-time - title: >- - created_at is a timestamp specifying when the action was - created - updated_at: - type: string - format: date-time - title: >- - updated_at is a timestamp specifying when the action's - status was updated - intent: - description: >- - intent is the intent that this action is associated with. - Instead of - - storing the intent ID, we store the entire intent object - so that is - - immutable and cannot be changed later. - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - name: - type: string - definition: - type: string - description: >- - The definition of the intent written in the Shield - language. - addresses: - type: array - items: - type: string - description: >- - The list of addresses referenced from the intent - definition. - description: >- - Action wraps a message that needs to be approved by a set of - approvers. + status: + type: string default: description: An unexpected error response. schema: @@ -19636,283 +19409,249 @@ paths: "value": "1.212s" } parameters: - - name: id - in: query - required: false - type: string - format: uint64 - tags: - - Query - /wardenprotocol/warden/intent/actions: - get: - summary: Queries a list of Actions items. - operationId: WardenIntentQuery_Actions - responses: - '200': - description: A successful response. + - name: body + in: body + required: true schema: type: object properties: - 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; - } - actions: + creator: + type: string + action_type: + type: string + action_id: + type: string + format: uint64 + tags: + - Msg + /warden.intent.Msg/NewIntent: + post: + summary: Create a new intent. + operationId: WardenIntentMsg_NewIntent + responses: + '200': + description: A successful response. + schema: + type: object + properties: + id: + 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: - id: - type: string - format: uint64 - approvers: - type: array - items: - type: object - properties: - address: - type: string - title: address is the address of the approver - approved_at: - type: string - format: date-time - title: >- - approved_at is a timestamp specifying when the - approver approved an action - status: + '@type': type: string - enum: - - ACTION_STATUS_UNSPECIFIED - - ACTION_STATUS_PENDING - - ACTION_STATUS_COMPLETED - - ACTION_STATUS_REVOKED - - ACTION_STATUS_TIMEOUT - default: ACTION_STATUS_UNSPECIFIED - description: |- - Current status of an action. - - - ACTION_STATUS_UNSPECIFIED: Unspecified status. - - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. - - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. - - ACTION_STATUS_REVOKED: Action has been revoked by its creator. - - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired - msg: description: >- - Original message that started the action, it will be - executed when the + A URL/resource name that uniquely identifies the type of + the serialized - intent is satisfied. - 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 - protocol buffer message. This string must contain at - least + 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). - 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 - (e.g., leading "." is not accepted). + scheme `http`, `https`, or no scheme, one can optionally + set up a type + server that maps type URLs to message definitions as + follows: - 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 + * If no scheme is provided, `https` is assumed. - scheme `http`, `https`, or no scheme, one can - optionally set up a 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.) - server that maps type URLs to message definitions as - follows: + Note: this functionality is not currently available in + the official + protobuf release, and it is not used for type URLs + beginning with - * If no scheme is provided, `https` is assumed. + type.googleapis.com. As of May 2023, there are no widely + used type server - * 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.) + implementations and no plans to implement one. - Note: this functionality is not currently available - in the official - protobuf release, and it is not used for type URLs - beginning with + Schemes other than `http`, `https` (or the empty scheme) + might be - type.googleapis.com. As of May 2023, there are no - widely used type server + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - implementations and no plans to implement one. + URL that describes the type of the serialized message. - Schemes other than `http`, `https` (or the empty - scheme) might be + Protobuf library provides support to pack/unpack Any values + in the form - used with implementation specific semantics. - additionalProperties: {} - result: - description: >- - Result of the action, it will be set when the action is - completed. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the - type of the serialized + of utility functions or additional generated methods of the + Any type. - protocol buffer message. This string must contain at - least - one "/" character. The last segment of the URL's - path must represent + Example 1: Pack and unpack a message in C++. - the fully qualified name of the type (as in + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - `path/google.protobuf.Duration`). The name should be - in a canonical form + Example 2: Pack and unpack a message in Java. - (e.g., leading "." is not accepted). + 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. - In practice, teams usually precompile into the - binary all types that they + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - expect it to use in the context of Any. However, for - URLs which use the + Example 4: Pack and unpack a message in Go - scheme `http`, `https`, or no scheme, one can - optionally set up a type + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - server that maps type URLs to message definitions as - follows: + The pack methods provided by protobuf library will by + default use + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - * If no scheme is provided, `https` is assumed. + methods only use the fully qualified type name after the + last '/' - * 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.) + 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: {} - creator: - type: string - btl: - type: string - format: uint64 - description: >- - BTL (blocks to live) is the block height up until this - action can be + additional field `@type` which contains the type URL. + Example: - approved or rejected. - created_at: - type: string - format: date-time - title: >- - created_at is a timestamp specifying when the action was - created - updated_at: - type: string - format: date-time - title: >- - updated_at is a timestamp specifying when the action's - status was updated - intent: - description: >- - intent is the intent that this action is associated - with. Instead of + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - storing the intent ID, we store the entire intent object - so that is + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - immutable and cannot be changed later. - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - name: - type: string - definition: - type: string - description: >- - The definition of the intent written in the Shield - language. - addresses: - type: array - items: - type: string - description: >- - The list of addresses referenced from the intent - definition. - description: >- - Action wraps a message that needs to be approved by a set of - approvers. + 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: + creator: + type: string + name: + type: string + definition: + type: string + tags: + - Msg + /warden.intent.Msg/RevokeAction: + post: + summary: Revoke an existing Action while in pending state. + operationId: WardenIntentMsg_RevokeAction + responses: + '200': + description: A successful response. + schema: + type: object default: description: An unexpected error response. schema: @@ -20105,334 +19844,37 @@ paths: "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. - - 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 + - name: body + in: body + required: true + schema: + type: object + properties: + creator: + type: string + action_type: + type: string + action_id: + type: string + format: uint64 tags: - - Query - /wardenprotocol/warden/intent/actions_by_address: - get: - summary: Queries a list of Actions items by one participant address. - operationId: WardenIntentQuery_ActionsByAddress + - Msg + /warden.intent.Msg/UpdateParams: + post: + summary: |- + UpdateParams defines a (governance) operation for updating the module + parameters. The authority defaults to the x/gov module account. + operationId: WardenIntentMsg_UpdateParams responses: '200': description: A successful response. schema: type: object - properties: - 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; - } - actions: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - approvers: - type: array - items: - type: object - properties: - address: - type: string - title: address is the address of the approver - approved_at: - type: string - format: date-time - title: >- - approved_at is a timestamp specifying when the - approver approved an action - status: - type: string - enum: - - ACTION_STATUS_UNSPECIFIED - - ACTION_STATUS_PENDING - - ACTION_STATUS_COMPLETED - - ACTION_STATUS_REVOKED - - ACTION_STATUS_TIMEOUT - default: ACTION_STATUS_UNSPECIFIED - description: |- - Current status of an action. - - - ACTION_STATUS_UNSPECIFIED: Unspecified status. - - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. - - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. - - ACTION_STATUS_REVOKED: Action has been revoked by its creator. - - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired - msg: - description: >- - Original message that started the action, it will be - executed when the - - intent is satisfied. - 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: {} - result: - description: >- - Result of the action, it will be set when the action is - completed. - 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: {} - creator: - type: string - btl: - type: string - format: uint64 - description: >- - BTL (blocks to live) is the block height up until this - action can be - - approved or rejected. - created_at: - type: string - format: date-time - title: >- - created_at is a timestamp specifying when the action was - created - updated_at: - type: string - format: date-time - title: >- - updated_at is a timestamp specifying when the action's - status was updated - intent: - description: >- - intent is the intent that this action is associated - with. Instead of - - storing the intent ID, we store the entire intent object - so that is + description: >- + MsgUpdateParamsResponse defines the response structure for + executing a - immutable and cannot be changed later. - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - name: - type: string - definition: - type: string - description: >- - The definition of the intent written in the Shield - language. - addresses: - type: array - items: - type: string - description: >- - The list of addresses referenced from the intent - definition. - description: >- - Action wraps a message that needs to be approved by a set of - approvers. + MsgUpdateParams message. default: description: An unexpected error response. schema: @@ -20625,320 +20067,28 @@ paths: "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. - - 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 - - name: address - in: query - required: false - type: string - - name: status - description: |2- - - ACTION_STATUS_UNSPECIFIED: Unspecified status. - - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. - - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. - - ACTION_STATUS_REVOKED: Action has been revoked by its creator. - - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired - in: query - required: false - type: string - enum: - - ACTION_STATUS_UNSPECIFIED - - ACTION_STATUS_PENDING - - ACTION_STATUS_COMPLETED - - ACTION_STATUS_REVOKED - - ACTION_STATUS_TIMEOUT - default: ACTION_STATUS_UNSPECIFIED - tags: - - Query - /wardenprotocol/warden/intent/intent_by_id: - get: - summary: Queries a list of IntentById items. - operationId: WardenIntentQuery_IntentById - responses: - '200': - description: A successful response. - schema: - type: object - properties: - intent: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - name: - type: string - definition: - type: string - description: >- - The definition of the intent written in the Shield - language. - addresses: - type: array - items: - type: string - description: >- - The list of addresses referenced from the intent - definition. - default: - description: An unexpected error response. + - name: body + description: MsgUpdateParams is the Msg/UpdateParams request type. + in: body + required: true schema: type: object properties: - code: - type: integer - format: int32 - message: + authority: 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: id - in: query - required: false - type: string - format: uint64 + 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 + description: MsgUpdateParams is the Msg/UpdateParams request type. tags: - - Query - /wardenprotocol/warden/intent/intents: + - Msg + /warden/warden/v1beta2/get_signature_requests: get: - summary: Queries a list of Intents items. - operationId: WardenIntentQuery_Intents + summary: Queries a list of SignatureRequests items. + operationId: WardenWardenV1Beta2Query_SignatureRequests responses: '200': description: A successful response. @@ -20973,7 +20123,7 @@ paths: repeated Bar results = 1; PageResponse page = 2; } - intents: + sign_requests: type: array items: type: object @@ -20983,22 +20133,59 @@ paths: format: uint64 creator: type: string - name: + key_id: type: string - definition: + format: uint64 + data_for_signing: type: string - description: >- - The definition of the intent written in the Shield - language. - addresses: - type: array - items: - type: string - description: >- - The list of addresses referenced from the intent - definition. - default: - description: An unexpected error response. + format: byte + status: + type: string + enum: + - SIGN_REQUEST_STATUS_UNSPECIFIED + - SIGN_REQUEST_STATUS_PENDING + - SIGN_REQUEST_STATUS_FULFILLED + - SIGN_REQUEST_STATUS_REJECTED + default: SIGN_REQUEST_STATUS_UNSPECIFIED + description: >- + SignRequestStatus indicates the status of a signature + request. + + A request starts as "pending", waiting to be picked up. + Then it can move to + + either "approved" or "rejected", depending on the + decision of the keychain. + + - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + key_type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: >- + KeyType indicates what crypto scheme will be used by + this key (e.g. + + ECDSA). Its public key will be one of the specified + type. + + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + signed_data: + type: string + format: byte + reject_reason: + type: string + default: + description: An unexpected error response. schema: type: object properties: @@ -21014,180 +20201,7 @@ 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: |- @@ -21245,229 +20259,108 @@ paths: in: query required: false type: boolean + - name: keychain_id + in: query + required: false + type: string + format: uint64 + - name: status + description: |- + Optional + + - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + in: query + required: false + type: string + enum: + - SIGN_REQUEST_STATUS_UNSPECIFIED + - SIGN_REQUEST_STATUS_PENDING + - SIGN_REQUEST_STATUS_FULFILLED + - SIGN_REQUEST_STATUS_REJECTED + default: SIGN_REQUEST_STATUS_UNSPECIFIED tags: - Query - /wardenprotocol/warden/intent/params: + /warden/warden/v1beta2/key_by_id: get: - summary: Parameters queries the parameters of the module. - operationId: WardenIntentQuery_Params + summary: Queries a Key by its ID. + operationId: WardenWardenV1Beta2Query_KeyById responses: '200': description: A successful response. schema: type: object properties: - params: - description: params holds all the parameters of this module. + key: type: object - 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: + properties: + id: + type: string + format: uint64 + space_id: + type: string + format: uint64 + keychain_id: + type: string + format: uint64 + type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: >- + KeyType indicates what crypto scheme will be used by this + key (e.g. + + ECDSA). Its public key will be one of the specified type. + + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + public_key: + type: string + format: byte + intent_id: + type: string + format: uint64 + description: >- + IntentId is the ID of the intent that will need to be + satisfied for using + + this key to sign data. + + If this is not set, the key will use the signing intent of + the Space. + wallets: type: array items: type: object properties: - '@type': + address: + type: string + type: type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED 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 + WalletType specifies the Layer 1 blockchain that this + wallet will be used - `value` which holds the custom JSON in addition to the - `@type` - - field. Example (for message [google.protobuf.Duration][]): + for. - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - tags: - - Query - /warden.intent.Msg/ApproveAction: - post: - summary: Add an approval to an existing Action. - operationId: WardenIntentMsg_ApproveAction - responses: - '200': - description: A successful response. - schema: - type: object - properties: - status: - type: string + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui default: description: An unexpected error response. schema: @@ -21485,209 +20378,104 @@ 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). - + additionalProperties: {} + parameters: + - name: id + in: query + required: false + type: string + format: uint64 + - name: derive_wallets + description: |- + Optional - 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 - required: true - schema: - type: object - properties: - creator: - type: string - action_type: - type: string - action_id: - type: string - format: uint64 + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + in: query + required: false + type: array + items: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + collectionFormat: multi tags: - - Msg - /warden.intent.Msg/NewIntent: - post: - summary: Create a new intent. - operationId: WardenIntentMsg_NewIntent + - Query + /warden/warden/v1beta2/key_request_by_id: + get: + summary: Queries a single KeyRequest by its id. + operationId: WardenWardenV1Beta2Query_KeyRequestById responses: '200': description: A successful response. schema: type: object properties: - id: - type: string - format: uint64 + key_request: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + space_id: + type: string + format: uint64 + keychain_id: + type: string + format: uint64 + key_type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: >- + KeyType indicates what crypto scheme will be used by this + key (e.g. + + ECDSA). Its public key will be one of the specified type. + + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + status: + type: string + enum: + - KEY_REQUEST_STATUS_UNSPECIFIED + - KEY_REQUEST_STATUS_PENDING + - KEY_REQUEST_STATUS_FULFILLED + - KEY_REQUEST_STATUS_REJECTED + default: KEY_REQUEST_STATUS_UNSPECIFIED + description: >- + KeyRequestStatus indicates the status of a key request. + + A request starts as "pending", waiting to be picked up. + Then it can move to + + either "approved" or "rejected", depending on the decision + of the keychain. + + - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + reject_reason: + type: string + intent_id: + type: string + format: uint64 + description: >- + IntentId is the ID of the intent that the resulting Key + will use. default: description: An unexpected error response. schema: @@ -21705,204 +20493,263 @@ 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. + additionalProperties: {} + parameters: + - name: id + in: query + required: false + type: string + format: uint64 + tags: + - Query + /warden/warden/v1beta2/key_requests: + get: + summary: Queries a list of KeyRequests items. + operationId: WardenWardenV1Beta2Query_KeyRequests + responses: + '200': + description: A successful response. + schema: + type: object + properties: + 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 - * 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.) + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - Note: this functionality is not currently available in - the official + corresponding request message has used PageRequest. - protobuf release, and it is not used for type URLs - beginning with + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + key_requests: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + space_id: + type: string + format: uint64 + keychain_id: + type: string + format: uint64 + key_type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: >- + KeyType indicates what crypto scheme will be used by + this key (e.g. - type.googleapis.com. As of May 2023, there are no widely - used type server + ECDSA). Its public key will be one of the specified + type. - implementations and no plans to implement one. + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + status: + type: string + enum: + - KEY_REQUEST_STATUS_UNSPECIFIED + - KEY_REQUEST_STATUS_PENDING + - KEY_REQUEST_STATUS_FULFILLED + - KEY_REQUEST_STATUS_REJECTED + default: KEY_REQUEST_STATUS_UNSPECIFIED + description: >- + KeyRequestStatus indicates the status of a key request. + A request starts as "pending", waiting to be picked up. + Then it can move to - Schemes other than `http`, `https` (or the empty scheme) - might be + either "approved" or "rejected", depending on the + decision of the keychain. - used with implementation specific semantics. + - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + reject_reason: + type: string + intent_id: + type: string + format: uint64 + description: >- + IntentId is the ID of the intent that the resulting Key + will use. + 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: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a - - URL that describes the type of the serialized message. - + 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. - Protobuf library provides support to pack/unpack Any values - in the form + It is less efficient than using key. Only one of offset or key + should - of utility functions or additional generated methods of the - Any type. + 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 - Example 1: Pack and unpack a message in C++. + a count of the total number of items available for pagination in + UIs. - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + count_total is only respected when offset is used. It is ignored + when key - Example 2: Pack and unpack a message in Java. + 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. - 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. + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + - name: keychain_id + in: query + required: false + type: string + format: uint64 + - name: status + description: |- + Optional - 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 - required: true - schema: - type: object - properties: - creator: - type: string - name: - type: string - definition: - type: string + - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + in: query + required: false + type: string + enum: + - KEY_REQUEST_STATUS_UNSPECIFIED + - KEY_REQUEST_STATUS_PENDING + - KEY_REQUEST_STATUS_FULFILLED + - KEY_REQUEST_STATUS_REJECTED + default: KEY_REQUEST_STATUS_UNSPECIFIED + - name: space_id + in: query + required: false + type: string + format: uint64 tags: - - Msg - /warden.intent.Msg/RevokeAction: - post: - summary: Revoke an existing Action while in pending state. - operationId: WardenIntentMsg_RevokeAction + - Query + /warden/warden/v1beta2/keychain_by_id: + get: + summary: Queries a keychain by its id. + operationId: WardenWardenV1Beta2Query_KeychainById responses: '200': description: A successful response. schema: type: object + properties: + keychain: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + description: + type: string + admins: + type: array + items: + type: string + parties: + type: array + items: + type: string + admin_intent_id: + type: string + format: uint64 + fees: + type: object + properties: + key_req: + type: string + format: int64 + sig_req: + type: string + format: int64 + is_active: + type: boolean default: description: An unexpected error response. schema: @@ -21920,212 +20767,87 @@ 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. + parameters: + - name: id + in: query + required: false + type: string + format: uint64 + tags: + - Query + /warden/warden/v1beta2/keychains: + get: + summary: Queries a list of Keychains items. + operationId: WardenWardenV1Beta2Query_Keychains + responses: + '200': + description: A successful response. + schema: + type: object + properties: + 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 - Protobuf library provides support to pack/unpack Any values - in the form + corresponding request message has used PageRequest. - 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 - required: true - schema: - type: object - properties: - creator: - type: string - action_type: - type: string - action_id: - type: string - format: uint64 - tags: - - Msg - /warden.intent.Msg/UpdateParams: - post: - summary: |- - UpdateParams defines a (governance) operation for updating the module - parameters. The authority defaults to the x/gov module account. - operationId: WardenIntentMsg_UpdateParams - responses: - '200': - description: A successful response. - schema: - type: object - description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + keychains: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + description: + type: string + admins: + type: array + items: + type: string + parties: + type: array + items: + type: string + admin_intent_id: + type: string + format: uint64 + fees: + type: object + properties: + key_req: + type: string + format: int64 + sig_req: + type: string + format: int64 + is_active: + type: boolean default: description: An unexpected error response. schema: @@ -22143,210 +20865,384 @@ 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). - + 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. - In practice, teams usually precompile into the binary - all types that they + It is less efficient than using key. Only one of offset or key + should - expect it to use in the context of Any. However, for - URLs which use the + 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. - scheme `http`, `https`, or no scheme, one can optionally - set up a type + 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 - server that maps type URLs to message definitions as - follows: + 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 - * If no scheme is provided, `https` is assumed. + 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. - * 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. + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /warden/warden/v1beta2/keys: + get: + summary: Queries a list of Keys items. + operationId: WardenWardenV1Beta2Query_AllKeys + responses: + '200': + description: A successful response. + schema: + type: object + properties: + 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 - Example 1: Pack and unpack a message in C++. + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + corresponding request message has used PageRequest. - Example 2: Pack and unpack a message in Java. + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + keys: + type: array + items: + type: object + properties: + key: + type: object + properties: + id: + type: string + format: uint64 + space_id: + type: string + format: uint64 + keychain_id: + type: string + format: uint64 + type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: >- + KeyType indicates what crypto scheme will be used by + this key (e.g. - 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()); - } + ECDSA). Its public key will be one of the specified + type. - Example 3: Pack and unpack a message in Python. + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + public_key: + type: string + format: byte + intent_id: + type: string + format: uint64 + description: >- + IntentId is the ID of the intent that will need to + be satisfied for using - foo = Foo(...) - any = Any() - any.Pack(foo) - ... - if any.Is(Foo.DESCRIPTOR): - any.Unpack(foo) - ... + this key to sign data. - Example 4: Pack and unpack a message in Go + If this is not set, the key will use the signing + intent of the Space. + wallets: + type: array + items: + type: object + properties: + address: + type: string + type: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED + description: >- + WalletType specifies the Layer 1 blockchain that + this wallet will be used - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + for. - The pack methods provided by protobuf library will by - default use + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + 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. - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + It is less efficient than using key. Only one of offset or key + should - methods only use the fully qualified type name after the - last '/' + 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. - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + 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 - name "y.z". + 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 - JSON + 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. - ==== - The JSON representation of an `Any` value uses the regular + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + - name: derive_wallets + description: |- + Optional - representation of the deserialized, embedded message, with - an + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + in: query + required: false + type: array + items: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + collectionFormat: multi + tags: + - Query + /warden/warden/v1beta2/keys_by_space_id: + get: + summary: Queries a list of Keys items by their Space ID. + operationId: WardenWardenV1Beta2Query_KeysBySpaceId + responses: + '200': + description: A successful response. + schema: + type: object + properties: + 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 - additional field `@type` which contains the type URL. - Example: + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + corresponding request message has used PageRequest. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + keys: + type: array + items: + type: object + properties: + key: + type: object + properties: + id: + type: string + format: uint64 + space_id: + type: string + format: uint64 + keychain_id: + type: string + format: uint64 + type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: >- + KeyType indicates what crypto scheme will be used by + this key (e.g. - If the embedded message type is well-known and has a custom - JSON + ECDSA). Its public key will be one of the specified + type. - representation, that representation will be embedded adding - a field + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + public_key: + type: string + format: byte + intent_id: + type: string + format: uint64 + description: >- + IntentId is the ID of the intent that will need to + be satisfied for using - `value` which holds the custom JSON in addition to the - `@type` + this key to sign data. - field. Example (for message [google.protobuf.Duration][]): + If this is not set, the key will use the signing + intent of the Space. + wallets: + type: array + items: + type: object + properties: + address: + type: string + type: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED + description: >- + WalletType specifies the Layer 1 blockchain that + this wallet will be used - { - "@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: - 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 - description: MsgUpdateParams is the Msg/UpdateParams request type. - tags: - - Msg - /warden.warden.v1beta2.Msg/AddKeychainParty: - post: - summary: |- - Add a new party to a keychain. Transactions coming from this party will - be considered trusted by the keychain. - operationId: WardenWardenV1Beta2Msg_AddKeychainParty - responses: - '200': - description: A successful response. - schema: - type: object + for. + + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui default: description: An unexpected error response. schema: @@ -22364,437 +21260,171 @@ 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 + 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. - (e.g., leading "." is not accepted). + 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. - In practice, teams usually precompile into the binary - all types that they + 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 - expect it to use in the context of Any. However, for - URLs which use the + a count of the total number of items available for pagination in + UIs. - scheme `http`, `https`, or no scheme, one can optionally - set up a type + count_total is only respected when offset is used. It is ignored + when key - server that maps type URLs to message definitions as - follows: + 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. - * If no scheme is provided, `https` is assumed. + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + - name: space_id + in: query + required: false + type: string + format: uint64 + - name: derive_wallets + description: |- + Optional - * 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 - required: true + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + in: query + required: false + type: array + items: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + collectionFormat: multi + tags: + - Query + /warden/warden/v1beta2/params: + get: + summary: Parameters queries the parameters of the module. + operationId: WardenWardenV1Beta2Query_Params + responses: + '200': + description: A successful response. schema: type: object properties: - creator: - type: string - keychain_id: - type: string - format: uint64 - party: + params: + description: params holds all the parameters of this module. + type: object + 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: - - Msg - /warden.warden.v1beta2.Msg/AddSpaceOwner: - post: - summary: Add a new owner to a space. - operationId: WardenWardenV1Beta2Msg_AddSpaceOwner + - Query + /warden/warden/v1beta2/sign_transaction_request_by_id: + get: + summary: Queries a list of SignTransactionRequestById items. + operationId: WardenWardenV1Beta2Query_SignTransactionRequestById responses: '200': description: A successful response. schema: type: object properties: - action: + sign_transaction_request: type: object properties: id: type: string format: uint64 - approvers: - type: array - items: - type: object - properties: - address: - type: string - title: address is the address of the approver - approved_at: - type: string - format: date-time - title: >- - approved_at is a timestamp specifying when the - approver approved an action - status: + creator: + type: string + key_id: + type: string + format: uint64 + wallet_type: type: string enum: - - ACTION_STATUS_UNSPECIFIED - - ACTION_STATUS_PENDING - - ACTION_STATUS_COMPLETED - - ACTION_STATUS_REVOKED - - ACTION_STATUS_TIMEOUT - default: ACTION_STATUS_UNSPECIFIED - description: |- - Current status of an action. - - - ACTION_STATUS_UNSPECIFIED: Unspecified status. - - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. - - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. - - ACTION_STATUS_REVOKED: Action has been revoked by its creator. - - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired - msg: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED description: >- - Original message that started the action, it will be - executed when the - - intent is satisfied. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type - of the serialized + WalletType specifies the Layer 1 blockchain that this + wallet will be used - protocol buffer message. This string must contain at - least + for. - 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: {} - result: - description: >- - Result of the action, it will be set when the action is - completed. - 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: {} - creator: + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + unsigned_transaction: type: string - btl: + format: byte + sign_request_id: type: string format: uint64 - description: >- - BTL (blocks to live) is the block height up until this - action can be - - approved or rejected. - created_at: - type: string - format: date-time - title: >- - created_at is a timestamp specifying when the action was - created - updated_at: - type: string - format: date-time - title: >- - updated_at is a timestamp specifying when the action's - status was updated - intent: - description: >- - intent is the intent that this action is associated with. - Instead of - - storing the intent ID, we store the entire intent object - so that is - - immutable and cannot be changed later. - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - name: - type: string - definition: - type: string - description: >- - The definition of the intent written in the Shield - language. - addresses: - type: array - items: - type: string - description: >- - The list of addresses referenced from the intent - definition. - description: >- - Action wraps a message that needs to be approved by a set of - approvers. - description: MsgActionCreated is returned by rpc that creates an action. default: description: An unexpected error response. schema: @@ -22812,208 +21442,152 @@ 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: + additionalProperties: {} + parameters: + - name: id + in: query + required: false + type: string + format: uint64 + tags: + - Query + /warden/warden/v1beta2/sign_transaction_requests: + get: + summary: Queries a list of SignTransactionRequests items. + operationId: WardenWardenV1Beta2Query_SignTransactionRequests + responses: + '200': + description: A successful response. + schema: + type: object + properties: + 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 - * If no scheme is provided, `https` is assumed. + corresponding request message has used PageRequest. - * 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: + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + sign_transaction_requests: + type: array + items: + type: object + properties: + sign_transaction_request: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + key_id: + type: string + format: uint64 + wallet_type: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED + description: >- + WalletType specifies the Layer 1 blockchain that + this wallet will be used - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + for. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + unsigned_transaction: + type: string + format: byte + sign_request_id: + type: string + format: uint64 + sign_request: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + key_id: + type: string + format: uint64 + data_for_signing: + type: string + format: byte + status: + type: string + enum: + - SIGN_REQUEST_STATUS_UNSPECIFIED + - SIGN_REQUEST_STATUS_PENDING + - SIGN_REQUEST_STATUS_FULFILLED + - SIGN_REQUEST_STATUS_REJECTED + default: SIGN_REQUEST_STATUS_UNSPECIFIED + description: >- + SignRequestStatus indicates the status of a + signature request. - If the embedded message type is well-known and has a custom - JSON + A request starts as "pending", waiting to be picked + up. Then it can move to - representation, that representation will be embedded adding - a field + either "approved" or "rejected", depending on the + decision of the keychain. - `value` which holds the custom JSON in addition to the - `@type` + - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + key_type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: >- + KeyType indicates what crypto scheme will be used by + this key (e.g. - field. Example (for message [google.protobuf.Duration][]): + ECDSA). Its public key will be one of the specified + type. - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - creator: - type: string - space_id: - type: string - format: uint64 - new_owner: - type: string - btl: - type: string - format: uint64 - tags: - - Msg - /warden.warden.v1beta2.Msg/FulfilSignatureRequest: - post: - summary: Fulfill a signature request - operationId: WardenWardenV1Beta2Msg_FulfilSignatureRequest - responses: - '200': - description: A successful response. - schema: - type: object + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + signed_data: + type: string + format: byte + reject_reason: + type: string default: description: An unexpected error response. schema: @@ -23031,467 +21605,666 @@ 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 + 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. - one "/" character. The last segment of the URL's path - must represent + It is less efficient than using key. Only one of offset or key + should - the fully qualified name of the type (as in + 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. - `path/google.protobuf.Duration`). The name should be in - a canonical form + 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 - (e.g., leading "." is not accepted). + 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 - In practice, teams usually precompile into the binary - all types that they + 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. - 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 + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + - name: wallet_type + description: |2- + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + in: query + required: false + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED + - name: key_id + in: query + required: false + type: string + format: uint64 + - name: status + description: |- + Optional - server that maps type URLs to message definitions as - follows: + - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + in: query + required: false + type: string + enum: + - SIGN_REQUEST_STATUS_UNSPECIFIED + - SIGN_REQUEST_STATUS_PENDING + - SIGN_REQUEST_STATUS_FULFILLED + - SIGN_REQUEST_STATUS_REJECTED + default: SIGN_REQUEST_STATUS_UNSPECIFIED + tags: + - Query + /warden/warden/v1beta2/signature_pb_request_by_id: + get: + summary: Queries a single SignatureRequest by its id. + operationId: WardenWardenV1Beta2Query_SignatureRequestById + responses: + '200': + description: A successful response. + schema: + type: object + properties: + sign_request: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + key_id: + type: string + format: uint64 + data_for_signing: + type: string + format: byte + status: + type: string + enum: + - SIGN_REQUEST_STATUS_UNSPECIFIED + - SIGN_REQUEST_STATUS_PENDING + - SIGN_REQUEST_STATUS_FULFILLED + - SIGN_REQUEST_STATUS_REJECTED + default: SIGN_REQUEST_STATUS_UNSPECIFIED + description: >- + SignRequestStatus indicates the status of a signature + request. + A request starts as "pending", waiting to be picked up. + Then it can move to - * If no scheme is provided, `https` is assumed. + either "approved" or "rejected", depending on the decision + of the keychain. - * 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.) + - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + key_type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: >- + KeyType indicates what crypto scheme will be used by this + key (e.g. - Note: this functionality is not currently available in - the official + ECDSA). Its public key will be one of the specified type. - protobuf release, and it is not used for type URLs - beginning with + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + signed_data: + type: string + format: byte + reject_reason: + 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 + in: query + required: false + type: string + format: uint64 + tags: + - Query + /warden/warden/v1beta2/space_by_address: + get: + summary: Queries a space by its id. + operationId: WardenWardenV1Beta2Query_SpaceById + responses: + '200': + description: A successful response. + schema: + type: object + properties: + space: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + owners: + type: array + items: + type: string + admin_intent_id: + type: string + format: uint64 + description: >- + Optional ID of the intent to be applied to every *admin* + operation. - type.googleapis.com. As of May 2023, there are no widely - used type server + If not specified, the default intent is used. - implementations and no plans to implement one. + Admin operations are: - Schemes other than `http`, `https` (or the empty scheme) - might be + - warden.warden.Msg.AddSpaceOwner - used with implementation specific semantics. - additionalProperties: {} - description: >- - `Any` contains an arbitrary serialized protocol buffer - message along with a + - warden.warden.Msg.RemoveSpaceOwner - URL that describes the type of the serialized message. + The default intent is to allow any operation when at least + one of its - Protobuf library provides support to pack/unpack Any values - in the form + owner approves it. + sign_intent_id: + type: string + format: uint64 + description: >- + Optional ID of the intent to be applied to every *sign* + operation. - of utility functions or additional generated methods of the - Any type. + If not specified, the default intent is used. - Example 1: Pack and unpack a message in C++. + Sign operations are: - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + - warden.warden.Msg.NewKeyRequest - Example 2: Pack and unpack a message in Java. + - warden.warden.Msg.NewSignTransactionRequest - 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()); - } + - warden.warden.Msg.NewSignatureRequest - Example 3: Pack and unpack a message in Python. + - warden.warden.Msg.NewWalletRequest - 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 default intent is to allow any operation when at least + one of its - foo := &pb.Foo{...} - any, err := anypb.New(foo) - if err != nil { - ... - } - ... - foo := &pb.Foo{} - if err := any.UnmarshalTo(foo); err != nil { - ... - } + owner approves it. + description: >- + Space is a collection of users (called owners) that manages a + set of keys. + 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 + in: query + required: false + type: string + format: uint64 + tags: + - Query + /warden/warden/v1beta2/spaces: + get: + summary: Queries a list of Spaces items. + operationId: WardenWardenV1Beta2Query_Spaces + responses: + '200': + description: A successful response. + schema: + type: object + properties: + 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 - The pack methods provided by protobuf library will by - default use + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + corresponding request message has used PageRequest. - methods only use the fully qualified type name after the - last '/' + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + spaces: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + owners: + type: array + items: + type: string + admin_intent_id: + type: string + format: uint64 + description: >- + Optional ID of the intent to be applied to every *admin* + operation. - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + If not specified, the default intent is used. - name "y.z". + Admin operations are: - JSON + - warden.warden.Msg.AddSpaceOwner - ==== + - warden.warden.Msg.RemoveSpaceOwner - The JSON representation of an `Any` value uses the regular - representation of the deserialized, embedded message, with - an + The default intent is to allow any operation when at + least one of its - additional field `@type` which contains the type URL. - Example: + owner approves it. + sign_intent_id: + type: string + format: uint64 + description: >- + Optional ID of the intent to be applied to every *sign* + operation. - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + If not specified, the default intent is used. - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } - If the embedded message type is well-known and has a custom - JSON + Sign operations are: - representation, that representation will be embedded adding - a field + - warden.warden.Msg.NewKeyRequest - `value` which holds the custom JSON in addition to the - `@type` + - warden.warden.Msg.NewSignTransactionRequest - field. Example (for message [google.protobuf.Duration][]): + - warden.warden.Msg.NewSignatureRequest - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - creator: - type: string - request_id: - type: string - format: uint64 - status: - type: string - enum: - - SIGN_REQUEST_STATUS_UNSPECIFIED - - SIGN_REQUEST_STATUS_PENDING - - SIGN_REQUEST_STATUS_FULFILLED - - SIGN_REQUEST_STATUS_REJECTED - default: SIGN_REQUEST_STATUS_UNSPECIFIED - description: >- - SignRequestStatus indicates the status of a signature request. + - warden.warden.Msg.NewWalletRequest - A request starts as "pending", waiting to be picked up. Then - it can move to - either "approved" or "rejected", depending on the decision of - the keychain. + The default intent is to allow any operation when at + least one of its - - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - payload: - type: object - properties: - signed_data: - type: string - format: byte - reject_reason: - type: string - tags: - - Msg - /warden.warden.v1beta2.Msg/NewKeyRequest: - post: - summary: |- - Request a new key to a keychain, the key will belong to the specified - space. - operationId: WardenWardenV1Beta2Msg_NewKeyRequest - responses: - '200': - description: A successful response. + owner approves it. + description: >- + Space is a collection of users (called owners) that manages + a set of keys. + default: + description: An unexpected error response. schema: type: object properties: - action: - type: object - properties: - id: - type: string - format: uint64 - approvers: - type: array - items: - type: object - properties: - address: - type: string - title: address is the address of the approver - approved_at: - type: string - format: date-time - title: >- - approved_at is a timestamp specifying when the - approver approved an action - status: - type: string - enum: - - ACTION_STATUS_UNSPECIFIED - - ACTION_STATUS_PENDING - - ACTION_STATUS_COMPLETED - - ACTION_STATUS_REVOKED - - ACTION_STATUS_TIMEOUT - default: ACTION_STATUS_UNSPECIFIED - description: |- - Current status of an action. - - - ACTION_STATUS_UNSPECIFIED: Unspecified status. - - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. - - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. - - ACTION_STATUS_REVOKED: Action has been revoked by its creator. - - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired - msg: - description: >- - Original message that started the action, it will be - executed when the - - intent is satisfied. - 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 + 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. - `path/google.protobuf.Duration`). The name should be - in a canonical form + It is less efficient than using key. Only one of offset or key + should - (e.g., leading "." is not accepted). + 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 - In practice, teams usually precompile into the binary - all types that they + a count of the total number of items available for pagination in + UIs. - expect it to use in the context of Any. However, for - URLs which use the + count_total is only respected when offset is used. It is ignored + when key - scheme `http`, `https`, or no scheme, one can - optionally set up a type + 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. - server that maps type URLs to message definitions as - follows: + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + tags: + - Query + /warden/warden/v1beta2/spaces_by_owner: + get: + summary: Queries a list of Spaces that has the specified owner. + operationId: WardenWardenV1Beta2Query_SpacesByOwner + responses: + '200': + description: A successful response. + schema: + type: object + properties: + 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 - * If no scheme is provided, `https` is assumed. + was set, its value is undefined otherwise + description: >- + PageResponse is to be embedded in gRPC response messages where + the - * 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.) + corresponding request message has used PageRequest. - Note: this functionality is not currently available in - the official + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + spaces: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + owners: + type: array + items: + type: string + admin_intent_id: + type: string + format: uint64 + description: >- + Optional ID of the intent to be applied to every *admin* + operation. - protobuf release, and it is not used for type URLs - beginning with + If not specified, the default intent is used. - type.googleapis.com. As of May 2023, there are no - widely used type server - implementations and no plans to implement one. + Admin operations are: + - warden.warden.Msg.AddSpaceOwner - Schemes other than `http`, `https` (or the empty - scheme) might be + - warden.warden.Msg.RemoveSpaceOwner - used with implementation specific semantics. - additionalProperties: {} - result: - description: >- - Result of the action, it will be set when the action is - completed. - 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 + The default intent is to allow any operation when at + least one of its - one "/" character. The last segment of the URL's path - must represent + owner approves it. + sign_intent_id: + type: string + format: uint64 + description: >- + Optional ID of the intent to be applied to every *sign* + operation. - the fully qualified name of the type (as in + If not specified, the default intent is used. - `path/google.protobuf.Duration`). The name should be - in a canonical form - (e.g., leading "." is not accepted). + Sign operations are: + - warden.warden.Msg.NewKeyRequest - In practice, teams usually precompile into the binary - all types that they + - warden.warden.Msg.NewSignTransactionRequest - expect it to use in the context of Any. However, for - URLs which use the + - warden.warden.Msg.NewSignatureRequest - scheme `http`, `https`, or no scheme, one can - optionally set up a type + - warden.warden.Msg.NewWalletRequest - server that maps type URLs to message definitions as - follows: + The default intent is to allow any operation when at + least one of its - * 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 + owner approves it. + description: >- + Space is a collection of users (called owners) that manages + a set of keys. + 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. - type.googleapis.com. As of May 2023, there are no - widely used type server + It is less efficient than using key. Only one of offset or key + should - implementations and no plans to implement one. + 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 - Schemes other than `http`, `https` (or the empty - scheme) might be + a count of the total number of items available for pagination in + UIs. - used with implementation specific semantics. - additionalProperties: {} - creator: - type: string - btl: - type: string - format: uint64 - description: >- - BTL (blocks to live) is the block height up until this - action can be + count_total is only respected when offset is used. It is ignored + when key - approved or rejected. - created_at: - type: string - format: date-time - title: >- - created_at is a timestamp specifying when the action was - created - updated_at: - type: string - format: date-time - title: >- - updated_at is a timestamp specifying when the action's - status was updated - intent: - description: >- - intent is the intent that this action is associated with. - Instead of + 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. - storing the intent ID, we store the entire intent object - so that is - immutable and cannot be changed later. - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - name: - type: string - definition: - type: string - description: >- - The definition of the intent written in the Shield - language. - addresses: - type: array - items: - type: string - description: >- - The list of addresses referenced from the intent - definition. - description: >- - Action wraps a message that needs to be approved by a set of - approvers. - description: MsgActionCreated is returned by rpc that creates an action. + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean + - name: owner + in: query + required: false + type: string + tags: + - Query + /warden.warden.v1beta2.Msg/AddKeychainParty: + post: + summary: |- + Add a new party to a keychain. Transactions coming from this party will + be considered trusted by the keychain. + operationId: WardenWardenV1Beta2Msg_AddKeychainParty + responses: + '200': + description: A successful response. + schema: + type: object default: description: An unexpected error response. schema: @@ -23692,316 +22465,54 @@ paths: properties: creator: type: string - space_id: - type: string - format: uint64 keychain_id: type: string format: uint64 - key_type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: >- - KeyType indicates what crypto scheme will be used by this key - (e.g. - - ECDSA). Its public key will be one of the specified type. - - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - btl: - type: string - format: uint64 - intent_id: + party: type: string - format: uint64 tags: - Msg - /warden.warden.v1beta2.Msg/NewKeychain: + /warden.warden.v1beta2.Msg/AddSpaceOwner: post: - summary: Create a new keychain. The user will be the first admin of the keychain. - operationId: WardenWardenV1Beta2Msg_NewKeychain + summary: Add a new owner to a space. + operationId: WardenWardenV1Beta2Msg_AddSpaceOwner responses: '200': description: A successful response. schema: type: object properties: - id: - 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 - 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 - required: true - schema: - type: object - properties: - creator: - type: string - description: - type: string - admin_intent_id: - type: string - format: uint64 - keychain_fees: - type: object - properties: - key_req: - type: string - format: int64 - sig_req: - type: string - format: int64 - tags: - - Msg - /warden.warden.v1beta2.Msg/NewSignTransactionRequest: - post: - summary: >- - Request a new signature for a layer 1 transaction, using the specified - - wallet. - - The difference with NewSignatureRequest is that this message will be - - parsed by the wallet to apply specific intents that depends on - - informations contained in the transaction itself (e.g. amount, - recipient). - operationId: WardenWardenV1Beta2Msg_NewSignTransactionRequest - responses: - '200': - description: A successful response. - schema: - type: object - properties: - action: - type: object - properties: - id: - type: string - format: uint64 - approvers: - type: array - items: - type: object - properties: - address: - type: string - title: address is the address of the approver - approved_at: - type: string - format: date-time - title: >- - approved_at is a timestamp specifying when the - approver approved an action - status: - type: string - enum: - - ACTION_STATUS_UNSPECIFIED - - ACTION_STATUS_PENDING - - ACTION_STATUS_COMPLETED - - ACTION_STATUS_REVOKED - - ACTION_STATUS_TIMEOUT - default: ACTION_STATUS_UNSPECIFIED - description: |- - Current status of an action. + action: + type: object + properties: + id: + type: string + format: uint64 + approvers: + type: array + items: + type: object + properties: + address: + type: string + title: address is the address of the approver + approved_at: + type: string + format: date-time + title: >- + approved_at is a timestamp specifying when the + approver approved an action + status: + type: string + enum: + - ACTION_STATUS_UNSPECIFIED + - ACTION_STATUS_PENDING + - ACTION_STATUS_COMPLETED + - ACTION_STATUS_REVOKED + - ACTION_STATUS_TIMEOUT + default: ACTION_STATUS_UNSPECIFIED + description: |- + Current status of an action. - ACTION_STATUS_UNSPECIFIED: Unspecified status. - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. @@ -24402,443 +22913,125 @@ paths: properties: creator: type: string - key_id: + space_id: type: string format: uint64 - wallet_type: + new_owner: type: string - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED - description: >- - WalletType specifies the Layer 1 blockchain that this wallet - will be used - - for. - - - WALLET_TYPE_UNSPECIFIED: The wallet type is missing - - WALLET_TYPE_ETH: The wallet type for Ethereum - - WALLET_TYPE_CELESTIA: The wallet type for Celestia - - WALLET_TYPE_SUI: The wallet type for Sui - unsigned_transaction: - type: string - format: byte btl: type: string format: uint64 - metadata: - description: >- - Additional metadata required when parsing the unsigned - transaction. - 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: {} tags: - Msg - /warden.warden.v1beta2.Msg/NewSignatureRequest: + /warden.warden.v1beta2.Msg/FulfilSignatureRequest: post: - summary: Request a new signature - operationId: WardenWardenV1Beta2Msg_NewSignatureRequest + summary: Fulfill a signature request + operationId: WardenWardenV1Beta2Msg_FulfilSignatureRequest responses: '200': description: A successful response. + schema: + type: object + default: + description: An unexpected error response. schema: type: object properties: - action: - type: object - properties: - id: - type: string - format: uint64 - approvers: - type: array - items: - type: object - properties: - address: - type: string - title: address is the address of the approver - approved_at: - type: string - format: date-time - title: >- - approved_at is a timestamp specifying when the - approver approved an action - status: - type: string - enum: - - ACTION_STATUS_UNSPECIFIED - - ACTION_STATUS_PENDING - - ACTION_STATUS_COMPLETED - - ACTION_STATUS_REVOKED - - ACTION_STATUS_TIMEOUT - default: ACTION_STATUS_UNSPECIFIED - description: |- - Current status of an action. + 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 - - ACTION_STATUS_UNSPECIFIED: Unspecified status. - - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. - - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. - - ACTION_STATUS_REVOKED: Action has been revoked by its creator. - - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired - msg: - description: >- - Original message that started the action, it will be - executed when the + protocol buffer message. This string must contain at + least - intent is satisfied. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type - of the serialized + one "/" character. The last segment of the URL's path + must represent - protocol buffer message. This string must contain at - least + the fully qualified name of the type (as in - one "/" character. The last segment of the URL's path - must represent + `path/google.protobuf.Duration`). The name should be in + a canonical form - the fully qualified name of the type (as in + (e.g., leading "." is not accepted). - `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 - In practice, teams usually precompile into the binary - all types that they + scheme `http`, `https`, or no scheme, one can optionally + set up a type - expect it to use in the context of Any. However, for - URLs which use the + server that maps type URLs to message definitions as + follows: - 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.) - * If no scheme is provided, `https` is assumed. + Note: this functionality is not currently available in + the official - * 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 release, and it is not used for type URLs + beginning with - Note: this functionality is not currently available in - the official + type.googleapis.com. As of May 2023, there are no widely + used type server - protobuf release, and it is not used for type URLs - beginning with + implementations and no plans to implement one. - 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 - Schemes other than `http`, `https` (or the empty - scheme) might be + URL that describes the type of the serialized message. - used with implementation specific semantics. - additionalProperties: {} - result: - description: >- - Result of the action, it will be set when the action is - completed. - 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 + Protobuf library provides support to pack/unpack Any values + in the form - one "/" character. The last segment of the URL's path - must represent + of utility functions or additional generated methods of the + Any type. - the fully qualified name of the type (as in - `path/google.protobuf.Duration`). The name should be - in a canonical form + Example 1: Pack and unpack a message in C++. - (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: {} - creator: - type: string - btl: - type: string - format: uint64 - description: >- - BTL (blocks to live) is the block height up until this - action can be - - approved or rejected. - created_at: - type: string - format: date-time - title: >- - created_at is a timestamp specifying when the action was - created - updated_at: - type: string - format: date-time - title: >- - updated_at is a timestamp specifying when the action's - status was updated - intent: - description: >- - intent is the intent that this action is associated with. - Instead of - - storing the intent ID, we store the entire intent object - so that is - - immutable and cannot be changed later. - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - name: - type: string - definition: - type: string - description: >- - The definition of the intent written in the Shield - language. - addresses: - type: array - items: - type: string - description: >- - The list of addresses referenced from the intent - definition. - description: >- - Action wraps a message that needs to be approved by a set of - approvers. - description: MsgActionCreated is returned by rpc that creates an action. - 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)) { - ... - } + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } Example 2: Pack and unpack a message in Java. @@ -24939,248 +23132,47 @@ paths: properties: creator: type: string - key_id: + request_id: type: string format: uint64 - data_for_signing: + status: type: string - format: byte - btl: + enum: + - SIGN_REQUEST_STATUS_UNSPECIFIED + - SIGN_REQUEST_STATUS_PENDING + - SIGN_REQUEST_STATUS_FULFILLED + - SIGN_REQUEST_STATUS_REJECTED + default: SIGN_REQUEST_STATUS_UNSPECIFIED + description: >- + SignRequestStatus indicates the status of a signature request. + + A request starts as "pending", waiting to be picked up. Then + it can move to + + either "approved" or "rejected", depending on the decision of + the keychain. + + - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + payload: + type: object + properties: + signed_data: + type: string + format: byte + reject_reason: type: string - format: uint64 tags: - Msg - /warden.warden.v1beta2.Msg/NewSpace: + /warden.warden.v1beta2.Msg/NewKeyRequest: post: - summary: Create a new Space. The creator will be the first owner of the Space. - operationId: WardenWardenV1Beta2Msg_NewSpace - responses: - '200': - description: A successful response. - schema: - type: object - properties: - id: - 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 - 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 - required: true - schema: - type: object - properties: - creator: - type: string - admin_intent_id: - type: string - format: uint64 - sign_intent_id: - type: string - format: uint64 - additional_owners: - type: array - items: - type: string - tags: - - Msg - /warden.warden.v1beta2.Msg/RemoveSpaceOwner: - post: - summary: |- - Remove an owner from the space. The user can remove itself, but at - least one owner must be left. - operationId: WardenWardenV1Beta2Msg_RemoveSpaceOwner + summary: |- + Request a new key to a keychain, the key will belong to the specified + space. + operationId: WardenWardenV1Beta2Msg_NewKeyRequest responses: '200': description: A successful response. @@ -25621,38 +23613,297 @@ paths: space_id: type: string format: uint64 - owner: + keychain_id: + type: string + format: uint64 + key_type: type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: >- + KeyType indicates what crypto scheme will be used by this key + (e.g. + + ECDSA). Its public key will be one of the specified type. + + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. btl: type: string format: uint64 + intent_id: + type: string + format: uint64 tags: - Msg - /warden.warden.v1beta2.Msg/UpdateKey: + /warden.warden.v1beta2.Msg/NewKeychain: post: - summary: Update informations of a Key. - operationId: WardenWardenV1Beta2Msg_UpdateKey + summary: Create a new keychain. The user will be the first admin of the keychain. + operationId: WardenWardenV1Beta2Msg_NewKeychain responses: '200': description: A successful response. schema: type: object properties: - action: - type: object - properties: - id: - type: string - format: uint64 - approvers: - type: array - items: - type: object - properties: - address: - type: string - title: address is the address of the approver - approved_at: + id: + 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 + 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 + required: true + schema: + type: object + properties: + creator: + type: string + description: + type: string + admin_intent_id: + type: string + format: uint64 + keychain_fees: + type: object + properties: + key_req: + type: string + format: int64 + sig_req: + type: string + format: int64 + tags: + - Msg + /warden.warden.v1beta2.Msg/NewSignTransactionRequest: + post: + summary: >- + Request a new signature for a layer 1 transaction, using the specified + + wallet. + + The difference with NewSignatureRequest is that this message will be + + parsed by the wallet to apply specific intents that depends on + + informations contained in the transaction itself (e.g. amount, + recipient). + operationId: WardenWardenV1Beta2Msg_NewSignTransactionRequest + responses: + '200': + description: A successful response. + schema: + type: object + properties: + action: + type: object + properties: + id: + type: string + format: uint64 + approvers: + type: array + items: + type: object + properties: + address: + type: string + title: address is the address of the approver + approved_at: type: string format: date-time title: >- @@ -26072,269 +24323,340 @@ paths: key_id: type: string format: uint64 - intent_id: + wallet_type: type: string - format: uint64 + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED + description: >- + WalletType specifies the Layer 1 blockchain that this wallet + will be used + + for. + + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + unsigned_transaction: + type: string + format: byte btl: type: string format: uint64 - tags: - - Msg - /warden.warden.v1beta2.Msg/UpdateKeyRequest: - post: - summary: |- - Update an existing request by writing a result into it. This method is - called by a keychain party. - operationId: WardenWardenV1Beta2Msg_UpdateKeyRequest - 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: - type: array - items: - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of - the serialized + metadata: + description: >- + Additional metadata required when parsing the unsigned + transaction. + 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: {} + tags: + - Msg + /warden.warden.v1beta2.Msg/NewSignatureRequest: + post: + summary: Request a new signature + operationId: WardenWardenV1Beta2Msg_NewSignatureRequest + responses: + '200': + description: A successful response. + schema: + type: object + properties: + action: + type: object + properties: + id: + type: string + format: uint64 + approvers: + type: array + items: + type: object + properties: + address: + type: string + title: address is the address of the approver + approved_at: + type: string + format: date-time + title: >- + approved_at is a timestamp specifying when the + approver approved an action + status: + type: string + enum: + - ACTION_STATUS_UNSPECIFIED + - ACTION_STATUS_PENDING + - ACTION_STATUS_COMPLETED + - ACTION_STATUS_REVOKED + - ACTION_STATUS_TIMEOUT + default: ACTION_STATUS_UNSPECIFIED + description: |- + Current status of an action. - URL that describes the type of the serialized message. + - ACTION_STATUS_UNSPECIFIED: Unspecified status. + - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. + - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. + - ACTION_STATUS_REVOKED: Action has been revoked by its creator. + - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired + msg: + description: >- + Original message that started the action, it will be + executed when the + intent is satisfied. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized - Protobuf library provides support to pack/unpack Any values - in the form + protocol buffer message. This string must contain at + least - of utility functions or additional generated methods of the - Any type. + one "/" character. The last segment of the URL's path + must represent + the fully qualified name of the type (as in - Example 1: Pack and unpack a message in C++. + `path/google.protobuf.Duration`). The name should be + in a canonical form - Foo foo = ...; - Any any; - any.PackFrom(foo); - ... - if (any.UnpackTo(&foo)) { - ... - } + (e.g., leading "." is not accepted). - 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()); - } + In practice, teams usually precompile into the binary + all types that they - Example 3: Pack and unpack a message in Python. + 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.DESCRIPTOR): - any.Unpack(foo) - ... + scheme `http`, `https`, or no scheme, one can + optionally set up a type - Example 4: Pack and unpack a message in Go + server that maps type URLs to message definitions as + follows: - 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 + * If no scheme is provided, `https` is assumed. - 'type.googleapis.com/full.type.name' as the type URL and the - unpack + * 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.) - methods only use the fully qualified type name after the - last '/' + Note: this functionality is not currently available in + the official - in the type URL, for example "foo.bar.com/x/y.z" will yield - type + protobuf release, and it is not used for type URLs + beginning with - name "y.z". + type.googleapis.com. As of May 2023, there are no + widely used type server + implementations and no plans to implement one. - JSON - ==== + Schemes other than `http`, `https` (or the empty + scheme) might be - The JSON representation of an `Any` value uses the regular + used with implementation specific semantics. + additionalProperties: {} + result: + description: >- + Result of the action, it will be set when the action is + completed. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized - representation of the deserialized, embedded message, with - an + protocol buffer message. This string must contain at + least - additional field `@type` which contains the type URL. - Example: + one "/" character. The last segment of the URL's path + must represent - package google.profile; - message Person { - string first_name = 1; - string last_name = 2; - } + the fully qualified name of the type (as in - { - "@type": "type.googleapis.com/google.profile.Person", - "firstName": , - "lastName": - } + `path/google.protobuf.Duration`). The name should be + in a canonical form - If the embedded message type is well-known and has a custom - JSON + (e.g., leading "." is not accepted). - representation, that representation will be embedded adding - a field - `value` which holds the custom JSON in addition to the - `@type` + In practice, teams usually precompile into the binary + all types that they - field. Example (for message [google.protobuf.Duration][]): + expect it to use in the context of Any. However, for + URLs which use the - { - "@type": "type.googleapis.com/google.protobuf.Duration", - "value": "1.212s" - } - parameters: - - name: body - in: body - required: true - schema: - type: object - properties: - creator: - type: string - request_id: - type: string - format: uint64 - status: - type: string - enum: - - KEY_REQUEST_STATUS_UNSPECIFIED - - KEY_REQUEST_STATUS_PENDING - - KEY_REQUEST_STATUS_FULFILLED - - KEY_REQUEST_STATUS_REJECTED - default: KEY_REQUEST_STATUS_UNSPECIFIED - description: >- - KeyRequestStatus indicates the status of a key request. + scheme `http`, `https`, or no scheme, one can + optionally set up a type - A request starts as "pending", waiting to be picked up. Then - it can move to + server that maps type URLs to message definitions as + follows: - either "approved" or "rejected", depending on the decision of - the keychain. - - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - key: - type: object - properties: - public_key: + * 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: {} + creator: type: string - format: byte - reject_reason: - type: string - tags: - - Msg - /warden.warden.v1beta2.Msg/UpdateKeychain: - post: - summary: Update a keychain, e.g. update the status or description. - operationId: WardenWardenV1Beta2Msg_UpdateKeychain - responses: - '200': - description: A successful response. - schema: - type: object + btl: + type: string + format: uint64 + description: >- + BTL (blocks to live) is the block height up until this + action can be + + approved or rejected. + created_at: + type: string + format: date-time + title: >- + created_at is a timestamp specifying when the action was + created + updated_at: + type: string + format: date-time + title: >- + updated_at is a timestamp specifying when the action's + status was updated + intent: + description: >- + intent is the intent that this action is associated with. + Instead of + + storing the intent ID, we store the entire intent object + so that is + + immutable and cannot be changed later. + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + name: + type: string + definition: + type: string + description: >- + The definition of the intent written in the Shield + language. + addresses: + type: array + items: + type: string + description: >- + The list of addresses referenced from the intent + definition. + description: >- + Action wraps a message that needs to be approved by a set of + approvers. + description: MsgActionCreated is returned by rpc that creates an action. default: description: An unexpected error response. schema: @@ -26535,31 +24857,30 @@ paths: properties: creator: type: string - keychain_id: + key_id: type: string format: uint64 - description: + data_for_signing: type: string - is_active: - type: boolean + format: byte + btl: + type: string + format: uint64 tags: - Msg - /warden.warden.v1beta2.Msg/UpdateParams: + /warden.warden.v1beta2.Msg/NewSpace: post: - summary: |- - UpdateParams defines a (governance) operation for updating the module - parameters. The authority defaults to the x/gov module account. - operationId: WardenWardenV1Beta2Msg_UpdateParams + summary: Create a new Space. The creator will be the first owner of the Space. + operationId: WardenWardenV1Beta2Msg_NewSpace responses: '200': description: A successful response. schema: type: object - description: >- - MsgUpdateParamsResponse defines the response structure for - executing a - - MsgUpdateParams message. + properties: + id: + type: string + format: uint64 default: description: An unexpected error response. schema: @@ -26753,30 +25074,31 @@ paths: } parameters: - name: body - description: MsgUpdateParams is the Msg/UpdateParams request type. in: body required: true schema: type: object properties: - authority: + creator: 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. - type: object - description: MsgUpdateParams is the Msg/UpdateParams request type. + admin_intent_id: + type: string + format: uint64 + sign_intent_id: + type: string + format: uint64 + additional_owners: + type: array + items: + type: string tags: - Msg - /warden.warden.v1beta2.Msg/UpdateSpace: + /warden.warden.v1beta2.Msg/RemoveSpaceOwner: post: - summary: Update a space, e.g. changing the intents in use. - operationId: WardenWardenV1Beta2Msg_UpdateSpace + summary: |- + Remove an owner from the space. The user can remove itself, but at + least one owner must be left. + operationId: WardenWardenV1Beta2Msg_RemoveSpaceOwner responses: '200': description: A successful response. @@ -27217,286 +25539,254 @@ paths: space_id: type: string format: uint64 - admin_intent_id: - type: string - format: uint64 - sign_intent_id: + owner: type: string - format: uint64 btl: type: string format: uint64 tags: - Msg - /warden/warden/v1beta2/get_signature_requests: - get: - summary: Queries a list of SignatureRequests items. - operationId: WardenWardenV1Beta2Query_SignatureRequests + /warden.warden.v1beta2.Msg/UpdateKey: + post: + summary: Update informations of a Key. + operationId: WardenWardenV1Beta2Msg_UpdateKey responses: '200': description: A successful response. schema: type: object properties: - pagination: + action: 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: + id: type: string format: uint64 - title: >- - total is total number of results available if - PageRequest.count_total + approvers: + type: array + items: + type: object + properties: + address: + type: string + title: address is the address of the approver + approved_at: + type: string + format: date-time + title: >- + approved_at is a timestamp specifying when the + approver approved an action + status: + type: string + enum: + - ACTION_STATUS_UNSPECIFIED + - ACTION_STATUS_PENDING + - ACTION_STATUS_COMPLETED + - ACTION_STATUS_REVOKED + - ACTION_STATUS_TIMEOUT + default: ACTION_STATUS_UNSPECIFIED + description: |- + Current status of an action. - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the + - ACTION_STATUS_UNSPECIFIED: Unspecified status. + - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. + - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. + - ACTION_STATUS_REVOKED: Action has been revoked by its creator. + - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired + msg: + description: >- + Original message that started the action, it will be + executed when the - corresponding request message has used PageRequest. + intent is satisfied. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - sign_requests: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - key_id: - type: string - format: uint64 - data_for_signing: - type: string - format: byte - status: - type: string - enum: - - SIGN_REQUEST_STATUS_UNSPECIFIED - - SIGN_REQUEST_STATUS_PENDING - - SIGN_REQUEST_STATUS_FULFILLED - - SIGN_REQUEST_STATUS_REJECTED - default: SIGN_REQUEST_STATUS_UNSPECIFIED - description: >- - SignRequestStatus indicates the status of a signature - request. + protocol buffer message. This string must contain at + least - A request starts as "pending", waiting to be picked up. - Then it can move to + one "/" character. The last segment of the URL's path + must represent - either "approved" or "rejected", depending on the - decision of the keychain. + the fully qualified name of the type (as in - - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - key_type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: >- - KeyType indicates what crypto scheme will be used by - this key (e.g. + `path/google.protobuf.Duration`). The name should be + in a canonical form - ECDSA). Its public key will be one of the specified - type. + (e.g., leading "." is not accepted). - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - signed_data: - type: string - format: byte - reject_reason: - 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: 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 + In practice, teams usually precompile into the binary + all types that they - 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. + expect it to use in the context of Any. However, for + URLs which use the - 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 + scheme `http`, `https`, or no scheme, one can + optionally set up a type - a count of the total number of items available for pagination in - UIs. + server that maps type URLs to message definitions as + follows: - 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. + * 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.) - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - - name: keychain_id - in: query - required: false - type: string - format: uint64 - - name: status - description: |- - Optional + Note: this functionality is not currently available in + the official - - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - in: query - required: false - type: string - enum: - - SIGN_REQUEST_STATUS_UNSPECIFIED - - SIGN_REQUEST_STATUS_PENDING - - SIGN_REQUEST_STATUS_FULFILLED - - SIGN_REQUEST_STATUS_REJECTED - default: SIGN_REQUEST_STATUS_UNSPECIFIED - tags: - - Query - /warden/warden/v1beta2/key_request_by_id: - get: - summary: Queries a single KeyRequest by its id. - operationId: WardenWardenV1Beta2Query_KeyRequestById - responses: - '200': - description: A successful response. - schema: - type: object - properties: - key_request: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - space_id: - type: string - format: uint64 - keychain_id: - type: string - format: uint64 - key_type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: >- - KeyType indicates what crypto scheme will be used by this - key (e.g. + protobuf release, and it is not used for type URLs + beginning with - ECDSA). Its public key will be one of the specified type. + type.googleapis.com. As of May 2023, there are no + widely used type server - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - status: - type: string - enum: - - KEY_REQUEST_STATUS_UNSPECIFIED - - KEY_REQUEST_STATUS_PENDING - - KEY_REQUEST_STATUS_FULFILLED - - KEY_REQUEST_STATUS_REJECTED - default: KEY_REQUEST_STATUS_UNSPECIFIED + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + result: description: >- - KeyRequestStatus indicates the status of a key request. + Result of the action, it will be set when the action is + completed. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized - A request starts as "pending", waiting to be picked up. - Then it can move to + protocol buffer message. This string must contain at + least - either "approved" or "rejected", depending on the decision - of the keychain. + one "/" character. The last segment of the URL's path + must represent - - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - reject_reason: + 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: {} + creator: type: string - intent_id: + btl: type: string format: uint64 description: >- - IntentId is the ID of the intent that the resulting Key - will use. + BTL (blocks to live) is the block height up until this + action can be + + approved or rejected. + created_at: + type: string + format: date-time + title: >- + created_at is a timestamp specifying when the action was + created + updated_at: + type: string + format: date-time + title: >- + updated_at is a timestamp specifying when the action's + status was updated + intent: + description: >- + intent is the intent that this action is associated with. + Instead of + + storing the intent ID, we store the entire intent object + so that is + + immutable and cannot be changed later. + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + name: + type: string + definition: + type: string + description: >- + The definition of the intent written in the Shield + language. + addresses: + type: array + items: + type: string + description: >- + The list of addresses referenced from the intent + definition. + description: >- + Action wraps a message that needs to be approved by a set of + approvers. + description: MsgActionCreated is returned by rpc that creates an action. default: description: An unexpected error response. schema: @@ -27514,116 +25804,211 @@ paths: properties: '@type': type: string - additionalProperties: {} - parameters: - - name: id - in: query - required: false - type: string - format: uint64 - tags: - - Query - /warden/warden/v1beta2/key_requests: - get: - summary: Queries a list of KeyRequests items. - operationId: WardenWardenV1Beta2Query_KeyRequests - responses: - '200': - description: A successful response. - schema: - type: object - properties: - 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 + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the + protocol buffer message. This string must contain at + least - corresponding request message has used PageRequest. + one "/" character. The last segment of the URL's path + must represent - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - key_requests: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - space_id: - type: string - format: uint64 - keychain_id: - type: string - format: uint64 - key_type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: >- - KeyType indicates what crypto scheme will be used by - this key (e.g. + the fully qualified name of the type (as in - ECDSA). Its public key will be one of the specified - type. + `path/google.protobuf.Duration`). The name should be in + a canonical form - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - status: - type: string - enum: - - KEY_REQUEST_STATUS_UNSPECIFIED - - KEY_REQUEST_STATUS_PENDING - - KEY_REQUEST_STATUS_FULFILLED - - KEY_REQUEST_STATUS_REJECTED - default: KEY_REQUEST_STATUS_UNSPECIFIED - description: >- - KeyRequestStatus indicates the status of a key request. + (e.g., leading "." is not accepted). - A request starts as "pending", waiting to be picked up. - Then it can move to - either "approved" or "rejected", depending on the - decision of the keychain. + In practice, teams usually precompile into the binary + all types that they - - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - reject_reason: - type: string - intent_id: - type: string - format: uint64 - description: >- - IntentId is the ID of the intent that the resulting Key - will use. + 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 + required: true + schema: + type: object + properties: + creator: + type: string + key_id: + type: string + format: uint64 + intent_id: + type: string + format: uint64 + btl: + type: string + format: uint64 + tags: + - Msg + /warden.warden.v1beta2.Msg/UpdateKeyRequest: + post: + summary: |- + Update an existing request by writing a result into it. This method is + called by a keychain party. + operationId: WardenWardenV1Beta2Msg_UpdateKeyRequest + responses: + '200': + description: A successful response. + schema: + type: object default: description: An unexpected error response. schema: @@ -27641,422 +26026,233 @@ paths: 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. + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - It is less efficient than using key. Only one of offset or key - should + protocol buffer message. This string must contain at + least - 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. + one "/" character. The last segment of the URL's path + must represent - 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 + the fully qualified name of the type (as in - a count of the total number of items available for pagination in - UIs. + `path/google.protobuf.Duration`). The name should be in + a canonical form - count_total is only respected when offset is used. It is ignored - when key + (e.g., leading "." is not accepted). - 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. + In practice, teams usually precompile into the binary + all types that they - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - - name: keychain_id - in: query - required: false - type: string - format: uint64 - - name: status - description: |- - Optional + expect it to use in the context of Any. However, for + URLs which use the - - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - in: query - required: false - type: string - enum: - - KEY_REQUEST_STATUS_UNSPECIFIED - - KEY_REQUEST_STATUS_PENDING - - KEY_REQUEST_STATUS_FULFILLED - - KEY_REQUEST_STATUS_REJECTED - default: KEY_REQUEST_STATUS_UNSPECIFIED - - name: space_id - in: query - required: false - type: string - format: uint64 - tags: - - Query - /warden/warden/v1beta2/keychain_by_id: - get: - summary: Queries a keychain by its id. - operationId: WardenWardenV1Beta2Query_KeychainById - responses: - '200': - description: A successful response. - schema: - type: object - properties: - keychain: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - description: - type: string - admins: - type: array - items: - type: string - parties: - type: array - items: - type: string - admin_intent_id: - type: string - format: uint64 - fees: - type: object - properties: - key_req: - type: string - format: int64 - sig_req: - type: string - format: int64 - is_active: - 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: id - in: query - required: false - type: string - format: uint64 - tags: - - Query - /warden/warden/v1beta2/keychains: - get: - summary: Queries a list of Keychains items. - operationId: WardenWardenV1Beta2Query_Keychains - responses: - '200': - description: A successful response. - schema: - type: object - properties: - 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 + scheme `http`, `https`, or no scheme, one can optionally + set up a type - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the + server that maps type URLs to message definitions as + follows: - corresponding request message has used PageRequest. - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - keychains: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - description: - type: string - admins: - type: array - items: - type: string - parties: - type: array - items: - type: string - admin_intent_id: - type: string - format: uint64 - fees: - type: object - properties: - key_req: - type: string - format: int64 - sig_req: - type: string - format: int64 - is_active: - 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 + * 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: 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. + 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. + - It is less efficient than using key. Only one of offset or key - should + Example 1: Pack and unpack a message in C++. - 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. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - 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 + Example 2: Pack and unpack a message in Java. - a count of the total number of items available for pagination in - UIs. + 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()); + } - count_total is only respected when offset is used. It is ignored - when key + Example 3: Pack and unpack a message in Python. - 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. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + Example 4: Pack and unpack a message in Go - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /warden/warden/v1beta2/keys: - get: - summary: Queries a list of Keys items. - operationId: WardenWardenV1Beta2Query_Keys - responses: - '200': - description: A successful response. - schema: - type: object - properties: - 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 + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the + The pack methods provided by protobuf library will by + default use - corresponding request message has used PageRequest. + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - keys: - type: array - items: - type: object - properties: - key: - type: object - properties: - id: - type: string - format: uint64 - space_id: - type: string - format: uint64 - keychain_id: - type: string - format: uint64 - type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: >- - KeyType indicates what crypto scheme will be used by - this key (e.g. + methods only use the fully qualified type name after the + last '/' - ECDSA). Its public key will be one of the specified - type. + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - public_key: - type: string - format: byte - intent_id: - type: string - format: uint64 - description: >- - IntentId is the ID of the intent that will need to - be satisfied for using + name "y.z". - this key to sign data. - If this is not set, the key will use the signing - intent of the Space. - wallets: - type: array - items: - type: object - properties: - address: - type: string - type: - type: string - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED - description: >- - WalletType specifies the Layer 1 blockchain that - this wallet will be used + JSON - for. + ==== - - WALLET_TYPE_UNSPECIFIED: The wallet type is missing - - WALLET_TYPE_ETH: The wallet type for Ethereum - - WALLET_TYPE_CELESTIA: The wallet type for Celestia - - WALLET_TYPE_SUI: The wallet type for Sui + 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 + required: true + schema: + type: object + properties: + creator: + type: string + request_id: + type: string + format: uint64 + status: + type: string + enum: + - KEY_REQUEST_STATUS_UNSPECIFIED + - KEY_REQUEST_STATUS_PENDING + - KEY_REQUEST_STATUS_FULFILLED + - KEY_REQUEST_STATUS_REJECTED + default: KEY_REQUEST_STATUS_UNSPECIFIED + description: >- + KeyRequestStatus indicates the status of a key request. + + A request starts as "pending", waiting to be picked up. Then + it can move to + + either "approved" or "rejected", depending on the decision of + the keychain. + + - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + key: + type: object + properties: + public_key: + type: string + format: byte + reject_reason: + type: string + tags: + - Msg + /warden.warden.v1beta2.Msg/UpdateKeychain: + post: + summary: Update a keychain, e.g. update the status or description. + operationId: WardenWardenV1Beta2Msg_UpdateKeychain + responses: + '200': + description: A successful response. + schema: + type: object default: description: An unexpected error response. schema: @@ -28074,176 +26270,214 @@ 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: 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. + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - It is less efficient than using key. Only one of offset or key - should + URL that describes the type of the serialized message. - 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 + Protobuf library provides support to pack/unpack Any values + in the form - a count of the total number of items available for pagination in - UIs. + of utility functions or additional generated methods of the + Any type. - 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. + Example 1: Pack and unpack a message in C++. + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - - name: space_id - description: Optional - in: query - required: false - type: string - format: uint64 - - name: type - description: |- - Optional + Example 2: Pack and unpack a message in Java. - - WALLET_TYPE_UNSPECIFIED: The wallet type is missing - - WALLET_TYPE_ETH: The wallet type for Ethereum - - WALLET_TYPE_CELESTIA: The wallet type for Celestia - - WALLET_TYPE_SUI: The wallet type for Sui - in: query - required: false - type: string - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED - - name: key_id - description: Optional - in: query - required: false - type: string - format: uint64 - tags: - - Query - /warden/warden/v1beta2/params: - get: - summary: Parameters queries the parameters of the module. - operationId: WardenWardenV1Beta2Query_Params - responses: - '200': - description: A successful response. - schema: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - description: >- - QueryParamsResponse is response type for the Query/Params RPC - method. - default: - description: An unexpected error response. + 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 + required: true schema: type: object properties: - code: - type: integer - format: int32 - message: + creator: type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} + keychain_id: + type: string + format: uint64 + description: + type: string + is_active: + type: boolean tags: - - Query - /warden/warden/v1beta2/sign_transaction_request_by_id: - get: - summary: Queries a list of SignTransactionRequestById items. - operationId: WardenWardenV1Beta2Query_SignTransactionRequestById + - Msg + /warden.warden.v1beta2.Msg/UpdateParams: + post: + summary: |- + UpdateParams defines a (governance) operation for updating the module + parameters. The authority defaults to the x/gov module account. + operationId: WardenWardenV1Beta2Msg_UpdateParams responses: '200': description: A successful response. schema: type: object - properties: - sign_transaction_request: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - key_id: - type: string - format: uint64 - wallet_type: - type: string - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED - description: >- - WalletType specifies the Layer 1 blockchain that this - wallet will be used - - for. + description: >- + MsgUpdateParamsResponse defines the response structure for + executing a - - WALLET_TYPE_UNSPECIFIED: The wallet type is missing - - WALLET_TYPE_ETH: The wallet type for Ethereum - - WALLET_TYPE_CELESTIA: The wallet type for Celestia - - WALLET_TYPE_SUI: The wallet type for Sui - unsigned_transaction: - type: string - format: byte - sign_request_id: - type: string - format: uint64 + MsgUpdateParams message. default: description: An unexpected error response. schema: @@ -28261,559 +26495,443 @@ 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: id - in: query - required: false - type: string - format: uint64 - tags: - - Query - /warden/warden/v1beta2/sign_transaction_requests: - get: - summary: Queries a list of SignTransactionRequests items. - operationId: WardenWardenV1Beta2Query_SignTransactionRequests - responses: - '200': - description: A successful response. - schema: - type: object - properties: - 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 + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the + URL that describes the type of the serialized message. - corresponding request message has used PageRequest. - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - sign_transaction_requests: - type: array - items: - type: object - properties: - sign_transaction_request: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - key_id: - type: string - format: uint64 - wallet_type: - type: string - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED - description: >- - WalletType specifies the Layer 1 blockchain that - this wallet will be used + 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()); + } - for. + Example 3: Pack and unpack a message in Python. - - WALLET_TYPE_UNSPECIFIED: The wallet type is missing - - WALLET_TYPE_ETH: The wallet type for Ethereum - - WALLET_TYPE_CELESTIA: The wallet type for Celestia - - WALLET_TYPE_SUI: The wallet type for Sui - unsigned_transaction: - type: string - format: byte - sign_request_id: - type: string - format: uint64 - sign_request: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - key_id: - type: string - format: uint64 - data_for_signing: - type: string - format: byte - status: - type: string - enum: - - SIGN_REQUEST_STATUS_UNSPECIFIED - - SIGN_REQUEST_STATUS_PENDING - - SIGN_REQUEST_STATUS_FULFILLED - - SIGN_REQUEST_STATUS_REJECTED - default: SIGN_REQUEST_STATUS_UNSPECIFIED - description: >- - SignRequestStatus indicates the status of a - signature request. + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... - A request starts as "pending", waiting to be picked - up. Then it can move to + Example 4: Pack and unpack a message in Go - either "approved" or "rejected", depending on the - decision of the keychain. + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - key_type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: >- - KeyType indicates what crypto scheme will be used by - this key (e.g. + The pack methods provided by protobuf library will by + default use - ECDSA). Its public key will be one of the specified - type. + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - signed_data: - type: string - format: byte - reject_reason: - 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: 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. + methods only use the fully qualified type name after the + last '/' - It is less efficient than using key. Only one of offset or key - should + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - 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. + name "y.z". - 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. + JSON - 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. + The JSON representation of an `Any` value uses the regular + representation of the deserialized, embedded message, with + an - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - - name: wallet_type - description: |2- - - WALLET_TYPE_UNSPECIFIED: The wallet type is missing - - WALLET_TYPE_ETH: The wallet type for Ethereum - - WALLET_TYPE_CELESTIA: The wallet type for Celestia - - WALLET_TYPE_SUI: The wallet type for Sui - in: query - required: false - type: string - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED - - name: key_id - in: query - required: false - type: string - format: uint64 - - name: status - description: |- - Optional + additional field `@type` which contains the type URL. + Example: - - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - in: query - required: false - type: string - enum: - - SIGN_REQUEST_STATUS_UNSPECIFIED - - SIGN_REQUEST_STATUS_PENDING - - SIGN_REQUEST_STATUS_FULFILLED - - SIGN_REQUEST_STATUS_REJECTED - default: SIGN_REQUEST_STATUS_UNSPECIFIED - tags: - - Query - /warden/warden/v1beta2/signature_pb_request_by_id: - get: - summary: Queries a single SignatureRequest by its id. - operationId: WardenWardenV1Beta2Query_SignatureRequestById - responses: - '200': - description: A successful response. - schema: - type: object - properties: - sign_request: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - key_id: - type: string - format: uint64 - data_for_signing: - type: string - format: byte - status: - type: string - enum: - - SIGN_REQUEST_STATUS_UNSPECIFIED - - SIGN_REQUEST_STATUS_PENDING - - SIGN_REQUEST_STATUS_FULFILLED - - SIGN_REQUEST_STATUS_REJECTED - default: SIGN_REQUEST_STATUS_UNSPECIFIED - description: >- - SignRequestStatus indicates the status of a signature - request. + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } - A request starts as "pending", waiting to be picked up. - Then it can move to + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } - either "approved" or "rejected", depending on the decision - of the keychain. + If the embedded message type is well-known and has a custom + JSON - - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - key_type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: >- - KeyType indicates what crypto scheme will be used by this - key (e.g. + representation, that representation will be embedded adding + a field - ECDSA). Its public key will be one of the specified type. + `value` which holds the custom JSON in addition to the + `@type` - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - signed_data: - type: string - format: byte - reject_reason: - type: string - default: - description: An unexpected error response. + 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. + in: body + required: true schema: type: object properties: - code: - type: integer - format: int32 - message: + authority: type: string - details: - type: array - items: - type: object - properties: - '@type': - type: string - additionalProperties: {} - parameters: - - name: id - in: query - required: false - type: string - format: uint64 + 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. + type: object + description: MsgUpdateParams is the Msg/UpdateParams request type. tags: - - Query - /warden/warden/v1beta2/space_by_address: - get: - summary: Queries a space by its id. - operationId: WardenWardenV1Beta2Query_SpaceById + - Msg + /warden.warden.v1beta2.Msg/UpdateSpace: + post: + summary: Update a space, e.g. changing the intents in use. + operationId: WardenWardenV1Beta2Msg_UpdateSpace responses: '200': description: A successful response. schema: type: object properties: - space: + action: type: object properties: id: type: string format: uint64 - creator: - type: string - owners: + approvers: type: array items: - type: string - admin_intent_id: + type: object + properties: + address: + type: string + title: address is the address of the approver + approved_at: + type: string + format: date-time + title: >- + approved_at is a timestamp specifying when the + approver approved an action + status: type: string - format: uint64 + enum: + - ACTION_STATUS_UNSPECIFIED + - ACTION_STATUS_PENDING + - ACTION_STATUS_COMPLETED + - ACTION_STATUS_REVOKED + - ACTION_STATUS_TIMEOUT + default: ACTION_STATUS_UNSPECIFIED + description: |- + Current status of an action. + + - ACTION_STATUS_UNSPECIFIED: Unspecified status. + - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. + - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. + - ACTION_STATUS_REVOKED: Action has been revoked by its creator. + - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired + msg: description: >- - Optional ID of the intent to be applied to every *admin* - operation. + Original message that started the action, it will be + executed when the - If not specified, the default intent is used. + intent is satisfied. + 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 - Admin operations are: + one "/" character. The last segment of the URL's path + must represent - - warden.warden.Msg.AddSpaceOwner + the fully qualified name of the type (as in - - warden.warden.Msg.RemoveSpaceOwner + `path/google.protobuf.Duration`). The name should be + in a canonical form + (e.g., leading "." is not accepted). - The default intent is to allow any operation when at least - one of its - owner approves it. - sign_intent_id: - type: string - format: uint64 - description: >- - Optional ID of the intent to be applied to every *sign* - operation. + In practice, teams usually precompile into the binary + all types that they - If not specified, the default intent is used. + 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 - Sign operations are: + server that maps type URLs to message definitions as + follows: - - warden.warden.Msg.NewKeyRequest - - warden.warden.Msg.NewSignTransactionRequest + * If no scheme is provided, `https` is assumed. - - warden.warden.Msg.NewSignatureRequest + * 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.) - - warden.warden.Msg.NewWalletRequest + Note: this functionality is not currently available in + the official + protobuf release, and it is not used for type URLs + beginning with - The default intent is to allow any operation when at least - one of its + type.googleapis.com. As of May 2023, there are no + widely used type server - owner approves it. - description: >- - Space is a collection of users (called owners) that manages a - set of keys. - 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 - in: query - required: false - type: string - format: uint64 - tags: - - Query - /warden/warden/v1beta2/spaces: - get: - summary: Queries a list of Spaces items. - operationId: WardenWardenV1Beta2Query_Spaces - responses: - '200': - description: A successful response. - schema: - type: object - properties: - 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 + implementations and no plans to implement one. + + + Schemes other than `http`, `https` (or the empty + scheme) might be + + used with implementation specific semantics. + additionalProperties: {} + result: + description: >- + Result of the action, it will be set when the action is + completed. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type + of the serialized - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the + protocol buffer message. This string must contain at + least - corresponding request message has used PageRequest. + one "/" character. The last segment of the URL's path + must represent - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - spaces: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - owners: - type: array - items: - type: string - admin_intent_id: - type: string - format: uint64 - description: >- - Optional ID of the intent to be applied to every *admin* - operation. + the fully qualified name of the type (as in - If not specified, the default intent is used. + `path/google.protobuf.Duration`). The name should be + in a canonical form + (e.g., leading "." is not accepted). - Admin operations are: - - warden.warden.Msg.AddSpaceOwner + In practice, teams usually precompile into the binary + all types that they - - warden.warden.Msg.RemoveSpaceOwner + 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 - The default intent is to allow any operation when at - least one of its + server that maps type URLs to message definitions as + follows: - owner approves it. - sign_intent_id: - type: string - format: uint64 - description: >- - Optional ID of the intent to be applied to every *sign* - operation. - If not specified, the default intent is used. + * 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.) - Sign operations are: + Note: this functionality is not currently available in + the official - - warden.warden.Msg.NewKeyRequest + protobuf release, and it is not used for type URLs + beginning with - - warden.warden.Msg.NewSignTransactionRequest + type.googleapis.com. As of May 2023, there are no + widely used type server - - warden.warden.Msg.NewSignatureRequest + implementations and no plans to implement one. - - warden.warden.Msg.NewWalletRequest + Schemes other than `http`, `https` (or the empty + scheme) might be - The default intent is to allow any operation when at - least one of its + used with implementation specific semantics. + additionalProperties: {} + creator: + type: string + btl: + type: string + format: uint64 + description: >- + BTL (blocks to live) is the block height up until this + action can be - owner approves it. - description: >- - Space is a collection of users (called owners) that manages - a set of keys. + approved or rejected. + created_at: + type: string + format: date-time + title: >- + created_at is a timestamp specifying when the action was + created + updated_at: + type: string + format: date-time + title: >- + updated_at is a timestamp specifying when the action's + status was updated + intent: + description: >- + intent is the intent that this action is associated with. + Instead of + + storing the intent ID, we store the entire intent object + so that is + + immutable and cannot be changed later. + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + name: + type: string + definition: + type: string + description: >- + The definition of the intent written in the Shield + language. + addresses: + type: array + items: + type: string + description: >- + The list of addresses referenced from the intent + definition. + description: >- + Action wraps a message that needs to be approved by a set of + approvers. + description: MsgActionCreated is returned by rpc that creates an action. default: description: An unexpected error response. schema: @@ -28831,248 +26949,203 @@ paths: 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. + description: >- + A URL/resource name that uniquely identifies the type of + the serialized - It is less efficient than using key. Only one of offset or key - should + protocol buffer message. This string must contain at + least - 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. + one "/" character. The last segment of the URL's path + must represent - 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 + the fully qualified name of the type (as in - a count of the total number of items available for pagination in - UIs. + `path/google.protobuf.Duration`). The name should be in + a canonical form - count_total is only respected when offset is used. It is ignored - when key + (e.g., leading "." is not accepted). - 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. + In practice, teams usually precompile into the binary + all types that they - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - tags: - - Query - /warden/warden/v1beta2/spaces_by_owner: - get: - summary: Queries a list of Spaces that has the specified owner. - operationId: WardenWardenV1Beta2Query_SpacesByOwner - responses: - '200': - description: A successful response. - schema: - type: object - properties: - 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 + 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.) - was set, its value is undefined otherwise - description: >- - PageResponse is to be embedded in gRPC response messages where - the + Note: this functionality is not currently available in + the official - corresponding request message has used PageRequest. + protobuf release, and it is not used for type URLs + beginning with - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - spaces: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - owners: - type: array - items: - type: string - admin_intent_id: - type: string - format: uint64 - description: >- - Optional ID of the intent to be applied to every *admin* - operation. + type.googleapis.com. As of May 2023, there are no widely + used type server - If not specified, the default intent is used. + implementations and no plans to implement one. - Admin operations are: + Schemes other than `http`, `https` (or the empty scheme) + might be - - warden.warden.Msg.AddSpaceOwner + used with implementation specific semantics. + additionalProperties: {} + description: >- + `Any` contains an arbitrary serialized protocol buffer + message along with a - - warden.warden.Msg.RemoveSpaceOwner + URL that describes the type of the serialized message. - The default intent is to allow any operation when at - least one of its + Protobuf library provides support to pack/unpack Any values + in the form - owner approves it. - sign_intent_id: - type: string - format: uint64 - description: >- - Optional ID of the intent to be applied to every *sign* - operation. + of utility functions or additional generated methods of the + Any type. - If not specified, the default intent is used. + Example 1: Pack and unpack a message in C++. - Sign operations are: + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } - - warden.warden.Msg.NewKeyRequest + Example 2: Pack and unpack a message in Java. - - warden.warden.Msg.NewSignTransactionRequest + 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()); + } - - warden.warden.Msg.NewSignatureRequest + Example 3: Pack and unpack a message in Python. - - warden.warden.Msg.NewWalletRequest + 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 default intent is to allow any operation when at - least one of its + foo := &pb.Foo{...} + any, err := anypb.New(foo) + if err != nil { + ... + } + ... + foo := &pb.Foo{} + if err := any.UnmarshalTo(foo); err != nil { + ... + } - owner approves it. - description: >- - Space is a collection of users (called owners) that manages - a set of keys. - 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. + The pack methods provided by protobuf library will by + default use - It is less efficient than using key. Only one of offset or key - should + 'type.googleapis.com/full.type.name' as the type URL and the + unpack - 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. + methods only use the fully qualified type name after the + last '/' - 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 + in the type URL, for example "foo.bar.com/x/y.z" will yield + type - a count of the total number of items available for pagination in - UIs. + name "y.z". - 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. + JSON + + ==== + The JSON representation of an `Any` value uses the regular - Since: cosmos-sdk 0.43 - in: query - required: false - type: boolean - - name: owner - in: query - required: false - type: string + 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 + required: true + schema: + type: object + properties: + creator: + type: string + space_id: + type: string + format: uint64 + admin_intent_id: + type: string + format: uint64 + sign_intent_id: + type: string + format: uint64 + btl: + type: string + format: uint64 tags: - - Query + - Msg definitions: cosmos.auth.v1beta1.MsgUpdateParams: type: object @@ -36790,6 +34863,68 @@ definitions: description: |- Version defines the versioning scheme used to negotiate the IBC verison in the connection handshake. + warden.intent.MsgApproveAction: + type: object + properties: + creator: + type: string + action_type: + type: string + action_id: + type: string + format: uint64 + warden.intent.MsgApproveActionResponse: + type: object + properties: + status: + type: string + warden.intent.MsgNewIntent: + type: object + properties: + creator: + type: string + name: + type: string + definition: + type: string + warden.intent.MsgNewIntentResponse: + type: object + properties: + id: + type: string + format: uint64 + warden.intent.MsgRevokeAction: + type: object + properties: + creator: + type: string + action_type: + type: string + action_id: + type: string + format: uint64 + warden.intent.MsgRevokeActionResponse: + type: object + warden.intent.MsgUpdateParams: + 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 + description: MsgUpdateParams is the Msg/UpdateParams request type. + warden.intent.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + warden.intent.Params: + type: object + description: Params defines the parameters for the module. cosmos.base.query.v1beta1.PageRequest: type: object properties: @@ -36818,285 +34953,187 @@ definitions: 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: - 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; - } - warden.intent.Action: - type: object - properties: - id: - type: string - format: uint64 - approvers: - type: array - items: - type: object - properties: - address: - type: string - title: address is the address of the approver - approved_at: - type: string - format: date-time - title: >- - approved_at is a timestamp specifying when the approver approved - an action - status: - type: string - enum: - - ACTION_STATUS_UNSPECIFIED - - ACTION_STATUS_PENDING - - ACTION_STATUS_COMPLETED - - ACTION_STATUS_REVOKED - - ACTION_STATUS_TIMEOUT - default: ACTION_STATUS_UNSPECIFIED - description: |- - Current status of an action. - - - ACTION_STATUS_UNSPECIFIED: Unspecified status. - - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. - - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. - - ACTION_STATUS_REVOKED: Action has been revoked by its creator. - - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired - msg: - description: |- - Original message that started the action, it will be executed when the - intent is satisfied. - 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: {} - result: - description: Result of the action, it will be set when the action is completed. - 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.) + count_total is set to true to indicate that the result set should + include - Note: this functionality is not currently available in the - official + a count of the total number of items available for pagination in UIs. - protobuf release, and it is not used for type URLs beginning with + count_total is only respected when offset is used. It is ignored when + key - type.googleapis.com. As of May 2023, there are no widely used type - server + is set. + reverse: + type: boolean + description: >- + reverse is set to true if results are to be returned in the descending + order. - implementations and no plans to implement one. + 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. - Schemes other than `http`, `https` (or the empty scheme) might be + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + warden.warden.v1beta2.Key: + type: object + properties: + id: + type: string + format: uint64 + space_id: + type: string + format: uint64 + keychain_id: + type: string + format: uint64 + type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: |- + KeyType indicates what crypto scheme will be used by this key (e.g. + ECDSA). Its public key will be one of the specified type. - used with implementation specific semantics. - additionalProperties: {} + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + public_key: + type: string + format: byte + intent_id: + type: string + format: uint64 + description: >- + IntentId is the ID of the intent that will need to be satisfied for + using + + this key to sign data. + + If this is not set, the key will use the signing intent of the Space. + warden.warden.v1beta2.KeyRequest: + type: object + properties: + id: + type: string + format: uint64 creator: type: string - btl: + space_id: type: string format: uint64 - description: |- - BTL (blocks to live) is the block height up until this action can be - approved or rejected. - created_at: + keychain_id: type: string - format: date-time - title: created_at is a timestamp specifying when the action was created - updated_at: + format: uint64 + key_type: type: string - format: date-time - title: >- - updated_at is a timestamp specifying when the action's status was - updated - intent: + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED description: |- - intent is the intent that this action is associated with. Instead of - storing the intent ID, we store the entire intent object so that is - immutable and cannot be changed later. - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - name: - type: string - definition: - type: string - description: The definition of the intent written in the Shield language. - addresses: - type: array - items: - type: string - description: The list of addresses referenced from the intent definition. - description: Action wraps a message that needs to be approved by a set of approvers. - warden.intent.ActionStatus: + KeyType indicates what crypto scheme will be used by this key (e.g. + ECDSA). Its public key will be one of the specified type. + + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + status: + type: string + enum: + - KEY_REQUEST_STATUS_UNSPECIFIED + - KEY_REQUEST_STATUS_PENDING + - KEY_REQUEST_STATUS_FULFILLED + - KEY_REQUEST_STATUS_REJECTED + default: KEY_REQUEST_STATUS_UNSPECIFIED + description: >- + KeyRequestStatus indicates the status of a key request. + + A request starts as "pending", waiting to be picked up. Then it can + move to + + either "approved" or "rejected", depending on the decision of the + keychain. + + - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + reject_reason: + type: string + intent_id: + type: string + format: uint64 + description: IntentId is the ID of the intent that the resulting Key will use. + warden.warden.v1beta2.KeyRequestStatus: type: string enum: - - ACTION_STATUS_UNSPECIFIED - - ACTION_STATUS_PENDING - - ACTION_STATUS_COMPLETED - - ACTION_STATUS_REVOKED - - ACTION_STATUS_TIMEOUT - default: ACTION_STATUS_UNSPECIFIED + - KEY_REQUEST_STATUS_UNSPECIFIED + - KEY_REQUEST_STATUS_PENDING + - KEY_REQUEST_STATUS_FULFILLED + - KEY_REQUEST_STATUS_REJECTED + default: KEY_REQUEST_STATUS_UNSPECIFIED + description: >- + KeyRequestStatus indicates the status of a key request. + + A request starts as "pending", waiting to be picked up. Then it can move + to + + either "approved" or "rejected", depending on the decision of the + keychain. + + - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + warden.warden.v1beta2.KeyType: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED description: |- - Current status of an action. + KeyType indicates what crypto scheme will be used by this key (e.g. + ECDSA). Its public key will be one of the specified type. - - ACTION_STATUS_UNSPECIFIED: Unspecified status. - - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. - - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. - - ACTION_STATUS_REVOKED: Action has been revoked by its creator. - - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired - warden.intent.Approver: - type: object - properties: - address: - type: string - title: address is the address of the approver - approved_at: - type: string - format: date-time - title: >- - approved_at is a timestamp specifying when the approver approved an - action - warden.intent.Intent: + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + warden.warden.v1beta2.Keychain: type: object properties: id: @@ -37104,239 +35141,300 @@ definitions: format: uint64 creator: type: string - name: + description: + type: string + admins: + type: array + items: + type: string + parties: + type: array + items: + type: string + admin_intent_id: + type: string + format: uint64 + fees: + type: object + properties: + key_req: + type: string + format: int64 + sig_req: + type: string + format: int64 + is_active: + type: boolean + warden.warden.v1beta2.KeychainFees: + type: object + properties: + key_req: type: string - definition: + format: int64 + sig_req: type: string - description: The definition of the intent written in the Shield language. - addresses: - type: array - items: - type: string - description: The list of addresses referenced from the intent definition. - warden.intent.Params: + format: int64 + warden.warden.v1beta2.Params: type: object description: Params defines the parameters for the module. - warden.intent.QueryActionByIdResponse: + warden.warden.v1beta2.QueryKeyRequestByIdResponse: type: object properties: - action: + key_request: type: object properties: id: type: string format: uint64 - approvers: - type: array - items: - type: object - properties: - address: - type: string - title: address is the address of the approver - approved_at: - type: string - format: date-time - title: >- - approved_at is a timestamp specifying when the approver - approved an action - status: + creator: + type: string + space_id: + type: string + format: uint64 + keychain_id: + type: string + format: uint64 + key_type: type: string enum: - - ACTION_STATUS_UNSPECIFIED - - ACTION_STATUS_PENDING - - ACTION_STATUS_COMPLETED - - ACTION_STATUS_REVOKED - - ACTION_STATUS_TIMEOUT - default: ACTION_STATUS_UNSPECIFIED - description: |- - Current status of an action. - - - ACTION_STATUS_UNSPECIFIED: Unspecified status. - - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. - - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. - - ACTION_STATUS_REVOKED: Action has been revoked by its creator. - - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired - msg: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED description: >- - Original message that started the action, it will be executed when - the - - intent is satisfied. - 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: {} - result: - description: Result of the action, it will be set when the action is completed. - 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 + KeyType indicates what crypto scheme will be used by this key + (e.g. - scheme `http`, `https`, or no scheme, one can optionally set - up a type + ECDSA). Its public key will be one of the specified type. - server that maps type URLs to message definitions as follows: + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + status: + type: string + enum: + - KEY_REQUEST_STATUS_UNSPECIFIED + - KEY_REQUEST_STATUS_PENDING + - KEY_REQUEST_STATUS_FULFILLED + - KEY_REQUEST_STATUS_REJECTED + default: KEY_REQUEST_STATUS_UNSPECIFIED + description: >- + KeyRequestStatus indicates the status of a key request. + A request starts as "pending", waiting to be picked up. Then it + can move to - * If no scheme is provided, `https` is assumed. + either "approved" or "rejected", depending on the decision of the + keychain. - * 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.) + - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + reject_reason: + type: string + intent_id: + type: string + format: uint64 + description: IntentId is the ID of the intent that the resulting Key will use. + warden.warden.v1beta2.QueryKeyRequestsResponse: + type: object + properties: + 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 - Note: this functionality is not currently available in the - official + 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. - protobuf release, and it is not used for type URLs beginning - with + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + key_requests: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + space_id: + type: string + format: uint64 + keychain_id: + type: string + format: uint64 + key_type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: >- + KeyType indicates what crypto scheme will be used by this key + (e.g. - type.googleapis.com. As of May 2023, there are no widely used - type server + ECDSA). Its public key will be one of the specified type. - implementations and no plans to implement one. + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + status: + type: string + enum: + - KEY_REQUEST_STATUS_UNSPECIFIED + - KEY_REQUEST_STATUS_PENDING + - KEY_REQUEST_STATUS_FULFILLED + - KEY_REQUEST_STATUS_REJECTED + default: KEY_REQUEST_STATUS_UNSPECIFIED + description: >- + KeyRequestStatus indicates the status of a key request. + A request starts as "pending", waiting to be picked up. Then it + can move to - Schemes other than `http`, `https` (or the empty scheme) might - be + either "approved" or "rejected", depending on the decision of + the keychain. - used with implementation specific semantics. - additionalProperties: {} - creator: + - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + reject_reason: + type: string + intent_id: + type: string + format: uint64 + description: >- + IntentId is the ID of the intent that the resulting Key will + use. + warden.warden.v1beta2.QueryKeyResponse: + type: object + properties: + key: + type: object + properties: + id: type: string - btl: + format: uint64 + space_id: type: string format: uint64 + keychain_id: + type: string + format: uint64 + type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED description: >- - BTL (blocks to live) is the block height up until this action can - be + KeyType indicates what crypto scheme will be used by this key + (e.g. - approved or rejected. - created_at: + ECDSA). Its public key will be one of the specified type. + + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + public_key: type: string - format: date-time - title: created_at is a timestamp specifying when the action was created - updated_at: + format: byte + intent_id: type: string - format: date-time - title: >- - updated_at is a timestamp specifying when the action's status was - updated - intent: + format: uint64 description: >- - intent is the intent that this action is associated with. Instead - of + IntentId is the ID of the intent that will need to be satisfied + for using - storing the intent ID, we store the entire intent object so that - is + this key to sign data. - immutable and cannot be changed later. + If this is not set, the key will use the signing intent of the + Space. + wallets: + type: array + items: + type: object + properties: + address: + type: string + type: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED + description: >- + WalletType specifies the Layer 1 blockchain that this wallet + will be used + + for. + + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + warden.warden.v1beta2.QueryKeychainByIdResponse: + type: object + properties: + keychain: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + description: + type: string + admins: + type: array + items: + type: string + parties: + type: array + items: + type: string + admin_intent_id: + type: string + format: uint64 + fees: type: object properties: - id: - type: string - format: uint64 - creator: - type: string - name: + key_req: type: string - definition: + format: int64 + sig_req: type: string - description: The definition of the intent written in the Shield language. - addresses: - type: array - items: - type: string - description: The list of addresses referenced from the intent definition. - description: >- - Action wraps a message that needs to be approved by a set of - approvers. - warden.intent.QueryActionsByAddressResponse: + format: int64 + is_active: + type: boolean + warden.warden.v1beta2.QueryKeychainsResponse: type: object properties: pagination: @@ -37365,7 +35463,7 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } - actions: + keychains: type: array items: type: object @@ -37373,223 +35471,33 @@ definitions: id: type: string format: uint64 - approvers: - type: array - items: - type: object - properties: - address: - type: string - title: address is the address of the approver - approved_at: - type: string - format: date-time - title: >- - approved_at is a timestamp specifying when the approver - approved an action - status: - type: string - enum: - - ACTION_STATUS_UNSPECIFIED - - ACTION_STATUS_PENDING - - ACTION_STATUS_COMPLETED - - ACTION_STATUS_REVOKED - - ACTION_STATUS_TIMEOUT - default: ACTION_STATUS_UNSPECIFIED - description: |- - Current status of an action. - - - ACTION_STATUS_UNSPECIFIED: Unspecified status. - - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. - - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. - - ACTION_STATUS_REVOKED: Action has been revoked by its creator. - - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired - msg: - description: >- - Original message that started the action, it will be executed - when the - - intent is satisfied. - 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: {} - result: - description: >- - Result of the action, it will be set when the action is - completed. - 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: {} creator: type: string - btl: - type: string - format: uint64 - description: >- - BTL (blocks to live) is the block height up until this action - can be - - approved or rejected. - created_at: + description: type: string - format: date-time - title: created_at is a timestamp specifying when the action was created - updated_at: + admins: + type: array + items: + type: string + parties: + type: array + items: + type: string + admin_intent_id: type: string - format: date-time - title: >- - updated_at is a timestamp specifying when the action's status - was updated - intent: - description: >- - intent is the intent that this action is associated with. - Instead of - - storing the intent ID, we store the entire intent object so that - is - - immutable and cannot be changed later. + format: uint64 + fees: type: object properties: - id: - type: string - format: uint64 - creator: - type: string - name: + key_req: type: string - definition: + format: int64 + sig_req: type: string - description: The definition of the intent written in the Shield language. - addresses: - type: array - items: - type: string - description: The list of addresses referenced from the intent definition. - description: >- - Action wraps a message that needs to be approved by a set of - approvers. - warden.intent.QueryActionsResponse: + format: int64 + is_active: + type: boolean + warden.warden.v1beta2.QueryKeysResponse: type: object properties: pagination: @@ -37618,234 +35526,254 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } - actions: + keys: type: array items: type: object properties: - id: - type: string - format: uint64 - approvers: - type: array - items: - type: object - properties: - address: - type: string - title: address is the address of the approver - approved_at: - type: string - format: date-time - title: >- - approved_at is a timestamp specifying when the approver - approved an action - status: - type: string - enum: - - ACTION_STATUS_UNSPECIFIED - - ACTION_STATUS_PENDING - - ACTION_STATUS_COMPLETED - - ACTION_STATUS_REVOKED - - ACTION_STATUS_TIMEOUT - default: ACTION_STATUS_UNSPECIFIED - description: |- - Current status of an action. - - - ACTION_STATUS_UNSPECIFIED: Unspecified status. - - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. - - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. - - ACTION_STATUS_REVOKED: Action has been revoked by its creator. - - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired - msg: - description: >- - Original message that started the action, it will be executed - when the - - intent is satisfied. + key: type: object properties: - '@type': + id: + type: string + format: uint64 + space_id: + type: string + format: uint64 + keychain_id: + type: string + format: uint64 + type: type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED 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: + KeyType indicates what crypto scheme will be used by this + key (e.g. + ECDSA). Its public key will be one of the specified type. - * If no scheme is provided, `https` is assumed. + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + public_key: + type: string + format: byte + intent_id: + type: string + format: uint64 + description: >- + IntentId is the ID of the intent that will need to be + satisfied for using - * 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.) + this key to sign data. - Note: this functionality is not currently available in the - official + If this is not set, the key will use the signing intent of + the Space. + wallets: + type: array + items: + type: object + properties: + address: + type: string + type: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED + description: >- + WalletType specifies the Layer 1 blockchain that this + wallet will be used - protobuf release, and it is not used for type URLs beginning - with + for. - type.googleapis.com. As of May 2023, there are no widely - used type server + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + warden.warden.v1beta2.QueryParamsResponse: + type: object + properties: + params: + description: params holds all the parameters of this module. + type: object + description: QueryParamsResponse is response type for the Query/Params RPC method. + warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse: + type: object + properties: + sign_transaction_request: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + key_id: + type: string + format: uint64 + wallet_type: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED + description: >- + WalletType specifies the Layer 1 blockchain that this wallet will + be used - implementations and no plans to implement one. + for. + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + unsigned_transaction: + type: string + format: byte + sign_request_id: + type: string + format: uint64 + warden.warden.v1beta2.QuerySignTransactionRequestsResponse: + type: object + properties: + 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 - Schemes other than `http`, `https` (or the empty scheme) - might be + 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. - used with implementation specific semantics. - additionalProperties: {} - result: - description: >- - Result of the action, it will be set when the action is - completed. + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + sign_transaction_requests: + type: array + items: + type: object + properties: + sign_transaction_request: type: object properties: - '@type': + id: + type: string + format: uint64 + creator: + type: string + key_id: type: string + format: uint64 + wallet_type: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED 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. - + WalletType specifies the Layer 1 blockchain that this wallet + will be used - Schemes other than `http`, `https` (or the empty scheme) - might be + for. - used with implementation specific semantics. - additionalProperties: {} - creator: - type: string - btl: - type: string - format: uint64 - description: >- - BTL (blocks to live) is the block height up until this action - can be + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + unsigned_transaction: + type: string + format: byte + sign_request_id: + type: string + format: uint64 + sign_request: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + key_id: + type: string + format: uint64 + data_for_signing: + type: string + format: byte + status: + type: string + enum: + - SIGN_REQUEST_STATUS_UNSPECIFIED + - SIGN_REQUEST_STATUS_PENDING + - SIGN_REQUEST_STATUS_FULFILLED + - SIGN_REQUEST_STATUS_REJECTED + default: SIGN_REQUEST_STATUS_UNSPECIFIED + description: >- + SignRequestStatus indicates the status of a signature + request. - approved or rejected. - created_at: - type: string - format: date-time - title: created_at is a timestamp specifying when the action was created - updated_at: - type: string - format: date-time - title: >- - updated_at is a timestamp specifying when the action's status - was updated - intent: - description: >- - intent is the intent that this action is associated with. - Instead of + A request starts as "pending", waiting to be picked up. Then + it can move to - storing the intent ID, we store the entire intent object so that - is + either "approved" or "rejected", depending on the decision + of the keychain. - immutable and cannot be changed later. - type: object - properties: - id: - type: string - format: uint64 - creator: + - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + key_type: type: string - name: + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: >- + KeyType indicates what crypto scheme will be used by this + key (e.g. + + ECDSA). Its public key will be one of the specified type. + + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + signed_data: type: string - definition: + format: byte + reject_reason: type: string - description: The definition of the intent written in the Shield language. - addresses: - type: array - items: - type: string - description: The list of addresses referenced from the intent definition. - description: >- - Action wraps a message that needs to be approved by a set of - approvers. - warden.intent.QueryIntentByIdResponse: + warden.warden.v1beta2.QuerySignatureRequestByIdResponse: type: object properties: - intent: + sign_request: type: object properties: id: @@ -37853,17 +35781,56 @@ definitions: format: uint64 creator: type: string - name: + key_id: type: string - definition: + format: uint64 + data_for_signing: type: string - description: The definition of the intent written in the Shield language. - addresses: - type: array - items: - type: string - description: The list of addresses referenced from the intent definition. - warden.intent.QueryIntentsResponse: + format: byte + status: + type: string + enum: + - SIGN_REQUEST_STATUS_UNSPECIFIED + - SIGN_REQUEST_STATUS_PENDING + - SIGN_REQUEST_STATUS_FULFILLED + - SIGN_REQUEST_STATUS_REJECTED + default: SIGN_REQUEST_STATUS_UNSPECIFIED + description: >- + SignRequestStatus indicates the status of a signature request. + + A request starts as "pending", waiting to be picked up. Then it + can move to + + either "approved" or "rejected", depending on the decision of the + keychain. + + - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + key_type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: >- + KeyType indicates what crypto scheme will be used by this key + (e.g. + + ECDSA). Its public key will be one of the specified type. + + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + signed_data: + type: string + format: byte + reject_reason: + type: string + warden.warden.v1beta2.QuerySignatureRequestsResponse: type: object properties: pagination: @@ -37892,7 +35859,7 @@ definitions: repeated Bar results = 1; PageResponse page = 2; } - intents: + sign_requests: type: array items: type: object @@ -37902,380 +35869,224 @@ definitions: format: uint64 creator: type: string - name: + key_id: type: string - definition: + format: uint64 + data_for_signing: type: string - description: The definition of the intent written in the Shield language. - addresses: - type: array - items: - type: string - description: The list of addresses referenced from the intent definition. - warden.intent.QueryParamsResponse: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - description: QueryParamsResponse is response type for the Query/Params RPC method. - warden.intent.MsgApproveAction: - type: object - properties: - creator: - type: string - action_type: - type: string - action_id: - type: string - format: uint64 - warden.intent.MsgApproveActionResponse: - type: object - properties: - status: - type: string - warden.intent.MsgNewIntent: - type: object - properties: - creator: - type: string - name: - type: string - definition: - type: string - warden.intent.MsgNewIntentResponse: - type: object - properties: - id: - type: string - format: uint64 - warden.intent.MsgRevokeAction: - type: object - properties: - creator: - type: string - action_type: - type: string - action_id: - type: string - format: uint64 - warden.intent.MsgRevokeActionResponse: - type: object - warden.intent.MsgUpdateParams: - 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 - description: MsgUpdateParams is the Msg/UpdateParams request type. - warden.intent.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - warden.intent.MsgActionCreated: + format: byte + status: + type: string + enum: + - SIGN_REQUEST_STATUS_UNSPECIFIED + - SIGN_REQUEST_STATUS_PENDING + - SIGN_REQUEST_STATUS_FULFILLED + - SIGN_REQUEST_STATUS_REJECTED + default: SIGN_REQUEST_STATUS_UNSPECIFIED + description: >- + SignRequestStatus indicates the status of a signature request. + + A request starts as "pending", waiting to be picked up. Then it + can move to + + either "approved" or "rejected", depending on the decision of + the keychain. + + - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + key_type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: >- + KeyType indicates what crypto scheme will be used by this key + (e.g. + + ECDSA). Its public key will be one of the specified type. + + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + signed_data: + type: string + format: byte + reject_reason: + type: string + warden.warden.v1beta2.QuerySpaceByIdResponse: type: object properties: - action: + space: type: object properties: id: type: string format: uint64 - approvers: + creator: + type: string + owners: type: array items: - type: object - properties: - address: - type: string - title: address is the address of the approver - approved_at: - type: string - format: date-time - title: >- - approved_at is a timestamp specifying when the approver - approved an action - status: - type: string - enum: - - ACTION_STATUS_UNSPECIFIED - - ACTION_STATUS_PENDING - - ACTION_STATUS_COMPLETED - - ACTION_STATUS_REVOKED - - ACTION_STATUS_TIMEOUT - default: ACTION_STATUS_UNSPECIFIED - description: |- - Current status of an action. - - - ACTION_STATUS_UNSPECIFIED: Unspecified status. - - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. - - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. - - ACTION_STATUS_REVOKED: Action has been revoked by its creator. - - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired - msg: - description: >- - Original message that started the action, it will be executed when - the - - intent is satisfied. - type: object - properties: - '@type': - type: string - description: >- - A URL/resource name that uniquely identifies the type of the - serialized + type: string + admin_intent_id: + type: string + format: uint64 + description: >- + Optional ID of the intent to be applied to every *admin* + operation. - protocol buffer message. This string must contain at least + If not specified, the default intent is used. - one "/" character. The last segment of the URL's path must - represent - the fully qualified name of the type (as in + Admin operations are: - `path/google.protobuf.Duration`). The name should be in a - canonical form + - warden.warden.Msg.AddSpaceOwner - (e.g., leading "." is not accepted). + - warden.warden.Msg.RemoveSpaceOwner - In practice, teams usually precompile into the binary all - types that they + The default intent is to allow any operation when at least one of + its - expect it to use in the context of Any. However, for URLs - which use the + owner approves it. + sign_intent_id: + type: string + format: uint64 + description: >- + Optional ID of the intent to be applied to every *sign* operation. - scheme `http`, `https`, or no scheme, one can optionally set - up a type + If not specified, the default intent is used. - server that maps type URLs to message definitions as follows: + Sign operations are: - * If no scheme is provided, `https` is assumed. + - warden.warden.Msg.NewKeyRequest - * 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.) + - warden.warden.Msg.NewSignTransactionRequest - Note: this functionality is not currently available in the - official + - warden.warden.Msg.NewSignatureRequest - protobuf release, and it is not used for type URLs beginning - with + - warden.warden.Msg.NewWalletRequest - type.googleapis.com. As of May 2023, there are no widely used - type server - implementations and no plans to implement one. + The default intent is to allow any operation when at least one of + its + owner approves it. + description: >- + Space is a collection of users (called owners) that manages a set of + keys. + warden.warden.v1beta2.QuerySpacesResponse: + type: object + properties: + 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 - Schemes other than `http`, `https` (or the empty scheme) might - be + 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. - used with implementation specific semantics. - additionalProperties: {} - result: - description: Result of the action, it will be set when the action is completed. - type: object - properties: - '@type': + message SomeResponse { + repeated Bar results = 1; + PageResponse page = 2; + } + spaces: + type: array + items: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + owners: + type: array + items: 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 + admin_intent_id: + type: string + format: uint64 + description: >- + Optional ID of the intent to be applied to every *admin* + operation. - server that maps type URLs to message definitions as follows: + If not specified, the default intent is used. - * If no scheme is provided, `https` is assumed. + Admin operations are: - * 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.) + - warden.warden.Msg.AddSpaceOwner - Note: this functionality is not currently available in the - official + - warden.warden.Msg.RemoveSpaceOwner - 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 + The default intent is to allow any operation when at least one + of its - implementations and no plans to implement one. + owner approves it. + sign_intent_id: + type: string + format: uint64 + description: >- + Optional ID of the intent to be applied to every *sign* + operation. + If not specified, the default intent is used. - Schemes other than `http`, `https` (or the empty scheme) might - be - used with implementation specific semantics. - additionalProperties: {} - creator: - type: string - btl: - type: string - format: uint64 - description: >- - BTL (blocks to live) is the block height up until this action can - be + Sign operations are: - approved or rejected. - created_at: - type: string - format: date-time - title: created_at is a timestamp specifying when the action was created - updated_at: - type: string - format: date-time - title: >- - updated_at is a timestamp specifying when the action's status was - updated - intent: - description: >- - intent is the intent that this action is associated with. Instead - of + - warden.warden.Msg.NewKeyRequest - storing the intent ID, we store the entire intent object so that - is + - warden.warden.Msg.NewSignTransactionRequest - immutable and cannot be changed later. - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - name: - type: string - definition: - type: string - description: The definition of the intent written in the Shield language. - addresses: - type: array - items: - type: string - description: The list of addresses referenced from the intent definition. - description: >- - Action wraps a message that needs to be approved by a set of - approvers. - description: MsgActionCreated is returned by rpc that creates an action. - warden.warden.v1beta2.KeyRequestStatus: - type: string - enum: - - KEY_REQUEST_STATUS_UNSPECIFIED - - KEY_REQUEST_STATUS_PENDING - - KEY_REQUEST_STATUS_FULFILLED - - KEY_REQUEST_STATUS_REJECTED - default: KEY_REQUEST_STATUS_UNSPECIFIED - description: >- - KeyRequestStatus indicates the status of a key request. + - warden.warden.Msg.NewSignatureRequest - A request starts as "pending", waiting to be picked up. Then it can move - to + - warden.warden.Msg.NewWalletRequest - either "approved" or "rejected", depending on the decision of the - keychain. - - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - warden.warden.v1beta2.KeyType: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: |- - KeyType indicates what crypto scheme will be used by this key (e.g. - ECDSA). Its public key will be one of the specified type. + The default intent is to allow any operation when at least one + of its - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - warden.warden.v1beta2.KeychainFees: - type: object - properties: - key_req: - type: string - format: int64 - sig_req: - type: string - format: int64 - warden.warden.v1beta2.MsgAddKeychainParty: + owner approves it. + description: >- + Space is a collection of users (called owners) that manages a set of + keys. + warden.warden.v1beta2.SignRequest: type: object properties: - creator: - type: string - keychain_id: + id: type: string format: uint64 - party: - type: string - warden.warden.v1beta2.MsgAddKeychainPartyResponse: - type: object - warden.warden.v1beta2.MsgAddSpaceOwner: - type: object - properties: creator: type: string - space_id: - type: string - format: uint64 - new_owner: - type: string - btl: + key_id: type: string format: uint64 - warden.warden.v1beta2.MsgFulfilSignatureRequest: - type: object - properties: - creator: - type: string - request_id: + data_for_signing: type: string - format: uint64 + format: byte status: type: string enum: @@ -38298,33 +36109,6 @@ definitions: request. - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - payload: - type: object - properties: - signed_data: - type: string - format: byte - reject_reason: - type: string - warden.warden.v1beta2.MsgFulfilSignatureRequestResponse: - type: object - warden.warden.v1beta2.MsgNewKey: - type: object - properties: - public_key: - type: string - format: byte - warden.warden.v1beta2.MsgNewKeyRequest: - type: object - properties: - creator: - type: string - space_id: - type: string - format: uint64 - keychain_id: - type: string - format: uint64 key_type: type: string enum: @@ -38339,313 +36123,227 @@ definitions: - KEY_TYPE_UNSPECIFIED: The key type is missing. - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - btl: - type: string - format: uint64 - intent_id: - type: string - format: uint64 - warden.warden.v1beta2.MsgNewKeychain: - type: object - properties: - creator: - type: string - description: - type: string - admin_intent_id: - type: string - format: uint64 - keychain_fees: - type: object - properties: - key_req: - type: string - format: int64 - sig_req: - type: string - format: int64 - warden.warden.v1beta2.MsgNewKeychainResponse: - type: object - properties: - id: - type: string - format: uint64 - warden.warden.v1beta2.MsgNewSignTransactionRequest: - type: object - properties: - creator: - type: string - key_id: - type: string - format: uint64 - wallet_type: - type: string - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED - description: >- - WalletType specifies the Layer 1 blockchain that this wallet will be - used - - for. - - - WALLET_TYPE_UNSPECIFIED: The wallet type is missing - - WALLET_TYPE_ETH: The wallet type for Ethereum - - WALLET_TYPE_CELESTIA: The wallet type for Celestia - - WALLET_TYPE_SUI: The wallet type for Sui - unsigned_transaction: + signed_data: type: string format: byte - btl: + reject_reason: type: string - format: uint64 - metadata: - description: Additional metadata required when parsing the unsigned transaction. - 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. - + warden.warden.v1beta2.SignRequestStatus: + type: string + enum: + - SIGN_REQUEST_STATUS_UNSPECIFIED + - SIGN_REQUEST_STATUS_PENDING + - SIGN_REQUEST_STATUS_FULFILLED + - SIGN_REQUEST_STATUS_REJECTED + default: SIGN_REQUEST_STATUS_UNSPECIFIED + description: >- + SignRequestStatus indicates the status of a signature request. - Schemes other than `http`, `https` (or the empty scheme) might be + A request starts as "pending", waiting to be picked up. Then it can move + to - used with implementation specific semantics. - additionalProperties: {} - warden.warden.v1beta2.MsgNewSignatureRequest: - type: object - properties: - creator: - type: string - key_id: - type: string - format: uint64 - data_for_signing: - type: string - format: byte - btl: - type: string - format: uint64 - warden.warden.v1beta2.MsgNewSpace: - type: object - properties: - creator: - type: string - admin_intent_id: - type: string - format: uint64 - sign_intent_id: - type: string - format: uint64 - additional_owners: - type: array - items: - type: string - warden.warden.v1beta2.MsgNewSpaceResponse: - type: object - properties: - id: - type: string - format: uint64 - warden.warden.v1beta2.MsgRemoveSpaceOwner: - type: object - properties: - creator: - type: string - space_id: - type: string - format: uint64 - owner: - type: string - btl: - type: string - format: uint64 - warden.warden.v1beta2.MsgSignedData: + either "approved" or "rejected", depending on the decision of the + keychain. + + - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + warden.warden.v1beta2.SignTransactionRequest: type: object properties: - signed_data: + id: type: string - format: byte - warden.warden.v1beta2.MsgUpdateKey: - type: object - properties: + format: uint64 creator: type: string key_id: type: string format: uint64 - intent_id: + wallet_type: type: string - format: uint64 - btl: + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED + description: >- + WalletType specifies the Layer 1 blockchain that this wallet will be + used + + for. + + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + unsigned_transaction: + type: string + format: byte + sign_request_id: type: string format: uint64 - warden.warden.v1beta2.MsgUpdateKeyRequest: + warden.warden.v1beta2.SignTransactionRequestResponse: type: object properties: - creator: - type: string - request_id: - type: string - format: uint64 - status: - type: string - enum: - - KEY_REQUEST_STATUS_UNSPECIFIED - - KEY_REQUEST_STATUS_PENDING - - KEY_REQUEST_STATUS_FULFILLED - - KEY_REQUEST_STATUS_REJECTED - default: KEY_REQUEST_STATUS_UNSPECIFIED - description: >- - KeyRequestStatus indicates the status of a key request. - - A request starts as "pending", waiting to be picked up. Then it can - move to + sign_transaction_request: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + key_id: + type: string + format: uint64 + wallet_type: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED + description: >- + WalletType specifies the Layer 1 blockchain that this wallet will + be used - either "approved" or "rejected", depending on the decision of the - keychain. + for. - - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - key: + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + unsigned_transaction: + type: string + format: byte + sign_request_id: + type: string + format: uint64 + sign_request: type: object properties: - public_key: + id: + type: string + format: uint64 + creator: + type: string + key_id: + type: string + format: uint64 + data_for_signing: type: string format: byte - reject_reason: - type: string - warden.warden.v1beta2.MsgUpdateKeyRequestResponse: - type: object - warden.warden.v1beta2.MsgUpdateKeychain: + status: + type: string + enum: + - SIGN_REQUEST_STATUS_UNSPECIFIED + - SIGN_REQUEST_STATUS_PENDING + - SIGN_REQUEST_STATUS_FULFILLED + - SIGN_REQUEST_STATUS_REJECTED + default: SIGN_REQUEST_STATUS_UNSPECIFIED + description: >- + SignRequestStatus indicates the status of a signature request. + + A request starts as "pending", waiting to be picked up. Then it + can move to + + either "approved" or "rejected", depending on the decision of the + keychain. + + - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + key_type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: >- + KeyType indicates what crypto scheme will be used by this key + (e.g. + + ECDSA). Its public key will be one of the specified type. + + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + signed_data: + type: string + format: byte + reject_reason: + type: string + warden.warden.v1beta2.Space: type: object properties: - creator: - type: string - keychain_id: + id: type: string format: uint64 - description: - type: string - is_active: - type: boolean - warden.warden.v1beta2.MsgUpdateKeychainResponse: - type: object - warden.warden.v1beta2.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 module parameters to update. - - NOTE: All parameters must be supplied. - type: object - description: MsgUpdateParams is the Msg/UpdateParams request type. - warden.warden.v1beta2.MsgUpdateParamsResponse: - type: object - description: |- - MsgUpdateParamsResponse defines the response structure for executing a - MsgUpdateParams message. - warden.warden.v1beta2.MsgUpdateSpace: - type: object - properties: creator: type: string - space_id: - type: string - format: uint64 + owners: + type: array + items: + type: string admin_intent_id: type: string format: uint64 + description: |- + Optional ID of the intent to be applied to every *admin* operation. + If not specified, the default intent is used. + + Admin operations are: + - warden.warden.Msg.AddSpaceOwner + - warden.warden.Msg.RemoveSpaceOwner + + The default intent is to allow any operation when at least one of its + owner approves it. sign_intent_id: type: string format: uint64 - btl: - type: string - format: uint64 - warden.warden.v1beta2.Params: - type: object - description: Params defines the parameters for the module. - warden.warden.v1beta2.SignRequestStatus: - type: string - enum: - - SIGN_REQUEST_STATUS_UNSPECIFIED - - SIGN_REQUEST_STATUS_PENDING - - SIGN_REQUEST_STATUS_FULFILLED - - SIGN_REQUEST_STATUS_REJECTED - default: SIGN_REQUEST_STATUS_UNSPECIFIED - description: >- - SignRequestStatus indicates the status of a signature request. + description: |- + Optional ID of the intent to be applied to every *sign* operation. + If not specified, the default intent is used. - A request starts as "pending", waiting to be picked up. Then it can move - to + Sign operations are: + - warden.warden.Msg.NewKeyRequest + - warden.warden.Msg.NewSignTransactionRequest + - warden.warden.Msg.NewSignatureRequest + - warden.warden.Msg.NewWalletRequest + + The default intent is to allow any operation when at least one of its + owner approves it. + description: Space is a collection of users (called owners) that manages a set of keys. + warden.warden.v1beta2.WalletKeyResponse: + type: object + properties: + address: + type: string + type: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED + description: >- + WalletType specifies the Layer 1 blockchain that this wallet will be + used - either "approved" or "rejected", depending on the decision of the - keychain. + for. - - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui warden.warden.v1beta2.WalletType: type: string enum: @@ -38662,207 +36360,188 @@ definitions: - WALLET_TYPE_ETH: The wallet type for Ethereum - WALLET_TYPE_CELESTIA: The wallet type for Celestia - WALLET_TYPE_SUI: The wallet type for Sui - warden.warden.v1beta2.Key: + warden.intent.Action: type: object properties: id: type: string format: uint64 - space_id: - type: string - format: uint64 - keychain_id: - type: string - format: uint64 - type: + approvers: + type: array + items: + type: object + properties: + address: + type: string + title: address is the address of the approver + approved_at: + type: string + format: date-time + title: >- + approved_at is a timestamp specifying when the approver approved + an action + status: type: string enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED + - ACTION_STATUS_UNSPECIFIED + - ACTION_STATUS_PENDING + - ACTION_STATUS_COMPLETED + - ACTION_STATUS_REVOKED + - ACTION_STATUS_TIMEOUT + default: ACTION_STATUS_UNSPECIFIED description: |- - KeyType indicates what crypto scheme will be used by this key (e.g. - ECDSA). Its public key will be one of the specified type. + Current status of an action. - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - public_key: - type: string - format: byte - intent_id: - type: string - format: uint64 - description: >- - IntentId is the ID of the intent that will need to be satisfied for - using + - ACTION_STATUS_UNSPECIFIED: Unspecified status. + - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. + - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. + - ACTION_STATUS_REVOKED: Action has been revoked by its creator. + - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired + msg: + description: |- + Original message that started the action, it will be executed when the + intent is satisfied. + type: object + properties: + '@type': + type: string + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - this key to sign data. + protocol buffer message. This string must contain at least - If this is not set, the key will use the signing intent of the Space. - warden.warden.v1beta2.KeyRequest: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - space_id: - type: string - format: uint64 - keychain_id: - type: string - format: uint64 - key_type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: |- - KeyType indicates what crypto scheme will be used by this key (e.g. - ECDSA). Its public key will be one of the specified type. + one "/" character. The last segment of the URL's path must + represent - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - status: - type: string - enum: - - KEY_REQUEST_STATUS_UNSPECIFIED - - KEY_REQUEST_STATUS_PENDING - - KEY_REQUEST_STATUS_FULFILLED - - KEY_REQUEST_STATUS_REJECTED - default: KEY_REQUEST_STATUS_UNSPECIFIED - description: >- - KeyRequestStatus indicates the status of a key request. + the fully qualified name of the type (as in - A request starts as "pending", waiting to be picked up. Then it can - move to + `path/google.protobuf.Duration`). The name should be in a + canonical form - either "approved" or "rejected", depending on the decision of the - keychain. + (e.g., leading "." is not accepted). - - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - reject_reason: - type: string - intent_id: - type: string - format: uint64 - description: IntentId is the ID of the intent that the resulting Key will use. - warden.warden.v1beta2.KeyResponse: - type: object - properties: - key: + + 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: {} + result: + description: Result of the action, it will be set when the action is completed. type: object properties: - id: - type: string - format: uint64 - space_id: - type: string - format: uint64 - keychain_id: - type: string - format: uint64 - type: + '@type': type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED description: >- - KeyType indicates what crypto scheme will be used by this key - (e.g. + A URL/resource name that uniquely identifies the type of the + serialized - ECDSA). Its public key will be one of the specified type. + protocol buffer message. This string must contain at least - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - public_key: - type: string - format: byte - intent_id: - type: string - format: uint64 - description: >- - IntentId is the ID of the intent that will need to be satisfied - for using + one "/" character. The last segment of the URL's path must + represent - this key to sign data. + 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. - If this is not set, the key will use the signing intent of the - Space. - wallets: - type: array - items: - type: object - properties: - address: - type: string - type: - type: string - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED - description: >- - WalletType specifies the Layer 1 blockchain that this wallet - will be used - for. + Schemes other than `http`, `https` (or the empty scheme) might be - - WALLET_TYPE_UNSPECIFIED: The wallet type is missing - - WALLET_TYPE_ETH: The wallet type for Ethereum - - WALLET_TYPE_CELESTIA: The wallet type for Celestia - - WALLET_TYPE_SUI: The wallet type for Sui - warden.warden.v1beta2.Keychain: - type: object - properties: - id: - type: string - format: uint64 + used with implementation specific semantics. + additionalProperties: {} creator: type: string - description: - type: string - admins: - type: array - items: - type: string - parties: - type: array - items: - type: string - admin_intent_id: + btl: type: string format: uint64 - fees: - type: object - properties: - key_req: - type: string - format: int64 - sig_req: - type: string - format: int64 - is_active: - type: boolean - warden.warden.v1beta2.QueryKeyRequestByIdResponse: - type: object - properties: - key_request: + description: |- + BTL (blocks to live) is the block height up until this action can be + approved or rejected. + created_at: + type: string + format: date-time + title: created_at is a timestamp specifying when the action was created + updated_at: + type: string + format: date-time + title: >- + updated_at is a timestamp specifying when the action's status was + updated + intent: + description: |- + intent is the intent that this action is associated with. Instead of + storing the intent ID, we store the entire intent object so that is + immutable and cannot be changed later. type: object properties: id: @@ -38870,845 +36549,589 @@ definitions: format: uint64 creator: type: string - space_id: - type: string - format: uint64 - keychain_id: - type: string - format: uint64 - key_type: + name: type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: >- - KeyType indicates what crypto scheme will be used by this key - (e.g. - - ECDSA). Its public key will be one of the specified type. - - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - status: + definition: type: string - enum: - - KEY_REQUEST_STATUS_UNSPECIFIED - - KEY_REQUEST_STATUS_PENDING - - KEY_REQUEST_STATUS_FULFILLED - - KEY_REQUEST_STATUS_REJECTED - default: KEY_REQUEST_STATUS_UNSPECIFIED - description: >- - KeyRequestStatus indicates the status of a key request. - - A request starts as "pending", waiting to be picked up. Then it - can move to - - either "approved" or "rejected", depending on the decision of the - keychain. + description: The definition of the intent written in the Shield language. + addresses: + type: array + items: + type: string + description: The list of addresses referenced from the intent definition. + description: Action wraps a message that needs to be approved by a set of approvers. + warden.intent.ActionStatus: + type: string + enum: + - ACTION_STATUS_UNSPECIFIED + - ACTION_STATUS_PENDING + - ACTION_STATUS_COMPLETED + - ACTION_STATUS_REVOKED + - ACTION_STATUS_TIMEOUT + default: ACTION_STATUS_UNSPECIFIED + description: |- + Current status of an action. - - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - reject_reason: - type: string - intent_id: - type: string - format: uint64 - description: IntentId is the ID of the intent that the resulting Key will use. - warden.warden.v1beta2.QueryKeyRequestsResponse: + - ACTION_STATUS_UNSPECIFIED: Unspecified status. + - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. + - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. + - ACTION_STATUS_REVOKED: Action has been revoked by its creator. + - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired + warden.intent.Approver: type: object properties: - 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; - } - key_requests: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - space_id: - type: string - format: uint64 - keychain_id: - type: string - format: uint64 - key_type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: >- - KeyType indicates what crypto scheme will be used by this key - (e.g. - - ECDSA). Its public key will be one of the specified type. - - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - status: - type: string - enum: - - KEY_REQUEST_STATUS_UNSPECIFIED - - KEY_REQUEST_STATUS_PENDING - - KEY_REQUEST_STATUS_FULFILLED - - KEY_REQUEST_STATUS_REJECTED - default: KEY_REQUEST_STATUS_UNSPECIFIED - description: >- - KeyRequestStatus indicates the status of a key request. - - A request starts as "pending", waiting to be picked up. Then it - can move to - - either "approved" or "rejected", depending on the decision of - the keychain. - - - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - reject_reason: - type: string - intent_id: - type: string - format: uint64 - description: >- - IntentId is the ID of the intent that the resulting Key will - use. - warden.warden.v1beta2.QueryKeychainByIdResponse: + address: + type: string + title: address is the address of the approver + approved_at: + type: string + format: date-time + title: >- + approved_at is a timestamp specifying when the approver approved an + action + warden.intent.Intent: + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + name: + type: string + definition: + type: string + description: The definition of the intent written in the Shield language. + addresses: + type: array + items: + type: string + description: The list of addresses referenced from the intent definition. + warden.intent.MsgActionCreated: type: object properties: - keychain: + action: type: object properties: id: type: string format: uint64 - creator: - type: string - description: - type: string - admins: - type: array - items: - type: string - parties: + approvers: type: array items: - type: string - admin_intent_id: + type: object + properties: + address: + type: string + title: address is the address of the approver + approved_at: + type: string + format: date-time + title: >- + approved_at is a timestamp specifying when the approver + approved an action + status: type: string - format: uint64 - fees: + enum: + - ACTION_STATUS_UNSPECIFIED + - ACTION_STATUS_PENDING + - ACTION_STATUS_COMPLETED + - ACTION_STATUS_REVOKED + - ACTION_STATUS_TIMEOUT + default: ACTION_STATUS_UNSPECIFIED + description: |- + Current status of an action. + + - ACTION_STATUS_UNSPECIFIED: Unspecified status. + - ACTION_STATUS_PENDING: Action is pending approval. This is the initial status. + - ACTION_STATUS_COMPLETED: Intent has been satified, action has been executed. + - ACTION_STATUS_REVOKED: Action has been revoked by its creator. + - ACTION_STATUS_TIMEOUT: Action has been rejected since Btl is expired + msg: + description: >- + Original message that started the action, it will be executed when + the + + intent is satisfied. type: object properties: - key_req: - type: string - format: int64 - sig_req: + '@type': type: string - format: int64 - is_active: - type: boolean - warden.warden.v1beta2.QueryKeychainsResponse: - type: object - properties: - 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 + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - 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. + protocol buffer message. This string must contain at least - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - keychains: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - description: - type: string - admins: - type: array - items: - type: string - parties: - type: array - items: + 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: {} + result: + description: Result of the action, it will be set when the action is completed. + type: object + properties: + '@type': type: string - admin_intent_id: - type: string - format: uint64 - fees: - type: object - properties: - key_req: - type: string - format: int64 - sig_req: - type: string - format: int64 - is_active: - type: boolean - warden.warden.v1beta2.QueryKeysResponse: - type: object - properties: - 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 + description: >- + A URL/resource name that uniquely identifies the type of the + serialized - 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. + protocol buffer message. This string must contain at least - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - keys: - type: array - items: - type: object - properties: - key: - type: object - properties: - id: - type: string - format: uint64 - space_id: - type: string - format: uint64 - keychain_id: - type: string - format: uint64 - type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: >- - KeyType indicates what crypto scheme will be used by this - key (e.g. + one "/" character. The last segment of the URL's path must + represent - ECDSA). Its public key will be one of the specified type. + the fully qualified name of the type (as in + + `path/google.protobuf.Duration`). The name should be in a + canonical form - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - public_key: - type: string - format: byte - intent_id: - type: string - format: uint64 - description: >- - IntentId is the ID of the intent that will need to be - satisfied for using + (e.g., leading "." is not accepted). - this key to sign data. - If this is not set, the key will use the signing intent of - the Space. - wallets: - type: array - items: - type: object - properties: - address: - type: string - type: - type: string - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED - description: >- - WalletType specifies the Layer 1 blockchain that this - wallet will be used + In practice, teams usually precompile into the binary all + types that they - for. + expect it to use in the context of Any. However, for URLs + which use the - - WALLET_TYPE_UNSPECIFIED: The wallet type is missing - - WALLET_TYPE_ETH: The wallet type for Ethereum - - WALLET_TYPE_CELESTIA: The wallet type for Celestia - - WALLET_TYPE_SUI: The wallet type for Sui - warden.warden.v1beta2.QueryParamsResponse: - type: object - properties: - params: - description: params holds all the parameters of this module. - type: object - description: QueryParamsResponse is response type for the Query/Params RPC method. - warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse: - type: object - properties: - sign_transaction_request: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - key_id: - type: string - format: uint64 - wallet_type: - type: string - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED - description: >- - WalletType specifies the Layer 1 blockchain that this wallet will - be used + scheme `http`, `https`, or no scheme, one can optionally set + up a type - for. + server that maps type URLs to message definitions as follows: - - WALLET_TYPE_UNSPECIFIED: The wallet type is missing - - WALLET_TYPE_ETH: The wallet type for Ethereum - - WALLET_TYPE_CELESTIA: The wallet type for Celestia - - WALLET_TYPE_SUI: The wallet type for Sui - unsigned_transaction: - type: string - format: byte - sign_request_id: - type: string - format: uint64 - warden.warden.v1beta2.QuerySignTransactionRequestsResponse: - type: object - properties: - 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. + * If no scheme is provided, `https` is assumed. - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - sign_transaction_requests: - type: array - items: - type: object - properties: - sign_transaction_request: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - key_id: - type: string - format: uint64 - wallet_type: - type: string - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED - description: >- - WalletType specifies the Layer 1 blockchain that this wallet - will be used + * 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.) - for. + Note: this functionality is not currently available in the + official - - WALLET_TYPE_UNSPECIFIED: The wallet type is missing - - WALLET_TYPE_ETH: The wallet type for Ethereum - - WALLET_TYPE_CELESTIA: The wallet type for Celestia - - WALLET_TYPE_SUI: The wallet type for Sui - unsigned_transaction: - type: string - format: byte - sign_request_id: - type: string - format: uint64 - sign_request: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - key_id: - type: string - format: uint64 - data_for_signing: - type: string - format: byte - status: - type: string - enum: - - SIGN_REQUEST_STATUS_UNSPECIFIED - - SIGN_REQUEST_STATUS_PENDING - - SIGN_REQUEST_STATUS_FULFILLED - - SIGN_REQUEST_STATUS_REJECTED - default: SIGN_REQUEST_STATUS_UNSPECIFIED - description: >- - SignRequestStatus indicates the status of a signature - request. + protobuf release, and it is not used for type URLs beginning + with - A request starts as "pending", waiting to be picked up. Then - it can move to + type.googleapis.com. As of May 2023, there are no widely used + type server - either "approved" or "rejected", depending on the decision - of the keychain. + implementations and no plans to implement one. - - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - key_type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: >- - KeyType indicates what crypto scheme will be used by this - key (e.g. - ECDSA). Its public key will be one of the specified type. + Schemes other than `http`, `https` (or the empty scheme) might + be - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - signed_data: - type: string - format: byte - reject_reason: - type: string - warden.warden.v1beta2.QuerySignatureRequestByIdResponse: - type: object - properties: - sign_request: - type: object - properties: - id: - type: string - format: uint64 + used with implementation specific semantics. + additionalProperties: {} creator: type: string - key_id: + btl: type: string format: uint64 - data_for_signing: - type: string - format: byte - status: - type: string - enum: - - SIGN_REQUEST_STATUS_UNSPECIFIED - - SIGN_REQUEST_STATUS_PENDING - - SIGN_REQUEST_STATUS_FULFILLED - - SIGN_REQUEST_STATUS_REJECTED - default: SIGN_REQUEST_STATUS_UNSPECIFIED description: >- - SignRequestStatus indicates the status of a signature request. + BTL (blocks to live) is the block height up until this action can + be + + approved or rejected. + created_at: + type: string + format: date-time + title: created_at is a timestamp specifying when the action was created + updated_at: + type: string + format: date-time + title: >- + updated_at is a timestamp specifying when the action's status was + updated + intent: + description: >- + intent is the intent that this action is associated with. Instead + of - A request starts as "pending", waiting to be picked up. Then it - can move to + storing the intent ID, we store the entire intent object so that + is - either "approved" or "rejected", depending on the decision of the - keychain. + immutable and cannot be changed later. + type: object + properties: + id: + type: string + format: uint64 + creator: + type: string + name: + type: string + definition: + type: string + description: The definition of the intent written in the Shield language. + addresses: + type: array + items: + type: string + description: The list of addresses referenced from the intent definition. + description: >- + Action wraps a message that needs to be approved by a set of + approvers. + description: MsgActionCreated is returned by rpc that creates an action. + warden.warden.v1beta2.MsgAddKeychainParty: + type: object + properties: + creator: + type: string + keychain_id: + type: string + format: uint64 + party: + type: string + warden.warden.v1beta2.MsgAddKeychainPartyResponse: + type: object + warden.warden.v1beta2.MsgAddSpaceOwner: + type: object + properties: + creator: + type: string + space_id: + type: string + format: uint64 + new_owner: + type: string + btl: + type: string + format: uint64 + warden.warden.v1beta2.MsgFulfilSignatureRequest: + type: object + properties: + creator: + type: string + request_id: + type: string + format: uint64 + status: + type: string + enum: + - SIGN_REQUEST_STATUS_UNSPECIFIED + - SIGN_REQUEST_STATUS_PENDING + - SIGN_REQUEST_STATUS_FULFILLED + - SIGN_REQUEST_STATUS_REJECTED + default: SIGN_REQUEST_STATUS_UNSPECIFIED + description: >- + SignRequestStatus indicates the status of a signature request. - - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - key_type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: >- - KeyType indicates what crypto scheme will be used by this key - (e.g. + A request starts as "pending", waiting to be picked up. Then it can + move to - ECDSA). Its public key will be one of the specified type. + either "approved" or "rejected", depending on the decision of the + keychain. - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + request. + - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + payload: + type: object + properties: signed_data: type: string format: byte - reject_reason: - type: string - warden.warden.v1beta2.QuerySignatureRequestsResponse: + reject_reason: + type: string + warden.warden.v1beta2.MsgFulfilSignatureRequestResponse: + type: object + warden.warden.v1beta2.MsgNewKey: type: object properties: - pagination: + public_key: + type: string + format: byte + warden.warden.v1beta2.MsgNewKeyRequest: + type: object + properties: + creator: + type: string + space_id: + type: string + format: uint64 + keychain_id: + type: string + format: uint64 + key_type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + description: |- + KeyType indicates what crypto scheme will be used by this key (e.g. + ECDSA). Its public key will be one of the specified type. + + - KEY_TYPE_UNSPECIFIED: The key type is missing. + - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. + - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. + btl: + type: string + format: uint64 + intent_id: + type: string + format: uint64 + warden.warden.v1beta2.MsgNewKeychain: + type: object + properties: + creator: + type: string + description: + type: string + admin_intent_id: + type: string + format: uint64 + keychain_fees: type: object properties: - next_key: + key_req: 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: + format: int64 + sig_req: 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; - } - sign_requests: - type: array - items: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - key_id: - type: string - format: uint64 - data_for_signing: - type: string - format: byte - status: - type: string - enum: - - SIGN_REQUEST_STATUS_UNSPECIFIED - - SIGN_REQUEST_STATUS_PENDING - - SIGN_REQUEST_STATUS_FULFILLED - - SIGN_REQUEST_STATUS_REJECTED - default: SIGN_REQUEST_STATUS_UNSPECIFIED - description: >- - SignRequestStatus indicates the status of a signature request. - - A request starts as "pending", waiting to be picked up. Then it - can move to - - either "approved" or "rejected", depending on the decision of - the keychain. - - - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - key_type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: >- - KeyType indicates what crypto scheme will be used by this key - (e.g. - - ECDSA). Its public key will be one of the specified type. - - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - signed_data: - type: string - format: byte - reject_reason: - type: string - warden.warden.v1beta2.QuerySpaceByIdResponse: + format: int64 + warden.warden.v1beta2.MsgNewKeychainResponse: + type: object + properties: + id: + type: string + format: uint64 + warden.warden.v1beta2.MsgNewSignTransactionRequest: type: object properties: - space: + creator: + type: string + key_id: + type: string + format: uint64 + wallet_type: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED + description: >- + WalletType specifies the Layer 1 blockchain that this wallet will be + used + + for. + + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + unsigned_transaction: + type: string + format: byte + btl: + type: string + format: uint64 + metadata: + description: Additional metadata required when parsing the unsigned transaction. type: object properties: - id: - type: string - format: uint64 - creator: - type: string - owners: - type: array - items: - type: string - admin_intent_id: + '@type': type: string - format: uint64 description: >- - Optional ID of the intent to be applied to every *admin* - operation. + A URL/resource name that uniquely identifies the type of the + serialized - If not specified, the default intent is used. + protocol buffer message. This string must contain at least + one "/" character. The last segment of the URL's path must + represent - Admin operations are: + the fully qualified name of the type (as in - - warden.warden.Msg.AddSpaceOwner + `path/google.protobuf.Duration`). The name should be in a + canonical form - - warden.warden.Msg.RemoveSpaceOwner + (e.g., leading "." is not accepted). - The default intent is to allow any operation when at least one of - its + In practice, teams usually precompile into the binary all types + that they - owner approves it. - sign_intent_id: - type: string - format: uint64 - description: >- - Optional ID of the intent to be applied to every *sign* operation. + expect it to use in the context of Any. However, for URLs which + use the - If not specified, the default intent is used. + scheme `http`, `https`, or no scheme, one can optionally set up a + type + server that maps type URLs to message definitions as follows: - Sign operations are: - - warden.warden.Msg.NewKeyRequest + * If no scheme is provided, `https` is assumed. - - warden.warden.Msg.NewSignTransactionRequest + * 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.) - - warden.warden.Msg.NewSignatureRequest + Note: this functionality is not currently available in the + official - - warden.warden.Msg.NewWalletRequest + 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 - The default intent is to allow any operation when at least one of - its + implementations and no plans to implement one. - owner approves it. - description: >- - Space is a collection of users (called owners) that manages a set of - keys. - warden.warden.v1beta2.QuerySpacesResponse: - type: object - properties: - 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. + Schemes other than `http`, `https` (or the empty scheme) might be - message SomeResponse { - repeated Bar results = 1; - PageResponse page = 2; - } - spaces: + used with implementation specific semantics. + additionalProperties: {} + warden.warden.v1beta2.MsgNewSignatureRequest: + type: object + properties: + creator: + type: string + key_id: + type: string + format: uint64 + data_for_signing: + type: string + format: byte + btl: + type: string + format: uint64 + warden.warden.v1beta2.MsgNewSpace: + type: object + properties: + creator: + type: string + admin_intent_id: + type: string + format: uint64 + sign_intent_id: + type: string + format: uint64 + additional_owners: type: array items: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - owners: - type: array - items: - type: string - admin_intent_id: - type: string - format: uint64 - description: >- - Optional ID of the intent to be applied to every *admin* - operation. - - If not specified, the default intent is used. - - - Admin operations are: - - - warden.warden.Msg.AddSpaceOwner - - - warden.warden.Msg.RemoveSpaceOwner - - - The default intent is to allow any operation when at least one - of its - - owner approves it. - sign_intent_id: - type: string - format: uint64 - description: >- - Optional ID of the intent to be applied to every *sign* - operation. - - If not specified, the default intent is used. - - - Sign operations are: - - - warden.warden.Msg.NewKeyRequest - - - warden.warden.Msg.NewSignTransactionRequest - - - warden.warden.Msg.NewSignatureRequest - - - warden.warden.Msg.NewWalletRequest - - - The default intent is to allow any operation when at least one - of its - - owner approves it. - description: >- - Space is a collection of users (called owners) that manages a set of - keys. - warden.warden.v1beta2.SignRequest: + type: string + warden.warden.v1beta2.MsgNewSpaceResponse: type: object properties: id: type: string format: uint64 + warden.warden.v1beta2.MsgRemoveSpaceOwner: + type: object + properties: + creator: + type: string + space_id: + type: string + format: uint64 + owner: + type: string + btl: + type: string + format: uint64 + warden.warden.v1beta2.MsgSignedData: + type: object + properties: + signed_data: + type: string + format: byte + warden.warden.v1beta2.MsgUpdateKey: + type: object + properties: + creator: + type: string + key_id: + type: string + format: uint64 + intent_id: + type: string + format: uint64 + btl: + type: string + format: uint64 + warden.warden.v1beta2.MsgUpdateKeyRequest: + type: object + properties: creator: type: string - key_id: + request_id: type: string format: uint64 - data_for_signing: - type: string - format: byte status: type: string enum: - - SIGN_REQUEST_STATUS_UNSPECIFIED - - SIGN_REQUEST_STATUS_PENDING - - SIGN_REQUEST_STATUS_FULFILLED - - SIGN_REQUEST_STATUS_REJECTED - default: SIGN_REQUEST_STATUS_UNSPECIFIED + - KEY_REQUEST_STATUS_UNSPECIFIED + - KEY_REQUEST_STATUS_PENDING + - KEY_REQUEST_STATUS_FULFILLED + - KEY_REQUEST_STATUS_REJECTED + default: KEY_REQUEST_STATUS_UNSPECIFIED description: >- - SignRequestStatus indicates the status of a signature request. + KeyRequestStatus indicates the status of a key request. A request starts as "pending", waiting to be picked up. Then it can move to @@ -39716,221 +37139,69 @@ definitions: either "approved" or "rejected", depending on the decision of the keychain. - - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a + - KEY_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. + - KEY_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a request. - - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - key_type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: |- - KeyType indicates what crypto scheme will be used by this key (e.g. - ECDSA). Its public key will be one of the specified type. - - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - signed_data: - type: string - format: byte + - KEY_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. + - KEY_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. + key: + type: object + properties: + public_key: + type: string + format: byte reject_reason: type: string - warden.warden.v1beta2.SignTransactionRequest: + warden.warden.v1beta2.MsgUpdateKeyRequestResponse: + type: object + warden.warden.v1beta2.MsgUpdateKeychain: type: object properties: - id: - type: string - format: uint64 creator: type: string - key_id: + keychain_id: type: string format: uint64 - wallet_type: - type: string - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED - description: >- - WalletType specifies the Layer 1 blockchain that this wallet will be - used - - for. - - - WALLET_TYPE_UNSPECIFIED: The wallet type is missing - - WALLET_TYPE_ETH: The wallet type for Ethereum - - WALLET_TYPE_CELESTIA: The wallet type for Celestia - - WALLET_TYPE_SUI: The wallet type for Sui - unsigned_transaction: - type: string - format: byte - sign_request_id: + description: type: string - format: uint64 - warden.warden.v1beta2.SignTransactionRequestResponse: + is_active: + type: boolean + warden.warden.v1beta2.MsgUpdateKeychainResponse: + type: object + warden.warden.v1beta2.MsgUpdateParams: type: object properties: - sign_transaction_request: - type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - key_id: - type: string - format: uint64 - wallet_type: - type: string - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED - description: >- - WalletType specifies the Layer 1 blockchain that this wallet will - be used - - for. + 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. - - WALLET_TYPE_UNSPECIFIED: The wallet type is missing - - WALLET_TYPE_ETH: The wallet type for Ethereum - - WALLET_TYPE_CELESTIA: The wallet type for Celestia - - WALLET_TYPE_SUI: The wallet type for Sui - unsigned_transaction: - type: string - format: byte - sign_request_id: - type: string - format: uint64 - sign_request: + NOTE: All parameters must be supplied. type: object - properties: - id: - type: string - format: uint64 - creator: - type: string - key_id: - type: string - format: uint64 - data_for_signing: - type: string - format: byte - status: - type: string - enum: - - SIGN_REQUEST_STATUS_UNSPECIFIED - - SIGN_REQUEST_STATUS_PENDING - - SIGN_REQUEST_STATUS_FULFILLED - - SIGN_REQUEST_STATUS_REJECTED - default: SIGN_REQUEST_STATUS_UNSPECIFIED - description: >- - SignRequestStatus indicates the status of a signature request. - - A request starts as "pending", waiting to be picked up. Then it - can move to - - either "approved" or "rejected", depending on the decision of the - keychain. - - - SIGN_REQUEST_STATUS_UNSPECIFIED: The request is missing the status field. - - SIGN_REQUEST_STATUS_PENDING: The request is waiting to be fulfilled. This is the initial state of a - request. - - SIGN_REQUEST_STATUS_FULFILLED: The request was fulfilled. This is a final state for a request. - - SIGN_REQUEST_STATUS_REJECTED: The request was rejected. This is a final state for a request. - key_type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - description: >- - KeyType indicates what crypto scheme will be used by this key - (e.g. - - ECDSA). Its public key will be one of the specified type. - - - KEY_TYPE_UNSPECIFIED: The key type is missing. - - KEY_TYPE_ECDSA_SECP256K1: The key is an ECDSA secp256k1 key. - - KEY_TYPE_EDDSA_ED25519: The key is an EdDSA Ed25519 key. - signed_data: - type: string - format: byte - reject_reason: - type: string - warden.warden.v1beta2.Space: + description: MsgUpdateParams is the Msg/UpdateParams request type. + warden.warden.v1beta2.MsgUpdateParamsResponse: + type: object + description: |- + MsgUpdateParamsResponse defines the response structure for executing a + MsgUpdateParams message. + warden.warden.v1beta2.MsgUpdateSpace: type: object properties: - id: - type: string - format: uint64 creator: type: string - owners: - type: array - items: - type: string + space_id: + type: string + format: uint64 admin_intent_id: type: string format: uint64 - description: |- - Optional ID of the intent to be applied to every *admin* operation. - If not specified, the default intent is used. - - Admin operations are: - - warden.warden.Msg.AddSpaceOwner - - warden.warden.Msg.RemoveSpaceOwner - - The default intent is to allow any operation when at least one of its - owner approves it. sign_intent_id: type: string format: uint64 - description: |- - Optional ID of the intent to be applied to every *sign* operation. - If not specified, the default intent is used. - - Sign operations are: - - warden.warden.Msg.NewKeyRequest - - warden.warden.Msg.NewSignTransactionRequest - - warden.warden.Msg.NewSignatureRequest - - warden.warden.Msg.NewWalletRequest - - The default intent is to allow any operation when at least one of its - owner approves it. - description: Space is a collection of users (called owners) that manages a set of keys. - warden.warden.v1beta2.WalletKeyResponse: - type: object - properties: - address: - type: string - type: + btl: type: string - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED - description: >- - WalletType specifies the Layer 1 blockchain that this wallet will be - used - - for. - - - WALLET_TYPE_UNSPECIFIED: The wallet type is missing - - WALLET_TYPE_ETH: The wallet type for Ethereum - - WALLET_TYPE_CELESTIA: The wallet type for Celestia - - WALLET_TYPE_SUI: The wallet type for Sui + format: uint64 diff --git a/spaceward/src/hooks/useWardenWardenV1Beta2/index.ts b/spaceward/src/hooks/useWardenWardenV1Beta2/index.ts index d6d843c7a..18070741e 100755 --- a/spaceward/src/hooks/useWardenWardenV1Beta2/index.ts +++ b/spaceward/src/hooks/useWardenWardenV1Beta2/index.ts @@ -99,15 +99,15 @@ export default function useWardenWardenV1Beta2() { }, options); } - const QueryKeys = (query: any, options: any, perPage: number) => { - const key = { type: 'QueryKeys', query }; + const QueryAllKeys = (query: any, options: any, perPage: number) => { + const key = { type: 'QueryAllKeys', query }; return useInfiniteQuery([key], ({pageParam = 1}: { pageParam?: number}) => { const {query } = key query['pagination.limit']=perPage; query['pagination.offset']= (pageParam-1)*perPage; query['pagination.count_total']= true; - return client.WardenWardenV1Beta2.query.queryKeys(query ?? undefined).then( res => ({...res.data,pageParam}) ); + return client.WardenWardenV1Beta2.query.queryAllKeys(query ?? undefined).then( res => ({...res.data,pageParam}) ); }, {...options, getNextPageParam: (lastPage, allPages) => { if ((lastPage.pagination?.total ?? 0) >((lastPage.pageParam ?? 0) * perPage)) {return lastPage.pageParam+1 } else {return undefined}}, getPreviousPageParam: (firstPage, allPages) => { if (firstPage.pageParam==1) { return undefined } else { return firstPage.pageParam-1}} @@ -115,6 +115,30 @@ export default function useWardenWardenV1Beta2() { ); } + const QueryKeysBySpaceId = (query: any, options: any, perPage: number) => { + const key = { type: 'QueryKeysBySpaceId', query }; + return useInfiniteQuery([key], ({pageParam = 1}: { pageParam?: number}) => { + const {query } = key + + query['pagination.limit']=perPage; + query['pagination.offset']= (pageParam-1)*perPage; + query['pagination.count_total']= true; + return client.WardenWardenV1Beta2.query.queryKeysBySpaceId(query ?? undefined).then( res => ({...res.data,pageParam}) ); + }, {...options, + getNextPageParam: (lastPage, allPages) => { if ((lastPage.pagination?.total ?? 0) >((lastPage.pageParam ?? 0) * perPage)) {return lastPage.pageParam+1 } else {return undefined}}, + getPreviousPageParam: (firstPage, allPages) => { if (firstPage.pageParam==1) { return undefined } else { return firstPage.pageParam-1}} + } + ); + } + + const QueryKeyById = (query: any, options: any) => { + const key = { type: 'QueryKeyById', query }; + return useQuery([key], () => { + const {query } = key + return client.WardenWardenV1Beta2.query.queryKeyById(query ?? undefined).then( res => res.data ); + }, options); + } + const QuerySignatureRequests = (query: any, options: any, perPage: number) => { const key = { type: 'QuerySignatureRequests', query }; return useInfiniteQuery([key], ({pageParam = 1}: { pageParam?: number}) => { @@ -163,6 +187,6 @@ export default function useWardenWardenV1Beta2() { }, options); } - return {QueryParams,QuerySpaces,QuerySpacesByOwner,QueryKeychains,QuerySpaceById,QueryKeychainById,QueryKeyRequests,QueryKeyRequestById,QueryKeys,QuerySignatureRequests,QuerySignatureRequestById,QuerySignTransactionRequests,QuerySignTransactionRequestById, + return {QueryParams,QuerySpaces,QuerySpacesByOwner,QueryKeychains,QuerySpaceById,QueryKeychainById,QueryKeyRequests,QueryKeyRequestById,QueryAllKeys,QueryKeysBySpaceId,QueryKeyById,QuerySignatureRequests,QuerySignatureRequestById,QuerySignTransactionRequests,QuerySignTransactionRequestById, } } diff --git a/ts-client/cosmos.auth.v1beta1/module.ts b/ts-client/cosmos.auth.v1beta1/module.ts index 1e4ecb478..1576a725b 100755 --- a/ts-client/cosmos.auth.v1beta1/module.ts +++ b/ts-client/cosmos.auth.v1beta1/module.ts @@ -6,171 +6,171 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; +import { Params } from "./types/cosmos/auth/v1beta1/auth"; +import { QueryModuleAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryParamsResponse } from "./types/cosmos/auth/v1beta1/query"; +import { GenesisState } from "./types/cosmos/auth/v1beta1/genesis"; +import { QueryAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; +import { AddressStringToBytesRequest } from "./types/cosmos/auth/v1beta1/query"; +import { BaseAccount } from "./types/cosmos/auth/v1beta1/auth"; +import { Bech32PrefixResponse } from "./types/cosmos/auth/v1beta1/query"; import { AddressBytesToStringResponse } from "./types/cosmos/auth/v1beta1/query"; import { AddressStringToBytesResponse } from "./types/cosmos/auth/v1beta1/query"; -import { Params } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryModuleAccountByNameRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountAddressByIDResponse } from "./types/cosmos/auth/v1beta1/query"; +import { MsgUpdateParams } from "./types/cosmos/auth/v1beta1/tx"; import { QueryAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountRequest } from "./types/cosmos/auth/v1beta1/query"; import { QueryModuleAccountByNameResponse } from "./types/cosmos/auth/v1beta1/query"; -import { AddressStringToBytesRequest } from "./types/cosmos/auth/v1beta1/query"; +import { Bech32PrefixRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountAddressByIDRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountInfoResponse } from "./types/cosmos/auth/v1beta1/query"; import { ModuleCredential } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryAccountAddressByIDResponse } from "./types/cosmos/auth/v1beta1/query"; -import { GenesisState } from "./types/cosmos/auth/v1beta1/genesis"; -import { BaseAccount } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryModuleAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; import { MsgUpdateParamsResponse } from "./types/cosmos/auth/v1beta1/tx"; -import { QueryAccountInfoResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryParamsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { ModuleAccount } from "./types/cosmos/auth/v1beta1/auth"; +import { QueryModuleAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; import { QueryAccountResponse } from "./types/cosmos/auth/v1beta1/query"; -import { Bech32PrefixRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountRequest } from "./types/cosmos/auth/v1beta1/query"; -import { MsgUpdateParams } from "./types/cosmos/auth/v1beta1/tx"; -import { QueryAccountInfoRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryModuleAccountByNameRequest } from "./types/cosmos/auth/v1beta1/query"; import { AddressBytesToStringRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountAddressByIDRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryModuleAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { Bech32PrefixResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountInfoRequest } from "./types/cosmos/auth/v1beta1/query"; +import { ModuleAccount } from "./types/cosmos/auth/v1beta1/auth"; +import { QueryParamsRequest } from "./types/cosmos/auth/v1beta1/query"; -export { AddressBytesToStringResponse, AddressStringToBytesResponse, Params, QueryModuleAccountByNameRequest, QueryAccountsRequest, QueryModuleAccountByNameResponse, AddressStringToBytesRequest, ModuleCredential, QueryAccountAddressByIDResponse, GenesisState, BaseAccount, QueryModuleAccountsRequest, MsgUpdateParamsResponse, QueryAccountInfoResponse, QueryParamsRequest, QueryParamsResponse, ModuleAccount, QueryAccountResponse, Bech32PrefixRequest, QueryAccountsResponse, QueryAccountRequest, MsgUpdateParams, QueryAccountInfoRequest, AddressBytesToStringRequest, QueryAccountAddressByIDRequest, QueryModuleAccountsResponse, Bech32PrefixResponse }; +export { Params, QueryModuleAccountsRequest, QueryParamsResponse, GenesisState, QueryAccountsResponse, AddressStringToBytesRequest, BaseAccount, Bech32PrefixResponse, AddressBytesToStringResponse, AddressStringToBytesResponse, QueryAccountAddressByIDResponse, MsgUpdateParams, QueryAccountsRequest, QueryAccountRequest, QueryModuleAccountByNameResponse, Bech32PrefixRequest, QueryAccountAddressByIDRequest, QueryAccountInfoResponse, ModuleCredential, MsgUpdateParamsResponse, QueryModuleAccountsResponse, QueryAccountResponse, QueryModuleAccountByNameRequest, AddressBytesToStringRequest, QueryAccountInfoRequest, ModuleAccount, QueryParamsRequest }; -type sendAddressBytesToStringResponseParams = { - value: AddressBytesToStringResponse, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendAddressStringToBytesResponseParams = { - value: AddressStringToBytesResponse, +type sendQueryModuleAccountsRequestParams = { + value: QueryModuleAccountsRequest, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryModuleAccountByNameRequestParams = { - value: QueryModuleAccountByNameRequest, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendQueryAccountsRequestParams = { - value: QueryAccountsRequest, +type sendQueryAccountsResponseParams = { + value: QueryAccountsResponse, fee?: StdFee, memo?: string }; -type sendQueryModuleAccountByNameResponseParams = { - value: QueryModuleAccountByNameResponse, +type sendAddressStringToBytesRequestParams = { + value: AddressStringToBytesRequest, fee?: StdFee, memo?: string }; -type sendAddressStringToBytesRequestParams = { - value: AddressStringToBytesRequest, +type sendBaseAccountParams = { + value: BaseAccount, fee?: StdFee, memo?: string }; -type sendModuleCredentialParams = { - value: ModuleCredential, +type sendBech32PrefixResponseParams = { + value: Bech32PrefixResponse, fee?: StdFee, memo?: string }; -type sendQueryAccountAddressByIDResponseParams = { - value: QueryAccountAddressByIDResponse, +type sendAddressBytesToStringResponseParams = { + value: AddressBytesToStringResponse, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendAddressStringToBytesResponseParams = { + value: AddressStringToBytesResponse, fee?: StdFee, memo?: string }; -type sendBaseAccountParams = { - value: BaseAccount, +type sendQueryAccountAddressByIDResponseParams = { + value: QueryAccountAddressByIDResponse, fee?: StdFee, memo?: string }; -type sendQueryModuleAccountsRequestParams = { - value: QueryModuleAccountsRequest, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendQueryAccountsRequestParams = { + value: QueryAccountsRequest, fee?: StdFee, memo?: string }; -type sendQueryAccountInfoResponseParams = { - value: QueryAccountInfoResponse, +type sendQueryAccountRequestParams = { + value: QueryAccountRequest, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendQueryModuleAccountByNameResponseParams = { + value: QueryModuleAccountByNameResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendBech32PrefixRequestParams = { + value: Bech32PrefixRequest, fee?: StdFee, memo?: string }; -type sendModuleAccountParams = { - value: ModuleAccount, +type sendQueryAccountAddressByIDRequestParams = { + value: QueryAccountAddressByIDRequest, fee?: StdFee, memo?: string }; -type sendQueryAccountResponseParams = { - value: QueryAccountResponse, +type sendQueryAccountInfoResponseParams = { + value: QueryAccountInfoResponse, fee?: StdFee, memo?: string }; -type sendBech32PrefixRequestParams = { - value: Bech32PrefixRequest, +type sendModuleCredentialParams = { + value: ModuleCredential, fee?: StdFee, memo?: string }; -type sendQueryAccountsResponseParams = { - value: QueryAccountsResponse, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryAccountRequestParams = { - value: QueryAccountRequest, +type sendQueryModuleAccountsResponseParams = { + value: QueryModuleAccountsResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendQueryAccountResponseParams = { + value: QueryAccountResponse, fee?: StdFee, memo?: string }; -type sendQueryAccountInfoRequestParams = { - value: QueryAccountInfoRequest, +type sendQueryModuleAccountByNameRequestParams = { + value: QueryModuleAccountByNameRequest, fee?: StdFee, memo?: string }; @@ -181,131 +181,131 @@ type sendAddressBytesToStringRequestParams = { memo?: string }; -type sendQueryAccountAddressByIDRequestParams = { - value: QueryAccountAddressByIDRequest, +type sendQueryAccountInfoRequestParams = { + value: QueryAccountInfoRequest, fee?: StdFee, memo?: string }; -type sendQueryModuleAccountsResponseParams = { - value: QueryModuleAccountsResponse, +type sendModuleAccountParams = { + value: ModuleAccount, fee?: StdFee, memo?: string }; -type sendBech32PrefixResponseParams = { - value: Bech32PrefixResponse, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type addressBytesToStringResponseParams = { - value: AddressBytesToStringResponse, -}; - -type addressStringToBytesResponseParams = { - value: AddressStringToBytesResponse, -}; - type paramsParams = { value: Params, }; -type queryModuleAccountByNameRequestParams = { - value: QueryModuleAccountByNameRequest, +type queryModuleAccountsRequestParams = { + value: QueryModuleAccountsRequest, }; -type queryAccountsRequestParams = { - value: QueryAccountsRequest, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type queryModuleAccountByNameResponseParams = { - value: QueryModuleAccountByNameResponse, +type genesisStateParams = { + value: GenesisState, +}; + +type queryAccountsResponseParams = { + value: QueryAccountsResponse, }; type addressStringToBytesRequestParams = { value: AddressStringToBytesRequest, }; -type moduleCredentialParams = { - value: ModuleCredential, +type baseAccountParams = { + value: BaseAccount, }; -type queryAccountAddressByIdresponseParams = { - value: QueryAccountAddressByIDResponse, +type bech32PrefixResponseParams = { + value: Bech32PrefixResponse, }; -type genesisStateParams = { - value: GenesisState, +type addressBytesToStringResponseParams = { + value: AddressBytesToStringResponse, }; -type baseAccountParams = { - value: BaseAccount, +type addressStringToBytesResponseParams = { + value: AddressStringToBytesResponse, }; -type queryModuleAccountsRequestParams = { - value: QueryModuleAccountsRequest, +type queryAccountAddressByIdresponseParams = { + value: QueryAccountAddressByIDResponse, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type queryAccountInfoResponseParams = { - value: QueryAccountInfoResponse, +type queryAccountsRequestParams = { + value: QueryAccountsRequest, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type queryAccountRequestParams = { + value: QueryAccountRequest, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type queryModuleAccountByNameResponseParams = { + value: QueryModuleAccountByNameResponse, }; -type moduleAccountParams = { - value: ModuleAccount, +type bech32PrefixRequestParams = { + value: Bech32PrefixRequest, }; -type queryAccountResponseParams = { - value: QueryAccountResponse, +type queryAccountAddressByIdrequestParams = { + value: QueryAccountAddressByIDRequest, }; -type bech32PrefixRequestParams = { - value: Bech32PrefixRequest, +type queryAccountInfoResponseParams = { + value: QueryAccountInfoResponse, }; -type queryAccountsResponseParams = { - value: QueryAccountsResponse, +type moduleCredentialParams = { + value: ModuleCredential, }; -type queryAccountRequestParams = { - value: QueryAccountRequest, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryModuleAccountsResponseParams = { + value: QueryModuleAccountsResponse, }; -type queryAccountInfoRequestParams = { - value: QueryAccountInfoRequest, +type queryAccountResponseParams = { + value: QueryAccountResponse, +}; + +type queryModuleAccountByNameRequestParams = { + value: QueryModuleAccountByNameRequest, }; type addressBytesToStringRequestParams = { value: AddressBytesToStringRequest, }; -type queryAccountAddressByIdrequestParams = { - value: QueryAccountAddressByIDRequest, +type queryAccountInfoRequestParams = { + value: QueryAccountInfoRequest, }; -type queryModuleAccountsResponseParams = { - value: QueryModuleAccountsResponse, +type moduleAccountParams = { + value: ModuleAccount, }; -type bech32PrefixResponseParams = { - value: Bech32PrefixResponse, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; @@ -338,325 +338,325 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendAddressBytesToStringResponse({ value, fee, memo }: sendAddressBytesToStringResponseParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendAddressBytesToStringResponse: 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.addressBytesToStringResponse({ value: AddressBytesToStringResponse.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:sendAddressBytesToStringResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendAddressStringToBytesResponse({ value, fee, memo }: sendAddressStringToBytesResponseParams): Promise { + async sendQueryModuleAccountsRequest({ value, fee, memo }: sendQueryModuleAccountsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendAddressStringToBytesResponse: 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.addressStringToBytesResponse({ value: AddressStringToBytesResponse.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:sendAddressStringToBytesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryModuleAccountsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: 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.params({ value: Params.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:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryModuleAccountByNameRequest({ value, fee, memo }: sendQueryModuleAccountByNameRequestParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryModuleAccountByNameRequest: 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.queryModuleAccountByNameRequest({ value: QueryModuleAccountByNameRequest.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:sendQueryModuleAccountByNameRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAccountsRequest({ value, fee, memo }: sendQueryAccountsRequestParams): Promise { + async sendQueryAccountsResponse({ value, fee, memo }: sendQueryAccountsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountsRequest: 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.queryAccountsRequest({ value: QueryAccountsRequest.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:sendQueryAccountsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryModuleAccountByNameResponse({ value, fee, memo }: sendQueryModuleAccountByNameResponseParams): Promise { + async sendAddressStringToBytesRequest({ value, fee, memo }: sendAddressStringToBytesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryModuleAccountByNameResponse: 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.queryModuleAccountByNameResponse({ value: QueryModuleAccountByNameResponse.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:sendQueryModuleAccountByNameResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAddressStringToBytesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendAddressStringToBytesRequest({ value, fee, memo }: sendAddressStringToBytesRequestParams): Promise { + async sendBaseAccount({ value, fee, memo }: sendBaseAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendAddressStringToBytesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendBaseAccount: Unable to 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.baseAccount({ value: BaseAccount.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:sendBaseAccount: Could not broadcast Tx: '+ e.message) } }, - async sendModuleCredential({ value, fee, memo }: sendModuleCredentialParams): Promise { + async sendBech32PrefixResponse({ value, fee, memo }: sendBech32PrefixResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendModuleCredential: 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.moduleCredential({ value: ModuleCredential.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:sendModuleCredential: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendBech32PrefixResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAccountAddressByIDResponse({ value, fee, memo }: sendQueryAccountAddressByIDResponseParams): Promise { + async sendAddressBytesToStringResponse({ value, fee, memo }: sendAddressBytesToStringResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountAddressByIDResponse: 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.queryAccountAddressByIdresponse({ value: QueryAccountAddressByIDResponse.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:sendQueryAccountAddressByIDResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAddressBytesToStringResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendAddressStringToBytesResponse({ value, fee, memo }: sendAddressStringToBytesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.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:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAddressStringToBytesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendBaseAccount({ value, fee, memo }: sendBaseAccountParams): Promise { + async sendQueryAccountAddressByIDResponse({ value, fee, memo }: sendQueryAccountAddressByIDResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendBaseAccount: 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.baseAccount({ value: BaseAccount.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:sendBaseAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountAddressByIDResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryModuleAccountsRequest({ value, fee, memo }: sendQueryModuleAccountsRequestParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryModuleAccountsRequest: 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.queryModuleAccountsRequest({ value: QueryModuleAccountsRequest.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:sendQueryModuleAccountsRequest: 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 sendQueryAccountsRequest({ value, fee, memo }: sendQueryAccountsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: 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.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.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:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAccountInfoResponse({ value, fee, memo }: sendQueryAccountInfoResponseParams): Promise { + async sendQueryAccountRequest({ value, fee, memo }: sendQueryAccountRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountInfoResponse: 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.queryAccountInfoResponse({ value: QueryAccountInfoResponse.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:sendQueryAccountInfoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendQueryModuleAccountByNameResponse({ value, fee, memo }: sendQueryModuleAccountByNameResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryModuleAccountByNameResponse: Unable to 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.queryModuleAccountByNameResponse({ value: QueryModuleAccountByNameResponse.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:sendQueryModuleAccountByNameResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendBech32PrefixRequest({ value, fee, memo }: sendBech32PrefixRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: 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.queryParamsResponse({ value: QueryParamsResponse.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:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendBech32PrefixRequest: Could not broadcast Tx: '+ e.message) } }, - async sendModuleAccount({ value, fee, memo }: sendModuleAccountParams): Promise { + async sendQueryAccountAddressByIDRequest({ value, fee, memo }: sendQueryAccountAddressByIDRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendModuleAccount: 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.moduleAccount({ value: ModuleAccount.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:sendModuleAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountAddressByIDRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAccountResponse({ value, fee, memo }: sendQueryAccountResponseParams): Promise { + async sendQueryAccountInfoResponse({ value, fee, memo }: sendQueryAccountInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountResponse: 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.queryAccountResponse({ value: QueryAccountResponse.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:sendQueryAccountResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountInfoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendBech32PrefixRequest({ value, fee, memo }: sendBech32PrefixRequestParams): Promise { + async sendModuleCredential({ value, fee, memo }: sendModuleCredentialParams): Promise { if (!signer) { - throw new Error('TxClient:sendBech32PrefixRequest: 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.bech32PrefixRequest({ value: Bech32PrefixRequest.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:sendBech32PrefixRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendModuleCredential: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAccountsResponse({ value, fee, memo }: sendQueryAccountsResponseParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountsResponse: 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.queryAccountsResponse({ value: QueryAccountsResponse.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:sendQueryAccountsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAccountRequest({ value, fee, memo }: sendQueryAccountRequestParams): Promise { + async sendQueryModuleAccountsResponse({ value, fee, memo }: sendQueryModuleAccountsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryModuleAccountsResponse: Unable to 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.queryModuleAccountsResponse({ value: QueryModuleAccountsResponse.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:sendQueryModuleAccountsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendQueryAccountResponse({ value, fee, memo }: sendQueryAccountResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.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:sendMsgUpdateParams: 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 sendQueryModuleAccountByNameRequest({ value, fee, memo }: sendQueryModuleAccountByNameRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountInfoRequest: 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.queryAccountInfoRequest({ value: QueryAccountInfoRequest.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:sendQueryAccountInfoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryModuleAccountByNameRequest: Could not broadcast Tx: '+ e.message) } }, @@ -674,230 +674,230 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryAccountAddressByIDRequest({ value, fee, memo }: sendQueryAccountAddressByIDRequestParams): Promise { + async sendQueryAccountInfoRequest({ value, fee, memo }: sendQueryAccountInfoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountAddressByIDRequest: 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.queryAccountAddressByIdrequest({ value: QueryAccountAddressByIDRequest.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:sendQueryAccountAddressByIDRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountInfoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryModuleAccountsResponse({ value, fee, memo }: sendQueryModuleAccountsResponseParams): Promise { + async sendModuleAccount({ value, fee, memo }: sendModuleAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryModuleAccountsResponse: Unable to sign Tx. Signer is not present.') + 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.queryModuleAccountsResponse({ value: QueryModuleAccountsResponse.fromPartial(value) }) + 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:sendQueryModuleAccountsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendModuleAccount: Could not broadcast Tx: '+ e.message) } }, - async sendBech32PrefixResponse({ value, fee, memo }: sendBech32PrefixResponseParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendBech32PrefixResponse: 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.bech32PrefixResponse({ value: Bech32PrefixResponse.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:sendBech32PrefixResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - addressBytesToStringResponse({ value }: addressBytesToStringResponseParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", value: AddressBytesToStringResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AddressBytesToStringResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - addressStringToBytesResponse({ value }: addressStringToBytesResponseParams): EncodeObject { + queryModuleAccountsRequest({ value }: queryModuleAccountsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", value: AddressStringToBytesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", value: QueryModuleAccountsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AddressStringToBytesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryModuleAccountsRequest: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - queryModuleAccountByNameRequest({ value }: queryModuleAccountByNameRequestParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", value: QueryModuleAccountByNameRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryModuleAccountByNameRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - queryAccountsRequest({ value }: queryAccountsRequestParams): EncodeObject { + queryAccountsResponse({ value }: queryAccountsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", value: QueryAccountsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", value: QueryAccountsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountsResponse: Could not create message: ' + e.message) } }, - queryModuleAccountByNameResponse({ value }: queryModuleAccountByNameResponseParams): EncodeObject { + addressStringToBytesRequest({ value }: addressStringToBytesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", value: QueryModuleAccountByNameResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", value: AddressStringToBytesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryModuleAccountByNameResponse: Could not create message: ' + e.message) + throw new Error('TxClient:AddressStringToBytesRequest: Could not create message: ' + e.message) } }, - addressStringToBytesRequest({ value }: addressStringToBytesRequestParams): EncodeObject { + baseAccount({ value }: baseAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", value: AddressStringToBytesRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.BaseAccount", value: BaseAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AddressStringToBytesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:BaseAccount: Could not create message: ' + e.message) } }, - moduleCredential({ value }: moduleCredentialParams): EncodeObject { + bech32PrefixResponse({ value }: bech32PrefixResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.ModuleCredential", value: ModuleCredential.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", value: Bech32PrefixResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ModuleCredential: Could not create message: ' + e.message) + throw new Error('TxClient:Bech32PrefixResponse: Could not create message: ' + e.message) } }, - queryAccountAddressByIdresponse({ value }: queryAccountAddressByIdresponseParams): EncodeObject { + addressBytesToStringResponse({ value }: addressBytesToStringResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", value: QueryAccountAddressByIDResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", value: AddressBytesToStringResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountAddressByIDResponse: Could not create message: ' + e.message) + throw new Error('TxClient:AddressBytesToStringResponse: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + addressStringToBytesResponse({ value }: addressStringToBytesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", value: AddressStringToBytesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:AddressStringToBytesResponse: Could not create message: ' + e.message) } }, - baseAccount({ value }: baseAccountParams): EncodeObject { + queryAccountAddressByIdresponse({ value }: queryAccountAddressByIdresponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.BaseAccount", value: BaseAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", value: QueryAccountAddressByIDResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:BaseAccount: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountAddressByIDResponse: Could not create message: ' + e.message) } }, - queryModuleAccountsRequest({ value }: queryModuleAccountsRequestParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", value: QueryModuleAccountsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryModuleAccountsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + queryAccountsRequest({ value }: queryAccountsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", value: QueryAccountsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountsRequest: Could not create message: ' + e.message) } }, - queryAccountInfoResponse({ value }: queryAccountInfoResponseParams): EncodeObject { + queryAccountRequest({ value }: queryAccountRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoResponse", value: QueryAccountInfoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", value: QueryAccountRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountInfoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountRequest: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + queryModuleAccountByNameResponse({ value }: queryModuleAccountByNameResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", value: QueryModuleAccountByNameResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryModuleAccountByNameResponse: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + bech32PrefixRequest({ value }: bech32PrefixRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", value: Bech32PrefixRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Bech32PrefixRequest: Could not create message: ' + e.message) } }, - moduleAccount({ value }: moduleAccountParams): EncodeObject { + queryAccountAddressByIdrequest({ value }: queryAccountAddressByIdrequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", value: ModuleAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", value: QueryAccountAddressByIDRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ModuleAccount: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountAddressByIDRequest: Could not create message: ' + e.message) } }, - queryAccountResponse({ value }: queryAccountResponseParams): EncodeObject { + queryAccountInfoResponse({ value }: queryAccountInfoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", value: QueryAccountResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoResponse", value: QueryAccountInfoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountInfoResponse: Could not create message: ' + e.message) } }, - bech32PrefixRequest({ value }: bech32PrefixRequestParams): EncodeObject { + moduleCredential({ value }: moduleCredentialParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", value: Bech32PrefixRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.ModuleCredential", value: ModuleCredential.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Bech32PrefixRequest: Could not create message: ' + e.message) + throw new Error('TxClient:ModuleCredential: Could not create message: ' + e.message) } }, - queryAccountsResponse({ value }: queryAccountsResponseParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", value: QueryAccountsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - queryAccountRequest({ value }: queryAccountRequestParams): EncodeObject { + queryModuleAccountsResponse({ value }: queryModuleAccountsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", value: QueryAccountRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", value: QueryModuleAccountsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryModuleAccountsResponse: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + queryAccountResponse({ value }: queryAccountResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", value: QueryAccountResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountResponse: Could not create message: ' + e.message) } }, - queryAccountInfoRequest({ value }: queryAccountInfoRequestParams): EncodeObject { + queryModuleAccountByNameRequest({ value }: queryModuleAccountByNameRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoRequest", value: QueryAccountInfoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", value: QueryModuleAccountByNameRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountInfoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryModuleAccountByNameRequest: Could not create message: ' + e.message) } }, @@ -909,27 +909,27 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryAccountAddressByIdrequest({ value }: queryAccountAddressByIdrequestParams): EncodeObject { + queryAccountInfoRequest({ value }: queryAccountInfoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", value: QueryAccountAddressByIDRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoRequest", value: QueryAccountInfoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountAddressByIDRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountInfoRequest: Could not create message: ' + e.message) } }, - queryModuleAccountsResponse({ value }: queryModuleAccountsResponseParams): EncodeObject { + moduleAccount({ value }: moduleAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", value: QueryModuleAccountsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.ModuleAccount", value: ModuleAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryModuleAccountsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ModuleAccount: Could not create message: ' + e.message) } }, - bech32PrefixResponse({ value }: bech32PrefixResponseParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", value: Bech32PrefixResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Bech32PrefixResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: 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 170525626..a59d93dda 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 { Params } from "./types/cosmos/auth/v1beta1/auth"; +import { QueryModuleAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryParamsResponse } from "./types/cosmos/auth/v1beta1/query"; +import { GenesisState } from "./types/cosmos/auth/v1beta1/genesis"; +import { QueryAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; +import { AddressStringToBytesRequest } from "./types/cosmos/auth/v1beta1/query"; +import { BaseAccount } from "./types/cosmos/auth/v1beta1/auth"; +import { Bech32PrefixResponse } from "./types/cosmos/auth/v1beta1/query"; import { AddressBytesToStringResponse } from "./types/cosmos/auth/v1beta1/query"; import { AddressStringToBytesResponse } from "./types/cosmos/auth/v1beta1/query"; -import { Params } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryModuleAccountByNameRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountAddressByIDResponse } from "./types/cosmos/auth/v1beta1/query"; +import { MsgUpdateParams } from "./types/cosmos/auth/v1beta1/tx"; import { QueryAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountRequest } from "./types/cosmos/auth/v1beta1/query"; import { QueryModuleAccountByNameResponse } from "./types/cosmos/auth/v1beta1/query"; -import { AddressStringToBytesRequest } from "./types/cosmos/auth/v1beta1/query"; +import { Bech32PrefixRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountAddressByIDRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountInfoResponse } from "./types/cosmos/auth/v1beta1/query"; import { ModuleCredential } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryAccountAddressByIDResponse } from "./types/cosmos/auth/v1beta1/query"; -import { GenesisState } from "./types/cosmos/auth/v1beta1/genesis"; -import { BaseAccount } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryModuleAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; import { MsgUpdateParamsResponse } from "./types/cosmos/auth/v1beta1/tx"; -import { QueryAccountInfoResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryParamsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { ModuleAccount } from "./types/cosmos/auth/v1beta1/auth"; +import { QueryModuleAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; import { QueryAccountResponse } from "./types/cosmos/auth/v1beta1/query"; -import { Bech32PrefixRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountRequest } from "./types/cosmos/auth/v1beta1/query"; -import { MsgUpdateParams } from "./types/cosmos/auth/v1beta1/tx"; -import { QueryAccountInfoRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryModuleAccountByNameRequest } from "./types/cosmos/auth/v1beta1/query"; import { AddressBytesToStringRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountAddressByIDRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryModuleAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { Bech32PrefixResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountInfoRequest } from "./types/cosmos/auth/v1beta1/query"; +import { ModuleAccount } from "./types/cosmos/auth/v1beta1/auth"; +import { QueryParamsRequest } from "./types/cosmos/auth/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ + ["/cosmos.auth.v1beta1.Params", Params], + ["/cosmos.auth.v1beta1.QueryModuleAccountsRequest", QueryModuleAccountsRequest], + ["/cosmos.auth.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.auth.v1beta1.GenesisState", GenesisState], + ["/cosmos.auth.v1beta1.QueryAccountsResponse", QueryAccountsResponse], + ["/cosmos.auth.v1beta1.AddressStringToBytesRequest", AddressStringToBytesRequest], + ["/cosmos.auth.v1beta1.BaseAccount", BaseAccount], + ["/cosmos.auth.v1beta1.Bech32PrefixResponse", Bech32PrefixResponse], ["/cosmos.auth.v1beta1.AddressBytesToStringResponse", AddressBytesToStringResponse], ["/cosmos.auth.v1beta1.AddressStringToBytesResponse", AddressStringToBytesResponse], - ["/cosmos.auth.v1beta1.Params", Params], - ["/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", QueryModuleAccountByNameRequest], + ["/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", QueryAccountAddressByIDResponse], + ["/cosmos.auth.v1beta1.MsgUpdateParams", MsgUpdateParams], ["/cosmos.auth.v1beta1.QueryAccountsRequest", QueryAccountsRequest], + ["/cosmos.auth.v1beta1.QueryAccountRequest", QueryAccountRequest], ["/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", QueryModuleAccountByNameResponse], - ["/cosmos.auth.v1beta1.AddressStringToBytesRequest", AddressStringToBytesRequest], + ["/cosmos.auth.v1beta1.Bech32PrefixRequest", Bech32PrefixRequest], + ["/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", QueryAccountAddressByIDRequest], + ["/cosmos.auth.v1beta1.QueryAccountInfoResponse", QueryAccountInfoResponse], ["/cosmos.auth.v1beta1.ModuleCredential", ModuleCredential], - ["/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", QueryAccountAddressByIDResponse], - ["/cosmos.auth.v1beta1.GenesisState", GenesisState], - ["/cosmos.auth.v1beta1.BaseAccount", BaseAccount], - ["/cosmos.auth.v1beta1.QueryModuleAccountsRequest", QueryModuleAccountsRequest], ["/cosmos.auth.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/cosmos.auth.v1beta1.QueryAccountInfoResponse", QueryAccountInfoResponse], - ["/cosmos.auth.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.auth.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.auth.v1beta1.ModuleAccount", ModuleAccount], + ["/cosmos.auth.v1beta1.QueryModuleAccountsResponse", QueryModuleAccountsResponse], ["/cosmos.auth.v1beta1.QueryAccountResponse", QueryAccountResponse], - ["/cosmos.auth.v1beta1.Bech32PrefixRequest", Bech32PrefixRequest], - ["/cosmos.auth.v1beta1.QueryAccountsResponse", QueryAccountsResponse], - ["/cosmos.auth.v1beta1.QueryAccountRequest", QueryAccountRequest], - ["/cosmos.auth.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/cosmos.auth.v1beta1.QueryAccountInfoRequest", QueryAccountInfoRequest], + ["/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", QueryModuleAccountByNameRequest], ["/cosmos.auth.v1beta1.AddressBytesToStringRequest", AddressBytesToStringRequest], - ["/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", QueryAccountAddressByIDRequest], - ["/cosmos.auth.v1beta1.QueryModuleAccountsResponse", QueryModuleAccountsResponse], - ["/cosmos.auth.v1beta1.Bech32PrefixResponse", Bech32PrefixResponse], + ["/cosmos.auth.v1beta1.QueryAccountInfoRequest", QueryAccountInfoRequest], + ["/cosmos.auth.v1beta1.ModuleAccount", ModuleAccount], + ["/cosmos.auth.v1beta1.QueryParamsRequest", QueryParamsRequest], ]; diff --git a/ts-client/cosmos.authz.v1beta1/module.ts b/ts-client/cosmos.authz.v1beta1/module.ts index 0e0787a0b..6d2ecaf51 100755 --- a/ts-client/cosmos.authz.v1beta1/module.ts +++ b/ts-client/cosmos.authz.v1beta1/module.ts @@ -6,73 +6,73 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { EventRevoke } from "./types/cosmos/authz/v1beta1/event"; -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 { GrantQueueItem } from "./types/cosmos/authz/v1beta1/authz"; -import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgExec } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgRevokeResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { QueryGranteeGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { GenericAuthorization } from "./types/cosmos/authz/v1beta1/authz"; import { EventGrant } from "./types/cosmos/authz/v1beta1/event"; import { QueryGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; -import { QueryGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranterGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; -import { GenesisState } from "./types/cosmos/authz/v1beta1/genesis"; import { MsgExecResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { GenericAuthorization } from "./types/cosmos/authz/v1beta1/authz"; -import { GrantAuthorization } from "./types/cosmos/authz/v1beta1/authz"; +import { QueryGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranterGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranteeGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; +import { QueryGranteeGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { MsgRevokeResponse } from "./types/cosmos/authz/v1beta1/tx"; +import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx"; +import { MsgGrantResponse } from "./types/cosmos/authz/v1beta1/tx"; +import { GrantAuthorization } from "./types/cosmos/authz/v1beta1/authz"; +import { GenesisState } from "./types/cosmos/authz/v1beta1/genesis"; +import { EventRevoke } from "./types/cosmos/authz/v1beta1/event"; +import { MsgExec } from "./types/cosmos/authz/v1beta1/tx"; +import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx"; +import { Grant } from "./types/cosmos/authz/v1beta1/authz"; +import { GrantQueueItem } from "./types/cosmos/authz/v1beta1/authz"; -export { EventRevoke, MsgGrantResponse, MsgRevoke, Grant, GrantQueueItem, MsgGrant, MsgExec, MsgRevokeResponse, QueryGranteeGrantsResponse, EventGrant, QueryGrantsRequest, QueryGrantsResponse, QueryGranterGrantsResponse, GenesisState, MsgExecResponse, GenericAuthorization, GrantAuthorization, QueryGranterGrantsRequest, QueryGranteeGrantsRequest }; +export { GenericAuthorization, EventGrant, QueryGrantsRequest, QueryGranterGrantsResponse, MsgExecResponse, QueryGrantsResponse, QueryGranterGrantsRequest, QueryGranteeGrantsRequest, QueryGranteeGrantsResponse, MsgRevokeResponse, MsgGrant, MsgGrantResponse, GrantAuthorization, GenesisState, EventRevoke, MsgExec, MsgRevoke, Grant, GrantQueueItem }; -type sendEventRevokeParams = { - value: EventRevoke, +type sendGenericAuthorizationParams = { + value: GenericAuthorization, fee?: StdFee, memo?: string }; -type sendMsgGrantResponseParams = { - value: MsgGrantResponse, +type sendEventGrantParams = { + value: EventGrant, fee?: StdFee, memo?: string }; -type sendMsgRevokeParams = { - value: MsgRevoke, +type sendQueryGrantsRequestParams = { + value: QueryGrantsRequest, fee?: StdFee, memo?: string }; -type sendGrantParams = { - value: Grant, +type sendQueryGranterGrantsResponseParams = { + value: QueryGranterGrantsResponse, fee?: StdFee, memo?: string }; -type sendGrantQueueItemParams = { - value: GrantQueueItem, +type sendMsgExecResponseParams = { + value: MsgExecResponse, fee?: StdFee, memo?: string }; -type sendMsgGrantParams = { - value: MsgGrant, +type sendQueryGrantsResponseParams = { + value: QueryGrantsResponse, fee?: StdFee, memo?: string }; -type sendMsgExecParams = { - value: MsgExec, +type sendQueryGranterGrantsRequestParams = { + value: QueryGranterGrantsRequest, fee?: StdFee, memo?: string }; -type sendMsgRevokeResponseParams = { - value: MsgRevokeResponse, +type sendQueryGranteeGrantsRequestParams = { + value: QueryGranteeGrantsRequest, fee?: StdFee, memo?: string }; @@ -83,26 +83,26 @@ type sendQueryGranteeGrantsResponseParams = { memo?: string }; -type sendEventGrantParams = { - value: EventGrant, +type sendMsgRevokeResponseParams = { + value: MsgRevokeResponse, fee?: StdFee, memo?: string }; -type sendQueryGrantsRequestParams = { - value: QueryGrantsRequest, +type sendMsgGrantParams = { + value: MsgGrant, fee?: StdFee, memo?: string }; -type sendQueryGrantsResponseParams = { - value: QueryGrantsResponse, +type sendMsgGrantResponseParams = { + value: MsgGrantResponse, fee?: StdFee, memo?: string }; -type sendQueryGranterGrantsResponseParams = { - value: QueryGranterGrantsResponse, +type sendGrantAuthorizationParams = { + value: GrantAuthorization, fee?: StdFee, memo?: string }; @@ -113,111 +113,111 @@ type sendGenesisStateParams = { memo?: string }; -type sendMsgExecResponseParams = { - value: MsgExecResponse, +type sendEventRevokeParams = { + value: EventRevoke, fee?: StdFee, memo?: string }; -type sendGenericAuthorizationParams = { - value: GenericAuthorization, +type sendMsgExecParams = { + value: MsgExec, fee?: StdFee, memo?: string }; -type sendGrantAuthorizationParams = { - value: GrantAuthorization, +type sendMsgRevokeParams = { + value: MsgRevoke, fee?: StdFee, memo?: string }; -type sendQueryGranterGrantsRequestParams = { - value: QueryGranterGrantsRequest, +type sendGrantParams = { + value: Grant, fee?: StdFee, memo?: string }; -type sendQueryGranteeGrantsRequestParams = { - value: QueryGranteeGrantsRequest, +type sendGrantQueueItemParams = { + value: GrantQueueItem, fee?: StdFee, memo?: string }; -type eventRevokeParams = { - value: EventRevoke, +type genericAuthorizationParams = { + value: GenericAuthorization, }; -type msgGrantResponseParams = { - value: MsgGrantResponse, +type eventGrantParams = { + value: EventGrant, }; -type msgRevokeParams = { - value: MsgRevoke, +type queryGrantsRequestParams = { + value: QueryGrantsRequest, }; -type grantParams = { - value: Grant, +type queryGranterGrantsResponseParams = { + value: QueryGranterGrantsResponse, }; -type grantQueueItemParams = { - value: GrantQueueItem, +type msgExecResponseParams = { + value: MsgExecResponse, }; -type msgGrantParams = { - value: MsgGrant, +type queryGrantsResponseParams = { + value: QueryGrantsResponse, }; -type msgExecParams = { - value: MsgExec, +type queryGranterGrantsRequestParams = { + value: QueryGranterGrantsRequest, }; -type msgRevokeResponseParams = { - value: MsgRevokeResponse, +type queryGranteeGrantsRequestParams = { + value: QueryGranteeGrantsRequest, }; type queryGranteeGrantsResponseParams = { value: QueryGranteeGrantsResponse, }; -type eventGrantParams = { - value: EventGrant, +type msgRevokeResponseParams = { + value: MsgRevokeResponse, }; -type queryGrantsRequestParams = { - value: QueryGrantsRequest, +type msgGrantParams = { + value: MsgGrant, }; -type queryGrantsResponseParams = { - value: QueryGrantsResponse, +type msgGrantResponseParams = { + value: MsgGrantResponse, }; -type queryGranterGrantsResponseParams = { - value: QueryGranterGrantsResponse, +type grantAuthorizationParams = { + value: GrantAuthorization, }; type genesisStateParams = { value: GenesisState, }; -type msgExecResponseParams = { - value: MsgExecResponse, +type eventRevokeParams = { + value: EventRevoke, }; -type genericAuthorizationParams = { - value: GenericAuthorization, +type msgExecParams = { + value: MsgExec, }; -type grantAuthorizationParams = { - value: GrantAuthorization, +type msgRevokeParams = { + value: MsgRevoke, }; -type queryGranterGrantsRequestParams = { - value: QueryGranterGrantsRequest, +type grantParams = { + value: Grant, }; -type queryGranteeGrantsRequestParams = { - value: QueryGranteeGrantsRequest, +type grantQueueItemParams = { + value: GrantQueueItem, }; @@ -250,115 +250,115 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendEventRevoke({ value, fee, memo }: sendEventRevokeParams): Promise { + async sendGenericAuthorization({ value, fee, memo }: sendGenericAuthorizationParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventRevoke: 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.eventRevoke({ value: EventRevoke.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:sendEventRevoke: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenericAuthorization: Could not broadcast Tx: '+ e.message) } }, - async sendMsgGrantResponse({ value, fee, memo }: sendMsgGrantResponseParams): Promise { + async sendEventGrant({ value, fee, memo }: sendEventGrantParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgGrantResponse: 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.msgGrantResponse({ value: MsgGrantResponse.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:sendMsgGrantResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventGrant: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRevoke({ value, fee, memo }: sendMsgRevokeParams): Promise { + async sendQueryGrantsRequest({ value, fee, memo }: sendQueryGrantsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRevoke: 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.msgRevoke({ value: MsgRevoke.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:sendMsgRevoke: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGrantsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGrant({ value, fee, memo }: sendGrantParams): Promise { + async sendQueryGranterGrantsResponse({ value, fee, memo }: sendQueryGranterGrantsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGrant: 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.grant({ value: Grant.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:sendGrant: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGranterGrantsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGrantQueueItem({ value, fee, memo }: sendGrantQueueItemParams): Promise { + async sendMsgExecResponse({ value, fee, memo }: sendMsgExecResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGrantQueueItem: 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.grantQueueItem({ value: GrantQueueItem.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:sendGrantQueueItem: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgExecResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgGrant({ value, fee, memo }: sendMsgGrantParams): Promise { + async sendQueryGrantsResponse({ value, fee, memo }: sendQueryGrantsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgGrant: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGrantsResponse: Unable to 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.queryGrantsResponse({ value: QueryGrantsResponse.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:sendQueryGrantsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise { + async sendQueryGranterGrantsRequest({ value, fee, memo }: sendQueryGranterGrantsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgExec: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryGranterGrantsRequest: Unable to 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.queryGranterGrantsRequest({ value: QueryGranterGrantsRequest.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:sendQueryGranterGrantsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRevokeResponse({ value, fee, memo }: sendMsgRevokeResponseParams): Promise { + async sendQueryGranteeGrantsRequest({ value, fee, memo }: sendQueryGranteeGrantsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRevokeResponse: 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.msgRevokeResponse({ value: MsgRevokeResponse.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:sendMsgRevokeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGranteeGrantsRequest: Could not broadcast Tx: '+ e.message) } }, @@ -376,59 +376,59 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendEventGrant({ value, fee, memo }: sendEventGrantParams): Promise { + async sendMsgRevokeResponse({ value, fee, memo }: sendMsgRevokeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventGrant: 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.eventGrant({ value: EventGrant.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:sendEventGrant: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRevokeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGrantsRequest({ value, fee, memo }: sendQueryGrantsRequestParams): Promise { + async sendMsgGrant({ value, fee, memo }: sendMsgGrantParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGrantsRequest: 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.queryGrantsRequest({ value: QueryGrantsRequest.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:sendQueryGrantsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgGrant: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGrantsResponse({ value, fee, memo }: sendQueryGrantsResponseParams): Promise { + async sendMsgGrantResponse({ value, fee, memo }: sendMsgGrantResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGrantsResponse: 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.queryGrantsResponse({ value: QueryGrantsResponse.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:sendQueryGrantsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgGrantResponse: 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) } }, @@ -446,138 +446,138 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgExecResponse({ value, fee, memo }: sendMsgExecResponseParams): Promise { + async sendEventRevoke({ value, fee, memo }: sendEventRevokeParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgExecResponse: 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.msgExecResponse({ value: MsgExecResponse.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:sendMsgExecResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventRevoke: Could not broadcast Tx: '+ e.message) } }, - async sendGenericAuthorization({ value, fee, memo }: sendGenericAuthorizationParams): Promise { + async sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenericAuthorization: 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.genericAuthorization({ value: GenericAuthorization.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:sendGenericAuthorization: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: '+ e.message) } }, - async sendGrantAuthorization({ value, fee, memo }: sendGrantAuthorizationParams): Promise { + async sendMsgRevoke({ value, fee, memo }: sendMsgRevokeParams): Promise { if (!signer) { - throw new Error('TxClient:sendGrantAuthorization: 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.grantAuthorization({ value: GrantAuthorization.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:sendGrantAuthorization: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRevoke: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGranterGrantsRequest({ value, fee, memo }: sendQueryGranterGrantsRequestParams): Promise { + async sendGrant({ value, fee, memo }: sendGrantParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGranterGrantsRequest: 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.queryGranterGrantsRequest({ value: QueryGranterGrantsRequest.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:sendQueryGranterGrantsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGrant: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGranteeGrantsRequest({ value, fee, memo }: sendQueryGranteeGrantsRequestParams): Promise { + async sendGrantQueueItem({ value, fee, memo }: sendGrantQueueItemParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGranteeGrantsRequest: 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.queryGranteeGrantsRequest({ value: QueryGranteeGrantsRequest.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:sendQueryGranteeGrantsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGrantQueueItem: Could not broadcast Tx: '+ e.message) } }, - eventRevoke({ value }: eventRevokeParams): EncodeObject { + genericAuthorization({ value }: genericAuthorizationParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.EventRevoke", value: EventRevoke.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", value: GenericAuthorization.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventRevoke: Could not create message: ' + e.message) + throw new Error('TxClient:GenericAuthorization: Could not create message: ' + e.message) } }, - msgGrantResponse({ value }: msgGrantResponseParams): EncodeObject { + eventGrant({ value }: eventGrantParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", value: MsgGrantResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.EventGrant", value: EventGrant.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgGrantResponse: Could not create message: ' + e.message) + throw new Error('TxClient:EventGrant: Could not create message: ' + e.message) } }, - msgRevoke({ value }: msgRevokeParams): EncodeObject { + queryGrantsRequest({ value }: queryGrantsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", value: MsgRevoke.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", value: QueryGrantsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRevoke: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGrantsRequest: Could not create message: ' + e.message) } }, - grant({ value }: grantParams): EncodeObject { + queryGranterGrantsResponse({ value }: queryGranterGrantsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.Grant", value: Grant.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", value: QueryGranterGrantsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Grant: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGranterGrantsResponse: Could not create message: ' + e.message) } }, - grantQueueItem({ value }: grantQueueItemParams): EncodeObject { + msgExecResponse({ value }: msgExecResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", value: GrantQueueItem.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", value: MsgExecResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GrantQueueItem: Could not create message: ' + e.message) + throw new Error('TxClient:MsgExecResponse: Could not create message: ' + e.message) } }, - msgGrant({ value }: msgGrantParams): EncodeObject { + queryGrantsResponse({ value }: queryGrantsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgGrant", value: MsgGrant.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", value: QueryGrantsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgGrant: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGrantsResponse: Could not create message: ' + e.message) } }, - msgExec({ value }: msgExecParams): EncodeObject { + queryGranterGrantsRequest({ value }: queryGranterGrantsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgExec", value: MsgExec.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", value: QueryGranterGrantsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgExec: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGranterGrantsRequest: Could not create message: ' + e.message) } }, - msgRevokeResponse({ value }: msgRevokeResponseParams): EncodeObject { + queryGranteeGrantsRequest({ value }: queryGranteeGrantsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", value: MsgRevokeResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", value: QueryGranteeGrantsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRevokeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGranteeGrantsRequest: Could not create message: ' + e.message) } }, @@ -589,35 +589,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - eventGrant({ value }: eventGrantParams): EncodeObject { + msgRevokeResponse({ value }: msgRevokeResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.EventGrant", value: EventGrant.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", value: MsgRevokeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventGrant: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRevokeResponse: Could not create message: ' + e.message) } }, - queryGrantsRequest({ value }: queryGrantsRequestParams): EncodeObject { + msgGrant({ value }: msgGrantParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", value: QueryGrantsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.MsgGrant", value: MsgGrant.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGrantsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgGrant: Could not create message: ' + e.message) } }, - queryGrantsResponse({ value }: queryGrantsResponseParams): EncodeObject { + msgGrantResponse({ value }: msgGrantResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", value: QueryGrantsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.MsgGrantResponse", value: MsgGrantResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGrantsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgGrantResponse: 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) } }, @@ -629,43 +629,43 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgExecResponse({ value }: msgExecResponseParams): EncodeObject { + eventRevoke({ value }: eventRevokeParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", value: MsgExecResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.EventRevoke", value: EventRevoke.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgExecResponse: Could not create message: ' + e.message) + throw new Error('TxClient:EventRevoke: Could not create message: ' + e.message) } }, - genericAuthorization({ value }: genericAuthorizationParams): EncodeObject { + msgExec({ value }: msgExecParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", value: GenericAuthorization.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.MsgExec", value: MsgExec.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenericAuthorization: Could not create message: ' + e.message) + throw new Error('TxClient:MsgExec: Could not create message: ' + e.message) } }, - grantAuthorization({ value }: grantAuthorizationParams): EncodeObject { + msgRevoke({ value }: msgRevokeParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", value: GrantAuthorization.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", value: MsgRevoke.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GrantAuthorization: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRevoke: Could not create message: ' + e.message) } }, - queryGranterGrantsRequest({ value }: queryGranterGrantsRequestParams): EncodeObject { + grant({ value }: grantParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", value: QueryGranterGrantsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.Grant", value: Grant.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGranterGrantsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Grant: Could not create message: ' + e.message) } }, - queryGranteeGrantsRequest({ value }: queryGranteeGrantsRequestParams): EncodeObject { + grantQueueItem({ value }: grantQueueItemParams): EncodeObject { try { - return { typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", value: QueryGranteeGrantsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", value: GrantQueueItem.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGranteeGrantsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GrantQueueItem: 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 d16d42882..73663eb8c 100755 --- a/ts-client/cosmos.authz.v1beta1/registry.ts +++ b/ts-client/cosmos.authz.v1beta1/registry.ts @@ -1,44 +1,44 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { EventRevoke } from "./types/cosmos/authz/v1beta1/event"; -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 { GrantQueueItem } from "./types/cosmos/authz/v1beta1/authz"; -import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgExec } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgRevokeResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { QueryGranteeGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { GenericAuthorization } from "./types/cosmos/authz/v1beta1/authz"; import { EventGrant } from "./types/cosmos/authz/v1beta1/event"; import { QueryGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; -import { QueryGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranterGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; -import { GenesisState } from "./types/cosmos/authz/v1beta1/genesis"; import { MsgExecResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { GenericAuthorization } from "./types/cosmos/authz/v1beta1/authz"; -import { GrantAuthorization } from "./types/cosmos/authz/v1beta1/authz"; +import { QueryGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranterGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranteeGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; +import { QueryGranteeGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { MsgRevokeResponse } from "./types/cosmos/authz/v1beta1/tx"; +import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx"; +import { MsgGrantResponse } from "./types/cosmos/authz/v1beta1/tx"; +import { GrantAuthorization } from "./types/cosmos/authz/v1beta1/authz"; +import { GenesisState } from "./types/cosmos/authz/v1beta1/genesis"; +import { EventRevoke } from "./types/cosmos/authz/v1beta1/event"; +import { MsgExec } from "./types/cosmos/authz/v1beta1/tx"; +import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx"; +import { Grant } from "./types/cosmos/authz/v1beta1/authz"; +import { GrantQueueItem } from "./types/cosmos/authz/v1beta1/authz"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.authz.v1beta1.EventRevoke", EventRevoke], - ["/cosmos.authz.v1beta1.MsgGrantResponse", MsgGrantResponse], - ["/cosmos.authz.v1beta1.MsgRevoke", MsgRevoke], - ["/cosmos.authz.v1beta1.Grant", Grant], - ["/cosmos.authz.v1beta1.GrantQueueItem", GrantQueueItem], - ["/cosmos.authz.v1beta1.MsgGrant", MsgGrant], - ["/cosmos.authz.v1beta1.MsgExec", MsgExec], - ["/cosmos.authz.v1beta1.MsgRevokeResponse", MsgRevokeResponse], - ["/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", QueryGranteeGrantsResponse], + ["/cosmos.authz.v1beta1.GenericAuthorization", GenericAuthorization], ["/cosmos.authz.v1beta1.EventGrant", EventGrant], ["/cosmos.authz.v1beta1.QueryGrantsRequest", QueryGrantsRequest], - ["/cosmos.authz.v1beta1.QueryGrantsResponse", QueryGrantsResponse], ["/cosmos.authz.v1beta1.QueryGranterGrantsResponse", QueryGranterGrantsResponse], - ["/cosmos.authz.v1beta1.GenesisState", GenesisState], ["/cosmos.authz.v1beta1.MsgExecResponse", MsgExecResponse], - ["/cosmos.authz.v1beta1.GenericAuthorization", GenericAuthorization], - ["/cosmos.authz.v1beta1.GrantAuthorization", GrantAuthorization], + ["/cosmos.authz.v1beta1.QueryGrantsResponse", QueryGrantsResponse], ["/cosmos.authz.v1beta1.QueryGranterGrantsRequest", QueryGranterGrantsRequest], ["/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", QueryGranteeGrantsRequest], + ["/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", QueryGranteeGrantsResponse], + ["/cosmos.authz.v1beta1.MsgRevokeResponse", MsgRevokeResponse], + ["/cosmos.authz.v1beta1.MsgGrant", MsgGrant], + ["/cosmos.authz.v1beta1.MsgGrantResponse", MsgGrantResponse], + ["/cosmos.authz.v1beta1.GrantAuthorization", GrantAuthorization], + ["/cosmos.authz.v1beta1.GenesisState", GenesisState], + ["/cosmos.authz.v1beta1.EventRevoke", EventRevoke], + ["/cosmos.authz.v1beta1.MsgExec", MsgExec], + ["/cosmos.authz.v1beta1.MsgRevoke", MsgRevoke], + ["/cosmos.authz.v1beta1.Grant", Grant], + ["/cosmos.authz.v1beta1.GrantQueueItem", GrantQueueItem], ]; diff --git a/ts-client/cosmos.bank.v1beta1/module.ts b/ts-client/cosmos.bank.v1beta1/module.ts index 4037f62ac..a90b3bbc6 100755 --- a/ts-client/cosmos.bank.v1beta1/module.ts +++ b/ts-client/cosmos.bank.v1beta1/module.ts @@ -6,66 +6,54 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { Balance } from "./types/cosmos/bank/v1beta1/genesis"; -import { QueryParamsResponse } from "./types/cosmos/bank/v1beta1/query"; import { QueryDenomsMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgMultiSendResponse } from "./types/cosmos/bank/v1beta1/tx"; +import { QueryDenomMetadataByQueryStringRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySpendableBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; +import { MsgSendResponse } from "./types/cosmos/bank/v1beta1/tx"; +import { SendEnabled } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryDenomMetadataByQueryStringResponse } from "./types/cosmos/bank/v1beta1/query"; import { SendAuthorization } from "./types/cosmos/bank/v1beta1/authz"; +import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; +import { Supply } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryDenomOwnersResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryAllBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; import { QuerySupplyOfRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgSendResponse } from "./types/cosmos/bank/v1beta1/tx"; +import { QueryParamsResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySupplyOfResponse } from "./types/cosmos/bank/v1beta1/query"; +import { MsgUpdateParams } from "./types/cosmos/bank/v1beta1/tx"; +import { Input } from "./types/cosmos/bank/v1beta1/bank"; import { DenomUnit } from "./types/cosmos/bank/v1beta1/bank"; -import { Output } from "./types/cosmos/bank/v1beta1/bank"; -import { GenesisState } from "./types/cosmos/bank/v1beta1/genesis"; -import { QueryDenomMetadataByQueryStringRequest } from "./types/cosmos/bank/v1beta1/query"; -import { Supply } from "./types/cosmos/bank/v1beta1/bank"; +import { QuerySpendableBalanceByDenomRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersRequest } from "./types/cosmos/bank/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/bank/v1beta1/tx"; import { QueryBalanceResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomMetadataByQueryStringResponse } from "./types/cosmos/bank/v1beta1/query"; import { QueryAllBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySpendableBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySendEnabledResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySpendableBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/bank/v1beta1/query"; +import { DenomOwner } from "./types/cosmos/bank/v1beta1/query"; +import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; import { MsgSetSendEnabled } from "./types/cosmos/bank/v1beta1/tx"; +import { Output } from "./types/cosmos/bank/v1beta1/bank"; +import { GenesisState } from "./types/cosmos/bank/v1beta1/genesis"; import { Metadata } from "./types/cosmos/bank/v1beta1/bank"; -import { QuerySpendableBalanceByDenomRequest } from "./types/cosmos/bank/v1beta1/query"; import { QueryDenomMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; -import { MsgUpdateParamsResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { Input } from "./types/cosmos/bank/v1beta1/bank"; -import { QueryTotalSupplyRequest } from "./types/cosmos/bank/v1beta1/query"; import { QueryTotalSupplyResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersByQueryRequest } from "./types/cosmos/bank/v1beta1/query"; +import { Balance } from "./types/cosmos/bank/v1beta1/genesis"; +import { Params } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryTotalSupplyRequest } from "./types/cosmos/bank/v1beta1/query"; import { QueryDenomOwnersByQueryResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomsMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomOwnersResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySendEnabledRequest } from "./types/cosmos/bank/v1beta1/query"; -import { SendEnabled } from "./types/cosmos/bank/v1beta1/bank"; +import { QuerySendEnabledResponse } from "./types/cosmos/bank/v1beta1/query"; import { QuerySpendableBalanceByDenomResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomsMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; +import { MsgMultiSendResponse } from "./types/cosmos/bank/v1beta1/tx"; import { QueryBalanceRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySpendableBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySupplyOfResponse } from "./types/cosmos/bank/v1beta1/query"; -import { DenomOwner } from "./types/cosmos/bank/v1beta1/query"; -import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryDenomOwnersByQueryRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgUpdateParams } from "./types/cosmos/bank/v1beta1/tx"; -import { Params } from "./types/cosmos/bank/v1beta1/bank"; -import { QueryDenomOwnersRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; +import { QuerySendEnabledRequest } from "./types/cosmos/bank/v1beta1/query"; import { MsgSetSendEnabledResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryAllBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; - -export { Balance, QueryParamsResponse, QueryDenomsMetadataRequest, MsgMultiSendResponse, SendAuthorization, QuerySupplyOfRequest, MsgSendResponse, DenomUnit, Output, GenesisState, QueryDenomMetadataByQueryStringRequest, Supply, QueryBalanceResponse, QueryDenomMetadataByQueryStringResponse, QueryAllBalancesRequest, QuerySpendableBalancesRequest, QueryDenomMetadataRequest, QuerySendEnabledResponse, MsgSetSendEnabled, Metadata, QuerySpendableBalanceByDenomRequest, QueryDenomMetadataResponse, MsgUpdateParamsResponse, Input, QueryTotalSupplyRequest, QueryTotalSupplyResponse, QueryDenomOwnersByQueryResponse, QueryDenomsMetadataResponse, QueryDenomOwnersResponse, QuerySendEnabledRequest, SendEnabled, QuerySpendableBalanceByDenomResponse, QueryParamsRequest, QueryBalanceRequest, QuerySpendableBalancesResponse, QuerySupplyOfResponse, DenomOwner, MsgMultiSend, QueryDenomOwnersByQueryRequest, MsgUpdateParams, Params, QueryDenomOwnersRequest, MsgSend, MsgSetSendEnabledResponse, QueryAllBalancesResponse }; - -type sendBalanceParams = { - value: Balance, - fee?: StdFee, - memo?: string -}; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, - fee?: StdFee, - memo?: string -}; +export { QueryDenomsMetadataRequest, QueryDenomMetadataByQueryStringRequest, QuerySpendableBalancesRequest, MsgSendResponse, SendEnabled, QueryDenomMetadataByQueryStringResponse, SendAuthorization, MsgMultiSend, Supply, QueryDenomOwnersResponse, QueryAllBalancesResponse, QuerySupplyOfRequest, QueryParamsResponse, QuerySupplyOfResponse, MsgUpdateParams, Input, DenomUnit, QuerySpendableBalanceByDenomRequest, QueryDenomOwnersRequest, MsgUpdateParamsResponse, QueryBalanceResponse, QueryAllBalancesRequest, QuerySpendableBalancesResponse, QueryParamsRequest, DenomOwner, MsgSend, MsgSetSendEnabled, Output, GenesisState, Metadata, QueryDenomMetadataResponse, QueryTotalSupplyResponse, QueryDenomOwnersByQueryRequest, Balance, Params, QueryTotalSupplyRequest, QueryDenomOwnersByQueryResponse, QuerySendEnabledResponse, QuerySpendableBalanceByDenomResponse, QueryDenomsMetadataResponse, QueryDenomMetadataRequest, MsgMultiSendResponse, QueryBalanceRequest, QuerySendEnabledRequest, MsgSetSendEnabledResponse }; type sendQueryDenomsMetadataRequestParams = { value: QueryDenomsMetadataRequest, @@ -73,20 +61,14 @@ type sendQueryDenomsMetadataRequestParams = { memo?: string }; -type sendMsgMultiSendResponseParams = { - value: MsgMultiSendResponse, - fee?: StdFee, - memo?: string -}; - -type sendSendAuthorizationParams = { - value: SendAuthorization, +type sendQueryDenomMetadataByQueryStringRequestParams = { + value: QueryDenomMetadataByQueryStringRequest, fee?: StdFee, memo?: string }; -type sendQuerySupplyOfRequestParams = { - value: QuerySupplyOfRequest, +type sendQuerySpendableBalancesRequestParams = { + value: QuerySpendableBalancesRequest, fee?: StdFee, memo?: string }; @@ -97,26 +79,26 @@ type sendMsgSendResponseParams = { memo?: string }; -type sendDenomUnitParams = { - value: DenomUnit, +type sendSendEnabledParams = { + value: SendEnabled, fee?: StdFee, memo?: string }; -type sendOutputParams = { - value: Output, +type sendQueryDenomMetadataByQueryStringResponseParams = { + value: QueryDenomMetadataByQueryStringResponse, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendSendAuthorizationParams = { + value: SendAuthorization, fee?: StdFee, memo?: string }; -type sendQueryDenomMetadataByQueryStringRequestParams = { - value: QueryDenomMetadataByQueryStringRequest, +type sendMsgMultiSendParams = { + value: MsgMultiSend, fee?: StdFee, memo?: string }; @@ -127,50 +109,50 @@ type sendSupplyParams = { memo?: string }; -type sendQueryBalanceResponseParams = { - value: QueryBalanceResponse, +type sendQueryDenomOwnersResponseParams = { + value: QueryDenomOwnersResponse, fee?: StdFee, memo?: string }; -type sendQueryDenomMetadataByQueryStringResponseParams = { - value: QueryDenomMetadataByQueryStringResponse, +type sendQueryAllBalancesResponseParams = { + value: QueryAllBalancesResponse, fee?: StdFee, memo?: string }; -type sendQueryAllBalancesRequestParams = { - value: QueryAllBalancesRequest, +type sendQuerySupplyOfRequestParams = { + value: QuerySupplyOfRequest, fee?: StdFee, memo?: string }; -type sendQuerySpendableBalancesRequestParams = { - value: QuerySpendableBalancesRequest, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryDenomMetadataRequestParams = { - value: QueryDenomMetadataRequest, +type sendQuerySupplyOfResponseParams = { + value: QuerySupplyOfResponse, fee?: StdFee, memo?: string }; -type sendQuerySendEnabledResponseParams = { - value: QuerySendEnabledResponse, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendMsgSetSendEnabledParams = { - value: MsgSetSendEnabled, +type sendInputParams = { + value: Input, fee?: StdFee, memo?: string }; -type sendMetadataParams = { - value: Metadata, +type sendDenomUnitParams = { + value: DenomUnit, fee?: StdFee, memo?: string }; @@ -181,8 +163,8 @@ type sendQuerySpendableBalanceByDenomRequestParams = { memo?: string }; -type sendQueryDenomMetadataResponseParams = { - value: QueryDenomMetadataResponse, +type sendQueryDenomOwnersRequestParams = { + value: QueryDenomOwnersRequest, fee?: StdFee, memo?: string }; @@ -193,317 +175,335 @@ type sendMsgUpdateParamsResponseParams = { memo?: string }; -type sendInputParams = { - value: Input, +type sendQueryBalanceResponseParams = { + value: QueryBalanceResponse, fee?: StdFee, memo?: string }; -type sendQueryTotalSupplyRequestParams = { - value: QueryTotalSupplyRequest, +type sendQueryAllBalancesRequestParams = { + value: QueryAllBalancesRequest, fee?: StdFee, memo?: string }; -type sendQueryTotalSupplyResponseParams = { - value: QueryTotalSupplyResponse, +type sendQuerySpendableBalancesResponseParams = { + value: QuerySpendableBalancesResponse, fee?: StdFee, memo?: string }; -type sendQueryDenomOwnersByQueryResponseParams = { - value: QueryDenomOwnersByQueryResponse, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendQueryDenomsMetadataResponseParams = { - value: QueryDenomsMetadataResponse, +type sendDenomOwnerParams = { + value: DenomOwner, fee?: StdFee, memo?: string }; -type sendQueryDenomOwnersResponseParams = { - value: QueryDenomOwnersResponse, +type sendMsgSendParams = { + value: MsgSend, fee?: StdFee, memo?: string }; -type sendQuerySendEnabledRequestParams = { - value: QuerySendEnabledRequest, +type sendMsgSetSendEnabledParams = { + value: MsgSetSendEnabled, fee?: StdFee, memo?: string }; -type sendSendEnabledParams = { - value: SendEnabled, +type sendOutputParams = { + value: Output, fee?: StdFee, memo?: string }; -type sendQuerySpendableBalanceByDenomResponseParams = { - value: QuerySpendableBalanceByDenomResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendMetadataParams = { + value: Metadata, fee?: StdFee, memo?: string }; -type sendQueryBalanceRequestParams = { - value: QueryBalanceRequest, +type sendQueryDenomMetadataResponseParams = { + value: QueryDenomMetadataResponse, fee?: StdFee, memo?: string }; -type sendQuerySpendableBalancesResponseParams = { - value: QuerySpendableBalancesResponse, +type sendQueryTotalSupplyResponseParams = { + value: QueryTotalSupplyResponse, fee?: StdFee, memo?: string }; -type sendQuerySupplyOfResponseParams = { - value: QuerySupplyOfResponse, +type sendQueryDenomOwnersByQueryRequestParams = { + value: QueryDenomOwnersByQueryRequest, fee?: StdFee, memo?: string }; -type sendDenomOwnerParams = { - value: DenomOwner, +type sendBalanceParams = { + value: Balance, fee?: StdFee, memo?: string }; -type sendMsgMultiSendParams = { - value: MsgMultiSend, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendQueryDenomOwnersByQueryRequestParams = { - value: QueryDenomOwnersByQueryRequest, +type sendQueryTotalSupplyRequestParams = { + value: QueryTotalSupplyRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendQueryDenomOwnersByQueryResponseParams = { + value: QueryDenomOwnersByQueryResponse, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendQuerySendEnabledResponseParams = { + value: QuerySendEnabledResponse, fee?: StdFee, memo?: string }; -type sendQueryDenomOwnersRequestParams = { - value: QueryDenomOwnersRequest, +type sendQuerySpendableBalanceByDenomResponseParams = { + value: QuerySpendableBalanceByDenomResponse, fee?: StdFee, memo?: string }; -type sendMsgSendParams = { - value: MsgSend, +type sendQueryDenomsMetadataResponseParams = { + value: QueryDenomsMetadataResponse, fee?: StdFee, memo?: string }; -type sendMsgSetSendEnabledResponseParams = { - value: MsgSetSendEnabledResponse, +type sendQueryDenomMetadataRequestParams = { + value: QueryDenomMetadataRequest, fee?: StdFee, memo?: string }; -type sendQueryAllBalancesResponseParams = { - value: QueryAllBalancesResponse, +type sendMsgMultiSendResponseParams = { + value: MsgMultiSendResponse, fee?: StdFee, memo?: string }; +type sendQueryBalanceRequestParams = { + value: QueryBalanceRequest, + fee?: StdFee, + memo?: string +}; -type balanceParams = { - value: Balance, +type sendQuerySendEnabledRequestParams = { + value: QuerySendEnabledRequest, + fee?: StdFee, + memo?: string }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type sendMsgSetSendEnabledResponseParams = { + value: MsgSetSendEnabledResponse, + fee?: StdFee, + memo?: string }; + type queryDenomsMetadataRequestParams = { value: QueryDenomsMetadataRequest, }; -type msgMultiSendResponseParams = { - value: MsgMultiSendResponse, -}; - -type sendAuthorizationParams = { - value: SendAuthorization, +type queryDenomMetadataByQueryStringRequestParams = { + value: QueryDenomMetadataByQueryStringRequest, }; -type querySupplyOfRequestParams = { - value: QuerySupplyOfRequest, +type querySpendableBalancesRequestParams = { + value: QuerySpendableBalancesRequest, }; type msgSendResponseParams = { value: MsgSendResponse, }; -type denomUnitParams = { - value: DenomUnit, +type sendEnabledParams = { + value: SendEnabled, }; -type outputParams = { - value: Output, +type queryDenomMetadataByQueryStringResponseParams = { + value: QueryDenomMetadataByQueryStringResponse, }; -type genesisStateParams = { - value: GenesisState, +type sendAuthorizationParams = { + value: SendAuthorization, }; -type queryDenomMetadataByQueryStringRequestParams = { - value: QueryDenomMetadataByQueryStringRequest, +type msgMultiSendParams = { + value: MsgMultiSend, }; type supplyParams = { value: Supply, }; -type queryBalanceResponseParams = { - value: QueryBalanceResponse, +type queryDenomOwnersResponseParams = { + value: QueryDenomOwnersResponse, }; -type queryDenomMetadataByQueryStringResponseParams = { - value: QueryDenomMetadataByQueryStringResponse, +type queryAllBalancesResponseParams = { + value: QueryAllBalancesResponse, }; -type queryAllBalancesRequestParams = { - value: QueryAllBalancesRequest, +type querySupplyOfRequestParams = { + value: QuerySupplyOfRequest, }; -type querySpendableBalancesRequestParams = { - value: QuerySpendableBalancesRequest, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type queryDenomMetadataRequestParams = { - value: QueryDenomMetadataRequest, +type querySupplyOfResponseParams = { + value: QuerySupplyOfResponse, }; -type querySendEnabledResponseParams = { - value: QuerySendEnabledResponse, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type msgSetSendEnabledParams = { - value: MsgSetSendEnabled, +type inputParams = { + value: Input, }; -type metadataParams = { - value: Metadata, +type denomUnitParams = { + value: DenomUnit, }; type querySpendableBalanceByDenomRequestParams = { value: QuerySpendableBalanceByDenomRequest, }; -type queryDenomMetadataResponseParams = { - value: QueryDenomMetadataResponse, +type queryDenomOwnersRequestParams = { + value: QueryDenomOwnersRequest, }; type msgUpdateParamsResponseParams = { value: MsgUpdateParamsResponse, }; -type inputParams = { - value: Input, +type queryBalanceResponseParams = { + value: QueryBalanceResponse, }; -type queryTotalSupplyRequestParams = { - value: QueryTotalSupplyRequest, +type queryAllBalancesRequestParams = { + value: QueryAllBalancesRequest, }; -type queryTotalSupplyResponseParams = { - value: QueryTotalSupplyResponse, +type querySpendableBalancesResponseParams = { + value: QuerySpendableBalancesResponse, }; -type queryDenomOwnersByQueryResponseParams = { - value: QueryDenomOwnersByQueryResponse, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; -type queryDenomsMetadataResponseParams = { - value: QueryDenomsMetadataResponse, +type denomOwnerParams = { + value: DenomOwner, }; -type queryDenomOwnersResponseParams = { - value: QueryDenomOwnersResponse, +type msgSendParams = { + value: MsgSend, }; -type querySendEnabledRequestParams = { - value: QuerySendEnabledRequest, +type msgSetSendEnabledParams = { + value: MsgSetSendEnabled, }; -type sendEnabledParams = { - value: SendEnabled, +type outputParams = { + value: Output, }; -type querySpendableBalanceByDenomResponseParams = { - value: QuerySpendableBalanceByDenomResponse, +type genesisStateParams = { + value: GenesisState, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type metadataParams = { + value: Metadata, }; -type queryBalanceRequestParams = { - value: QueryBalanceRequest, +type queryDenomMetadataResponseParams = { + value: QueryDenomMetadataResponse, }; -type querySpendableBalancesResponseParams = { - value: QuerySpendableBalancesResponse, +type queryTotalSupplyResponseParams = { + value: QueryTotalSupplyResponse, }; -type querySupplyOfResponseParams = { - value: QuerySupplyOfResponse, +type queryDenomOwnersByQueryRequestParams = { + value: QueryDenomOwnersByQueryRequest, }; -type denomOwnerParams = { - value: DenomOwner, +type balanceParams = { + value: Balance, }; -type msgMultiSendParams = { - value: MsgMultiSend, +type paramsParams = { + value: Params, }; -type queryDenomOwnersByQueryRequestParams = { - value: QueryDenomOwnersByQueryRequest, +type queryTotalSupplyRequestParams = { + value: QueryTotalSupplyRequest, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryDenomOwnersByQueryResponseParams = { + value: QueryDenomOwnersByQueryResponse, }; -type paramsParams = { - value: Params, +type querySendEnabledResponseParams = { + value: QuerySendEnabledResponse, }; -type queryDenomOwnersRequestParams = { - value: QueryDenomOwnersRequest, +type querySpendableBalanceByDenomResponseParams = { + value: QuerySpendableBalanceByDenomResponse, }; -type msgSendParams = { - value: MsgSend, +type queryDenomsMetadataResponseParams = { + value: QueryDenomsMetadataResponse, }; -type msgSetSendEnabledResponseParams = { - value: MsgSetSendEnabledResponse, +type queryDenomMetadataRequestParams = { + value: QueryDenomMetadataRequest, }; -type queryAllBalancesResponseParams = { - value: QueryAllBalancesResponse, +type msgMultiSendResponseParams = { + value: MsgMultiSendResponse, +}; + +type queryBalanceRequestParams = { + value: QueryBalanceRequest, +}; + +type querySendEnabledRequestParams = { + value: QuerySendEnabledRequest, +}; + +type msgSetSendEnabledResponseParams = { + value: MsgSetSendEnabledResponse, }; @@ -536,34 +536,6 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendBalance({ value, fee, memo }: sendBalanceParams): Promise { - if (!signer) { - 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.balance({ value: Balance.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) - } - }, - - 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 sendQueryDenomsMetadataRequest({ value, fee, memo }: sendQueryDenomsMetadataRequestParams): Promise { if (!signer) { throw new Error('TxClient:sendQueryDenomsMetadataRequest: Unable to sign Tx. Signer is not present.') @@ -578,45 +550,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgMultiSendResponse({ value, fee, memo }: sendMsgMultiSendResponseParams): Promise { - if (!signer) { - throw new Error('TxClient:sendMsgMultiSendResponse: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgMultiSendResponse({ value: MsgMultiSendResponse.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendMsgMultiSendResponse: Could not broadcast Tx: '+ e.message) - } - }, - - async sendSendAuthorization({ value, fee, memo }: sendSendAuthorizationParams): Promise { + async sendQueryDenomMetadataByQueryStringRequest({ value, fee, memo }: sendQueryDenomMetadataByQueryStringRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendSendAuthorization: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomMetadataByQueryStringRequest: Unable to 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.queryDenomMetadataByQueryStringRequest({ value: QueryDenomMetadataByQueryStringRequest.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:sendQueryDenomMetadataByQueryStringRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySupplyOfRequest({ value, fee, memo }: sendQuerySupplyOfRequestParams): Promise { + async sendQuerySpendableBalancesRequest({ value, fee, memo }: sendQuerySpendableBalancesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySupplyOfRequest: 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.querySupplyOfRequest({ value: QuerySupplyOfRequest.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:sendQuerySupplyOfRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySpendableBalancesRequest: Could not broadcast Tx: '+ e.message) } }, @@ -634,59 +592,59 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendDenomUnit({ value, fee, memo }: sendDenomUnitParams): Promise { + async sendSendEnabled({ value, fee, memo }: sendSendEnabledParams): Promise { if (!signer) { - throw new Error('TxClient:sendDenomUnit: 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.denomUnit({ value: DenomUnit.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:sendDenomUnit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSendEnabled: Could not broadcast Tx: '+ e.message) } }, - async sendOutput({ value, fee, memo }: sendOutputParams): Promise { + async sendQueryDenomMetadataByQueryStringResponse({ value, fee, memo }: sendQueryDenomMetadataByQueryStringResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendOutput: 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.output({ value: Output.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:sendOutput: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomMetadataByQueryStringResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendSendAuthorization({ value, fee, memo }: sendSendAuthorizationParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + 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.genesisState({ value: GenesisState.fromPartial(value) }) + 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:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSendAuthorization: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomMetadataByQueryStringRequest({ value, fee, memo }: sendQueryDenomMetadataByQueryStringRequestParams): Promise { + async sendMsgMultiSend({ value, fee, memo }: sendMsgMultiSendParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomMetadataByQueryStringRequest: 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.queryDenomMetadataByQueryStringRequest({ value: QueryDenomMetadataByQueryStringRequest.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:sendQueryDenomMetadataByQueryStringRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgMultiSend: Could not broadcast Tx: '+ e.message) } }, @@ -704,115 +662,115 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryBalanceResponse({ value, fee, memo }: sendQueryBalanceResponseParams): Promise { + async sendQueryDenomOwnersResponse({ value, fee, memo }: sendQueryDenomOwnersResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryBalanceResponse: 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.queryBalanceResponse({ value: QueryBalanceResponse.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:sendQueryBalanceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomOwnersResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomMetadataByQueryStringResponse({ value, fee, memo }: sendQueryDenomMetadataByQueryStringResponseParams): Promise { + async sendQueryAllBalancesResponse({ value, fee, memo }: sendQueryAllBalancesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomMetadataByQueryStringResponse: 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.queryDenomMetadataByQueryStringResponse({ value: QueryDenomMetadataByQueryStringResponse.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:sendQueryDenomMetadataByQueryStringResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllBalancesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllBalancesRequest({ value, fee, memo }: sendQueryAllBalancesRequestParams): Promise { + async sendQuerySupplyOfRequest({ value, fee, memo }: sendQuerySupplyOfRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllBalancesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySupplyOfRequest: Unable to 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.querySupplyOfRequest({ value: QuerySupplyOfRequest.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:sendQuerySupplyOfRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySpendableBalancesRequest({ value, fee, memo }: sendQuerySpendableBalancesRequestParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpendableBalancesRequest: 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.querySpendableBalancesRequest({ value: QuerySpendableBalancesRequest.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:sendQuerySpendableBalancesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomMetadataRequest({ value, fee, memo }: sendQueryDenomMetadataRequestParams): Promise { + async sendQuerySupplyOfResponse({ value, fee, memo }: sendQuerySupplyOfResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomMetadataRequest: 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.queryDenomMetadataRequest({ value: QueryDenomMetadataRequest.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:sendQueryDenomMetadataRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySupplyOfResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySendEnabledResponse({ value, fee, memo }: sendQuerySendEnabledResponseParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySendEnabledResponse: 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.querySendEnabledResponse({ value: QuerySendEnabledResponse.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:sendQuerySendEnabledResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSetSendEnabled({ value, fee, memo }: sendMsgSetSendEnabledParams): Promise { + async sendInput({ value, fee, memo }: sendInputParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSetSendEnabled: Unable to sign Tx. Signer is not present.') + 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.msgSetSendEnabled({ value: MsgSetSendEnabled.fromPartial(value) }) + 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:sendMsgSetSendEnabled: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendInput: Could not broadcast Tx: '+ e.message) } }, - async sendMetadata({ value, fee, memo }: sendMetadataParams): Promise { + async sendDenomUnit({ value, fee, memo }: sendDenomUnitParams): Promise { if (!signer) { - throw new Error('TxClient:sendMetadata: 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.metadata({ value: Metadata.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:sendMetadata: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDenomUnit: Could not broadcast Tx: '+ e.message) } }, @@ -830,17 +788,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryDenomMetadataResponse({ value, fee, memo }: sendQueryDenomMetadataResponseParams): Promise { + async sendQueryDenomOwnersRequest({ value, fee, memo }: sendQueryDenomOwnersRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomMetadataResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomOwnersRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDenomMetadataResponse({ value: QueryDenomMetadataResponse.fromPartial(value) }) + let msg = this.queryDenomOwnersRequest({ value: QueryDenomOwnersRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDenomMetadataResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomOwnersRequest: Could not broadcast Tx: '+ e.message) } }, @@ -858,331 +816,357 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendInput({ value, fee, memo }: sendInputParams): Promise { + async sendQueryBalanceResponse({ value, fee, memo }: sendQueryBalanceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendInput: 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.input({ value: Input.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:sendInput: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryBalanceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalSupplyRequest({ value, fee, memo }: sendQueryTotalSupplyRequestParams): Promise { + async sendQueryAllBalancesRequest({ value, fee, memo }: sendQueryAllBalancesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalSupplyRequest: 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.queryTotalSupplyRequest({ value: QueryTotalSupplyRequest.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:sendQueryTotalSupplyRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllBalancesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalSupplyResponse({ value, fee, memo }: sendQueryTotalSupplyResponseParams): Promise { + async sendQuerySpendableBalancesResponse({ value, fee, memo }: sendQuerySpendableBalancesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalSupplyResponse: 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.queryTotalSupplyResponse({ value: QueryTotalSupplyResponse.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:sendQueryTotalSupplyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySpendableBalancesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomOwnersByQueryResponse({ value, fee, memo }: sendQueryDenomOwnersByQueryResponseParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomOwnersByQueryResponse: 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.queryDenomOwnersByQueryResponse({ value: QueryDenomOwnersByQueryResponse.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:sendQueryDenomOwnersByQueryResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomsMetadataResponse({ value, fee, memo }: sendQueryDenomsMetadataResponseParams): Promise { + async sendDenomOwner({ value, fee, memo }: sendDenomOwnerParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomsMetadataResponse: 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.queryDenomsMetadataResponse({ value: QueryDenomsMetadataResponse.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:sendQueryDenomsMetadataResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDenomOwner: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomOwnersResponse({ value, fee, memo }: sendQueryDenomOwnersResponseParams): Promise { + async sendMsgSend({ value, fee, memo }: sendMsgSendParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomOwnersResponse: 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.queryDenomOwnersResponse({ value: QueryDenomOwnersResponse.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:sendQueryDenomOwnersResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSend: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySendEnabledRequest({ value, fee, memo }: sendQuerySendEnabledRequestParams): Promise { + async sendMsgSetSendEnabled({ value, fee, memo }: sendMsgSetSendEnabledParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySendEnabledRequest: 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.querySendEnabledRequest({ value: QuerySendEnabledRequest.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:sendQuerySendEnabledRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSetSendEnabled: Could not broadcast Tx: '+ e.message) } }, - async sendSendEnabled({ value, fee, memo }: sendSendEnabledParams): Promise { + async sendOutput({ value, fee, memo }: sendOutputParams): Promise { if (!signer) { - throw new Error('TxClient:sendSendEnabled: 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.sendEnabled({ value: SendEnabled.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:sendSendEnabled: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendOutput: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySpendableBalanceByDenomResponse({ value, fee, memo }: sendQuerySpendableBalanceByDenomResponseParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpendableBalanceByDenomResponse: 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.querySpendableBalanceByDenomResponse({ value: QuerySpendableBalanceByDenomResponse.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:sendQuerySpendableBalanceByDenomResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendMetadata({ value, fee, memo }: sendMetadataParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: 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.queryParamsRequest({ value: QueryParamsRequest.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:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMetadata: Could not broadcast Tx: '+ e.message) } }, - async sendQueryBalanceRequest({ value, fee, memo }: sendQueryBalanceRequestParams): Promise { + async sendQueryDenomMetadataResponse({ value, fee, memo }: sendQueryDenomMetadataResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryBalanceRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryDenomMetadataResponse: Unable to 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.queryDenomMetadataResponse({ value: QueryDenomMetadataResponse.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:sendQueryDenomMetadataResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySpendableBalancesResponse({ value, fee, memo }: sendQuerySpendableBalancesResponseParams): Promise { + async sendQueryTotalSupplyResponse({ value, fee, memo }: sendQueryTotalSupplyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpendableBalancesResponse: 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.querySpendableBalancesResponse({ value: QuerySpendableBalancesResponse.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:sendQuerySpendableBalancesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalSupplyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySupplyOfResponse({ value, fee, memo }: sendQuerySupplyOfResponseParams): Promise { + async sendQueryDenomOwnersByQueryRequest({ value, fee, memo }: sendQueryDenomOwnersByQueryRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySupplyOfResponse: 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.querySupplyOfResponse({ value: QuerySupplyOfResponse.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:sendQuerySupplyOfResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomOwnersByQueryRequest: Could not broadcast Tx: '+ e.message) } }, - async sendDenomOwner({ value, fee, memo }: sendDenomOwnerParams): Promise { + async sendBalance({ value, fee, memo }: sendBalanceParams): Promise { if (!signer) { - throw new Error('TxClient:sendDenomOwner: 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.denomOwner({ value: DenomOwner.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:sendDenomOwner: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendBalance: Could not broadcast Tx: '+ e.message) } }, - async sendMsgMultiSend({ value, fee, memo }: sendMsgMultiSendParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgMultiSend: 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.msgMultiSend({ value: MsgMultiSend.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:sendMsgMultiSend: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomOwnersByQueryRequest({ value, fee, memo }: sendQueryDenomOwnersByQueryRequestParams): Promise { + async sendQueryTotalSupplyRequest({ value, fee, memo }: sendQueryTotalSupplyRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomOwnersByQueryRequest: 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.queryDenomOwnersByQueryRequest({ value: QueryDenomOwnersByQueryRequest.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:sendQueryDenomOwnersByQueryRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalSupplyRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendQueryDenomOwnersByQueryResponse({ value, fee, memo }: sendQueryDenomOwnersByQueryResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.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:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomOwnersByQueryResponse: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendQuerySendEnabledResponse({ value, fee, memo }: sendQuerySendEnabledResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: 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.params({ value: Params.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:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySendEnabledResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomOwnersRequest({ value, fee, memo }: sendQueryDenomOwnersRequestParams): Promise { + async sendQuerySpendableBalanceByDenomResponse({ value, fee, memo }: sendQuerySpendableBalanceByDenomResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomOwnersRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySpendableBalanceByDenomResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryDenomOwnersRequest({ value: QueryDenomOwnersRequest.fromPartial(value) }) + let msg = this.querySpendableBalanceByDenomResponse({ value: QuerySpendableBalanceByDenomResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryDenomOwnersRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySpendableBalanceByDenomResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSend({ value, fee, memo }: sendMsgSendParams): Promise { + async sendQueryDenomsMetadataResponse({ value, fee, memo }: sendQueryDenomsMetadataResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSend: 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.msgSend({ value: MsgSend.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:sendMsgSend: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomsMetadataResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSetSendEnabledResponse({ value, fee, memo }: sendMsgSetSendEnabledResponseParams): Promise { + async sendQueryDenomMetadataRequest({ value, fee, memo }: sendQueryDenomMetadataRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSetSendEnabledResponse: 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.msgSetSendEnabledResponse({ value: MsgSetSendEnabledResponse.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:sendMsgSetSendEnabledResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomMetadataRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllBalancesResponse({ value, fee, memo }: sendQueryAllBalancesResponseParams): Promise { + async sendMsgMultiSendResponse({ value, fee, memo }: sendMsgMultiSendResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllBalancesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgMultiSendResponse: Unable to 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) }) + let msg = this.msgMultiSendResponse({ value: MsgMultiSendResponse.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) + throw new Error('TxClient:sendMsgMultiSendResponse: Could not broadcast Tx: '+ e.message) } }, + async sendQueryBalanceRequest({ value, fee, memo }: sendQueryBalanceRequestParams): Promise { + if (!signer) { + 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.queryBalanceRequest({ value: QueryBalanceRequest.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) + } + }, - balance({ value }: balanceParams): EncodeObject { - try { - return { typeUrl: "/cosmos.bank.v1beta1.Balance", value: Balance.fromPartial( value ) } + async sendQuerySendEnabledRequest({ value, fee, memo }: sendQuerySendEnabledRequestParams): Promise { + if (!signer) { + 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.querySendEnabledRequest({ value: QuerySendEnabledRequest.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:Balance: Could not create message: ' + e.message) + throw new Error('TxClient:sendQuerySendEnabledRequest: Could not broadcast Tx: '+ e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { - try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + async sendMsgSetSendEnabledResponse({ value, fee, memo }: sendMsgSetSendEnabledResponseParams): Promise { + if (!signer) { + 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.msgSetSendEnabledResponse({ value: MsgSetSendEnabledResponse.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:sendMsgSetSendEnabledResponse: Could not broadcast Tx: '+ e.message) } }, + queryDenomsMetadataRequest({ value }: queryDenomsMetadataRequestParams): EncodeObject { try { return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", value: QueryDenomsMetadataRequest.fromPartial( value ) } @@ -1191,27 +1175,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgMultiSendResponse({ value }: msgMultiSendResponseParams): EncodeObject { - try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", value: MsgMultiSendResponse.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgMultiSendResponse: Could not create message: ' + e.message) - } - }, - - sendAuthorization({ value }: sendAuthorizationParams): EncodeObject { + queryDenomMetadataByQueryStringRequest({ value }: queryDenomMetadataByQueryStringRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", value: SendAuthorization.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest", value: QueryDenomMetadataByQueryStringRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SendAuthorization: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomMetadataByQueryStringRequest: Could not create message: ' + e.message) } }, - querySupplyOfRequest({ value }: querySupplyOfRequestParams): EncodeObject { + querySpendableBalancesRequest({ value }: querySpendableBalancesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", value: QuerySupplyOfRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", value: QuerySpendableBalancesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySupplyOfRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpendableBalancesRequest: Could not create message: ' + e.message) } }, @@ -1223,35 +1199,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - denomUnit({ value }: denomUnitParams): EncodeObject { + sendEnabled({ value }: sendEnabledParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.DenomUnit", value: DenomUnit.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.SendEnabled", value: SendEnabled.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DenomUnit: Could not create message: ' + e.message) + throw new Error('TxClient:SendEnabled: Could not create message: ' + e.message) } }, - output({ value }: outputParams): EncodeObject { + queryDenomMetadataByQueryStringResponse({ value }: queryDenomMetadataByQueryStringResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.Output", value: Output.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse", value: QueryDenomMetadataByQueryStringResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Output: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomMetadataByQueryStringResponse: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + sendAuthorization({ value }: sendAuthorizationParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", value: SendAuthorization.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:SendAuthorization: Could not create message: ' + e.message) } }, - queryDenomMetadataByQueryStringRequest({ value }: queryDenomMetadataByQueryStringRequestParams): EncodeObject { + msgMultiSend({ value }: msgMultiSendParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest", value: QueryDenomMetadataByQueryStringRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", value: MsgMultiSend.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomMetadataByQueryStringRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgMultiSend: Could not create message: ' + e.message) } }, @@ -1263,67 +1239,67 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - 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) } }, - queryDenomMetadataByQueryStringResponse({ value }: queryDenomMetadataByQueryStringResponseParams): EncodeObject { + queryAllBalancesResponse({ value }: queryAllBalancesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse", value: QueryDenomMetadataByQueryStringResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", value: QueryAllBalancesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomMetadataByQueryStringResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllBalancesResponse: Could not create message: ' + e.message) } }, - queryAllBalancesRequest({ value }: queryAllBalancesRequestParams): EncodeObject { + querySupplyOfRequest({ value }: querySupplyOfRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", value: QueryAllBalancesRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", value: QuerySupplyOfRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllBalancesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySupplyOfRequest: Could not create message: ' + e.message) } }, - querySpendableBalancesRequest({ value }: querySpendableBalancesRequestParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", value: QuerySpendableBalancesRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySpendableBalancesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - queryDenomMetadataRequest({ value }: queryDenomMetadataRequestParams): EncodeObject { + querySupplyOfResponse({ value }: querySupplyOfResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", value: QueryDenomMetadataRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", value: QuerySupplyOfResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomMetadataRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySupplyOfResponse: Could not create message: ' + e.message) } }, - querySendEnabledResponse({ value }: querySendEnabledResponseParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySendEnabledResponse", value: QuerySendEnabledResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySendEnabledResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - msgSetSendEnabled({ value }: msgSetSendEnabledParams): EncodeObject { + input({ value }: inputParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabled", value: MsgSetSendEnabled.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.Input", value: Input.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSetSendEnabled: Could not create message: ' + e.message) + throw new Error('TxClient:Input: Could not create message: ' + e.message) } }, - metadata({ value }: metadataParams): EncodeObject { + denomUnit({ value }: denomUnitParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.Metadata", value: Metadata.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.DenomUnit", value: DenomUnit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Metadata: Could not create message: ' + e.message) + throw new Error('TxClient:DenomUnit: Could not create message: ' + e.message) } }, @@ -1335,11 +1311,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryDenomMetadataResponse({ value }: queryDenomMetadataResponseParams): EncodeObject { + queryDenomOwnersRequest({ value }: queryDenomOwnersRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", value: QueryDenomMetadataResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", value: QueryDenomOwnersRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomMetadataResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomOwnersRequest: Could not create message: ' + e.message) } }, @@ -1351,179 +1327,203 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - input({ value }: inputParams): EncodeObject { + queryBalanceResponse({ value }: queryBalanceResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.Input", value: Input.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", value: QueryBalanceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Input: Could not create message: ' + e.message) + throw new Error('TxClient:QueryBalanceResponse: Could not create message: ' + e.message) } }, - queryTotalSupplyRequest({ value }: queryTotalSupplyRequestParams): EncodeObject { + queryAllBalancesRequest({ value }: queryAllBalancesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", value: QueryTotalSupplyRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", value: QueryAllBalancesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalSupplyRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllBalancesRequest: Could not create message: ' + e.message) } }, - queryTotalSupplyResponse({ value }: queryTotalSupplyResponseParams): EncodeObject { + querySpendableBalancesResponse({ value }: querySpendableBalancesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", value: QueryTotalSupplyResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", value: QuerySpendableBalancesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalSupplyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpendableBalancesResponse: Could not create message: ' + e.message) } }, - queryDenomOwnersByQueryResponse({ value }: queryDenomOwnersByQueryResponseParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse", value: QueryDenomOwnersByQueryResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomOwnersByQueryResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - queryDenomsMetadataResponse({ value }: queryDenomsMetadataResponseParams): EncodeObject { + denomOwner({ value }: denomOwnerParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", value: QueryDenomsMetadataResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.DenomOwner", value: DenomOwner.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomsMetadataResponse: Could not create message: ' + e.message) + throw new Error('TxClient:DenomOwner: Could not create message: ' + e.message) } }, - queryDenomOwnersResponse({ value }: queryDenomOwnersResponseParams): EncodeObject { + msgSend({ value }: msgSendParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", value: QueryDenomOwnersResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.MsgSend", value: MsgSend.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomOwnersResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSend: Could not create message: ' + e.message) } }, - querySendEnabledRequest({ value }: querySendEnabledRequestParams): EncodeObject { + msgSetSendEnabled({ value }: msgSetSendEnabledParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySendEnabledRequest", value: QuerySendEnabledRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabled", value: MsgSetSendEnabled.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySendEnabledRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSetSendEnabled: Could not create message: ' + e.message) } }, - sendEnabled({ value }: sendEnabledParams): EncodeObject { + output({ value }: outputParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.SendEnabled", value: SendEnabled.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.Output", value: Output.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SendEnabled: Could not create message: ' + e.message) + throw new Error('TxClient:Output: Could not create message: ' + e.message) } }, - querySpendableBalanceByDenomResponse({ value }: querySpendableBalanceByDenomResponseParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse", value: QuerySpendableBalanceByDenomResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySpendableBalanceByDenomResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + metadata({ value }: metadataParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.Metadata", value: Metadata.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Metadata: Could not create message: ' + e.message) } }, - queryBalanceRequest({ value }: queryBalanceRequestParams): EncodeObject { + queryDenomMetadataResponse({ value }: queryDenomMetadataResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", value: QueryBalanceRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", value: QueryDenomMetadataResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryBalanceRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomMetadataResponse: Could not create message: ' + e.message) } }, - querySpendableBalancesResponse({ value }: querySpendableBalancesResponseParams): EncodeObject { + queryTotalSupplyResponse({ value }: queryTotalSupplyResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", value: QuerySpendableBalancesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", value: QueryTotalSupplyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySpendableBalancesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalSupplyResponse: 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) } }, - denomOwner({ value }: denomOwnerParams): EncodeObject { + balance({ value }: balanceParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.DenomOwner", value: DenomOwner.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.Balance", value: Balance.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DenomOwner: Could not create message: ' + e.message) + throw new Error('TxClient:Balance: Could not create message: ' + e.message) } }, - msgMultiSend({ value }: msgMultiSendParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", value: MsgMultiSend.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgMultiSend: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - queryDenomOwnersByQueryRequest({ value }: queryDenomOwnersByQueryRequestParams): EncodeObject { + queryTotalSupplyRequest({ value }: queryTotalSupplyRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest", value: QueryDenomOwnersByQueryRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", value: QueryTotalSupplyRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomOwnersByQueryRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalSupplyRequest: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + queryDenomOwnersByQueryResponse({ value }: queryDenomOwnersByQueryResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse", value: QueryDenomOwnersByQueryResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomOwnersByQueryResponse: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + querySendEnabledResponse({ value }: querySendEnabledResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QuerySendEnabledResponse", value: QuerySendEnabledResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySendEnabledResponse: Could not create message: ' + e.message) } }, - queryDenomOwnersRequest({ value }: queryDenomOwnersRequestParams): EncodeObject { + querySpendableBalanceByDenomResponse({ value }: querySpendableBalanceByDenomResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", value: QueryDenomOwnersRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse", value: QuerySpendableBalanceByDenomResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomOwnersRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpendableBalanceByDenomResponse: Could not create message: ' + e.message) } }, - msgSend({ value }: msgSendParams): EncodeObject { + queryDenomsMetadataResponse({ value }: queryDenomsMetadataResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgSend", value: MsgSend.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", value: QueryDenomsMetadataResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSend: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomsMetadataResponse: Could not create message: ' + e.message) } }, - msgSetSendEnabledResponse({ value }: msgSetSendEnabledResponseParams): EncodeObject { + queryDenomMetadataRequest({ value }: queryDenomMetadataRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabledResponse", value: MsgSetSendEnabledResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", value: QueryDenomMetadataRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSetSendEnabledResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomMetadataRequest: Could not create message: ' + e.message) } }, - queryAllBalancesResponse({ value }: queryAllBalancesResponseParams): EncodeObject { + msgMultiSendResponse({ value }: msgMultiSendResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", value: QueryAllBalancesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", value: MsgMultiSendResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllBalancesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgMultiSendResponse: 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) + } + }, + + querySendEnabledRequest({ value }: querySendEnabledRequestParams): EncodeObject { + try { + return { typeUrl: "/cosmos.bank.v1beta1.QuerySendEnabledRequest", value: QuerySendEnabledRequest.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QuerySendEnabledRequest: Could not create message: ' + e.message) + } + }, + + msgSetSendEnabledResponse({ value }: msgSetSendEnabledResponseParams): EncodeObject { + try { + return { typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabledResponse", value: MsgSetSendEnabledResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:MsgSetSendEnabledResponse: 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 d2eb93a66..5653152ea 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 { Balance } from "./types/cosmos/bank/v1beta1/genesis"; -import { QueryParamsResponse } from "./types/cosmos/bank/v1beta1/query"; import { QueryDenomsMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgMultiSendResponse } from "./types/cosmos/bank/v1beta1/tx"; +import { QueryDenomMetadataByQueryStringRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySpendableBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; +import { MsgSendResponse } from "./types/cosmos/bank/v1beta1/tx"; +import { SendEnabled } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryDenomMetadataByQueryStringResponse } from "./types/cosmos/bank/v1beta1/query"; import { SendAuthorization } from "./types/cosmos/bank/v1beta1/authz"; +import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; +import { Supply } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryDenomOwnersResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryAllBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; import { QuerySupplyOfRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgSendResponse } from "./types/cosmos/bank/v1beta1/tx"; +import { QueryParamsResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySupplyOfResponse } from "./types/cosmos/bank/v1beta1/query"; +import { MsgUpdateParams } from "./types/cosmos/bank/v1beta1/tx"; +import { Input } from "./types/cosmos/bank/v1beta1/bank"; import { DenomUnit } from "./types/cosmos/bank/v1beta1/bank"; -import { Output } from "./types/cosmos/bank/v1beta1/bank"; -import { GenesisState } from "./types/cosmos/bank/v1beta1/genesis"; -import { QueryDenomMetadataByQueryStringRequest } from "./types/cosmos/bank/v1beta1/query"; -import { Supply } from "./types/cosmos/bank/v1beta1/bank"; +import { QuerySpendableBalanceByDenomRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersRequest } from "./types/cosmos/bank/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/bank/v1beta1/tx"; import { QueryBalanceResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomMetadataByQueryStringResponse } from "./types/cosmos/bank/v1beta1/query"; import { QueryAllBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySpendableBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySendEnabledResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySpendableBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/bank/v1beta1/query"; +import { DenomOwner } from "./types/cosmos/bank/v1beta1/query"; +import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; import { MsgSetSendEnabled } from "./types/cosmos/bank/v1beta1/tx"; +import { Output } from "./types/cosmos/bank/v1beta1/bank"; +import { GenesisState } from "./types/cosmos/bank/v1beta1/genesis"; import { Metadata } from "./types/cosmos/bank/v1beta1/bank"; -import { QuerySpendableBalanceByDenomRequest } from "./types/cosmos/bank/v1beta1/query"; import { QueryDenomMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; -import { MsgUpdateParamsResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { Input } from "./types/cosmos/bank/v1beta1/bank"; -import { QueryTotalSupplyRequest } from "./types/cosmos/bank/v1beta1/query"; import { QueryTotalSupplyResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersByQueryRequest } from "./types/cosmos/bank/v1beta1/query"; +import { Balance } from "./types/cosmos/bank/v1beta1/genesis"; +import { Params } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryTotalSupplyRequest } from "./types/cosmos/bank/v1beta1/query"; import { QueryDenomOwnersByQueryResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomsMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomOwnersResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySendEnabledRequest } from "./types/cosmos/bank/v1beta1/query"; -import { SendEnabled } from "./types/cosmos/bank/v1beta1/bank"; +import { QuerySendEnabledResponse } from "./types/cosmos/bank/v1beta1/query"; import { QuerySpendableBalanceByDenomResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomsMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; +import { MsgMultiSendResponse } from "./types/cosmos/bank/v1beta1/tx"; import { QueryBalanceRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySpendableBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySupplyOfResponse } from "./types/cosmos/bank/v1beta1/query"; -import { DenomOwner } from "./types/cosmos/bank/v1beta1/query"; -import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryDenomOwnersByQueryRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgUpdateParams } from "./types/cosmos/bank/v1beta1/tx"; -import { Params } from "./types/cosmos/bank/v1beta1/bank"; -import { QueryDenomOwnersRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; +import { QuerySendEnabledRequest } from "./types/cosmos/bank/v1beta1/query"; import { MsgSetSendEnabledResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryAllBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.bank.v1beta1.Balance", Balance], - ["/cosmos.bank.v1beta1.QueryParamsResponse", QueryParamsResponse], ["/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", QueryDenomsMetadataRequest], - ["/cosmos.bank.v1beta1.MsgMultiSendResponse", MsgMultiSendResponse], + ["/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest", QueryDenomMetadataByQueryStringRequest], + ["/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", QuerySpendableBalancesRequest], + ["/cosmos.bank.v1beta1.MsgSendResponse", MsgSendResponse], + ["/cosmos.bank.v1beta1.SendEnabled", SendEnabled], + ["/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse", QueryDenomMetadataByQueryStringResponse], ["/cosmos.bank.v1beta1.SendAuthorization", SendAuthorization], + ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend], + ["/cosmos.bank.v1beta1.Supply", Supply], + ["/cosmos.bank.v1beta1.QueryDenomOwnersResponse", QueryDenomOwnersResponse], + ["/cosmos.bank.v1beta1.QueryAllBalancesResponse", QueryAllBalancesResponse], ["/cosmos.bank.v1beta1.QuerySupplyOfRequest", QuerySupplyOfRequest], - ["/cosmos.bank.v1beta1.MsgSendResponse", MsgSendResponse], + ["/cosmos.bank.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.bank.v1beta1.QuerySupplyOfResponse", QuerySupplyOfResponse], + ["/cosmos.bank.v1beta1.MsgUpdateParams", MsgUpdateParams], + ["/cosmos.bank.v1beta1.Input", Input], ["/cosmos.bank.v1beta1.DenomUnit", DenomUnit], - ["/cosmos.bank.v1beta1.Output", Output], - ["/cosmos.bank.v1beta1.GenesisState", GenesisState], - ["/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest", QueryDenomMetadataByQueryStringRequest], - ["/cosmos.bank.v1beta1.Supply", Supply], + ["/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest", QuerySpendableBalanceByDenomRequest], + ["/cosmos.bank.v1beta1.QueryDenomOwnersRequest", QueryDenomOwnersRequest], + ["/cosmos.bank.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ["/cosmos.bank.v1beta1.QueryBalanceResponse", QueryBalanceResponse], - ["/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse", QueryDenomMetadataByQueryStringResponse], ["/cosmos.bank.v1beta1.QueryAllBalancesRequest", QueryAllBalancesRequest], - ["/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", QuerySpendableBalancesRequest], - ["/cosmos.bank.v1beta1.QueryDenomMetadataRequest", QueryDenomMetadataRequest], - ["/cosmos.bank.v1beta1.QuerySendEnabledResponse", QuerySendEnabledResponse], + ["/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", QuerySpendableBalancesResponse], + ["/cosmos.bank.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.bank.v1beta1.DenomOwner", DenomOwner], + ["/cosmos.bank.v1beta1.MsgSend", MsgSend], ["/cosmos.bank.v1beta1.MsgSetSendEnabled", MsgSetSendEnabled], + ["/cosmos.bank.v1beta1.Output", Output], + ["/cosmos.bank.v1beta1.GenesisState", GenesisState], ["/cosmos.bank.v1beta1.Metadata", Metadata], - ["/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest", QuerySpendableBalanceByDenomRequest], ["/cosmos.bank.v1beta1.QueryDenomMetadataResponse", QueryDenomMetadataResponse], - ["/cosmos.bank.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/cosmos.bank.v1beta1.Input", Input], - ["/cosmos.bank.v1beta1.QueryTotalSupplyRequest", QueryTotalSupplyRequest], ["/cosmos.bank.v1beta1.QueryTotalSupplyResponse", QueryTotalSupplyResponse], + ["/cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest", QueryDenomOwnersByQueryRequest], + ["/cosmos.bank.v1beta1.Balance", Balance], + ["/cosmos.bank.v1beta1.Params", Params], + ["/cosmos.bank.v1beta1.QueryTotalSupplyRequest", QueryTotalSupplyRequest], ["/cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse", QueryDenomOwnersByQueryResponse], - ["/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", QueryDenomsMetadataResponse], - ["/cosmos.bank.v1beta1.QueryDenomOwnersResponse", QueryDenomOwnersResponse], - ["/cosmos.bank.v1beta1.QuerySendEnabledRequest", QuerySendEnabledRequest], - ["/cosmos.bank.v1beta1.SendEnabled", SendEnabled], + ["/cosmos.bank.v1beta1.QuerySendEnabledResponse", QuerySendEnabledResponse], ["/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse", QuerySpendableBalanceByDenomResponse], - ["/cosmos.bank.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", QueryDenomsMetadataResponse], + ["/cosmos.bank.v1beta1.QueryDenomMetadataRequest", QueryDenomMetadataRequest], + ["/cosmos.bank.v1beta1.MsgMultiSendResponse", MsgMultiSendResponse], ["/cosmos.bank.v1beta1.QueryBalanceRequest", QueryBalanceRequest], - ["/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", QuerySpendableBalancesResponse], - ["/cosmos.bank.v1beta1.QuerySupplyOfResponse", QuerySupplyOfResponse], - ["/cosmos.bank.v1beta1.DenomOwner", DenomOwner], - ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend], - ["/cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest", QueryDenomOwnersByQueryRequest], - ["/cosmos.bank.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/cosmos.bank.v1beta1.Params", Params], - ["/cosmos.bank.v1beta1.QueryDenomOwnersRequest", QueryDenomOwnersRequest], - ["/cosmos.bank.v1beta1.MsgSend", MsgSend], + ["/cosmos.bank.v1beta1.QuerySendEnabledRequest", QuerySendEnabledRequest], ["/cosmos.bank.v1beta1.MsgSetSendEnabledResponse", MsgSetSendEnabledResponse], - ["/cosmos.bank.v1beta1.QueryAllBalancesResponse", QueryAllBalancesResponse], ]; diff --git a/ts-client/cosmos.base.node.v1beta1/module.ts b/ts-client/cosmos.base.node.v1beta1/module.ts index cfb346a08..7f4ab1954 100755 --- a/ts-client/cosmos.base.node.v1beta1/module.ts +++ b/ts-client/cosmos.base.node.v1beta1/module.ts @@ -6,25 +6,13 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { ConfigRequest } from "./types/cosmos/base/node/v1beta1/query"; -import { ConfigResponse } from "./types/cosmos/base/node/v1beta1/query"; import { StatusRequest } from "./types/cosmos/base/node/v1beta1/query"; import { StatusResponse } from "./types/cosmos/base/node/v1beta1/query"; +import { ConfigRequest } from "./types/cosmos/base/node/v1beta1/query"; +import { ConfigResponse } from "./types/cosmos/base/node/v1beta1/query"; -export { ConfigRequest, ConfigResponse, StatusRequest, StatusResponse }; - -type sendConfigRequestParams = { - value: ConfigRequest, - fee?: StdFee, - memo?: string -}; - -type sendConfigResponseParams = { - value: ConfigResponse, - fee?: StdFee, - memo?: string -}; +export { StatusRequest, StatusResponse, ConfigRequest, ConfigResponse }; type sendStatusRequestParams = { value: StatusRequest, @@ -38,15 +26,19 @@ type sendStatusResponseParams = { memo?: string }; - -type configRequestParams = { +type sendConfigRequestParams = { value: ConfigRequest, + fee?: StdFee, + memo?: string }; -type configResponseParams = { +type sendConfigResponseParams = { value: ConfigResponse, + fee?: StdFee, + memo?: string }; + type statusRequestParams = { value: StatusRequest, }; @@ -55,6 +47,14 @@ type statusResponseParams = { value: StatusResponse, }; +type configRequestParams = { + value: ConfigRequest, +}; + +type configResponseParams = { + value: ConfigResponse, +}; + export const registry = new Registry(msgTypes); @@ -85,92 +85,92 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendConfigRequest({ value, fee, memo }: sendConfigRequestParams): Promise { + async sendStatusRequest({ value, fee, memo }: sendStatusRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendConfigRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendStatusRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.configRequest({ value: ConfigRequest.fromPartial(value) }) + let msg = this.statusRequest({ value: StatusRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendConfigRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendStatusRequest: Could not broadcast Tx: '+ e.message) } }, - async sendConfigResponse({ value, fee, memo }: sendConfigResponseParams): Promise { + async sendStatusResponse({ value, fee, memo }: sendStatusResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendConfigResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendStatusResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.configResponse({ value: ConfigResponse.fromPartial(value) }) + let msg = this.statusResponse({ value: StatusResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendConfigResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendStatusResponse: Could not broadcast Tx: '+ e.message) } }, - async sendStatusRequest({ value, fee, memo }: sendStatusRequestParams): Promise { + async sendConfigRequest({ value, fee, memo }: sendConfigRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendStatusRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendConfigRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.statusRequest({ value: StatusRequest.fromPartial(value) }) + let msg = this.configRequest({ value: ConfigRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendStatusRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendConfigRequest: Could not broadcast Tx: '+ e.message) } }, - async sendStatusResponse({ value, fee, memo }: sendStatusResponseParams): Promise { + async sendConfigResponse({ value, fee, memo }: sendConfigResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendStatusResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendConfigResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.statusResponse({ value: StatusResponse.fromPartial(value) }) + let msg = this.configResponse({ value: ConfigResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendStatusResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendConfigResponse: Could not broadcast Tx: '+ e.message) } }, - configRequest({ value }: configRequestParams): EncodeObject { + statusRequest({ value }: statusRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", value: ConfigRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.base.node.v1beta1.StatusRequest", value: StatusRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ConfigRequest: Could not create message: ' + e.message) + throw new Error('TxClient:StatusRequest: Could not create message: ' + e.message) } }, - configResponse({ value }: configResponseParams): EncodeObject { + statusResponse({ value }: statusResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", value: ConfigResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.base.node.v1beta1.StatusResponse", value: StatusResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ConfigResponse: Could not create message: ' + e.message) + throw new Error('TxClient:StatusResponse: Could not create message: ' + e.message) } }, - statusRequest({ value }: statusRequestParams): EncodeObject { + configRequest({ value }: configRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.node.v1beta1.StatusRequest", value: StatusRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", value: ConfigRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:StatusRequest: Could not create message: ' + e.message) + throw new Error('TxClient:ConfigRequest: Could not create message: ' + e.message) } }, - statusResponse({ value }: statusResponseParams): EncodeObject { + configResponse({ value }: configResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.node.v1beta1.StatusResponse", value: StatusResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", value: ConfigResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:StatusResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ConfigResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/cosmos.base.node.v1beta1/registry.ts b/ts-client/cosmos.base.node.v1beta1/registry.ts index 4e74339f2..44aafc7b6 100755 --- a/ts-client/cosmos.base.node.v1beta1/registry.ts +++ b/ts-client/cosmos.base.node.v1beta1/registry.ts @@ -1,14 +1,14 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { ConfigRequest } from "./types/cosmos/base/node/v1beta1/query"; -import { ConfigResponse } from "./types/cosmos/base/node/v1beta1/query"; import { StatusRequest } from "./types/cosmos/base/node/v1beta1/query"; import { StatusResponse } from "./types/cosmos/base/node/v1beta1/query"; +import { ConfigRequest } from "./types/cosmos/base/node/v1beta1/query"; +import { ConfigResponse } from "./types/cosmos/base/node/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.base.node.v1beta1.ConfigRequest", ConfigRequest], - ["/cosmos.base.node.v1beta1.ConfigResponse", ConfigResponse], ["/cosmos.base.node.v1beta1.StatusRequest", StatusRequest], ["/cosmos.base.node.v1beta1.StatusResponse", StatusResponse], + ["/cosmos.base.node.v1beta1.ConfigRequest", ConfigRequest], + ["/cosmos.base.node.v1beta1.ConfigResponse", ConfigResponse], ]; diff --git a/ts-client/cosmos.base.tendermint.v1beta1/module.ts b/ts-client/cosmos.base.tendermint.v1beta1/module.ts index da902f251..8721eb389 100755 --- a/ts-client/cosmos.base.tendermint.v1beta1/module.ts +++ b/ts-client/cosmos.base.tendermint.v1beta1/module.ts @@ -8,28 +8,28 @@ import { MissingWalletError } from "../helpers" import { Api } from "./rest"; import { GetValidatorSetByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetLatestBlockRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Validator } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Module } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetSyncingRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Module } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetBlockByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetBlockByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetSyncingResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetValidatorSetByHeightResponse } 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"; +import { ProofOps } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Validator } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { VersionInfo } from "./types/cosmos/base/tendermint/v1beta1/query"; import { ABCIQueryRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Block } from "./types/cosmos/base/tendermint/v1beta1/types"; import { Header } from "./types/cosmos/base/tendermint/v1beta1/types"; import { GetLatestValidatorSetResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetBlockByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetNodeInfoRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { VersionInfo } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ProofOp } 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 { 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 { GetLatestValidatorSetRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetBlockByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetValidatorSetByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ProofOps } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Block } from "./types/cosmos/base/tendermint/v1beta1/types"; -export { GetValidatorSetByHeightRequest, GetLatestBlockRequest, Validator, Module, GetSyncingRequest, GetNodeInfoResponse, ABCIQueryRequest, Header, GetLatestValidatorSetResponse, GetBlockByHeightRequest, GetNodeInfoRequest, VersionInfo, ProofOp, GetLatestBlockResponse, GetSyncingResponse, ABCIQueryResponse, GetLatestValidatorSetRequest, GetBlockByHeightResponse, GetValidatorSetByHeightResponse, ProofOps, Block }; +export { GetValidatorSetByHeightRequest, GetLatestBlockRequest, GetSyncingRequest, Module, GetBlockByHeightRequest, GetBlockByHeightResponse, GetSyncingResponse, GetValidatorSetByHeightResponse, GetNodeInfoResponse, ProofOp, ProofOps, Validator, VersionInfo, ABCIQueryRequest, Block, Header, GetLatestValidatorSetResponse, GetLatestValidatorSetRequest, GetLatestBlockResponse, GetNodeInfoRequest, ABCIQueryResponse }; type sendGetValidatorSetByHeightRequestParams = { value: GetValidatorSetByHeightRequest, @@ -43,8 +43,8 @@ type sendGetLatestBlockRequestParams = { memo?: string }; -type sendValidatorParams = { - value: Validator, +type sendGetSyncingRequestParams = { + value: GetSyncingRequest, fee?: StdFee, memo?: string }; @@ -55,104 +55,104 @@ type sendModuleParams = { memo?: string }; -type sendGetSyncingRequestParams = { - value: GetSyncingRequest, +type sendGetBlockByHeightRequestParams = { + value: GetBlockByHeightRequest, fee?: StdFee, memo?: string }; -type sendGetNodeInfoResponseParams = { - value: GetNodeInfoResponse, +type sendGetBlockByHeightResponseParams = { + value: GetBlockByHeightResponse, fee?: StdFee, memo?: string }; -type sendABCIQueryRequestParams = { - value: ABCIQueryRequest, +type sendGetSyncingResponseParams = { + value: GetSyncingResponse, fee?: StdFee, memo?: string }; -type sendHeaderParams = { - value: Header, +type sendGetValidatorSetByHeightResponseParams = { + value: GetValidatorSetByHeightResponse, fee?: StdFee, memo?: string }; -type sendGetLatestValidatorSetResponseParams = { - value: GetLatestValidatorSetResponse, +type sendGetNodeInfoResponseParams = { + value: GetNodeInfoResponse, fee?: StdFee, memo?: string }; -type sendGetBlockByHeightRequestParams = { - value: GetBlockByHeightRequest, +type sendProofOpParams = { + value: ProofOp, fee?: StdFee, memo?: string }; -type sendGetNodeInfoRequestParams = { - value: GetNodeInfoRequest, +type sendProofOpsParams = { + value: ProofOps, fee?: StdFee, memo?: string }; -type sendVersionInfoParams = { - value: VersionInfo, +type sendValidatorParams = { + value: Validator, fee?: StdFee, memo?: string }; -type sendProofOpParams = { - value: ProofOp, +type sendVersionInfoParams = { + value: VersionInfo, fee?: StdFee, memo?: string }; -type sendGetLatestBlockResponseParams = { - value: GetLatestBlockResponse, +type sendABCIQueryRequestParams = { + value: ABCIQueryRequest, fee?: StdFee, memo?: string }; -type sendGetSyncingResponseParams = { - value: GetSyncingResponse, +type sendBlockParams = { + value: Block, fee?: StdFee, memo?: string }; -type sendABCIQueryResponseParams = { - value: ABCIQueryResponse, +type sendHeaderParams = { + value: Header, fee?: StdFee, memo?: string }; -type sendGetLatestValidatorSetRequestParams = { - value: GetLatestValidatorSetRequest, +type sendGetLatestValidatorSetResponseParams = { + value: GetLatestValidatorSetResponse, fee?: StdFee, memo?: string }; -type sendGetBlockByHeightResponseParams = { - value: GetBlockByHeightResponse, +type sendGetLatestValidatorSetRequestParams = { + value: GetLatestValidatorSetRequest, fee?: StdFee, memo?: string }; -type sendGetValidatorSetByHeightResponseParams = { - value: GetValidatorSetByHeightResponse, +type sendGetLatestBlockResponseParams = { + value: GetLatestBlockResponse, fee?: StdFee, memo?: string }; -type sendProofOpsParams = { - value: ProofOps, +type sendGetNodeInfoRequestParams = { + value: GetNodeInfoRequest, fee?: StdFee, memo?: string }; -type sendBlockParams = { - value: Block, +type sendABCIQueryResponseParams = { + value: ABCIQueryResponse, fee?: StdFee, memo?: string }; @@ -166,80 +166,80 @@ type getLatestBlockRequestParams = { value: GetLatestBlockRequest, }; -type validatorParams = { - value: Validator, +type getSyncingRequestParams = { + value: GetSyncingRequest, }; type moduleParams = { value: Module, }; -type getSyncingRequestParams = { - value: GetSyncingRequest, +type getBlockByHeightRequestParams = { + value: GetBlockByHeightRequest, }; -type getNodeInfoResponseParams = { - value: GetNodeInfoResponse, +type getBlockByHeightResponseParams = { + value: GetBlockByHeightResponse, }; -type abciqueryRequestParams = { - value: ABCIQueryRequest, +type getSyncingResponseParams = { + value: GetSyncingResponse, }; -type headerParams = { - value: Header, +type getValidatorSetByHeightResponseParams = { + value: GetValidatorSetByHeightResponse, }; -type getLatestValidatorSetResponseParams = { - value: GetLatestValidatorSetResponse, +type getNodeInfoResponseParams = { + value: GetNodeInfoResponse, }; -type getBlockByHeightRequestParams = { - value: GetBlockByHeightRequest, +type proofOpParams = { + value: ProofOp, }; -type getNodeInfoRequestParams = { - value: GetNodeInfoRequest, +type proofOpsParams = { + value: ProofOps, +}; + +type validatorParams = { + value: Validator, }; type versionInfoParams = { value: VersionInfo, }; -type proofOpParams = { - value: ProofOp, +type abciqueryRequestParams = { + value: ABCIQueryRequest, }; -type getLatestBlockResponseParams = { - value: GetLatestBlockResponse, +type blockParams = { + value: Block, }; -type getSyncingResponseParams = { - value: GetSyncingResponse, +type headerParams = { + value: Header, }; -type abciqueryResponseParams = { - value: ABCIQueryResponse, +type getLatestValidatorSetResponseParams = { + value: GetLatestValidatorSetResponse, }; type getLatestValidatorSetRequestParams = { value: GetLatestValidatorSetRequest, }; -type getBlockByHeightResponseParams = { - value: GetBlockByHeightResponse, -}; - -type getValidatorSetByHeightResponseParams = { - value: GetValidatorSetByHeightResponse, +type getLatestBlockResponseParams = { + value: GetLatestBlockResponse, }; -type proofOpsParams = { - value: ProofOps, +type getNodeInfoRequestParams = { + value: GetNodeInfoRequest, }; -type blockParams = { - value: Block, +type abciqueryResponseParams = { + value: ABCIQueryResponse, }; @@ -300,17 +300,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendValidator({ value, fee, memo }: sendValidatorParams): Promise { + async sendGetSyncingRequest({ value, fee, memo }: sendGetSyncingRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidator: 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.validator({ value: Validator.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:sendValidator: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetSyncingRequest: Could not broadcast Tx: '+ e.message) } }, @@ -328,241 +328,241 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendGetSyncingRequest({ value, fee, memo }: sendGetSyncingRequestParams): Promise { + async sendGetBlockByHeightRequest({ value, fee, memo }: sendGetBlockByHeightRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetSyncingRequest: 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.getSyncingRequest({ value: GetSyncingRequest.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:sendGetSyncingRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetBlockByHeightRequest: 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 sendGetSyncingResponse({ value, fee, memo }: sendGetSyncingResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendABCIQueryRequest: 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.abciqueryRequest({ value: ABCIQueryRequest.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:sendABCIQueryRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetSyncingResponse: Could not broadcast Tx: '+ e.message) } }, - async sendHeader({ value, fee, memo }: sendHeaderParams): Promise { + async sendGetValidatorSetByHeightResponse({ value, fee, memo }: sendGetValidatorSetByHeightResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendHeader: 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.header({ value: Header.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:sendHeader: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetValidatorSetByHeightResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGetLatestValidatorSetResponse({ value, fee, memo }: sendGetLatestValidatorSetResponseParams): Promise { + async sendGetNodeInfoResponse({ value, fee, memo }: sendGetNodeInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetLatestValidatorSetResponse: 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.getLatestValidatorSetResponse({ value: GetLatestValidatorSetResponse.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:sendGetLatestValidatorSetResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetNodeInfoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGetBlockByHeightRequest({ value, fee, memo }: sendGetBlockByHeightRequestParams): Promise { + async sendProofOp({ value, fee, memo }: sendProofOpParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetBlockByHeightRequest: 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.getBlockByHeightRequest({ value: GetBlockByHeightRequest.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:sendGetBlockByHeightRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendProofOp: Could not broadcast Tx: '+ e.message) } }, - async sendGetNodeInfoRequest({ value, fee, memo }: sendGetNodeInfoRequestParams): Promise { + async sendProofOps({ value, fee, memo }: sendProofOpsParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetNodeInfoRequest: 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.getNodeInfoRequest({ value: GetNodeInfoRequest.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:sendGetNodeInfoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendProofOps: Could not broadcast Tx: '+ e.message) } }, - async sendVersionInfo({ value, fee, memo }: sendVersionInfoParams): Promise { + async sendValidator({ value, fee, memo }: sendValidatorParams): Promise { if (!signer) { - throw new Error('TxClient:sendVersionInfo: 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.versionInfo({ value: VersionInfo.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:sendVersionInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidator: Could not broadcast Tx: '+ e.message) } }, - async sendProofOp({ value, fee, memo }: sendProofOpParams): Promise { + async sendVersionInfo({ value, fee, memo }: sendVersionInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendProofOp: 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.proofOp({ value: ProofOp.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:sendProofOp: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendVersionInfo: Could not broadcast Tx: '+ e.message) } }, - async sendGetLatestBlockResponse({ value, fee, memo }: sendGetLatestBlockResponseParams): Promise { + async sendABCIQueryRequest({ value, fee, memo }: sendABCIQueryRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetLatestBlockResponse: 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.getLatestBlockResponse({ value: GetLatestBlockResponse.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:sendGetLatestBlockResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendABCIQueryRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGetSyncingResponse({ value, fee, memo }: sendGetSyncingResponseParams): Promise { + async sendBlock({ value, fee, memo }: sendBlockParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetSyncingResponse: 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.getSyncingResponse({ value: GetSyncingResponse.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:sendGetSyncingResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendBlock: Could not broadcast Tx: '+ e.message) } }, - async sendABCIQueryResponse({ value, fee, memo }: sendABCIQueryResponseParams): Promise { + async sendHeader({ value, fee, memo }: sendHeaderParams): Promise { if (!signer) { - throw new Error('TxClient:sendABCIQueryResponse: 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.abciqueryResponse({ value: ABCIQueryResponse.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:sendABCIQueryResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendHeader: Could not broadcast Tx: '+ e.message) } }, - async sendGetLatestValidatorSetRequest({ value, fee, memo }: sendGetLatestValidatorSetRequestParams): Promise { + async sendGetLatestValidatorSetResponse({ value, fee, memo }: sendGetLatestValidatorSetResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetLatestValidatorSetRequest: 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.getLatestValidatorSetRequest({ value: GetLatestValidatorSetRequest.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:sendGetLatestValidatorSetRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetLatestValidatorSetResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGetBlockByHeightResponse({ value, fee, memo }: sendGetBlockByHeightResponseParams): Promise { + async sendGetLatestValidatorSetRequest({ value, fee, memo }: sendGetLatestValidatorSetRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetBlockByHeightResponse: 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.getBlockByHeightResponse({ value: GetBlockByHeightResponse.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:sendGetBlockByHeightResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetLatestValidatorSetRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGetValidatorSetByHeightResponse({ value, fee, memo }: sendGetValidatorSetByHeightResponseParams): Promise { + async sendGetLatestBlockResponse({ value, fee, memo }: sendGetLatestBlockResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetValidatorSetByHeightResponse: 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.getValidatorSetByHeightResponse({ value: GetValidatorSetByHeightResponse.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:sendGetValidatorSetByHeightResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetLatestBlockResponse: Could not broadcast Tx: '+ e.message) } }, - async sendProofOps({ value, fee, memo }: sendProofOpsParams): Promise { + async sendGetNodeInfoRequest({ value, fee, memo }: sendGetNodeInfoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendProofOps: 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.proofOps({ value: ProofOps.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:sendProofOps: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetNodeInfoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendBlock({ value, fee, memo }: sendBlockParams): Promise { + async sendABCIQueryResponse({ value, fee, memo }: sendABCIQueryResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendBlock: 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.block({ value: Block.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:sendBlock: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendABCIQueryResponse: Could not broadcast Tx: '+ e.message) } }, @@ -583,11 +583,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - validator({ value }: validatorParams): EncodeObject { + getSyncingRequest({ value }: getSyncingRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.Validator", value: Validator.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingRequest", value: GetSyncingRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Validator: Could not create message: ' + e.message) + throw new Error('TxClient:GetSyncingRequest: Could not create message: ' + e.message) } }, @@ -599,59 +599,67 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - getSyncingRequest({ value }: getSyncingRequestParams): EncodeObject { + getBlockByHeightRequest({ value }: getBlockByHeightRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingRequest", value: GetSyncingRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest", value: GetBlockByHeightRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetSyncingRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GetBlockByHeightRequest: 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 { + getSyncingResponse({ value }: getSyncingResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryRequest", value: ABCIQueryRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingResponse", value: GetSyncingResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ABCIQueryRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GetSyncingResponse: Could not create message: ' + e.message) } }, - header({ value }: headerParams): EncodeObject { + getValidatorSetByHeightResponse({ value }: getValidatorSetByHeightResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.Header", value: Header.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse", value: GetValidatorSetByHeightResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Header: Could not create message: ' + e.message) + throw new Error('TxClient:GetValidatorSetByHeightResponse: Could not create message: ' + e.message) } }, - getLatestValidatorSetResponse({ value }: getLatestValidatorSetResponseParams): EncodeObject { + getNodeInfoResponse({ value }: getNodeInfoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse", value: GetLatestValidatorSetResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse", value: GetNodeInfoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetLatestValidatorSetResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GetNodeInfoResponse: Could not create message: ' + e.message) } }, - getBlockByHeightRequest({ value }: getBlockByHeightRequestParams): EncodeObject { + proofOp({ value }: proofOpParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest", value: GetBlockByHeightRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOp", value: ProofOp.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetBlockByHeightRequest: Could not create message: ' + e.message) + throw new Error('TxClient:ProofOp: Could not create message: ' + e.message) } }, - getNodeInfoRequest({ value }: getNodeInfoRequestParams): EncodeObject { + proofOps({ value }: proofOpsParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest", value: GetNodeInfoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOps", value: ProofOps.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetNodeInfoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:ProofOps: Could not create message: ' + e.message) + } + }, + + validator({ value }: validatorParams): EncodeObject { + try { + return { typeUrl: "/cosmos.base.tendermint.v1beta1.Validator", value: Validator.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:Validator: Could not create message: ' + e.message) } }, @@ -663,35 +671,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - proofOp({ value }: proofOpParams): EncodeObject { + abciqueryRequest({ value }: abciqueryRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOp", value: ProofOp.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryRequest", value: ABCIQueryRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ProofOp: Could not create message: ' + e.message) + throw new Error('TxClient:ABCIQueryRequest: Could not create message: ' + e.message) } }, - getLatestBlockResponse({ value }: getLatestBlockResponseParams): EncodeObject { + block({ value }: blockParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse", value: GetLatestBlockResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.Block", value: Block.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetLatestBlockResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Block: Could not create message: ' + e.message) } }, - getSyncingResponse({ value }: getSyncingResponseParams): EncodeObject { + header({ value }: headerParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingResponse", value: GetSyncingResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.Header", value: Header.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetSyncingResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Header: Could not create message: ' + e.message) } }, - abciqueryResponse({ value }: abciqueryResponseParams): EncodeObject { + getLatestValidatorSetResponse({ value }: getLatestValidatorSetResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryResponse", value: ABCIQueryResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse", value: GetLatestValidatorSetResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ABCIQueryResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GetLatestValidatorSetResponse: Could not create message: ' + e.message) } }, @@ -703,35 +711,27 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - getBlockByHeightResponse({ value }: getBlockByHeightResponseParams): EncodeObject { - try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse", value: GetBlockByHeightResponse.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:GetBlockByHeightResponse: Could not create message: ' + e.message) - } - }, - - getValidatorSetByHeightResponse({ value }: getValidatorSetByHeightResponseParams): EncodeObject { + getLatestBlockResponse({ value }: getLatestBlockResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse", value: GetValidatorSetByHeightResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse", value: GetLatestBlockResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetValidatorSetByHeightResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GetLatestBlockResponse: Could not create message: ' + e.message) } }, - proofOps({ value }: proofOpsParams): EncodeObject { + getNodeInfoRequest({ value }: getNodeInfoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOps", value: ProofOps.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest", value: GetNodeInfoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ProofOps: Could not create message: ' + e.message) + throw new Error('TxClient:GetNodeInfoRequest: Could not create message: ' + e.message) } }, - block({ value }: blockParams): EncodeObject { + abciqueryResponse({ value }: abciqueryResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.Block", value: Block.fromPartial( value ) } + return { typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryResponse", value: ABCIQueryResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Block: Could not create message: ' + e.message) + throw new Error('TxClient:ABCIQueryResponse: 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 74f56c152..bdc4fc6b6 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 { GetValidatorSetByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetLatestBlockRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Validator } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Module } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetSyncingRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Module } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetBlockByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetBlockByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetSyncingResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetValidatorSetByHeightResponse } 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"; +import { ProofOps } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Validator } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { VersionInfo } from "./types/cosmos/base/tendermint/v1beta1/query"; import { ABCIQueryRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Block } from "./types/cosmos/base/tendermint/v1beta1/types"; import { Header } from "./types/cosmos/base/tendermint/v1beta1/types"; import { GetLatestValidatorSetResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetBlockByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetNodeInfoRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { VersionInfo } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ProofOp } 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 { 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 { GetLatestValidatorSetRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetBlockByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetValidatorSetByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ProofOps } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Block } from "./types/cosmos/base/tendermint/v1beta1/types"; const msgTypes: Array<[string, GeneratedType]> = [ ["/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest", GetValidatorSetByHeightRequest], ["/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest", GetLatestBlockRequest], - ["/cosmos.base.tendermint.v1beta1.Validator", Validator], - ["/cosmos.base.tendermint.v1beta1.Module", Module], ["/cosmos.base.tendermint.v1beta1.GetSyncingRequest", GetSyncingRequest], + ["/cosmos.base.tendermint.v1beta1.Module", Module], + ["/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest", GetBlockByHeightRequest], + ["/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse", GetBlockByHeightResponse], + ["/cosmos.base.tendermint.v1beta1.GetSyncingResponse", GetSyncingResponse], + ["/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse", GetValidatorSetByHeightResponse], ["/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse", GetNodeInfoResponse], + ["/cosmos.base.tendermint.v1beta1.ProofOp", ProofOp], + ["/cosmos.base.tendermint.v1beta1.ProofOps", ProofOps], + ["/cosmos.base.tendermint.v1beta1.Validator", Validator], + ["/cosmos.base.tendermint.v1beta1.VersionInfo", VersionInfo], ["/cosmos.base.tendermint.v1beta1.ABCIQueryRequest", ABCIQueryRequest], + ["/cosmos.base.tendermint.v1beta1.Block", Block], ["/cosmos.base.tendermint.v1beta1.Header", Header], ["/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse", GetLatestValidatorSetResponse], - ["/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest", GetBlockByHeightRequest], - ["/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest", GetNodeInfoRequest], - ["/cosmos.base.tendermint.v1beta1.VersionInfo", VersionInfo], - ["/cosmos.base.tendermint.v1beta1.ProofOp", ProofOp], + ["/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest", GetLatestValidatorSetRequest], ["/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse", GetLatestBlockResponse], - ["/cosmos.base.tendermint.v1beta1.GetSyncingResponse", GetSyncingResponse], + ["/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest", GetNodeInfoRequest], ["/cosmos.base.tendermint.v1beta1.ABCIQueryResponse", ABCIQueryResponse], - ["/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest", GetLatestValidatorSetRequest], - ["/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse", GetBlockByHeightResponse], - ["/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse", GetValidatorSetByHeightResponse], - ["/cosmos.base.tendermint.v1beta1.ProofOps", ProofOps], - ["/cosmos.base.tendermint.v1beta1.Block", Block], ]; diff --git a/ts-client/cosmos.circuit.v1/module.ts b/ts-client/cosmos.circuit.v1/module.ts index fffe91f39..d2476ddb8 100755 --- a/ts-client/cosmos.circuit.v1/module.ts +++ b/ts-client/cosmos.circuit.v1/module.ts @@ -6,30 +6,24 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgTripCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { MsgTripCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; -import { QueryAccountRequest } from "./types/cosmos/circuit/v1/query"; -import { QueryAccountsRequest } from "./types/cosmos/circuit/v1/query"; -import { MsgAuthorizeCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; import { MsgResetCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { GenesisAccountPermissions } from "./types/cosmos/circuit/v1/types"; -import { GenesisState } from "./types/cosmos/circuit/v1/types"; import { AccountsResponse } from "./types/cosmos/circuit/v1/query"; import { DisabledListResponse } from "./types/cosmos/circuit/v1/query"; -import { MsgResetCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; -import { Permissions } from "./types/cosmos/circuit/v1/types"; +import { MsgAuthorizeCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; +import { QueryAccountsRequest } from "./types/cosmos/circuit/v1/query"; +import { QueryDisabledListRequest } from "./types/cosmos/circuit/v1/query"; import { MsgAuthorizeCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; +import { MsgTripCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; +import { Permissions } from "./types/cosmos/circuit/v1/types"; +import { GenesisState } from "./types/cosmos/circuit/v1/types"; +import { MsgResetCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; +import { QueryAccountRequest } from "./types/cosmos/circuit/v1/query"; import { AccountResponse } from "./types/cosmos/circuit/v1/query"; -import { QueryDisabledListRequest } from "./types/cosmos/circuit/v1/query"; -export { MsgTripCircuitBreaker, MsgTripCircuitBreakerResponse, QueryAccountRequest, QueryAccountsRequest, MsgAuthorizeCircuitBreakerResponse, MsgResetCircuitBreaker, GenesisAccountPermissions, GenesisState, AccountsResponse, DisabledListResponse, MsgResetCircuitBreakerResponse, Permissions, MsgAuthorizeCircuitBreaker, AccountResponse, QueryDisabledListRequest }; - -type sendMsgTripCircuitBreakerParams = { - value: MsgTripCircuitBreaker, - fee?: StdFee, - memo?: string -}; +export { MsgTripCircuitBreakerResponse, MsgResetCircuitBreaker, GenesisAccountPermissions, AccountsResponse, DisabledListResponse, MsgAuthorizeCircuitBreakerResponse, QueryAccountsRequest, QueryDisabledListRequest, MsgAuthorizeCircuitBreaker, MsgTripCircuitBreaker, Permissions, GenesisState, MsgResetCircuitBreakerResponse, QueryAccountRequest, AccountResponse }; type sendMsgTripCircuitBreakerResponseParams = { value: MsgTripCircuitBreakerResponse, @@ -37,56 +31,56 @@ type sendMsgTripCircuitBreakerResponseParams = { memo?: string }; -type sendQueryAccountRequestParams = { - value: QueryAccountRequest, +type sendMsgResetCircuitBreakerParams = { + value: MsgResetCircuitBreaker, fee?: StdFee, memo?: string }; -type sendQueryAccountsRequestParams = { - value: QueryAccountsRequest, +type sendGenesisAccountPermissionsParams = { + value: GenesisAccountPermissions, fee?: StdFee, memo?: string }; -type sendMsgAuthorizeCircuitBreakerResponseParams = { - value: MsgAuthorizeCircuitBreakerResponse, +type sendAccountsResponseParams = { + value: AccountsResponse, fee?: StdFee, memo?: string }; -type sendMsgResetCircuitBreakerParams = { - value: MsgResetCircuitBreaker, +type sendDisabledListResponseParams = { + value: DisabledListResponse, fee?: StdFee, memo?: string }; -type sendGenesisAccountPermissionsParams = { - value: GenesisAccountPermissions, +type sendMsgAuthorizeCircuitBreakerResponseParams = { + value: MsgAuthorizeCircuitBreakerResponse, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryAccountsRequestParams = { + value: QueryAccountsRequest, fee?: StdFee, memo?: string }; -type sendAccountsResponseParams = { - value: AccountsResponse, +type sendQueryDisabledListRequestParams = { + value: QueryDisabledListRequest, fee?: StdFee, memo?: string }; -type sendDisabledListResponseParams = { - value: DisabledListResponse, +type sendMsgAuthorizeCircuitBreakerParams = { + value: MsgAuthorizeCircuitBreaker, fee?: StdFee, memo?: string }; -type sendMsgResetCircuitBreakerResponseParams = { - value: MsgResetCircuitBreakerResponse, +type sendMsgTripCircuitBreakerParams = { + value: MsgTripCircuitBreaker, fee?: StdFee, memo?: string }; @@ -97,45 +91,35 @@ type sendPermissionsParams = { memo?: string }; -type sendMsgAuthorizeCircuitBreakerParams = { - value: MsgAuthorizeCircuitBreaker, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendAccountResponseParams = { - value: AccountResponse, +type sendMsgResetCircuitBreakerResponseParams = { + value: MsgResetCircuitBreakerResponse, fee?: StdFee, memo?: string }; -type sendQueryDisabledListRequestParams = { - value: QueryDisabledListRequest, +type sendQueryAccountRequestParams = { + value: QueryAccountRequest, fee?: StdFee, memo?: string }; - -type msgTripCircuitBreakerParams = { - value: MsgTripCircuitBreaker, +type sendAccountResponseParams = { + value: AccountResponse, + fee?: StdFee, + memo?: string }; + type msgTripCircuitBreakerResponseParams = { value: MsgTripCircuitBreakerResponse, }; -type queryAccountRequestParams = { - value: QueryAccountRequest, -}; - -type queryAccountsRequestParams = { - value: QueryAccountsRequest, -}; - -type msgAuthorizeCircuitBreakerResponseParams = { - value: MsgAuthorizeCircuitBreakerResponse, -}; - type msgResetCircuitBreakerParams = { value: MsgResetCircuitBreaker, }; @@ -144,10 +128,6 @@ type genesisAccountPermissionsParams = { value: GenesisAccountPermissions, }; -type genesisStateParams = { - value: GenesisState, -}; - type accountsResponseParams = { value: AccountsResponse, }; @@ -156,24 +136,44 @@ type disabledListResponseParams = { value: DisabledListResponse, }; -type msgResetCircuitBreakerResponseParams = { - value: MsgResetCircuitBreakerResponse, +type msgAuthorizeCircuitBreakerResponseParams = { + value: MsgAuthorizeCircuitBreakerResponse, }; -type permissionsParams = { - value: Permissions, +type queryAccountsRequestParams = { + value: QueryAccountsRequest, +}; + +type queryDisabledListRequestParams = { + value: QueryDisabledListRequest, }; type msgAuthorizeCircuitBreakerParams = { value: MsgAuthorizeCircuitBreaker, }; -type accountResponseParams = { - value: AccountResponse, +type msgTripCircuitBreakerParams = { + value: MsgTripCircuitBreaker, }; -type queryDisabledListRequestParams = { - value: QueryDisabledListRequest, +type permissionsParams = { + value: Permissions, +}; + +type genesisStateParams = { + value: GenesisState, +}; + +type msgResetCircuitBreakerResponseParams = { + value: MsgResetCircuitBreakerResponse, +}; + +type queryAccountRequestParams = { + value: QueryAccountRequest, +}; + +type accountResponseParams = { + value: AccountResponse, }; @@ -206,20 +206,6 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - 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 sendMsgTripCircuitBreakerResponse({ value, fee, memo }: sendMsgTripCircuitBreakerResponseParams): Promise { if (!signer) { throw new Error('TxClient:sendMsgTripCircuitBreakerResponse: Unable to sign Tx. Signer is not present.') @@ -234,129 +220,129 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryAccountRequest({ value, fee, memo }: sendQueryAccountRequestParams): Promise { + async sendMsgResetCircuitBreaker({ value, fee, memo }: sendMsgResetCircuitBreakerParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountRequest: 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.queryAccountRequest({ value: QueryAccountRequest.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:sendQueryAccountRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgResetCircuitBreaker: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAccountsRequest({ value, fee, memo }: sendQueryAccountsRequestParams): Promise { + async sendGenesisAccountPermissions({ value, fee, memo }: sendGenesisAccountPermissionsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAccountsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisAccountPermissions: Unable to 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.genesisAccountPermissions({ value: GenesisAccountPermissions.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:sendGenesisAccountPermissions: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAuthorizeCircuitBreakerResponse({ value, fee, memo }: sendMsgAuthorizeCircuitBreakerResponseParams): Promise { + async sendAccountsResponse({ value, fee, memo }: sendAccountsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAuthorizeCircuitBreakerResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAccountsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgAuthorizeCircuitBreakerResponse({ value: MsgAuthorizeCircuitBreakerResponse.fromPartial(value) }) + let msg = this.accountsResponse({ value: AccountsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAuthorizeCircuitBreakerResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAccountsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgResetCircuitBreaker({ value, fee, memo }: sendMsgResetCircuitBreakerParams): Promise { + async sendDisabledListResponse({ value, fee, memo }: sendDisabledListResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgResetCircuitBreaker: 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.msgResetCircuitBreaker({ value: MsgResetCircuitBreaker.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:sendMsgResetCircuitBreaker: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDisabledListResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisAccountPermissions({ value, fee, memo }: sendGenesisAccountPermissionsParams): Promise { + async sendMsgAuthorizeCircuitBreakerResponse({ value, fee, memo }: sendMsgAuthorizeCircuitBreakerResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisAccountPermissions: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAuthorizeCircuitBreakerResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.genesisAccountPermissions({ value: GenesisAccountPermissions.fromPartial(value) }) + let msg = this.msgAuthorizeCircuitBreakerResponse({ value: MsgAuthorizeCircuitBreakerResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendGenesisAccountPermissions: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAuthorizeCircuitBreakerResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryAccountsRequest({ value, fee, memo }: sendQueryAccountsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.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:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendAccountsResponse({ value, fee, memo }: sendAccountsResponseParams): Promise { + async sendQueryDisabledListRequest({ value, fee, memo }: sendQueryDisabledListRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendAccountsResponse: 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.accountsResponse({ value: AccountsResponse.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:sendAccountsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDisabledListRequest: Could not broadcast Tx: '+ e.message) } }, - async sendDisabledListResponse({ value, fee, memo }: sendDisabledListResponseParams): Promise { + async sendMsgAuthorizeCircuitBreaker({ value, fee, memo }: sendMsgAuthorizeCircuitBreakerParams): Promise { if (!signer) { - throw new Error('TxClient:sendDisabledListResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAuthorizeCircuitBreaker: Unable to 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.msgAuthorizeCircuitBreaker({ value: MsgAuthorizeCircuitBreaker.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:sendMsgAuthorizeCircuitBreaker: Could not broadcast Tx: '+ e.message) } }, - async sendMsgResetCircuitBreakerResponse({ value, fee, memo }: sendMsgResetCircuitBreakerResponseParams): Promise { + async sendMsgTripCircuitBreaker({ value, fee, memo }: sendMsgTripCircuitBreakerParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgResetCircuitBreakerResponse: 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.msgResetCircuitBreakerResponse({ value: MsgResetCircuitBreakerResponse.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:sendMsgResetCircuitBreakerResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgTripCircuitBreaker: Could not broadcast Tx: '+ e.message) } }, @@ -374,57 +360,63 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgAuthorizeCircuitBreaker({ value, fee, memo }: sendMsgAuthorizeCircuitBreakerParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAuthorizeCircuitBreaker: 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.msgAuthorizeCircuitBreaker({ value: MsgAuthorizeCircuitBreaker.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:sendMsgAuthorizeCircuitBreaker: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendAccountResponse({ value, fee, memo }: sendAccountResponseParams): Promise { + async sendMsgResetCircuitBreakerResponse({ value, fee, memo }: sendMsgResetCircuitBreakerResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendAccountResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgResetCircuitBreakerResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.accountResponse({ value: AccountResponse.fromPartial(value) }) + let msg = this.msgResetCircuitBreakerResponse({ value: MsgResetCircuitBreakerResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendAccountResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgResetCircuitBreakerResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDisabledListRequest({ value, fee, memo }: sendQueryDisabledListRequestParams): Promise { + async sendQueryAccountRequest({ value, fee, memo }: sendQueryAccountRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDisabledListRequest: 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.queryDisabledListRequest({ value: QueryDisabledListRequest.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:sendQueryDisabledListRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAccountRequest: Could not broadcast Tx: '+ e.message) } }, - - msgTripCircuitBreaker({ value }: msgTripCircuitBreakerParams): EncodeObject { - try { - return { typeUrl: "/cosmos.circuit.v1.MsgTripCircuitBreaker", value: MsgTripCircuitBreaker.fromPartial( value ) } + async sendAccountResponse({ value, fee, memo }: sendAccountResponseParams): Promise { + if (!signer) { + throw new Error('TxClient:sendAccountResponse: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.accountResponse({ value: AccountResponse.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:MsgTripCircuitBreaker: Could not create message: ' + e.message) + throw new Error('TxClient:sendAccountResponse: Could not broadcast Tx: '+ e.message) } }, + msgTripCircuitBreakerResponse({ value }: msgTripCircuitBreakerResponseParams): EncodeObject { try { return { typeUrl: "/cosmos.circuit.v1.MsgTripCircuitBreakerResponse", value: MsgTripCircuitBreakerResponse.fromPartial( value ) } @@ -433,75 +425,75 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryAccountRequest({ value }: queryAccountRequestParams): EncodeObject { + msgResetCircuitBreaker({ value }: msgResetCircuitBreakerParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.QueryAccountRequest", value: QueryAccountRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.MsgResetCircuitBreaker", value: MsgResetCircuitBreaker.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgResetCircuitBreaker: Could not create message: ' + e.message) } }, - queryAccountsRequest({ value }: queryAccountsRequestParams): EncodeObject { + genesisAccountPermissions({ value }: genesisAccountPermissionsParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.QueryAccountsRequest", value: QueryAccountsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.GenesisAccountPermissions", value: GenesisAccountPermissions.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAccountsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisAccountPermissions: Could not create message: ' + e.message) } }, - msgAuthorizeCircuitBreakerResponse({ value }: msgAuthorizeCircuitBreakerResponseParams): EncodeObject { + accountsResponse({ value }: accountsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse", value: MsgAuthorizeCircuitBreakerResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.AccountsResponse", value: AccountsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAuthorizeCircuitBreakerResponse: Could not create message: ' + e.message) + throw new Error('TxClient:AccountsResponse: Could not create message: ' + e.message) } }, - msgResetCircuitBreaker({ value }: msgResetCircuitBreakerParams): EncodeObject { + disabledListResponse({ value }: disabledListResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.MsgResetCircuitBreaker", value: MsgResetCircuitBreaker.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.DisabledListResponse", value: DisabledListResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgResetCircuitBreaker: Could not create message: ' + e.message) + throw new Error('TxClient:DisabledListResponse: Could not create message: ' + e.message) } }, - genesisAccountPermissions({ value }: genesisAccountPermissionsParams): EncodeObject { + msgAuthorizeCircuitBreakerResponse({ value }: msgAuthorizeCircuitBreakerResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.GenesisAccountPermissions", value: GenesisAccountPermissions.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse", value: MsgAuthorizeCircuitBreakerResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisAccountPermissions: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAuthorizeCircuitBreakerResponse: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryAccountsRequest({ value }: queryAccountsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.QueryAccountsRequest", value: QueryAccountsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountsRequest: Could not create message: ' + e.message) } }, - accountsResponse({ value }: accountsResponseParams): EncodeObject { + queryDisabledListRequest({ value }: queryDisabledListRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.AccountsResponse", value: AccountsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.QueryDisabledListRequest", value: QueryDisabledListRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AccountsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDisabledListRequest: Could not create message: ' + e.message) } }, - disabledListResponse({ value }: disabledListResponseParams): EncodeObject { + msgAuthorizeCircuitBreaker({ value }: msgAuthorizeCircuitBreakerParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.DisabledListResponse", value: DisabledListResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.MsgAuthorizeCircuitBreaker", value: MsgAuthorizeCircuitBreaker.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DisabledListResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAuthorizeCircuitBreaker: Could not create message: ' + e.message) } }, - msgResetCircuitBreakerResponse({ value }: msgResetCircuitBreakerResponseParams): EncodeObject { + msgTripCircuitBreaker({ value }: msgTripCircuitBreakerParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.MsgResetCircuitBreakerResponse", value: MsgResetCircuitBreakerResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.MsgTripCircuitBreaker", value: MsgTripCircuitBreaker.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgResetCircuitBreakerResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgTripCircuitBreaker: Could not create message: ' + e.message) } }, @@ -513,27 +505,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgAuthorizeCircuitBreaker({ value }: msgAuthorizeCircuitBreakerParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.MsgAuthorizeCircuitBreaker", value: MsgAuthorizeCircuitBreaker.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAuthorizeCircuitBreaker: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - accountResponse({ value }: accountResponseParams): EncodeObject { + msgResetCircuitBreakerResponse({ value }: msgResetCircuitBreakerResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.AccountResponse", value: AccountResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.MsgResetCircuitBreakerResponse", value: MsgResetCircuitBreakerResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AccountResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgResetCircuitBreakerResponse: Could not create message: ' + e.message) } }, - queryDisabledListRequest({ value }: queryDisabledListRequestParams): EncodeObject { + queryAccountRequest({ value }: queryAccountRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.circuit.v1.QueryDisabledListRequest", value: QueryDisabledListRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.circuit.v1.QueryAccountRequest", value: QueryAccountRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDisabledListRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAccountRequest: Could not create message: ' + e.message) + } + }, + + accountResponse({ value }: accountResponseParams): EncodeObject { + try { + return { typeUrl: "/cosmos.circuit.v1.AccountResponse", value: AccountResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:AccountResponse: 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 11bb2cb72..a1f96b8a4 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 { MsgTripCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { MsgTripCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; -import { QueryAccountRequest } from "./types/cosmos/circuit/v1/query"; -import { QueryAccountsRequest } from "./types/cosmos/circuit/v1/query"; -import { MsgAuthorizeCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; import { MsgResetCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { GenesisAccountPermissions } from "./types/cosmos/circuit/v1/types"; -import { GenesisState } from "./types/cosmos/circuit/v1/types"; import { AccountsResponse } from "./types/cosmos/circuit/v1/query"; import { DisabledListResponse } from "./types/cosmos/circuit/v1/query"; -import { MsgResetCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; -import { Permissions } from "./types/cosmos/circuit/v1/types"; +import { MsgAuthorizeCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; +import { QueryAccountsRequest } from "./types/cosmos/circuit/v1/query"; +import { QueryDisabledListRequest } from "./types/cosmos/circuit/v1/query"; import { MsgAuthorizeCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; +import { MsgTripCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; +import { Permissions } from "./types/cosmos/circuit/v1/types"; +import { GenesisState } from "./types/cosmos/circuit/v1/types"; +import { MsgResetCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; +import { QueryAccountRequest } from "./types/cosmos/circuit/v1/query"; import { AccountResponse } from "./types/cosmos/circuit/v1/query"; -import { QueryDisabledListRequest } from "./types/cosmos/circuit/v1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.circuit.v1.MsgTripCircuitBreaker", MsgTripCircuitBreaker], ["/cosmos.circuit.v1.MsgTripCircuitBreakerResponse", MsgTripCircuitBreakerResponse], - ["/cosmos.circuit.v1.QueryAccountRequest", QueryAccountRequest], - ["/cosmos.circuit.v1.QueryAccountsRequest", QueryAccountsRequest], - ["/cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse", MsgAuthorizeCircuitBreakerResponse], ["/cosmos.circuit.v1.MsgResetCircuitBreaker", MsgResetCircuitBreaker], ["/cosmos.circuit.v1.GenesisAccountPermissions", GenesisAccountPermissions], - ["/cosmos.circuit.v1.GenesisState", GenesisState], ["/cosmos.circuit.v1.AccountsResponse", AccountsResponse], ["/cosmos.circuit.v1.DisabledListResponse", DisabledListResponse], - ["/cosmos.circuit.v1.MsgResetCircuitBreakerResponse", MsgResetCircuitBreakerResponse], - ["/cosmos.circuit.v1.Permissions", Permissions], + ["/cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse", MsgAuthorizeCircuitBreakerResponse], + ["/cosmos.circuit.v1.QueryAccountsRequest", QueryAccountsRequest], + ["/cosmos.circuit.v1.QueryDisabledListRequest", QueryDisabledListRequest], ["/cosmos.circuit.v1.MsgAuthorizeCircuitBreaker", MsgAuthorizeCircuitBreaker], + ["/cosmos.circuit.v1.MsgTripCircuitBreaker", MsgTripCircuitBreaker], + ["/cosmos.circuit.v1.Permissions", Permissions], + ["/cosmos.circuit.v1.GenesisState", GenesisState], + ["/cosmos.circuit.v1.MsgResetCircuitBreakerResponse", MsgResetCircuitBreakerResponse], + ["/cosmos.circuit.v1.QueryAccountRequest", QueryAccountRequest], ["/cosmos.circuit.v1.AccountResponse", AccountResponse], - ["/cosmos.circuit.v1.QueryDisabledListRequest", QueryDisabledListRequest], ]; diff --git a/ts-client/cosmos.crisis.v1beta1/module.ts b/ts-client/cosmos.crisis.v1beta1/module.ts index 4efe8f567..9307a9e5c 100755 --- a/ts-client/cosmos.crisis.v1beta1/module.ts +++ b/ts-client/cosmos.crisis.v1beta1/module.ts @@ -6,23 +6,23 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { GenesisState } from "./types/cosmos/crisis/v1beta1/genesis"; import { MsgVerifyInvariant } from "./types/cosmos/crisis/v1beta1/tx"; +import { GenesisState } from "./types/cosmos/crisis/v1beta1/genesis"; 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 { GenesisState, MsgVerifyInvariant, MsgVerifyInvariantResponse, MsgUpdateParams, MsgUpdateParamsResponse }; +export { MsgVerifyInvariant, GenesisState, MsgVerifyInvariantResponse, MsgUpdateParams, MsgUpdateParamsResponse }; -type sendGenesisStateParams = { - value: GenesisState, +type sendMsgVerifyInvariantParams = { + value: MsgVerifyInvariant, fee?: StdFee, memo?: string }; -type sendMsgVerifyInvariantParams = { - value: MsgVerifyInvariant, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; @@ -46,14 +46,14 @@ type sendMsgUpdateParamsResponseParams = { }; -type genesisStateParams = { - value: GenesisState, -}; - type msgVerifyInvariantParams = { value: MsgVerifyInvariant, }; +type genesisStateParams = { + value: GenesisState, +}; + type msgVerifyInvariantResponseParams = { value: MsgVerifyInvariantResponse, }; @@ -96,31 +96,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendMsgVerifyInvariant({ value, fee, memo }: sendMsgVerifyInvariantParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgVerifyInvariant: Unable to 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.msgVerifyInvariant({ value: MsgVerifyInvariant.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:sendMsgVerifyInvariant: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVerifyInvariant({ value, fee, memo }: sendMsgVerifyInvariantParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVerifyInvariant: 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.msgVerifyInvariant({ value: MsgVerifyInvariant.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:sendMsgVerifyInvariant: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, @@ -167,19 +167,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht }, - genesisState({ value }: genesisStateParams): EncodeObject { + msgVerifyInvariant({ value }: msgVerifyInvariantParams): EncodeObject { try { - return { typeUrl: "/cosmos.crisis.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", value: MsgVerifyInvariant.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVerifyInvariant: Could not create message: ' + e.message) } }, - msgVerifyInvariant({ value }: msgVerifyInvariantParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", value: MsgVerifyInvariant.fromPartial( value ) } + return { typeUrl: "/cosmos.crisis.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVerifyInvariant: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: 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 d9e06a8c9..422b5b1ae 100755 --- a/ts-client/cosmos.crisis.v1beta1/registry.ts +++ b/ts-client/cosmos.crisis.v1beta1/registry.ts @@ -1,13 +1,13 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { GenesisState } from "./types/cosmos/crisis/v1beta1/genesis"; import { MsgVerifyInvariant } from "./types/cosmos/crisis/v1beta1/tx"; +import { GenesisState } from "./types/cosmos/crisis/v1beta1/genesis"; 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.GenesisState", GenesisState], ["/cosmos.crisis.v1beta1.MsgVerifyInvariant", MsgVerifyInvariant], + ["/cosmos.crisis.v1beta1.GenesisState", GenesisState], ["/cosmos.crisis.v1beta1.MsgVerifyInvariantResponse", MsgVerifyInvariantResponse], ["/cosmos.crisis.v1beta1.MsgUpdateParams", MsgUpdateParams], ["/cosmos.crisis.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], diff --git a/ts-client/cosmos.distribution.v1beta1/module.ts b/ts-client/cosmos.distribution.v1beta1/module.ts index c297333dc..e7df56a35 100755 --- a/ts-client/cosmos.distribution.v1beta1/module.ts +++ b/ts-client/cosmos.distribution.v1beta1/module.ts @@ -6,603 +6,603 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { ValidatorHistoricalRewards } from "./types/cosmos/distribution/v1beta1/distribution"; -import { DelegatorStartingInfo } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryDelegationRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgWithdrawDelegatorRewardResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryDelegatorWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorCurrentRewards } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryValidatorOutstandingRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorCurrentRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { QueryValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgFundCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx"; -import { ValidatorOutstandingRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; +import { ValidatorSlashEvents } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryDelegationRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; import { CommunityPoolSpendProposal } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgSetWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgDepositValidatorRewardsPool } from "./types/cosmos/distribution/v1beta1/tx"; -import { ValidatorSlashEvent } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryValidatorDistributionInfoRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryValidatorOutstandingRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryValidatorSlashesRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { Params } from "./types/cosmos/distribution/v1beta1/distribution"; import { DelegationDelegatorReward } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryValidatorDistributionInfoResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorAccumulatedCommissionRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { QueryParamsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorOutstandingRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgDepositValidatorRewardsPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; import { QueryCommunityPoolRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorAccumulatedCommission } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorHistoricalRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { ValidatorCurrentRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; import { DelegatorStartingInfoRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { QueryValidatorCommissionRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryValidatorSlashesResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryDelegationTotalRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorWithdrawAddressRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorSlashEventRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { Params } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryParamsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegationTotalRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgWithdrawValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorDistributionInfoRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryValidatorOutstandingRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryValidatorSlashesRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorValidatorsRequest } from "./types/cosmos/distribution/v1beta1/query"; import { QueryDelegatorValidatorsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; +import { ValidatorOutstandingRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { GenesisState } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgSetWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/tx"; import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgUpdateParamsResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { CommunityPoolSpendProposalWithDeposit } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorAccumulatedCommission } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryParamsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegationRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { FeePool } from "./types/cosmos/distribution/v1beta1/distribution"; import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; import { MsgCommunityPoolSpendResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorOutstandingRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegatorValidatorsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorSlashEvent } from "./types/cosmos/distribution/v1beta1/distribution"; +import { ValidatorSlashEventRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { QueryValidatorCommissionRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { FeePool } from "./types/cosmos/distribution/v1beta1/distribution"; import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgDepositValidatorRewardsPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { CommunityPoolSpendProposalWithDeposit } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgWithdrawValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgDepositValidatorRewardsPool } from "./types/cosmos/distribution/v1beta1/tx"; import { DelegatorWithdrawInfo } from "./types/cosmos/distribution/v1beta1/genesis"; -import { ValidatorAccumulatedCommissionRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { GenesisState } from "./types/cosmos/distribution/v1beta1/genesis"; -import { ValidatorSlashEvents } from "./types/cosmos/distribution/v1beta1/distribution"; -import { ValidatorOutstandingRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgFundCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { ValidatorHistoricalRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { ValidatorCurrentRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryParamsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorSlashesResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgWithdrawDelegatorRewardResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryDelegatorWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { DelegatorStartingInfo } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryValidatorDistributionInfoResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationTotalRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationTotalRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegatorWithdrawAddressRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/query"; -export { ValidatorHistoricalRewards, DelegatorStartingInfo, QueryDelegationRewardsRequest, MsgWithdrawDelegatorRewardResponse, QueryDelegatorWithdrawAddressResponse, ValidatorCurrentRewards, QueryValidatorOutstandingRewardsRequest, ValidatorCurrentRewardsRecord, QueryValidatorCommissionResponse, MsgFundCommunityPoolResponse, MsgUpdateParams, ValidatorOutstandingRewards, CommunityPoolSpendProposal, MsgSetWithdrawAddressResponse, MsgDepositValidatorRewardsPool, ValidatorSlashEvent, DelegationDelegatorReward, QueryValidatorDistributionInfoResponse, QueryCommunityPoolRequest, ValidatorHistoricalRewardsRecord, DelegatorStartingInfoRecord, QueryValidatorCommissionRequest, QueryValidatorSlashesResponse, MsgWithdrawValidatorCommission, QueryDelegationTotalRewardsRequest, QueryDelegatorWithdrawAddressRequest, ValidatorSlashEventRecord, Params, QueryParamsRequest, QueryDelegationTotalRewardsResponse, MsgWithdrawValidatorCommissionResponse, QueryValidatorDistributionInfoRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorSlashesRequest, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgUpdateParamsResponse, CommunityPoolSpendProposalWithDeposit, QueryCommunityPoolResponse, ValidatorAccumulatedCommission, QueryParamsResponse, QueryDelegationRewardsResponse, FeePool, MsgFundCommunityPool, MsgCommunityPoolSpendResponse, MsgCommunityPoolSpend, MsgDepositValidatorRewardsPoolResponse, DelegatorWithdrawInfo, ValidatorAccumulatedCommissionRecord, GenesisState, ValidatorSlashEvents, ValidatorOutstandingRewardsRecord }; +export { MsgSetWithdrawAddress, ValidatorSlashEvents, QueryDelegationRewardsResponse, CommunityPoolSpendProposal, QueryValidatorDistributionInfoRequest, QueryValidatorOutstandingRewardsRequest, QueryValidatorSlashesRequest, Params, DelegationDelegatorReward, ValidatorAccumulatedCommissionRecord, QueryParamsResponse, ValidatorOutstandingRewardsRecord, MsgUpdateParams, MsgDepositValidatorRewardsPoolResponse, QueryCommunityPoolRequest, ValidatorAccumulatedCommission, ValidatorHistoricalRewardsRecord, ValidatorCurrentRewardsRecord, DelegatorStartingInfoRecord, QueryDelegatorValidatorsResponse, ValidatorOutstandingRewards, GenesisState, MsgSetWithdrawAddressResponse, MsgWithdrawDelegatorReward, MsgFundCommunityPool, MsgCommunityPoolSpendResponse, QueryValidatorOutstandingRewardsResponse, QueryDelegatorValidatorsRequest, ValidatorSlashEvent, ValidatorSlashEventRecord, QueryValidatorCommissionRequest, QueryDelegationRewardsRequest, FeePool, MsgCommunityPoolSpend, CommunityPoolSpendProposalWithDeposit, QueryValidatorCommissionResponse, MsgWithdrawValidatorCommissionResponse, MsgDepositValidatorRewardsPool, DelegatorWithdrawInfo, MsgWithdrawValidatorCommission, MsgFundCommunityPoolResponse, ValidatorHistoricalRewards, ValidatorCurrentRewards, QueryParamsRequest, MsgUpdateParamsResponse, QueryValidatorSlashesResponse, MsgWithdrawDelegatorRewardResponse, QueryDelegatorWithdrawAddressResponse, DelegatorStartingInfo, QueryValidatorDistributionInfoResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorWithdrawAddressRequest, QueryCommunityPoolResponse }; -type sendValidatorHistoricalRewardsParams = { - value: ValidatorHistoricalRewards, +type sendMsgSetWithdrawAddressParams = { + value: MsgSetWithdrawAddress, fee?: StdFee, memo?: string }; -type sendDelegatorStartingInfoParams = { - value: DelegatorStartingInfo, +type sendValidatorSlashEventsParams = { + value: ValidatorSlashEvents, fee?: StdFee, memo?: string }; -type sendQueryDelegationRewardsRequestParams = { - value: QueryDelegationRewardsRequest, +type sendQueryDelegationRewardsResponseParams = { + value: QueryDelegationRewardsResponse, fee?: StdFee, memo?: string }; -type sendMsgWithdrawDelegatorRewardResponseParams = { - value: MsgWithdrawDelegatorRewardResponse, +type sendCommunityPoolSpendProposalParams = { + value: CommunityPoolSpendProposal, fee?: StdFee, memo?: string }; -type sendQueryDelegatorWithdrawAddressResponseParams = { - value: QueryDelegatorWithdrawAddressResponse, +type sendQueryValidatorDistributionInfoRequestParams = { + value: QueryValidatorDistributionInfoRequest, fee?: StdFee, memo?: string }; -type sendValidatorCurrentRewardsParams = { - value: ValidatorCurrentRewards, +type sendQueryValidatorOutstandingRewardsRequestParams = { + value: QueryValidatorOutstandingRewardsRequest, fee?: StdFee, memo?: string }; -type sendQueryValidatorOutstandingRewardsRequestParams = { - value: QueryValidatorOutstandingRewardsRequest, +type sendQueryValidatorSlashesRequestParams = { + value: QueryValidatorSlashesRequest, fee?: StdFee, memo?: string }; -type sendValidatorCurrentRewardsRecordParams = { - value: ValidatorCurrentRewardsRecord, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendQueryValidatorCommissionResponseParams = { - value: QueryValidatorCommissionResponse, +type sendDelegationDelegatorRewardParams = { + value: DelegationDelegatorReward, fee?: StdFee, memo?: string }; -type sendMsgFundCommunityPoolResponseParams = { - value: MsgFundCommunityPoolResponse, +type sendValidatorAccumulatedCommissionRecordParams = { + value: ValidatorAccumulatedCommissionRecord, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendValidatorOutstandingRewardsParams = { - value: ValidatorOutstandingRewards, +type sendValidatorOutstandingRewardsRecordParams = { + value: ValidatorOutstandingRewardsRecord, fee?: StdFee, memo?: string }; -type sendCommunityPoolSpendProposalParams = { - value: CommunityPoolSpendProposal, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendMsgSetWithdrawAddressResponseParams = { - value: MsgSetWithdrawAddressResponse, +type sendMsgDepositValidatorRewardsPoolResponseParams = { + value: MsgDepositValidatorRewardsPoolResponse, fee?: StdFee, memo?: string }; -type sendMsgDepositValidatorRewardsPoolParams = { - value: MsgDepositValidatorRewardsPool, +type sendQueryCommunityPoolRequestParams = { + value: QueryCommunityPoolRequest, fee?: StdFee, memo?: string }; -type sendValidatorSlashEventParams = { - value: ValidatorSlashEvent, +type sendValidatorAccumulatedCommissionParams = { + value: ValidatorAccumulatedCommission, fee?: StdFee, memo?: string }; -type sendDelegationDelegatorRewardParams = { - value: DelegationDelegatorReward, +type sendValidatorHistoricalRewardsRecordParams = { + value: ValidatorHistoricalRewardsRecord, fee?: StdFee, memo?: string }; -type sendQueryValidatorDistributionInfoResponseParams = { - value: QueryValidatorDistributionInfoResponse, +type sendValidatorCurrentRewardsRecordParams = { + value: ValidatorCurrentRewardsRecord, fee?: StdFee, memo?: string }; -type sendQueryCommunityPoolRequestParams = { - value: QueryCommunityPoolRequest, +type sendDelegatorStartingInfoRecordParams = { + value: DelegatorStartingInfoRecord, fee?: StdFee, memo?: string }; -type sendValidatorHistoricalRewardsRecordParams = { - value: ValidatorHistoricalRewardsRecord, +type sendQueryDelegatorValidatorsResponseParams = { + value: QueryDelegatorValidatorsResponse, fee?: StdFee, memo?: string }; -type sendDelegatorStartingInfoRecordParams = { - value: DelegatorStartingInfoRecord, +type sendValidatorOutstandingRewardsParams = { + value: ValidatorOutstandingRewards, fee?: StdFee, memo?: string }; -type sendQueryValidatorCommissionRequestParams = { - value: QueryValidatorCommissionRequest, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendQueryValidatorSlashesResponseParams = { - value: QueryValidatorSlashesResponse, +type sendMsgSetWithdrawAddressResponseParams = { + value: MsgSetWithdrawAddressResponse, fee?: StdFee, memo?: string }; -type sendMsgWithdrawValidatorCommissionParams = { - value: MsgWithdrawValidatorCommission, +type sendMsgWithdrawDelegatorRewardParams = { + value: MsgWithdrawDelegatorReward, fee?: StdFee, memo?: string }; -type sendQueryDelegationTotalRewardsRequestParams = { - value: QueryDelegationTotalRewardsRequest, +type sendMsgFundCommunityPoolParams = { + value: MsgFundCommunityPool, fee?: StdFee, memo?: string }; -type sendQueryDelegatorWithdrawAddressRequestParams = { - value: QueryDelegatorWithdrawAddressRequest, +type sendMsgCommunityPoolSpendResponseParams = { + value: MsgCommunityPoolSpendResponse, fee?: StdFee, memo?: string }; -type sendValidatorSlashEventRecordParams = { - value: ValidatorSlashEventRecord, +type sendQueryValidatorOutstandingRewardsResponseParams = { + value: QueryValidatorOutstandingRewardsResponse, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendQueryDelegatorValidatorsRequestParams = { + value: QueryDelegatorValidatorsRequest, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendValidatorSlashEventParams = { + value: ValidatorSlashEvent, fee?: StdFee, memo?: string }; -type sendQueryDelegationTotalRewardsResponseParams = { - value: QueryDelegationTotalRewardsResponse, +type sendValidatorSlashEventRecordParams = { + value: ValidatorSlashEventRecord, fee?: StdFee, memo?: string }; -type sendMsgWithdrawValidatorCommissionResponseParams = { - value: MsgWithdrawValidatorCommissionResponse, +type sendQueryValidatorCommissionRequestParams = { + value: QueryValidatorCommissionRequest, fee?: StdFee, memo?: string }; -type sendQueryValidatorDistributionInfoRequestParams = { - value: QueryValidatorDistributionInfoRequest, +type sendQueryDelegationRewardsRequestParams = { + value: QueryDelegationRewardsRequest, fee?: StdFee, memo?: string }; -type sendQueryValidatorOutstandingRewardsResponseParams = { - value: QueryValidatorOutstandingRewardsResponse, +type sendFeePoolParams = { + value: FeePool, fee?: StdFee, memo?: string }; -type sendQueryValidatorSlashesRequestParams = { - value: QueryValidatorSlashesRequest, +type sendMsgCommunityPoolSpendParams = { + value: MsgCommunityPoolSpend, fee?: StdFee, memo?: string }; -type sendQueryDelegatorValidatorsRequestParams = { - value: QueryDelegatorValidatorsRequest, +type sendCommunityPoolSpendProposalWithDepositParams = { + value: CommunityPoolSpendProposalWithDeposit, fee?: StdFee, memo?: string }; -type sendQueryDelegatorValidatorsResponseParams = { - value: QueryDelegatorValidatorsResponse, +type sendQueryValidatorCommissionResponseParams = { + value: QueryValidatorCommissionResponse, fee?: StdFee, memo?: string }; -type sendMsgSetWithdrawAddressParams = { - value: MsgSetWithdrawAddress, +type sendMsgWithdrawValidatorCommissionResponseParams = { + value: MsgWithdrawValidatorCommissionResponse, fee?: StdFee, memo?: string }; -type sendMsgWithdrawDelegatorRewardParams = { - value: MsgWithdrawDelegatorReward, +type sendMsgDepositValidatorRewardsPoolParams = { + value: MsgDepositValidatorRewardsPool, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendDelegatorWithdrawInfoParams = { + value: DelegatorWithdrawInfo, fee?: StdFee, memo?: string }; -type sendCommunityPoolSpendProposalWithDepositParams = { - value: CommunityPoolSpendProposalWithDeposit, +type sendMsgWithdrawValidatorCommissionParams = { + value: MsgWithdrawValidatorCommission, fee?: StdFee, memo?: string }; -type sendQueryCommunityPoolResponseParams = { - value: QueryCommunityPoolResponse, +type sendMsgFundCommunityPoolResponseParams = { + value: MsgFundCommunityPoolResponse, fee?: StdFee, memo?: string }; -type sendValidatorAccumulatedCommissionParams = { - value: ValidatorAccumulatedCommission, +type sendValidatorHistoricalRewardsParams = { + value: ValidatorHistoricalRewards, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendValidatorCurrentRewardsParams = { + value: ValidatorCurrentRewards, fee?: StdFee, memo?: string }; -type sendQueryDelegationRewardsResponseParams = { - value: QueryDelegationRewardsResponse, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendFeePoolParams = { - value: FeePool, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendMsgFundCommunityPoolParams = { - value: MsgFundCommunityPool, +type sendQueryValidatorSlashesResponseParams = { + value: QueryValidatorSlashesResponse, fee?: StdFee, memo?: string }; -type sendMsgCommunityPoolSpendResponseParams = { - value: MsgCommunityPoolSpendResponse, +type sendMsgWithdrawDelegatorRewardResponseParams = { + value: MsgWithdrawDelegatorRewardResponse, fee?: StdFee, memo?: string }; -type sendMsgCommunityPoolSpendParams = { - value: MsgCommunityPoolSpend, +type sendQueryDelegatorWithdrawAddressResponseParams = { + value: QueryDelegatorWithdrawAddressResponse, fee?: StdFee, memo?: string }; -type sendMsgDepositValidatorRewardsPoolResponseParams = { - value: MsgDepositValidatorRewardsPoolResponse, +type sendDelegatorStartingInfoParams = { + value: DelegatorStartingInfo, fee?: StdFee, memo?: string }; -type sendDelegatorWithdrawInfoParams = { - value: DelegatorWithdrawInfo, +type sendQueryValidatorDistributionInfoResponseParams = { + value: QueryValidatorDistributionInfoResponse, fee?: StdFee, memo?: string }; -type sendValidatorAccumulatedCommissionRecordParams = { - value: ValidatorAccumulatedCommissionRecord, +type sendQueryDelegationTotalRewardsRequestParams = { + value: QueryDelegationTotalRewardsRequest, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryDelegationTotalRewardsResponseParams = { + value: QueryDelegationTotalRewardsResponse, fee?: StdFee, memo?: string }; -type sendValidatorSlashEventsParams = { - value: ValidatorSlashEvents, +type sendQueryDelegatorWithdrawAddressRequestParams = { + value: QueryDelegatorWithdrawAddressRequest, fee?: StdFee, memo?: string }; -type sendValidatorOutstandingRewardsRecordParams = { - value: ValidatorOutstandingRewardsRecord, +type sendQueryCommunityPoolResponseParams = { + value: QueryCommunityPoolResponse, fee?: StdFee, memo?: string }; -type validatorHistoricalRewardsParams = { - value: ValidatorHistoricalRewards, -}; - -type delegatorStartingInfoParams = { - value: DelegatorStartingInfo, +type msgSetWithdrawAddressParams = { + value: MsgSetWithdrawAddress, }; -type queryDelegationRewardsRequestParams = { - value: QueryDelegationRewardsRequest, +type validatorSlashEventsParams = { + value: ValidatorSlashEvents, }; -type msgWithdrawDelegatorRewardResponseParams = { - value: MsgWithdrawDelegatorRewardResponse, +type queryDelegationRewardsResponseParams = { + value: QueryDelegationRewardsResponse, }; -type queryDelegatorWithdrawAddressResponseParams = { - value: QueryDelegatorWithdrawAddressResponse, +type communityPoolSpendProposalParams = { + value: CommunityPoolSpendProposal, }; -type validatorCurrentRewardsParams = { - value: ValidatorCurrentRewards, +type queryValidatorDistributionInfoRequestParams = { + value: QueryValidatorDistributionInfoRequest, }; type queryValidatorOutstandingRewardsRequestParams = { value: QueryValidatorOutstandingRewardsRequest, }; -type validatorCurrentRewardsRecordParams = { - value: ValidatorCurrentRewardsRecord, -}; - -type queryValidatorCommissionResponseParams = { - value: QueryValidatorCommissionResponse, -}; - -type msgFundCommunityPoolResponseParams = { - value: MsgFundCommunityPoolResponse, -}; - -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryValidatorSlashesRequestParams = { + value: QueryValidatorSlashesRequest, }; -type validatorOutstandingRewardsParams = { - value: ValidatorOutstandingRewards, +type paramsParams = { + value: Params, }; -type communityPoolSpendProposalParams = { - value: CommunityPoolSpendProposal, +type delegationDelegatorRewardParams = { + value: DelegationDelegatorReward, }; -type msgSetWithdrawAddressResponseParams = { - value: MsgSetWithdrawAddressResponse, +type validatorAccumulatedCommissionRecordParams = { + value: ValidatorAccumulatedCommissionRecord, }; -type msgDepositValidatorRewardsPoolParams = { - value: MsgDepositValidatorRewardsPool, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type validatorSlashEventParams = { - value: ValidatorSlashEvent, +type validatorOutstandingRewardsRecordParams = { + value: ValidatorOutstandingRewardsRecord, }; -type delegationDelegatorRewardParams = { - value: DelegationDelegatorReward, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type queryValidatorDistributionInfoResponseParams = { - value: QueryValidatorDistributionInfoResponse, +type msgDepositValidatorRewardsPoolResponseParams = { + value: MsgDepositValidatorRewardsPoolResponse, }; type queryCommunityPoolRequestParams = { value: QueryCommunityPoolRequest, }; +type validatorAccumulatedCommissionParams = { + value: ValidatorAccumulatedCommission, +}; + type validatorHistoricalRewardsRecordParams = { value: ValidatorHistoricalRewardsRecord, }; +type validatorCurrentRewardsRecordParams = { + value: ValidatorCurrentRewardsRecord, +}; + type delegatorStartingInfoRecordParams = { value: DelegatorStartingInfoRecord, }; -type queryValidatorCommissionRequestParams = { - value: QueryValidatorCommissionRequest, +type queryDelegatorValidatorsResponseParams = { + value: QueryDelegatorValidatorsResponse, }; -type queryValidatorSlashesResponseParams = { - value: QueryValidatorSlashesResponse, +type validatorOutstandingRewardsParams = { + value: ValidatorOutstandingRewards, }; -type msgWithdrawValidatorCommissionParams = { - value: MsgWithdrawValidatorCommission, +type genesisStateParams = { + value: GenesisState, }; -type queryDelegationTotalRewardsRequestParams = { - value: QueryDelegationTotalRewardsRequest, +type msgSetWithdrawAddressResponseParams = { + value: MsgSetWithdrawAddressResponse, }; -type queryDelegatorWithdrawAddressRequestParams = { - value: QueryDelegatorWithdrawAddressRequest, +type msgWithdrawDelegatorRewardParams = { + value: MsgWithdrawDelegatorReward, }; -type validatorSlashEventRecordParams = { - value: ValidatorSlashEventRecord, +type msgFundCommunityPoolParams = { + value: MsgFundCommunityPool, }; -type paramsParams = { - value: Params, +type msgCommunityPoolSpendResponseParams = { + value: MsgCommunityPoolSpendResponse, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type queryValidatorOutstandingRewardsResponseParams = { + value: QueryValidatorOutstandingRewardsResponse, }; -type queryDelegationTotalRewardsResponseParams = { - value: QueryDelegationTotalRewardsResponse, +type queryDelegatorValidatorsRequestParams = { + value: QueryDelegatorValidatorsRequest, }; -type msgWithdrawValidatorCommissionResponseParams = { - value: MsgWithdrawValidatorCommissionResponse, +type validatorSlashEventParams = { + value: ValidatorSlashEvent, }; -type queryValidatorDistributionInfoRequestParams = { - value: QueryValidatorDistributionInfoRequest, +type validatorSlashEventRecordParams = { + value: ValidatorSlashEventRecord, }; -type queryValidatorOutstandingRewardsResponseParams = { - value: QueryValidatorOutstandingRewardsResponse, +type queryValidatorCommissionRequestParams = { + value: QueryValidatorCommissionRequest, }; -type queryValidatorSlashesRequestParams = { - value: QueryValidatorSlashesRequest, +type queryDelegationRewardsRequestParams = { + value: QueryDelegationRewardsRequest, }; -type queryDelegatorValidatorsRequestParams = { - value: QueryDelegatorValidatorsRequest, +type feePoolParams = { + value: FeePool, }; -type queryDelegatorValidatorsResponseParams = { - value: QueryDelegatorValidatorsResponse, +type msgCommunityPoolSpendParams = { + value: MsgCommunityPoolSpend, }; -type msgSetWithdrawAddressParams = { - value: MsgSetWithdrawAddress, +type communityPoolSpendProposalWithDepositParams = { + value: CommunityPoolSpendProposalWithDeposit, }; -type msgWithdrawDelegatorRewardParams = { - value: MsgWithdrawDelegatorReward, +type queryValidatorCommissionResponseParams = { + value: QueryValidatorCommissionResponse, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type msgWithdrawValidatorCommissionResponseParams = { + value: MsgWithdrawValidatorCommissionResponse, }; -type communityPoolSpendProposalWithDepositParams = { - value: CommunityPoolSpendProposalWithDeposit, +type msgDepositValidatorRewardsPoolParams = { + value: MsgDepositValidatorRewardsPool, }; -type queryCommunityPoolResponseParams = { - value: QueryCommunityPoolResponse, +type delegatorWithdrawInfoParams = { + value: DelegatorWithdrawInfo, }; -type validatorAccumulatedCommissionParams = { - value: ValidatorAccumulatedCommission, +type msgWithdrawValidatorCommissionParams = { + value: MsgWithdrawValidatorCommission, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type msgFundCommunityPoolResponseParams = { + value: MsgFundCommunityPoolResponse, }; -type queryDelegationRewardsResponseParams = { - value: QueryDelegationRewardsResponse, +type validatorHistoricalRewardsParams = { + value: ValidatorHistoricalRewards, }; -type feePoolParams = { - value: FeePool, +type validatorCurrentRewardsParams = { + value: ValidatorCurrentRewards, }; -type msgFundCommunityPoolParams = { - value: MsgFundCommunityPool, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; -type msgCommunityPoolSpendResponseParams = { - value: MsgCommunityPoolSpendResponse, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type msgCommunityPoolSpendParams = { - value: MsgCommunityPoolSpend, +type queryValidatorSlashesResponseParams = { + value: QueryValidatorSlashesResponse, }; -type msgDepositValidatorRewardsPoolResponseParams = { - value: MsgDepositValidatorRewardsPoolResponse, +type msgWithdrawDelegatorRewardResponseParams = { + value: MsgWithdrawDelegatorRewardResponse, }; -type delegatorWithdrawInfoParams = { - value: DelegatorWithdrawInfo, +type queryDelegatorWithdrawAddressResponseParams = { + value: QueryDelegatorWithdrawAddressResponse, }; -type validatorAccumulatedCommissionRecordParams = { - value: ValidatorAccumulatedCommissionRecord, +type delegatorStartingInfoParams = { + value: DelegatorStartingInfo, +}; + +type queryValidatorDistributionInfoResponseParams = { + value: QueryValidatorDistributionInfoResponse, +}; + +type queryDelegationTotalRewardsRequestParams = { + value: QueryDelegationTotalRewardsRequest, }; -type genesisStateParams = { - value: GenesisState, +type queryDelegationTotalRewardsResponseParams = { + value: QueryDelegationTotalRewardsResponse, }; -type validatorSlashEventsParams = { - value: ValidatorSlashEvents, +type queryDelegatorWithdrawAddressRequestParams = { + value: QueryDelegatorWithdrawAddressRequest, }; -type validatorOutstandingRewardsRecordParams = { - value: ValidatorOutstandingRewardsRecord, +type queryCommunityPoolResponseParams = { + value: QueryCommunityPoolResponse, }; @@ -635,1192 +635,1192 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendValidatorHistoricalRewards({ value, fee, memo }: sendValidatorHistoricalRewardsParams): Promise { + async sendMsgSetWithdrawAddress({ value, fee, memo }: sendMsgSetWithdrawAddressParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorHistoricalRewards: 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.validatorHistoricalRewards({ value: ValidatorHistoricalRewards.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:sendValidatorHistoricalRewards: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSetWithdrawAddress: Could not broadcast Tx: '+ e.message) } }, - async sendDelegatorStartingInfo({ value, fee, memo }: sendDelegatorStartingInfoParams): Promise { + async sendValidatorSlashEvents({ value, fee, memo }: sendValidatorSlashEventsParams): Promise { if (!signer) { - throw new Error('TxClient:sendDelegatorStartingInfo: 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.delegatorStartingInfo({ value: DelegatorStartingInfo.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:sendDelegatorStartingInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorSlashEvents: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegationRewardsRequest({ value, fee, memo }: sendQueryDelegationRewardsRequestParams): Promise { + async sendQueryDelegationRewardsResponse({ value, fee, memo }: sendQueryDelegationRewardsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegationRewardsRequest: 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.queryDelegationRewardsRequest({ value: QueryDelegationRewardsRequest.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:sendQueryDelegationRewardsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegationRewardsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgWithdrawDelegatorRewardResponse({ value, fee, memo }: sendMsgWithdrawDelegatorRewardResponseParams): Promise { + async sendCommunityPoolSpendProposal({ value, fee, memo }: sendCommunityPoolSpendProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgWithdrawDelegatorRewardResponse: 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.msgWithdrawDelegatorRewardResponse({ value: MsgWithdrawDelegatorRewardResponse.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:sendMsgWithdrawDelegatorRewardResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCommunityPoolSpendProposal: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorWithdrawAddressResponse({ value, fee, memo }: sendQueryDelegatorWithdrawAddressResponseParams): Promise { + async sendQueryValidatorDistributionInfoRequest({ value, fee, memo }: sendQueryValidatorDistributionInfoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorWithdrawAddressResponse: 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.queryDelegatorWithdrawAddressResponse({ value: QueryDelegatorWithdrawAddressResponse.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:sendQueryDelegatorWithdrawAddressResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorDistributionInfoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorCurrentRewards({ value, fee, memo }: sendValidatorCurrentRewardsParams): Promise { + async sendQueryValidatorOutstandingRewardsRequest({ value, fee, memo }: sendQueryValidatorOutstandingRewardsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorCurrentRewards: 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.validatorCurrentRewards({ value: ValidatorCurrentRewards.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:sendValidatorCurrentRewards: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorOutstandingRewardsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorOutstandingRewardsRequest({ value, fee, memo }: sendQueryValidatorOutstandingRewardsRequestParams): Promise { + async sendQueryValidatorSlashesRequest({ value, fee, memo }: sendQueryValidatorSlashesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorOutstandingRewardsRequest: 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.queryValidatorOutstandingRewardsRequest({ value: QueryValidatorOutstandingRewardsRequest.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:sendQueryValidatorOutstandingRewardsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorSlashesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorCurrentRewardsRecord({ value, fee, memo }: sendValidatorCurrentRewardsRecordParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorCurrentRewardsRecord: 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.validatorCurrentRewardsRecord({ value: ValidatorCurrentRewardsRecord.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:sendValidatorCurrentRewardsRecord: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorCommissionResponse({ value, fee, memo }: sendQueryValidatorCommissionResponseParams): Promise { + async sendDelegationDelegatorReward({ value, fee, memo }: sendDelegationDelegatorRewardParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorCommissionResponse: 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.queryValidatorCommissionResponse({ value: QueryValidatorCommissionResponse.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:sendQueryValidatorCommissionResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDelegationDelegatorReward: Could not broadcast Tx: '+ e.message) } }, - async sendMsgFundCommunityPoolResponse({ value, fee, memo }: sendMsgFundCommunityPoolResponseParams): Promise { + async sendValidatorAccumulatedCommissionRecord({ value, fee, memo }: sendValidatorAccumulatedCommissionRecordParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgFundCommunityPoolResponse: 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.msgFundCommunityPoolResponse({ value: MsgFundCommunityPoolResponse.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:sendMsgFundCommunityPoolResponse: 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 sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.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:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorOutstandingRewards({ value, fee, memo }: sendValidatorOutstandingRewardsParams): Promise { + async sendValidatorOutstandingRewardsRecord({ value, fee, memo }: sendValidatorOutstandingRewardsRecordParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorOutstandingRewards: 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.validatorOutstandingRewards({ value: ValidatorOutstandingRewards.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:sendValidatorOutstandingRewards: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorOutstandingRewardsRecord: Could not broadcast Tx: '+ e.message) } }, - async sendCommunityPoolSpendProposal({ value, fee, memo }: sendCommunityPoolSpendProposalParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendCommunityPoolSpendProposal: 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.communityPoolSpendProposal({ value: CommunityPoolSpendProposal.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:sendCommunityPoolSpendProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSetWithdrawAddressResponse({ value, fee, memo }: sendMsgSetWithdrawAddressResponseParams): Promise { + async sendMsgDepositValidatorRewardsPoolResponse({ value, fee, memo }: sendMsgDepositValidatorRewardsPoolResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSetWithdrawAddressResponse: 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.msgSetWithdrawAddressResponse({ value: MsgSetWithdrawAddressResponse.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:sendMsgSetWithdrawAddressResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDepositValidatorRewardsPoolResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDepositValidatorRewardsPool({ value, fee, memo }: sendMsgDepositValidatorRewardsPoolParams): Promise { + async sendQueryCommunityPoolRequest({ value, fee, memo }: sendQueryCommunityPoolRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDepositValidatorRewardsPool: 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.msgDepositValidatorRewardsPool({ value: MsgDepositValidatorRewardsPool.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:sendMsgDepositValidatorRewardsPool: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryCommunityPoolRequest: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorSlashEvent({ value, fee, memo }: sendValidatorSlashEventParams): Promise { + async sendValidatorAccumulatedCommission({ value, fee, memo }: sendValidatorAccumulatedCommissionParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorSlashEvent: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidatorAccumulatedCommission: Unable to 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) }) + 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:sendValidatorSlashEvent: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorAccumulatedCommission: Could not broadcast Tx: '+ e.message) } }, - async sendDelegationDelegatorReward({ value, fee, memo }: sendDelegationDelegatorRewardParams): Promise { + async sendValidatorHistoricalRewardsRecord({ value, fee, memo }: sendValidatorHistoricalRewardsRecordParams): Promise { if (!signer) { - throw new Error('TxClient:sendDelegationDelegatorReward: 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.delegationDelegatorReward({ value: DelegationDelegatorReward.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:sendDelegationDelegatorReward: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorHistoricalRewardsRecord: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorDistributionInfoResponse({ value, fee, memo }: sendQueryValidatorDistributionInfoResponseParams): Promise { + async sendValidatorCurrentRewardsRecord({ value, fee, memo }: sendValidatorCurrentRewardsRecordParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorDistributionInfoResponse: 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.queryValidatorDistributionInfoResponse({ value: QueryValidatorDistributionInfoResponse.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:sendQueryValidatorDistributionInfoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorCurrentRewardsRecord: Could not broadcast Tx: '+ e.message) } }, - async sendQueryCommunityPoolRequest({ value, fee, memo }: sendQueryCommunityPoolRequestParams): Promise { + async sendDelegatorStartingInfoRecord({ value, fee, memo }: sendDelegatorStartingInfoRecordParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryCommunityPoolRequest: 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.queryCommunityPoolRequest({ value: QueryCommunityPoolRequest.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:sendQueryCommunityPoolRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDelegatorStartingInfoRecord: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorHistoricalRewardsRecord({ value, fee, memo }: sendValidatorHistoricalRewardsRecordParams): Promise { + async sendQueryDelegatorValidatorsResponse({ value, fee, memo }: sendQueryDelegatorValidatorsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorHistoricalRewardsRecord: 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.validatorHistoricalRewardsRecord({ value: ValidatorHistoricalRewardsRecord.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:sendValidatorHistoricalRewardsRecord: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendDelegatorStartingInfoRecord({ value, fee, memo }: sendDelegatorStartingInfoRecordParams): Promise { + async sendValidatorOutstandingRewards({ value, fee, memo }: sendValidatorOutstandingRewardsParams): Promise { if (!signer) { - throw new Error('TxClient:sendDelegatorStartingInfoRecord: 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.delegatorStartingInfoRecord({ value: DelegatorStartingInfoRecord.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:sendDelegatorStartingInfoRecord: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorOutstandingRewards: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorCommissionRequest({ value, fee, memo }: sendQueryValidatorCommissionRequestParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorCommissionRequest: 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.queryValidatorCommissionRequest({ value: QueryValidatorCommissionRequest.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:sendQueryValidatorCommissionRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorSlashesResponse({ value, fee, memo }: sendQueryValidatorSlashesResponseParams): Promise { + async sendMsgSetWithdrawAddressResponse({ value, fee, memo }: sendMsgSetWithdrawAddressResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorSlashesResponse: 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.queryValidatorSlashesResponse({ value: QueryValidatorSlashesResponse.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:sendQueryValidatorSlashesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSetWithdrawAddressResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgWithdrawValidatorCommission({ value, fee, memo }: sendMsgWithdrawValidatorCommissionParams): Promise { + async sendMsgWithdrawDelegatorReward({ value, fee, memo }: sendMsgWithdrawDelegatorRewardParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgWithdrawDelegatorReward: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgWithdrawValidatorCommission({ value: MsgWithdrawValidatorCommission.fromPartial(value) }) + let msg = this.msgWithdrawDelegatorReward({ value: MsgWithdrawDelegatorReward.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgWithdrawDelegatorReward: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegationTotalRewardsRequest({ value, fee, memo }: sendQueryDelegationTotalRewardsRequestParams): Promise { + async sendMsgFundCommunityPool({ value, fee, memo }: sendMsgFundCommunityPoolParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegationTotalRewardsRequest: 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.queryDelegationTotalRewardsRequest({ value: QueryDelegationTotalRewardsRequest.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:sendQueryDelegationTotalRewardsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgFundCommunityPool: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorWithdrawAddressRequest({ value, fee, memo }: sendQueryDelegatorWithdrawAddressRequestParams): Promise { + async sendMsgCommunityPoolSpendResponse({ value, fee, memo }: sendMsgCommunityPoolSpendResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorWithdrawAddressRequest: 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.queryDelegatorWithdrawAddressRequest({ value: QueryDelegatorWithdrawAddressRequest.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:sendQueryDelegatorWithdrawAddressRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCommunityPoolSpendResponse: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorSlashEventRecord({ value, fee, memo }: sendValidatorSlashEventRecordParams): Promise { + async sendQueryValidatorOutstandingRewardsResponse({ value, fee, memo }: sendQueryValidatorOutstandingRewardsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorSlashEventRecord: 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.validatorSlashEventRecord({ value: ValidatorSlashEventRecord.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:sendValidatorSlashEventRecord: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorOutstandingRewardsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendQueryDelegatorValidatorsRequest({ value, fee, memo }: sendQueryDelegatorValidatorsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: 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.params({ value: Params.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:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendValidatorSlashEvent({ value, fee, memo }: sendValidatorSlashEventParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + 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.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }) + 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:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorSlashEvent: 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 sendMsgWithdrawValidatorCommissionResponse({ value, fee, memo }: sendMsgWithdrawValidatorCommissionResponseParams): Promise { + async sendQueryValidatorCommissionRequest({ value, fee, memo }: sendQueryValidatorCommissionRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgWithdrawValidatorCommissionResponse: 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.msgWithdrawValidatorCommissionResponse({ value: MsgWithdrawValidatorCommissionResponse.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:sendMsgWithdrawValidatorCommissionResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorCommissionRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorDistributionInfoRequest({ value, fee, memo }: sendQueryValidatorDistributionInfoRequestParams): Promise { + async sendQueryDelegationRewardsRequest({ value, fee, memo }: sendQueryDelegationRewardsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorDistributionInfoRequest: 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.queryValidatorDistributionInfoRequest({ value: QueryValidatorDistributionInfoRequest.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:sendQueryValidatorDistributionInfoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegationRewardsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorOutstandingRewardsResponse({ value, fee, memo }: sendQueryValidatorOutstandingRewardsResponseParams): Promise { + async sendFeePool({ value, fee, memo }: sendFeePoolParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorOutstandingRewardsResponse: 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.queryValidatorOutstandingRewardsResponse({ value: QueryValidatorOutstandingRewardsResponse.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:sendQueryValidatorOutstandingRewardsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendFeePool: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorSlashesRequest({ value, fee, memo }: sendQueryValidatorSlashesRequestParams): Promise { + async sendMsgCommunityPoolSpend({ value, fee, memo }: sendMsgCommunityPoolSpendParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorSlashesRequest: 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.queryValidatorSlashesRequest({ value: QueryValidatorSlashesRequest.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:sendQueryValidatorSlashesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCommunityPoolSpend: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorValidatorsRequest({ value, fee, memo }: sendQueryDelegatorValidatorsRequestParams): Promise { + async sendCommunityPoolSpendProposalWithDeposit({ value, fee, memo }: sendCommunityPoolSpendProposalWithDepositParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: 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.queryDelegatorValidatorsRequest({ value: QueryDelegatorValidatorsRequest.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:sendQueryDelegatorValidatorsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCommunityPoolSpendProposalWithDeposit: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorValidatorsResponse({ value, fee, memo }: sendQueryDelegatorValidatorsResponseParams): Promise { + async sendQueryValidatorCommissionResponse({ value, fee, memo }: sendQueryValidatorCommissionResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: 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.queryDelegatorValidatorsResponse({ value: QueryDelegatorValidatorsResponse.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:sendQueryDelegatorValidatorsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorCommissionResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSetWithdrawAddress({ value, fee, memo }: sendMsgSetWithdrawAddressParams): Promise { + async sendMsgWithdrawValidatorCommissionResponse({ value, fee, memo }: sendMsgWithdrawValidatorCommissionResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSetWithdrawAddress: 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.msgSetWithdrawAddress({ value: MsgSetWithdrawAddress.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:sendMsgSetWithdrawAddress: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgWithdrawValidatorCommissionResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgWithdrawDelegatorReward({ value, fee, memo }: sendMsgWithdrawDelegatorRewardParams): Promise { + async sendMsgDepositValidatorRewardsPool({ value, fee, memo }: sendMsgDepositValidatorRewardsPoolParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgWithdrawDelegatorReward: 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.msgWithdrawDelegatorReward({ value: MsgWithdrawDelegatorReward.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:sendMsgWithdrawDelegatorReward: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDepositValidatorRewardsPool: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendDelegatorWithdrawInfo({ value, fee, memo }: sendDelegatorWithdrawInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: 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.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.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:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDelegatorWithdrawInfo: Could not broadcast Tx: '+ e.message) } }, - async sendCommunityPoolSpendProposalWithDeposit({ value, fee, memo }: sendCommunityPoolSpendProposalWithDepositParams): Promise { + async sendMsgWithdrawValidatorCommission({ value, fee, memo }: sendMsgWithdrawValidatorCommissionParams): Promise { if (!signer) { - throw new Error('TxClient:sendCommunityPoolSpendProposalWithDeposit: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Unable to 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.msgWithdrawValidatorCommission({ value: MsgWithdrawValidatorCommission.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:sendMsgWithdrawValidatorCommission: Could not broadcast Tx: '+ e.message) } }, - async sendQueryCommunityPoolResponse({ value, fee, memo }: sendQueryCommunityPoolResponseParams): Promise { + async sendMsgFundCommunityPoolResponse({ value, fee, memo }: sendMsgFundCommunityPoolResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryCommunityPoolResponse: 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.queryCommunityPoolResponse({ value: QueryCommunityPoolResponse.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:sendQueryCommunityPoolResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgFundCommunityPoolResponse: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorAccumulatedCommission({ value, fee, memo }: sendValidatorAccumulatedCommissionParams): Promise { + async sendValidatorHistoricalRewards({ value, fee, memo }: sendValidatorHistoricalRewardsParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorAccumulatedCommission: 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.validatorAccumulatedCommission({ value: ValidatorAccumulatedCommission.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:sendValidatorAccumulatedCommission: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorHistoricalRewards: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendValidatorCurrentRewards({ value, fee, memo }: sendValidatorCurrentRewardsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: 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.queryParamsResponse({ value: QueryParamsResponse.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:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorCurrentRewards: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegationRewardsResponse({ value, fee, memo }: sendQueryDelegationRewardsResponseParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegationRewardsResponse: 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.queryDelegationRewardsResponse({ value: QueryDelegationRewardsResponse.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:sendQueryDelegationRewardsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendFeePool({ value, fee, memo }: sendFeePoolParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendFeePool: 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.feePool({ value: FeePool.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:sendFeePool: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgFundCommunityPool({ value, fee, memo }: sendMsgFundCommunityPoolParams): Promise { + async sendQueryValidatorSlashesResponse({ value, fee, memo }: sendQueryValidatorSlashesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgFundCommunityPool: 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.msgFundCommunityPool({ value: MsgFundCommunityPool.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:sendMsgFundCommunityPool: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorSlashesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCommunityPoolSpendResponse({ value, fee, memo }: sendMsgCommunityPoolSpendResponseParams): Promise { + async sendMsgWithdrawDelegatorRewardResponse({ value, fee, memo }: sendMsgWithdrawDelegatorRewardResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCommunityPoolSpendResponse: 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.msgCommunityPoolSpendResponse({ value: MsgCommunityPoolSpendResponse.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:sendMsgCommunityPoolSpendResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgWithdrawDelegatorRewardResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCommunityPoolSpend({ value, fee, memo }: sendMsgCommunityPoolSpendParams): Promise { + async sendQueryDelegatorWithdrawAddressResponse({ value, fee, memo }: sendQueryDelegatorWithdrawAddressResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCommunityPoolSpend: 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.msgCommunityPoolSpend({ value: MsgCommunityPoolSpend.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:sendMsgCommunityPoolSpend: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorWithdrawAddressResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDepositValidatorRewardsPoolResponse({ value, fee, memo }: sendMsgDepositValidatorRewardsPoolResponseParams): Promise { + async sendDelegatorStartingInfo({ value, fee, memo }: sendDelegatorStartingInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDepositValidatorRewardsPoolResponse: 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.msgDepositValidatorRewardsPoolResponse({ value: MsgDepositValidatorRewardsPoolResponse.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:sendMsgDepositValidatorRewardsPoolResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDelegatorStartingInfo: Could not broadcast Tx: '+ e.message) } }, - async sendDelegatorWithdrawInfo({ value, fee, memo }: sendDelegatorWithdrawInfoParams): Promise { + async sendQueryValidatorDistributionInfoResponse({ value, fee, memo }: sendQueryValidatorDistributionInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDelegatorWithdrawInfo: 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.delegatorWithdrawInfo({ value: DelegatorWithdrawInfo.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:sendDelegatorWithdrawInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorDistributionInfoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorAccumulatedCommissionRecord({ value, fee, memo }: sendValidatorAccumulatedCommissionRecordParams): Promise { + async sendQueryDelegationTotalRewardsRequest({ value, fee, memo }: sendQueryDelegationTotalRewardsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorAccumulatedCommissionRecord: 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.validatorAccumulatedCommissionRecord({ value: ValidatorAccumulatedCommissionRecord.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:sendValidatorAccumulatedCommissionRecord: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegationTotalRewardsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryDelegationTotalRewardsResponse({ value, fee, memo }: sendQueryDelegationTotalRewardsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.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:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegationTotalRewardsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorSlashEvents({ value, fee, memo }: sendValidatorSlashEventsParams): Promise { + async sendQueryDelegatorWithdrawAddressRequest({ value, fee, memo }: sendQueryDelegatorWithdrawAddressRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorSlashEvents: 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.validatorSlashEvents({ value: ValidatorSlashEvents.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:sendValidatorSlashEvents: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorWithdrawAddressRequest: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorOutstandingRewardsRecord({ value, fee, memo }: sendValidatorOutstandingRewardsRecordParams): Promise { + async sendQueryCommunityPoolResponse({ value, fee, memo }: sendQueryCommunityPoolResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorOutstandingRewardsRecord: 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.validatorOutstandingRewardsRecord({ value: ValidatorOutstandingRewardsRecord.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:sendValidatorOutstandingRewardsRecord: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryCommunityPoolResponse: Could not broadcast Tx: '+ e.message) } }, - validatorHistoricalRewards({ value }: validatorHistoricalRewardsParams): EncodeObject { + msgSetWithdrawAddress({ value }: msgSetWithdrawAddressParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", value: ValidatorHistoricalRewards.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: MsgSetWithdrawAddress.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorHistoricalRewards: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSetWithdrawAddress: Could not create message: ' + e.message) } }, - delegatorStartingInfo({ value }: delegatorStartingInfoParams): EncodeObject { + validatorSlashEvents({ value }: validatorSlashEventsParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", value: DelegatorStartingInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", value: ValidatorSlashEvents.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DelegatorStartingInfo: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorSlashEvents: Could not create message: ' + e.message) } }, - queryDelegationRewardsRequest({ value }: queryDelegationRewardsRequestParams): EncodeObject { + queryDelegationRewardsResponse({ value }: queryDelegationRewardsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", value: QueryDelegationRewardsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", value: QueryDelegationRewardsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegationRewardsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegationRewardsResponse: Could not create message: ' + e.message) } }, - msgWithdrawDelegatorRewardResponse({ value }: msgWithdrawDelegatorRewardResponseParams): EncodeObject { + communityPoolSpendProposal({ value }: communityPoolSpendProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", value: MsgWithdrawDelegatorRewardResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", value: CommunityPoolSpendProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgWithdrawDelegatorRewardResponse: Could not create message: ' + e.message) + throw new Error('TxClient:CommunityPoolSpendProposal: Could not create message: ' + e.message) } }, - queryDelegatorWithdrawAddressResponse({ value }: queryDelegatorWithdrawAddressResponseParams): EncodeObject { + queryValidatorDistributionInfoRequest({ value }: queryValidatorDistributionInfoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", value: QueryDelegatorWithdrawAddressResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest", value: QueryValidatorDistributionInfoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorWithdrawAddressResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorDistributionInfoRequest: Could not create message: ' + e.message) } }, - validatorCurrentRewards({ value }: validatorCurrentRewardsParams): EncodeObject { + queryValidatorOutstandingRewardsRequest({ value }: queryValidatorOutstandingRewardsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", value: ValidatorCurrentRewards.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", value: QueryValidatorOutstandingRewardsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorCurrentRewards: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorOutstandingRewardsRequest: Could not create message: ' + e.message) } }, - queryValidatorOutstandingRewardsRequest({ value }: queryValidatorOutstandingRewardsRequestParams): EncodeObject { + queryValidatorSlashesRequest({ value }: queryValidatorSlashesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", value: QueryValidatorOutstandingRewardsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", value: QueryValidatorSlashesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorOutstandingRewardsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorSlashesRequest: Could not create message: ' + e.message) } }, - validatorCurrentRewardsRecord({ value }: validatorCurrentRewardsRecordParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", value: ValidatorCurrentRewardsRecord.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorCurrentRewardsRecord: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - queryValidatorCommissionResponse({ value }: queryValidatorCommissionResponseParams): EncodeObject { + delegationDelegatorReward({ value }: delegationDelegatorRewardParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", value: QueryValidatorCommissionResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", value: DelegationDelegatorReward.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorCommissionResponse: Could not create message: ' + e.message) + throw new Error('TxClient:DelegationDelegatorReward: Could not create message: ' + e.message) } }, - msgFundCommunityPoolResponse({ value }: msgFundCommunityPoolResponseParams): EncodeObject { + validatorAccumulatedCommissionRecord({ value }: validatorAccumulatedCommissionRecordParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", value: MsgFundCommunityPoolResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", value: ValidatorAccumulatedCommissionRecord.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgFundCommunityPoolResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorAccumulatedCommissionRecord: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - validatorOutstandingRewards({ value }: validatorOutstandingRewardsParams): EncodeObject { + validatorOutstandingRewardsRecord({ value }: validatorOutstandingRewardsRecordParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", value: ValidatorOutstandingRewards.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", value: ValidatorOutstandingRewardsRecord.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorOutstandingRewards: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorOutstandingRewardsRecord: Could not create message: ' + e.message) } }, - communityPoolSpendProposal({ value }: communityPoolSpendProposalParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", value: CommunityPoolSpendProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:CommunityPoolSpendProposal: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - msgSetWithdrawAddressResponse({ value }: msgSetWithdrawAddressResponseParams): EncodeObject { + msgDepositValidatorRewardsPoolResponse({ value }: msgDepositValidatorRewardsPoolResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", value: MsgSetWithdrawAddressResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse", value: MsgDepositValidatorRewardsPoolResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSetWithdrawAddressResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDepositValidatorRewardsPoolResponse: Could not create message: ' + e.message) } }, - msgDepositValidatorRewardsPool({ value }: msgDepositValidatorRewardsPoolParams): EncodeObject { + queryCommunityPoolRequest({ value }: queryCommunityPoolRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool", value: MsgDepositValidatorRewardsPool.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", value: QueryCommunityPoolRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDepositValidatorRewardsPool: Could not create message: ' + e.message) + throw new Error('TxClient:QueryCommunityPoolRequest: Could not create message: ' + e.message) } }, - validatorSlashEvent({ value }: validatorSlashEventParams): EncodeObject { + validatorAccumulatedCommission({ value }: validatorAccumulatedCommissionParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", value: ValidatorSlashEvent.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", value: ValidatorAccumulatedCommission.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorSlashEvent: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorAccumulatedCommission: Could not create message: ' + e.message) } }, - delegationDelegatorReward({ value }: delegationDelegatorRewardParams): EncodeObject { + validatorHistoricalRewardsRecord({ value }: validatorHistoricalRewardsRecordParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", value: DelegationDelegatorReward.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", value: ValidatorHistoricalRewardsRecord.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DelegationDelegatorReward: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorHistoricalRewardsRecord: Could not create message: ' + e.message) } }, - queryValidatorDistributionInfoResponse({ value }: queryValidatorDistributionInfoResponseParams): EncodeObject { + validatorCurrentRewardsRecord({ value }: validatorCurrentRewardsRecordParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse", value: QueryValidatorDistributionInfoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", value: ValidatorCurrentRewardsRecord.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorDistributionInfoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorCurrentRewardsRecord: Could not create message: ' + e.message) } }, - queryCommunityPoolRequest({ value }: queryCommunityPoolRequestParams): EncodeObject { + delegatorStartingInfoRecord({ value }: delegatorStartingInfoRecordParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", value: QueryCommunityPoolRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", value: DelegatorStartingInfoRecord.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryCommunityPoolRequest: Could not create message: ' + e.message) + throw new Error('TxClient:DelegatorStartingInfoRecord: Could not create message: ' + e.message) } }, - validatorHistoricalRewardsRecord({ value }: validatorHistoricalRewardsRecordParams): EncodeObject { + queryDelegatorValidatorsResponse({ value }: queryDelegatorValidatorsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", value: ValidatorHistoricalRewardsRecord.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", value: QueryDelegatorValidatorsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorHistoricalRewardsRecord: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorValidatorsResponse: Could not create message: ' + e.message) } }, - delegatorStartingInfoRecord({ value }: delegatorStartingInfoRecordParams): EncodeObject { + validatorOutstandingRewards({ value }: validatorOutstandingRewardsParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", value: DelegatorStartingInfoRecord.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", value: ValidatorOutstandingRewards.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DelegatorStartingInfoRecord: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorOutstandingRewards: Could not create message: ' + e.message) } }, - queryValidatorCommissionRequest({ value }: queryValidatorCommissionRequestParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", value: QueryValidatorCommissionRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorCommissionRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - queryValidatorSlashesResponse({ value }: queryValidatorSlashesResponseParams): EncodeObject { + msgSetWithdrawAddressResponse({ value }: msgSetWithdrawAddressResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", value: QueryValidatorSlashesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", value: MsgSetWithdrawAddressResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorSlashesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSetWithdrawAddressResponse: Could not create message: ' + e.message) } }, - msgWithdrawValidatorCommission({ value }: msgWithdrawValidatorCommissionParams): EncodeObject { + msgWithdrawDelegatorReward({ value }: msgWithdrawDelegatorRewardParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: MsgWithdrawValidatorCommission.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", value: MsgWithdrawDelegatorReward.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgWithdrawValidatorCommission: Could not create message: ' + e.message) + throw new Error('TxClient:MsgWithdrawDelegatorReward: Could not create message: ' + e.message) } }, - queryDelegationTotalRewardsRequest({ value }: queryDelegationTotalRewardsRequestParams): EncodeObject { + msgFundCommunityPool({ value }: msgFundCommunityPoolParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", value: QueryDelegationTotalRewardsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: MsgFundCommunityPool.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegationTotalRewardsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgFundCommunityPool: Could not create message: ' + e.message) } }, - queryDelegatorWithdrawAddressRequest({ value }: queryDelegatorWithdrawAddressRequestParams): EncodeObject { + msgCommunityPoolSpendResponse({ value }: msgCommunityPoolSpendResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", value: QueryDelegatorWithdrawAddressRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse", value: MsgCommunityPoolSpendResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorWithdrawAddressRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCommunityPoolSpendResponse: Could not create message: ' + e.message) } }, - validatorSlashEventRecord({ value }: validatorSlashEventRecordParams): EncodeObject { + queryValidatorOutstandingRewardsResponse({ value }: queryValidatorOutstandingRewardsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", value: ValidatorSlashEventRecord.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", value: QueryValidatorOutstandingRewardsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorSlashEventRecord: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorOutstandingRewardsResponse: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + queryDelegatorValidatorsRequest({ value }: queryDelegatorValidatorsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", value: QueryDelegatorValidatorsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorValidatorsRequest: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + validatorSlashEvent({ value }: validatorSlashEventParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", value: ValidatorSlashEvent.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorSlashEvent: Could not create message: ' + e.message) } }, - queryDelegationTotalRewardsResponse({ value }: queryDelegationTotalRewardsResponseParams): EncodeObject { + validatorSlashEventRecord({ value }: validatorSlashEventRecordParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", value: QueryDelegationTotalRewardsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", value: ValidatorSlashEventRecord.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegationTotalRewardsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorSlashEventRecord: Could not create message: ' + e.message) } }, - msgWithdrawValidatorCommissionResponse({ value }: msgWithdrawValidatorCommissionResponseParams): EncodeObject { + queryValidatorCommissionRequest({ value }: queryValidatorCommissionRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", value: MsgWithdrawValidatorCommissionResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", value: QueryValidatorCommissionRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgWithdrawValidatorCommissionResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorCommissionRequest: Could not create message: ' + e.message) } }, - queryValidatorDistributionInfoRequest({ value }: queryValidatorDistributionInfoRequestParams): EncodeObject { + queryDelegationRewardsRequest({ value }: queryDelegationRewardsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest", value: QueryValidatorDistributionInfoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", value: QueryDelegationRewardsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorDistributionInfoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegationRewardsRequest: Could not create message: ' + e.message) } }, - queryValidatorOutstandingRewardsResponse({ value }: queryValidatorOutstandingRewardsResponseParams): EncodeObject { + feePool({ value }: feePoolParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", value: QueryValidatorOutstandingRewardsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.FeePool", value: FeePool.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorOutstandingRewardsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:FeePool: Could not create message: ' + e.message) } }, - queryValidatorSlashesRequest({ value }: queryValidatorSlashesRequestParams): EncodeObject { + msgCommunityPoolSpend({ value }: msgCommunityPoolSpendParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", value: QueryValidatorSlashesRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", value: MsgCommunityPoolSpend.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorSlashesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCommunityPoolSpend: Could not create message: ' + e.message) } }, - queryDelegatorValidatorsRequest({ value }: queryDelegatorValidatorsRequestParams): EncodeObject { + communityPoolSpendProposalWithDeposit({ value }: communityPoolSpendProposalWithDepositParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", value: QueryDelegatorValidatorsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", value: CommunityPoolSpendProposalWithDeposit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorValidatorsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:CommunityPoolSpendProposalWithDeposit: Could not create message: ' + e.message) } }, - queryDelegatorValidatorsResponse({ value }: queryDelegatorValidatorsResponseParams): EncodeObject { + queryValidatorCommissionResponse({ value }: queryValidatorCommissionResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", value: QueryDelegatorValidatorsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", value: QueryValidatorCommissionResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorValidatorsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorCommissionResponse: Could not create message: ' + e.message) } }, - msgSetWithdrawAddress({ value }: msgSetWithdrawAddressParams): EncodeObject { + msgWithdrawValidatorCommissionResponse({ value }: msgWithdrawValidatorCommissionResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: MsgSetWithdrawAddress.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", value: MsgWithdrawValidatorCommissionResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSetWithdrawAddress: Could not create message: ' + e.message) + throw new Error('TxClient:MsgWithdrawValidatorCommissionResponse: Could not create message: ' + e.message) } }, - msgWithdrawDelegatorReward({ value }: msgWithdrawDelegatorRewardParams): EncodeObject { + msgDepositValidatorRewardsPool({ value }: msgDepositValidatorRewardsPoolParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", value: MsgWithdrawDelegatorReward.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool", value: MsgDepositValidatorRewardsPool.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgWithdrawDelegatorReward: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDepositValidatorRewardsPool: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + delegatorWithdrawInfo({ value }: delegatorWithdrawInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", value: DelegatorWithdrawInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:DelegatorWithdrawInfo: Could not create message: ' + e.message) } }, - communityPoolSpendProposalWithDeposit({ value }: communityPoolSpendProposalWithDepositParams): EncodeObject { + msgWithdrawValidatorCommission({ value }: msgWithdrawValidatorCommissionParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", value: CommunityPoolSpendProposalWithDeposit.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: MsgWithdrawValidatorCommission.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:CommunityPoolSpendProposalWithDeposit: Could not create message: ' + e.message) + throw new Error('TxClient:MsgWithdrawValidatorCommission: Could not create message: ' + e.message) } }, - queryCommunityPoolResponse({ value }: queryCommunityPoolResponseParams): EncodeObject { + msgFundCommunityPoolResponse({ value }: msgFundCommunityPoolResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", value: QueryCommunityPoolResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", value: MsgFundCommunityPoolResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryCommunityPoolResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgFundCommunityPoolResponse: Could not create message: ' + e.message) } }, - validatorAccumulatedCommission({ value }: validatorAccumulatedCommissionParams): EncodeObject { + validatorHistoricalRewards({ value }: validatorHistoricalRewardsParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", value: ValidatorAccumulatedCommission.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", value: ValidatorHistoricalRewards.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorAccumulatedCommission: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorHistoricalRewards: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + validatorCurrentRewards({ value }: validatorCurrentRewardsParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", value: ValidatorCurrentRewards.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorCurrentRewards: Could not create message: ' + e.message) } }, - queryDelegationRewardsResponse({ value }: queryDelegationRewardsResponseParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", value: QueryDelegationRewardsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegationRewardsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - feePool({ value }: feePoolParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.FeePool", value: FeePool.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:FeePool: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - msgFundCommunityPool({ value }: msgFundCommunityPoolParams): EncodeObject { + queryValidatorSlashesResponse({ value }: queryValidatorSlashesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: MsgFundCommunityPool.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", value: QueryValidatorSlashesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgFundCommunityPool: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorSlashesResponse: Could not create message: ' + e.message) } }, - msgCommunityPoolSpendResponse({ value }: msgCommunityPoolSpendResponseParams): EncodeObject { + msgWithdrawDelegatorRewardResponse({ value }: msgWithdrawDelegatorRewardResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse", value: MsgCommunityPoolSpendResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", value: MsgWithdrawDelegatorRewardResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCommunityPoolSpendResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgWithdrawDelegatorRewardResponse: Could not create message: ' + e.message) } }, - msgCommunityPoolSpend({ value }: msgCommunityPoolSpendParams): EncodeObject { + queryDelegatorWithdrawAddressResponse({ value }: queryDelegatorWithdrawAddressResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", value: MsgCommunityPoolSpend.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", value: QueryDelegatorWithdrawAddressResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCommunityPoolSpend: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorWithdrawAddressResponse: Could not create message: ' + e.message) } }, - msgDepositValidatorRewardsPoolResponse({ value }: msgDepositValidatorRewardsPoolResponseParams): EncodeObject { + delegatorStartingInfo({ value }: delegatorStartingInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse", value: MsgDepositValidatorRewardsPoolResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", value: DelegatorStartingInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDepositValidatorRewardsPoolResponse: Could not create message: ' + e.message) + throw new Error('TxClient:DelegatorStartingInfo: Could not create message: ' + e.message) } }, - delegatorWithdrawInfo({ value }: delegatorWithdrawInfoParams): EncodeObject { + queryValidatorDistributionInfoResponse({ value }: queryValidatorDistributionInfoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", value: DelegatorWithdrawInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse", value: QueryValidatorDistributionInfoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DelegatorWithdrawInfo: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorDistributionInfoResponse: Could not create message: ' + e.message) } }, - validatorAccumulatedCommissionRecord({ value }: validatorAccumulatedCommissionRecordParams): EncodeObject { + queryDelegationTotalRewardsRequest({ value }: queryDelegationTotalRewardsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", value: ValidatorAccumulatedCommissionRecord.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", value: QueryDelegationTotalRewardsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorAccumulatedCommissionRecord: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegationTotalRewardsRequest: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryDelegationTotalRewardsResponse({ value }: queryDelegationTotalRewardsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", value: QueryDelegationTotalRewardsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegationTotalRewardsResponse: Could not create message: ' + e.message) } }, - validatorSlashEvents({ value }: validatorSlashEventsParams): EncodeObject { + queryDelegatorWithdrawAddressRequest({ value }: queryDelegatorWithdrawAddressRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", value: ValidatorSlashEvents.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", value: QueryDelegatorWithdrawAddressRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorSlashEvents: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorWithdrawAddressRequest: Could not create message: ' + e.message) } }, - validatorOutstandingRewardsRecord({ value }: validatorOutstandingRewardsRecordParams): EncodeObject { + queryCommunityPoolResponse({ value }: queryCommunityPoolResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", value: ValidatorOutstandingRewardsRecord.fromPartial( value ) } + return { typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", value: QueryCommunityPoolResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorOutstandingRewardsRecord: Could not create message: ' + e.message) + throw new Error('TxClient:QueryCommunityPoolResponse: 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 54ca7fcde..233ea7929 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 { ValidatorHistoricalRewards } from "./types/cosmos/distribution/v1beta1/distribution"; -import { DelegatorStartingInfo } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryDelegationRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgWithdrawDelegatorRewardResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryDelegatorWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorCurrentRewards } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryValidatorOutstandingRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorCurrentRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { QueryValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgFundCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx"; -import { ValidatorOutstandingRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; +import { ValidatorSlashEvents } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryDelegationRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; import { CommunityPoolSpendProposal } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgSetWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgDepositValidatorRewardsPool } from "./types/cosmos/distribution/v1beta1/tx"; -import { ValidatorSlashEvent } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryValidatorDistributionInfoRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryValidatorOutstandingRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryValidatorSlashesRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { Params } from "./types/cosmos/distribution/v1beta1/distribution"; import { DelegationDelegatorReward } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryValidatorDistributionInfoResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorAccumulatedCommissionRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { QueryParamsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorOutstandingRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgDepositValidatorRewardsPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; import { QueryCommunityPoolRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorAccumulatedCommission } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorHistoricalRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { ValidatorCurrentRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; import { DelegatorStartingInfoRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { QueryValidatorCommissionRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryValidatorSlashesResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryDelegationTotalRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorWithdrawAddressRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorSlashEventRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { Params } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryParamsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegationTotalRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgWithdrawValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorDistributionInfoRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryValidatorOutstandingRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryValidatorSlashesRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorValidatorsRequest } from "./types/cosmos/distribution/v1beta1/query"; import { QueryDelegatorValidatorsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; +import { ValidatorOutstandingRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { GenesisState } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgSetWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/tx"; import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgUpdateParamsResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { CommunityPoolSpendProposalWithDeposit } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorAccumulatedCommission } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryParamsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegationRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { FeePool } from "./types/cosmos/distribution/v1beta1/distribution"; import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; import { MsgCommunityPoolSpendResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorOutstandingRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegatorValidatorsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorSlashEvent } from "./types/cosmos/distribution/v1beta1/distribution"; +import { ValidatorSlashEventRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { QueryValidatorCommissionRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { FeePool } from "./types/cosmos/distribution/v1beta1/distribution"; import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgDepositValidatorRewardsPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { CommunityPoolSpendProposalWithDeposit } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgWithdrawValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgDepositValidatorRewardsPool } from "./types/cosmos/distribution/v1beta1/tx"; import { DelegatorWithdrawInfo } from "./types/cosmos/distribution/v1beta1/genesis"; -import { ValidatorAccumulatedCommissionRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { GenesisState } from "./types/cosmos/distribution/v1beta1/genesis"; -import { ValidatorSlashEvents } from "./types/cosmos/distribution/v1beta1/distribution"; -import { ValidatorOutstandingRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgFundCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { ValidatorHistoricalRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { ValidatorCurrentRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryParamsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorSlashesResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgWithdrawDelegatorRewardResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryDelegatorWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { DelegatorStartingInfo } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryValidatorDistributionInfoResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationTotalRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationTotalRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegatorWithdrawAddressRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", ValidatorHistoricalRewards], - ["/cosmos.distribution.v1beta1.DelegatorStartingInfo", DelegatorStartingInfo], - ["/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", QueryDelegationRewardsRequest], - ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", MsgWithdrawDelegatorRewardResponse], - ["/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", QueryDelegatorWithdrawAddressResponse], - ["/cosmos.distribution.v1beta1.ValidatorCurrentRewards", ValidatorCurrentRewards], - ["/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", QueryValidatorOutstandingRewardsRequest], - ["/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", ValidatorCurrentRewardsRecord], - ["/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", QueryValidatorCommissionResponse], - ["/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", MsgFundCommunityPoolResponse], - ["/cosmos.distribution.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", ValidatorOutstandingRewards], + ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], + ["/cosmos.distribution.v1beta1.ValidatorSlashEvents", ValidatorSlashEvents], + ["/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", QueryDelegationRewardsResponse], ["/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", CommunityPoolSpendProposal], - ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", MsgSetWithdrawAddressResponse], - ["/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool", MsgDepositValidatorRewardsPool], - ["/cosmos.distribution.v1beta1.ValidatorSlashEvent", ValidatorSlashEvent], + ["/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest", QueryValidatorDistributionInfoRequest], + ["/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", QueryValidatorOutstandingRewardsRequest], + ["/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", QueryValidatorSlashesRequest], + ["/cosmos.distribution.v1beta1.Params", Params], ["/cosmos.distribution.v1beta1.DelegationDelegatorReward", DelegationDelegatorReward], - ["/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse", QueryValidatorDistributionInfoResponse], + ["/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", ValidatorAccumulatedCommissionRecord], + ["/cosmos.distribution.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", ValidatorOutstandingRewardsRecord], + ["/cosmos.distribution.v1beta1.MsgUpdateParams", MsgUpdateParams], + ["/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse", MsgDepositValidatorRewardsPoolResponse], ["/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", QueryCommunityPoolRequest], + ["/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", ValidatorAccumulatedCommission], ["/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", ValidatorHistoricalRewardsRecord], + ["/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", ValidatorCurrentRewardsRecord], ["/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", DelegatorStartingInfoRecord], - ["/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", QueryValidatorCommissionRequest], - ["/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", QueryValidatorSlashesResponse], - ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission], - ["/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", QueryDelegationTotalRewardsRequest], - ["/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", QueryDelegatorWithdrawAddressRequest], - ["/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", ValidatorSlashEventRecord], - ["/cosmos.distribution.v1beta1.Params", Params], - ["/cosmos.distribution.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", QueryDelegationTotalRewardsResponse], - ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", MsgWithdrawValidatorCommissionResponse], - ["/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest", QueryValidatorDistributionInfoRequest], - ["/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", QueryValidatorOutstandingRewardsResponse], - ["/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", QueryValidatorSlashesRequest], - ["/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", QueryDelegatorValidatorsRequest], ["/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", QueryDelegatorValidatorsResponse], - ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], + ["/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", ValidatorOutstandingRewards], + ["/cosmos.distribution.v1beta1.GenesisState", GenesisState], + ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", MsgSetWithdrawAddressResponse], ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward], - ["/cosmos.distribution.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", CommunityPoolSpendProposalWithDeposit], - ["/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", QueryCommunityPoolResponse], - ["/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", ValidatorAccumulatedCommission], - ["/cosmos.distribution.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", QueryDelegationRewardsResponse], - ["/cosmos.distribution.v1beta1.FeePool", FeePool], ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool], ["/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse", MsgCommunityPoolSpendResponse], + ["/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", QueryValidatorOutstandingRewardsResponse], + ["/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", QueryDelegatorValidatorsRequest], + ["/cosmos.distribution.v1beta1.ValidatorSlashEvent", ValidatorSlashEvent], + ["/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", ValidatorSlashEventRecord], + ["/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", QueryValidatorCommissionRequest], + ["/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", QueryDelegationRewardsRequest], + ["/cosmos.distribution.v1beta1.FeePool", FeePool], ["/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", MsgCommunityPoolSpend], - ["/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse", MsgDepositValidatorRewardsPoolResponse], + ["/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", CommunityPoolSpendProposalWithDeposit], + ["/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", QueryValidatorCommissionResponse], + ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", MsgWithdrawValidatorCommissionResponse], + ["/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool", MsgDepositValidatorRewardsPool], ["/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", DelegatorWithdrawInfo], - ["/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", ValidatorAccumulatedCommissionRecord], - ["/cosmos.distribution.v1beta1.GenesisState", GenesisState], - ["/cosmos.distribution.v1beta1.ValidatorSlashEvents", ValidatorSlashEvents], - ["/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", ValidatorOutstandingRewardsRecord], + ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission], + ["/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", MsgFundCommunityPoolResponse], + ["/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", ValidatorHistoricalRewards], + ["/cosmos.distribution.v1beta1.ValidatorCurrentRewards", ValidatorCurrentRewards], + ["/cosmos.distribution.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.distribution.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", QueryValidatorSlashesResponse], + ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", MsgWithdrawDelegatorRewardResponse], + ["/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", QueryDelegatorWithdrawAddressResponse], + ["/cosmos.distribution.v1beta1.DelegatorStartingInfo", DelegatorStartingInfo], + ["/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse", QueryValidatorDistributionInfoResponse], + ["/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", QueryDelegationTotalRewardsRequest], + ["/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", QueryDelegationTotalRewardsResponse], + ["/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", QueryDelegatorWithdrawAddressRequest], + ["/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", QueryCommunityPoolResponse], ]; diff --git a/ts-client/cosmos.evidence.v1beta1/module.ts b/ts-client/cosmos.evidence.v1beta1/module.ts index f3c93999a..bad712609 100755 --- a/ts-client/cosmos.evidence.v1beta1/module.ts +++ b/ts-client/cosmos.evidence.v1beta1/module.ts @@ -6,32 +6,20 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgSubmitEvidenceResponse } from "./types/cosmos/evidence/v1beta1/tx"; -import { QueryEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; -import { QueryAllEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; import { QueryAllEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; import { Equivocation } from "./types/cosmos/evidence/v1beta1/evidence"; import { GenesisState } from "./types/cosmos/evidence/v1beta1/genesis"; +import { MsgSubmitEvidenceResponse } from "./types/cosmos/evidence/v1beta1/tx"; import { MsgSubmitEvidence } from "./types/cosmos/evidence/v1beta1/tx"; -import { QueryEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryAllEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; -export { MsgSubmitEvidenceResponse, QueryEvidenceResponse, QueryAllEvidenceRequest, QueryAllEvidenceResponse, Equivocation, GenesisState, MsgSubmitEvidence, QueryEvidenceRequest }; +export { QueryEvidenceRequest, QueryAllEvidenceResponse, Equivocation, GenesisState, MsgSubmitEvidenceResponse, MsgSubmitEvidence, QueryEvidenceResponse, QueryAllEvidenceRequest }; -type sendMsgSubmitEvidenceResponseParams = { - value: MsgSubmitEvidenceResponse, - fee?: StdFee, - memo?: string -}; - -type sendQueryEvidenceResponseParams = { - value: QueryEvidenceResponse, - fee?: StdFee, - memo?: string -}; - -type sendQueryAllEvidenceRequestParams = { - value: QueryAllEvidenceRequest, +type sendQueryEvidenceRequestParams = { + value: QueryEvidenceRequest, fee?: StdFee, memo?: string }; @@ -54,29 +42,33 @@ type sendGenesisStateParams = { memo?: string }; +type sendMsgSubmitEvidenceResponseParams = { + value: MsgSubmitEvidenceResponse, + fee?: StdFee, + memo?: string +}; + type sendMsgSubmitEvidenceParams = { value: MsgSubmitEvidence, fee?: StdFee, memo?: string }; -type sendQueryEvidenceRequestParams = { - value: QueryEvidenceRequest, +type sendQueryEvidenceResponseParams = { + value: QueryEvidenceResponse, fee?: StdFee, memo?: string }; - -type msgSubmitEvidenceResponseParams = { - value: MsgSubmitEvidenceResponse, +type sendQueryAllEvidenceRequestParams = { + value: QueryAllEvidenceRequest, + fee?: StdFee, + memo?: string }; -type queryEvidenceResponseParams = { - value: QueryEvidenceResponse, -}; -type queryAllEvidenceRequestParams = { - value: QueryAllEvidenceRequest, +type queryEvidenceRequestParams = { + value: QueryEvidenceRequest, }; type queryAllEvidenceResponseParams = { @@ -91,12 +83,20 @@ type genesisStateParams = { value: GenesisState, }; +type msgSubmitEvidenceResponseParams = { + value: MsgSubmitEvidenceResponse, +}; + type msgSubmitEvidenceParams = { value: MsgSubmitEvidence, }; -type queryEvidenceRequestParams = { - value: QueryEvidenceRequest, +type queryEvidenceResponseParams = { + value: QueryEvidenceResponse, +}; + +type queryAllEvidenceRequestParams = { + value: QueryAllEvidenceRequest, }; @@ -129,45 +129,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgSubmitEvidenceResponse({ value, fee, memo }: sendMsgSubmitEvidenceResponseParams): Promise { - if (!signer) { - throw new Error('TxClient:sendMsgSubmitEvidenceResponse: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSubmitEvidenceResponse({ value: MsgSubmitEvidenceResponse.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) - } catch (e: any) { - throw new Error('TxClient:sendMsgSubmitEvidenceResponse: Could not broadcast Tx: '+ e.message) - } - }, - - async sendQueryEvidenceResponse({ value, fee, memo }: sendQueryEvidenceResponseParams): Promise { - if (!signer) { - 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.queryEvidenceResponse({ value: QueryEvidenceResponse.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) - } - }, - - async sendQueryAllEvidenceRequest({ value, fee, memo }: sendQueryAllEvidenceRequestParams): Promise { + async sendQueryEvidenceRequest({ value, fee, memo }: sendQueryEvidenceRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllEvidenceRequest: 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.queryAllEvidenceRequest({ value: QueryAllEvidenceRequest.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:sendQueryAllEvidenceRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryEvidenceRequest: Could not broadcast Tx: '+ e.message) } }, @@ -213,6 +185,20 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, + async sendMsgSubmitEvidenceResponse({ value, fee, memo }: sendMsgSubmitEvidenceResponseParams): Promise { + if (!signer) { + throw new Error('TxClient:sendMsgSubmitEvidenceResponse: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.msgSubmitEvidenceResponse({ value: MsgSubmitEvidenceResponse.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendMsgSubmitEvidenceResponse: Could not broadcast Tx: '+ e.message) + } + }, + async sendMsgSubmitEvidence({ value, fee, memo }: sendMsgSubmitEvidenceParams): Promise { if (!signer) { throw new Error('TxClient:sendMsgSubmitEvidence: Unable to sign Tx. Signer is not present.') @@ -227,42 +213,40 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryEvidenceRequest({ value, fee, memo }: sendQueryEvidenceRequestParams): Promise { + async sendQueryEvidenceResponse({ value, fee, memo }: sendQueryEvidenceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryEvidenceRequest: 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.queryEvidenceRequest({ value: QueryEvidenceRequest.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:sendQueryEvidenceRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryEvidenceResponse: Could not broadcast Tx: '+ e.message) } }, - - msgSubmitEvidenceResponse({ value }: msgSubmitEvidenceResponseParams): EncodeObject { - try { - return { typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse", value: MsgSubmitEvidenceResponse.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgSubmitEvidenceResponse: Could not create message: ' + e.message) + async sendQueryAllEvidenceRequest({ value, fee, memo }: sendQueryAllEvidenceRequestParams): Promise { + if (!signer) { + throw new Error('TxClient:sendQueryAllEvidenceRequest: Unable to sign Tx. Signer is not present.') } - }, - - queryEvidenceResponse({ value }: queryEvidenceResponseParams): EncodeObject { - try { - return { typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceResponse", value: QueryEvidenceResponse.fromPartial( value ) } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + 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:QueryEvidenceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:sendQueryAllEvidenceRequest: Could not broadcast Tx: '+ e.message) } }, - queryAllEvidenceRequest({ value }: queryAllEvidenceRequestParams): EncodeObject { + + queryEvidenceRequest({ value }: queryEvidenceRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceRequest", value: QueryAllEvidenceRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceRequest", value: QueryEvidenceRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllEvidenceRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryEvidenceRequest: Could not create message: ' + e.message) } }, @@ -290,6 +274,14 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, + msgSubmitEvidenceResponse({ value }: msgSubmitEvidenceResponseParams): EncodeObject { + try { + return { typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse", value: MsgSubmitEvidenceResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:MsgSubmitEvidenceResponse: Could not create message: ' + e.message) + } + }, + msgSubmitEvidence({ value }: msgSubmitEvidenceParams): EncodeObject { try { return { typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", value: MsgSubmitEvidence.fromPartial( value ) } @@ -298,11 +290,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryEvidenceRequest({ value }: queryEvidenceRequestParams): EncodeObject { + queryEvidenceResponse({ value }: queryEvidenceResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceRequest", value: QueryEvidenceRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceResponse", value: QueryEvidenceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryEvidenceRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryEvidenceResponse: Could not create message: ' + e.message) + } + }, + + queryAllEvidenceRequest({ value }: queryAllEvidenceRequestParams): EncodeObject { + try { + return { typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceRequest", value: QueryAllEvidenceRequest.fromPartial( value ) } + } catch (e: any) { + 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 a3628fe47..775940433 100755 --- a/ts-client/cosmos.evidence.v1beta1/registry.ts +++ b/ts-client/cosmos.evidence.v1beta1/registry.ts @@ -1,22 +1,22 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgSubmitEvidenceResponse } from "./types/cosmos/evidence/v1beta1/tx"; -import { QueryEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; -import { QueryAllEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; import { QueryAllEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; import { Equivocation } from "./types/cosmos/evidence/v1beta1/evidence"; import { GenesisState } from "./types/cosmos/evidence/v1beta1/genesis"; +import { MsgSubmitEvidenceResponse } from "./types/cosmos/evidence/v1beta1/tx"; import { MsgSubmitEvidence } from "./types/cosmos/evidence/v1beta1/tx"; -import { QueryEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryAllEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse", MsgSubmitEvidenceResponse], - ["/cosmos.evidence.v1beta1.QueryEvidenceResponse", QueryEvidenceResponse], - ["/cosmos.evidence.v1beta1.QueryAllEvidenceRequest", QueryAllEvidenceRequest], + ["/cosmos.evidence.v1beta1.QueryEvidenceRequest", QueryEvidenceRequest], ["/cosmos.evidence.v1beta1.QueryAllEvidenceResponse", QueryAllEvidenceResponse], ["/cosmos.evidence.v1beta1.Equivocation", Equivocation], ["/cosmos.evidence.v1beta1.GenesisState", GenesisState], + ["/cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse", MsgSubmitEvidenceResponse], ["/cosmos.evidence.v1beta1.MsgSubmitEvidence", MsgSubmitEvidence], - ["/cosmos.evidence.v1beta1.QueryEvidenceRequest", QueryEvidenceRequest], + ["/cosmos.evidence.v1beta1.QueryEvidenceResponse", QueryEvidenceResponse], + ["/cosmos.evidence.v1beta1.QueryAllEvidenceRequest", QueryAllEvidenceRequest], ]; diff --git a/ts-client/cosmos.feegrant.v1beta1/module.ts b/ts-client/cosmos.feegrant.v1beta1/module.ts index aeec8ee79..8f81553d6 100755 --- a/ts-client/cosmos.feegrant.v1beta1/module.ts +++ b/ts-client/cosmos.feegrant.v1beta1/module.ts @@ -6,53 +6,53 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { QueryAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/query"; -import { MsgRevokeAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; -import { GenesisState } from "./types/cosmos/feegrant/v1beta1/genesis"; -import { QueryAllowanceRequest } from "./types/cosmos/feegrant/v1beta1/query"; -import { QueryAllowancesByGranterResponse } from "./types/cosmos/feegrant/v1beta1/query"; -import { AllowedMsgAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { Grant } from "./types/cosmos/feegrant/v1beta1/feegrant"; import { MsgGrantAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; -import { MsgGrantAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; +import { QueryAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowancesRequest } from "./types/cosmos/feegrant/v1beta1/query"; import { QueryAllowancesByGranterRequest } from "./types/cosmos/feegrant/v1beta1/query"; -import { BasicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { Grant } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { AllowedMsgAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { GenesisState } from "./types/cosmos/feegrant/v1beta1/genesis"; +import { QueryAllowancesByGranterResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { MsgPruneAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/tx"; import { PeriodicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { BasicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { MsgGrantAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; import { MsgRevokeAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; import { MsgPruneAllowances } from "./types/cosmos/feegrant/v1beta1/tx"; -import { MsgPruneAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/tx"; -import { QueryAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/query"; -import { QueryAllowancesRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowanceRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { MsgRevokeAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; -export { QueryAllowancesResponse, MsgRevokeAllowanceResponse, GenesisState, QueryAllowanceRequest, QueryAllowancesByGranterResponse, AllowedMsgAllowance, Grant, MsgGrantAllowance, MsgGrantAllowanceResponse, QueryAllowancesByGranterRequest, BasicAllowance, PeriodicAllowance, MsgRevokeAllowance, MsgPruneAllowances, MsgPruneAllowancesResponse, QueryAllowanceResponse, QueryAllowancesRequest }; +export { MsgGrantAllowance, QueryAllowanceResponse, QueryAllowancesRequest, QueryAllowancesByGranterRequest, Grant, AllowedMsgAllowance, GenesisState, QueryAllowancesByGranterResponse, MsgPruneAllowancesResponse, PeriodicAllowance, BasicAllowance, MsgGrantAllowanceResponse, MsgRevokeAllowance, MsgPruneAllowances, QueryAllowanceRequest, QueryAllowancesResponse, MsgRevokeAllowanceResponse }; -type sendQueryAllowancesResponseParams = { - value: QueryAllowancesResponse, +type sendMsgGrantAllowanceParams = { + value: MsgGrantAllowance, fee?: StdFee, memo?: string }; -type sendMsgRevokeAllowanceResponseParams = { - value: MsgRevokeAllowanceResponse, +type sendQueryAllowanceResponseParams = { + value: QueryAllowanceResponse, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryAllowancesRequestParams = { + value: QueryAllowancesRequest, fee?: StdFee, memo?: string }; -type sendQueryAllowanceRequestParams = { - value: QueryAllowanceRequest, +type sendQueryAllowancesByGranterRequestParams = { + value: QueryAllowancesByGranterRequest, fee?: StdFee, memo?: string }; -type sendQueryAllowancesByGranterResponseParams = { - value: QueryAllowancesByGranterResponse, +type sendGrantParams = { + value: Grant, fee?: StdFee, memo?: string }; @@ -63,26 +63,26 @@ type sendAllowedMsgAllowanceParams = { memo?: string }; -type sendGrantParams = { - value: Grant, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendMsgGrantAllowanceParams = { - value: MsgGrantAllowance, +type sendQueryAllowancesByGranterResponseParams = { + value: QueryAllowancesByGranterResponse, fee?: StdFee, memo?: string }; -type sendMsgGrantAllowanceResponseParams = { - value: MsgGrantAllowanceResponse, +type sendMsgPruneAllowancesResponseParams = { + value: MsgPruneAllowancesResponse, fee?: StdFee, memo?: string }; -type sendQueryAllowancesByGranterRequestParams = { - value: QueryAllowancesByGranterRequest, +type sendPeriodicAllowanceParams = { + value: PeriodicAllowance, fee?: StdFee, memo?: string }; @@ -93,8 +93,8 @@ type sendBasicAllowanceParams = { memo?: string }; -type sendPeriodicAllowanceParams = { - value: PeriodicAllowance, +type sendMsgGrantAllowanceResponseParams = { + value: MsgGrantAllowanceResponse, fee?: StdFee, memo?: string }; @@ -111,71 +111,71 @@ type sendMsgPruneAllowancesParams = { memo?: string }; -type sendMsgPruneAllowancesResponseParams = { - value: MsgPruneAllowancesResponse, +type sendQueryAllowanceRequestParams = { + value: QueryAllowanceRequest, fee?: StdFee, memo?: string }; -type sendQueryAllowanceResponseParams = { - value: QueryAllowanceResponse, +type sendQueryAllowancesResponseParams = { + value: QueryAllowancesResponse, fee?: StdFee, memo?: string }; -type sendQueryAllowancesRequestParams = { - value: QueryAllowancesRequest, +type sendMsgRevokeAllowanceResponseParams = { + value: MsgRevokeAllowanceResponse, fee?: StdFee, memo?: string }; -type queryAllowancesResponseParams = { - value: QueryAllowancesResponse, +type msgGrantAllowanceParams = { + value: MsgGrantAllowance, }; -type msgRevokeAllowanceResponseParams = { - value: MsgRevokeAllowanceResponse, +type queryAllowanceResponseParams = { + value: QueryAllowanceResponse, }; -type genesisStateParams = { - value: GenesisState, +type queryAllowancesRequestParams = { + value: QueryAllowancesRequest, }; -type queryAllowanceRequestParams = { - value: QueryAllowanceRequest, +type queryAllowancesByGranterRequestParams = { + value: QueryAllowancesByGranterRequest, }; -type queryAllowancesByGranterResponseParams = { - value: QueryAllowancesByGranterResponse, +type grantParams = { + value: Grant, }; type allowedMsgAllowanceParams = { value: AllowedMsgAllowance, }; -type grantParams = { - value: Grant, +type genesisStateParams = { + value: GenesisState, }; -type msgGrantAllowanceParams = { - value: MsgGrantAllowance, +type queryAllowancesByGranterResponseParams = { + value: QueryAllowancesByGranterResponse, }; -type msgGrantAllowanceResponseParams = { - value: MsgGrantAllowanceResponse, +type msgPruneAllowancesResponseParams = { + value: MsgPruneAllowancesResponse, }; -type queryAllowancesByGranterRequestParams = { - value: QueryAllowancesByGranterRequest, +type periodicAllowanceParams = { + value: PeriodicAllowance, }; type basicAllowanceParams = { value: BasicAllowance, }; -type periodicAllowanceParams = { - value: PeriodicAllowance, +type msgGrantAllowanceResponseParams = { + value: MsgGrantAllowanceResponse, }; type msgRevokeAllowanceParams = { @@ -186,16 +186,16 @@ type msgPruneAllowancesParams = { value: MsgPruneAllowances, }; -type msgPruneAllowancesResponseParams = { - value: MsgPruneAllowancesResponse, +type queryAllowanceRequestParams = { + value: QueryAllowanceRequest, }; -type queryAllowanceResponseParams = { - value: QueryAllowanceResponse, +type queryAllowancesResponseParams = { + value: QueryAllowancesResponse, }; -type queryAllowancesRequestParams = { - value: QueryAllowancesRequest, +type msgRevokeAllowanceResponseParams = { + value: MsgRevokeAllowanceResponse, }; @@ -228,73 +228,73 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendQueryAllowancesResponse({ value, fee, memo }: sendQueryAllowancesResponseParams): Promise { + async sendMsgGrantAllowance({ value, fee, memo }: sendMsgGrantAllowanceParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllowancesResponse: 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.queryAllowancesResponse({ value: QueryAllowancesResponse.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:sendQueryAllowancesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgGrantAllowance: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRevokeAllowanceResponse({ value, fee, memo }: sendMsgRevokeAllowanceResponseParams): Promise { + async sendQueryAllowanceResponse({ value, fee, memo }: sendQueryAllowanceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRevokeAllowanceResponse: 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.msgRevokeAllowanceResponse({ value: MsgRevokeAllowanceResponse.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:sendMsgRevokeAllowanceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllowanceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryAllowancesRequest({ value, fee, memo }: sendQueryAllowancesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.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:sendGenesisState: 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 sendQueryAllowancesByGranterRequest({ value, fee, memo }: sendQueryAllowancesByGranterRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllowanceRequest: 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.queryAllowanceRequest({ value: QueryAllowanceRequest.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:sendQueryAllowanceRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllowancesByGranterRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllowancesByGranterResponse({ value, fee, memo }: sendQueryAllowancesByGranterResponseParams): Promise { + async sendGrant({ value, fee, memo }: sendGrantParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllowancesByGranterResponse: 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.queryAllowancesByGranterResponse({ value: QueryAllowancesByGranterResponse.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:sendQueryAllowancesByGranterResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGrant: Could not broadcast Tx: '+ e.message) } }, @@ -312,59 +312,59 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendGrant({ value, fee, memo }: sendGrantParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendGrant: 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.grant({ value: Grant.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:sendGrant: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendMsgGrantAllowance({ value, fee, memo }: sendMsgGrantAllowanceParams): Promise { + async sendQueryAllowancesByGranterResponse({ value, fee, memo }: sendQueryAllowancesByGranterResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgGrantAllowance: 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.msgGrantAllowance({ value: MsgGrantAllowance.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:sendMsgGrantAllowance: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllowancesByGranterResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgGrantAllowanceResponse({ value, fee, memo }: sendMsgGrantAllowanceResponseParams): Promise { + async sendMsgPruneAllowancesResponse({ value, fee, memo }: sendMsgPruneAllowancesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgGrantAllowanceResponse: 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.msgGrantAllowanceResponse({ value: MsgGrantAllowanceResponse.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:sendMsgGrantAllowanceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgPruneAllowancesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllowancesByGranterRequest({ value, fee, memo }: sendQueryAllowancesByGranterRequestParams): Promise { + async sendPeriodicAllowance({ value, fee, memo }: sendPeriodicAllowanceParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllowancesByGranterRequest: 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.queryAllowancesByGranterRequest({ value: QueryAllowancesByGranterRequest.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:sendQueryAllowancesByGranterRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPeriodicAllowance: Could not broadcast Tx: '+ e.message) } }, @@ -382,17 +382,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendPeriodicAllowance({ value, fee, memo }: sendPeriodicAllowanceParams): Promise { + async sendMsgGrantAllowanceResponse({ value, fee, memo }: sendMsgGrantAllowanceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendPeriodicAllowance: 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.periodicAllowance({ value: PeriodicAllowance.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:sendPeriodicAllowance: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgGrantAllowanceResponse: Could not broadcast Tx: '+ e.message) } }, @@ -424,86 +424,86 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgPruneAllowancesResponse({ value, fee, memo }: sendMsgPruneAllowancesResponseParams): Promise { + async sendQueryAllowanceRequest({ value, fee, memo }: sendQueryAllowanceRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgPruneAllowancesResponse: 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.msgPruneAllowancesResponse({ value: MsgPruneAllowancesResponse.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:sendMsgPruneAllowancesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllowanceRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAllowanceResponse({ value, fee, memo }: sendQueryAllowanceResponseParams): Promise { + async sendQueryAllowancesResponse({ value, fee, memo }: sendQueryAllowancesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAllowanceResponse: 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.queryAllowanceResponse({ value: QueryAllowanceResponse.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:sendQueryAllowanceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllowancesResponse: 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) } }, - queryAllowancesResponse({ value }: queryAllowancesResponseParams): EncodeObject { + msgGrantAllowance({ value }: msgGrantAllowanceParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", value: QueryAllowancesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", value: MsgGrantAllowance.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllowancesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgGrantAllowance: Could not create message: ' + e.message) } }, - msgRevokeAllowanceResponse({ value }: msgRevokeAllowanceResponseParams): EncodeObject { + queryAllowanceResponse({ value }: queryAllowanceResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", value: MsgRevokeAllowanceResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", value: QueryAllowanceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRevokeAllowanceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllowanceResponse: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryAllowancesRequest({ value }: queryAllowancesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", value: QueryAllowancesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllowancesRequest: Could not create message: ' + e.message) } }, - queryAllowanceRequest({ value }: queryAllowanceRequestParams): EncodeObject { + queryAllowancesByGranterRequest({ value }: queryAllowancesByGranterRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", value: QueryAllowanceRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", value: QueryAllowancesByGranterRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllowanceRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllowancesByGranterRequest: Could not create message: ' + e.message) } }, - queryAllowancesByGranterResponse({ value }: queryAllowancesByGranterResponseParams): EncodeObject { + grant({ value }: grantParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", value: QueryAllowancesByGranterResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.Grant", value: Grant.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllowancesByGranterResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Grant: Could not create message: ' + e.message) } }, @@ -515,35 +515,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - grant({ value }: grantParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.Grant", value: Grant.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Grant: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - msgGrantAllowance({ value }: msgGrantAllowanceParams): EncodeObject { + queryAllowancesByGranterResponse({ value }: queryAllowancesByGranterResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", value: MsgGrantAllowance.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", value: QueryAllowancesByGranterResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgGrantAllowance: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllowancesByGranterResponse: Could not create message: ' + e.message) } }, - msgGrantAllowanceResponse({ value }: msgGrantAllowanceResponseParams): EncodeObject { + msgPruneAllowancesResponse({ value }: msgPruneAllowancesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", value: MsgGrantAllowanceResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse", value: MsgPruneAllowancesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgGrantAllowanceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgPruneAllowancesResponse: Could not create message: ' + e.message) } }, - 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) } }, @@ -555,11 +555,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - periodicAllowance({ value }: periodicAllowanceParams): EncodeObject { + msgGrantAllowanceResponse({ value }: msgGrantAllowanceResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", value: PeriodicAllowance.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", value: MsgGrantAllowanceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PeriodicAllowance: Could not create message: ' + e.message) + throw new Error('TxClient:MsgGrantAllowanceResponse: Could not create message: ' + e.message) } }, @@ -579,27 +579,27 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgPruneAllowancesResponse({ value }: msgPruneAllowancesResponseParams): EncodeObject { + queryAllowanceRequest({ value }: queryAllowanceRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse", value: MsgPruneAllowancesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", value: QueryAllowanceRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgPruneAllowancesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllowanceRequest: Could not create message: ' + e.message) } }, - queryAllowanceResponse({ value }: queryAllowanceResponseParams): EncodeObject { + queryAllowancesResponse({ value }: queryAllowancesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", value: QueryAllowanceResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", value: QueryAllowancesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllowanceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllowancesResponse: Could not create message: ' + e.message) } }, - queryAllowancesRequest({ value }: queryAllowancesRequestParams): EncodeObject { + msgRevokeAllowanceResponse({ value }: msgRevokeAllowanceResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", value: QueryAllowancesRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", value: MsgRevokeAllowanceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAllowancesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRevokeAllowanceResponse: 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 57c60c7d4..63ff5e19a 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 { QueryAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/query"; -import { MsgRevokeAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; -import { GenesisState } from "./types/cosmos/feegrant/v1beta1/genesis"; -import { QueryAllowanceRequest } from "./types/cosmos/feegrant/v1beta1/query"; -import { QueryAllowancesByGranterResponse } from "./types/cosmos/feegrant/v1beta1/query"; -import { AllowedMsgAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { Grant } from "./types/cosmos/feegrant/v1beta1/feegrant"; import { MsgGrantAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; -import { MsgGrantAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; +import { QueryAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowancesRequest } from "./types/cosmos/feegrant/v1beta1/query"; import { QueryAllowancesByGranterRequest } from "./types/cosmos/feegrant/v1beta1/query"; -import { BasicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { Grant } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { AllowedMsgAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { GenesisState } from "./types/cosmos/feegrant/v1beta1/genesis"; +import { QueryAllowancesByGranterResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { MsgPruneAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/tx"; import { PeriodicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { BasicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { MsgGrantAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; import { MsgRevokeAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; import { MsgPruneAllowances } from "./types/cosmos/feegrant/v1beta1/tx"; -import { MsgPruneAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/tx"; -import { QueryAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/query"; -import { QueryAllowancesRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowanceRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { MsgRevokeAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.feegrant.v1beta1.QueryAllowancesResponse", QueryAllowancesResponse], - ["/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", MsgRevokeAllowanceResponse], - ["/cosmos.feegrant.v1beta1.GenesisState", GenesisState], - ["/cosmos.feegrant.v1beta1.QueryAllowanceRequest", QueryAllowanceRequest], - ["/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", QueryAllowancesByGranterResponse], - ["/cosmos.feegrant.v1beta1.AllowedMsgAllowance", AllowedMsgAllowance], - ["/cosmos.feegrant.v1beta1.Grant", Grant], ["/cosmos.feegrant.v1beta1.MsgGrantAllowance", MsgGrantAllowance], - ["/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", MsgGrantAllowanceResponse], + ["/cosmos.feegrant.v1beta1.QueryAllowanceResponse", QueryAllowanceResponse], + ["/cosmos.feegrant.v1beta1.QueryAllowancesRequest", QueryAllowancesRequest], ["/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", QueryAllowancesByGranterRequest], - ["/cosmos.feegrant.v1beta1.BasicAllowance", BasicAllowance], + ["/cosmos.feegrant.v1beta1.Grant", Grant], + ["/cosmos.feegrant.v1beta1.AllowedMsgAllowance", AllowedMsgAllowance], + ["/cosmos.feegrant.v1beta1.GenesisState", GenesisState], + ["/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", QueryAllowancesByGranterResponse], + ["/cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse", MsgPruneAllowancesResponse], ["/cosmos.feegrant.v1beta1.PeriodicAllowance", PeriodicAllowance], + ["/cosmos.feegrant.v1beta1.BasicAllowance", BasicAllowance], + ["/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", MsgGrantAllowanceResponse], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", MsgRevokeAllowance], ["/cosmos.feegrant.v1beta1.MsgPruneAllowances", MsgPruneAllowances], - ["/cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse", MsgPruneAllowancesResponse], - ["/cosmos.feegrant.v1beta1.QueryAllowanceResponse", QueryAllowanceResponse], - ["/cosmos.feegrant.v1beta1.QueryAllowancesRequest", QueryAllowancesRequest], + ["/cosmos.feegrant.v1beta1.QueryAllowanceRequest", QueryAllowanceRequest], + ["/cosmos.feegrant.v1beta1.QueryAllowancesResponse", QueryAllowancesResponse], + ["/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", MsgRevokeAllowanceResponse], ]; diff --git a/ts-client/cosmos.gov.v1/module.ts b/ts-client/cosmos.gov.v1/module.ts index 8d8b2af46..6f649a36f 100755 --- a/ts-client/cosmos.gov.v1/module.ts +++ b/ts-client/cosmos.gov.v1/module.ts @@ -6,144 +6,138 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { QueryProposalsRequest } from "./types/cosmos/gov/v1/query"; -import { QueryVoteResponse } from "./types/cosmos/gov/v1/query"; -import { QueryDepositRequest } from "./types/cosmos/gov/v1/query"; -import { MsgVote } from "./types/cosmos/gov/v1/tx"; -import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx"; -import { WeightedVoteOption } from "./types/cosmos/gov/v1/gov"; -import { QueryProposalsResponse } from "./types/cosmos/gov/v1/query"; -import { QueryDepositResponse } from "./types/cosmos/gov/v1/query"; -import { MsgDeposit } from "./types/cosmos/gov/v1/tx"; import { TallyParams } from "./types/cosmos/gov/v1/gov"; -import { QueryVotesResponse } from "./types/cosmos/gov/v1/query"; +import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx"; +import { QueryConstitutionRequest } from "./types/cosmos/gov/v1/query"; import { QueryVoteRequest } from "./types/cosmos/gov/v1/query"; -import { QueryParamsRequest } from "./types/cosmos/gov/v1/query"; -import { MsgCancelProposal } from "./types/cosmos/gov/v1/tx"; -import { QueryConstitutionResponse } from "./types/cosmos/gov/v1/query"; import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1/tx"; -import { QueryProposalResponse } from "./types/cosmos/gov/v1/query"; -import { MsgExecLegacyContent } from "./types/cosmos/gov/v1/tx"; -import { QueryDepositsResponse } from "./types/cosmos/gov/v1/query"; -import { GenesisState } from "./types/cosmos/gov/v1/genesis"; -import { TallyResult } from "./types/cosmos/gov/v1/gov"; -import { QueryProposalRequest } from "./types/cosmos/gov/v1/query"; -import { MsgCancelProposalResponse } from "./types/cosmos/gov/v1/tx"; -import { QueryParamsResponse } from "./types/cosmos/gov/v1/query"; -import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx"; +import { QueryDepositRequest } from "./types/cosmos/gov/v1/query"; import { QueryDepositsRequest } from "./types/cosmos/gov/v1/query"; -import { Proposal } from "./types/cosmos/gov/v1/gov"; -import { QueryVotesRequest } from "./types/cosmos/gov/v1/query"; -import { QueryTallyResultResponse } from "./types/cosmos/gov/v1/query"; import { MsgVoteResponse } from "./types/cosmos/gov/v1/tx"; +import { Deposit } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalsRequest } from "./types/cosmos/gov/v1/query"; import { MsgUpdateParamsResponse } from "./types/cosmos/gov/v1/tx"; +import { Vote } from "./types/cosmos/gov/v1/gov"; +import { QueryVoteResponse } from "./types/cosmos/gov/v1/query"; +import { QueryParamsResponse } from "./types/cosmos/gov/v1/query"; +import { DepositParams } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalResponse } from "./types/cosmos/gov/v1/query"; +import { QueryDepositsResponse } from "./types/cosmos/gov/v1/query"; import { QueryTallyResultRequest } from "./types/cosmos/gov/v1/query"; -import { MsgExecLegacyContentResponse } from "./types/cosmos/gov/v1/tx"; -import { MsgDepositResponse } from "./types/cosmos/gov/v1/tx"; +import { QueryTallyResultResponse } from "./types/cosmos/gov/v1/query"; +import { MsgDeposit } from "./types/cosmos/gov/v1/tx"; +import { Proposal } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalsResponse } from "./types/cosmos/gov/v1/query"; +import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx"; +import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx"; import { VotingParams } from "./types/cosmos/gov/v1/gov"; import { Params } from "./types/cosmos/gov/v1/gov"; -import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx"; -import { QueryConstitutionRequest } from "./types/cosmos/gov/v1/query"; +import { QueryProposalRequest } from "./types/cosmos/gov/v1/query"; +import { MsgCancelProposal } from "./types/cosmos/gov/v1/tx"; +import { MsgCancelProposalResponse } from "./types/cosmos/gov/v1/tx"; +import { QueryVotesRequest } from "./types/cosmos/gov/v1/query"; +import { QueryVotesResponse } from "./types/cosmos/gov/v1/query"; +import { QueryParamsRequest } from "./types/cosmos/gov/v1/query"; +import { MsgVote } from "./types/cosmos/gov/v1/tx"; +import { WeightedVoteOption } from "./types/cosmos/gov/v1/gov"; +import { GenesisState } from "./types/cosmos/gov/v1/genesis"; +import { MsgExecLegacyContent } from "./types/cosmos/gov/v1/tx"; +import { QueryConstitutionResponse } from "./types/cosmos/gov/v1/query"; +import { MsgExecLegacyContentResponse } from "./types/cosmos/gov/v1/tx"; +import { TallyResult } from "./types/cosmos/gov/v1/gov"; +import { QueryDepositResponse } from "./types/cosmos/gov/v1/query"; import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1/tx"; -import { Deposit } from "./types/cosmos/gov/v1/gov"; -import { DepositParams } from "./types/cosmos/gov/v1/gov"; -import { Vote } from "./types/cosmos/gov/v1/gov"; +import { MsgDepositResponse } from "./types/cosmos/gov/v1/tx"; -export { QueryProposalsRequest, QueryVoteResponse, QueryDepositRequest, MsgVote, MsgVoteWeighted, WeightedVoteOption, QueryProposalsResponse, QueryDepositResponse, MsgDeposit, TallyParams, QueryVotesResponse, QueryVoteRequest, QueryParamsRequest, MsgCancelProposal, QueryConstitutionResponse, MsgSubmitProposalResponse, QueryProposalResponse, MsgExecLegacyContent, QueryDepositsResponse, GenesisState, TallyResult, QueryProposalRequest, MsgCancelProposalResponse, QueryParamsResponse, MsgUpdateParams, QueryDepositsRequest, Proposal, QueryVotesRequest, QueryTallyResultResponse, MsgVoteResponse, MsgUpdateParamsResponse, QueryTallyResultRequest, MsgExecLegacyContentResponse, MsgDepositResponse, VotingParams, Params, MsgSubmitProposal, QueryConstitutionRequest, MsgVoteWeightedResponse, Deposit, DepositParams, Vote }; +export { TallyParams, MsgSubmitProposal, QueryConstitutionRequest, QueryVoteRequest, MsgSubmitProposalResponse, QueryDepositRequest, QueryDepositsRequest, MsgVoteResponse, Deposit, QueryProposalsRequest, MsgUpdateParamsResponse, Vote, QueryVoteResponse, QueryParamsResponse, DepositParams, QueryProposalResponse, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse, MsgDeposit, Proposal, QueryProposalsResponse, MsgVoteWeighted, MsgUpdateParams, VotingParams, Params, QueryProposalRequest, MsgCancelProposal, MsgCancelProposalResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, MsgVote, WeightedVoteOption, GenesisState, MsgExecLegacyContent, QueryConstitutionResponse, MsgExecLegacyContentResponse, TallyResult, QueryDepositResponse, MsgVoteWeightedResponse, MsgDepositResponse }; -type sendQueryProposalsRequestParams = { - value: QueryProposalsRequest, - fee?: StdFee, - memo?: string -}; - -type sendQueryVoteResponseParams = { - value: QueryVoteResponse, +type sendTallyParamsParams = { + value: TallyParams, fee?: StdFee, memo?: string }; -type sendQueryDepositRequestParams = { - value: QueryDepositRequest, +type sendMsgSubmitProposalParams = { + value: MsgSubmitProposal, fee?: StdFee, memo?: string }; -type sendMsgVoteParams = { - value: MsgVote, +type sendQueryConstitutionRequestParams = { + value: QueryConstitutionRequest, fee?: StdFee, memo?: string }; -type sendMsgVoteWeightedParams = { - value: MsgVoteWeighted, +type sendQueryVoteRequestParams = { + value: QueryVoteRequest, fee?: StdFee, memo?: string }; -type sendWeightedVoteOptionParams = { - value: WeightedVoteOption, +type sendMsgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse, fee?: StdFee, memo?: string }; -type sendQueryProposalsResponseParams = { - value: QueryProposalsResponse, +type sendQueryDepositRequestParams = { + value: QueryDepositRequest, fee?: StdFee, memo?: string }; -type sendQueryDepositResponseParams = { - value: QueryDepositResponse, +type sendQueryDepositsRequestParams = { + value: QueryDepositsRequest, fee?: StdFee, memo?: string }; -type sendMsgDepositParams = { - value: MsgDeposit, +type sendMsgVoteResponseParams = { + value: MsgVoteResponse, fee?: StdFee, memo?: string }; -type sendTallyParamsParams = { - value: TallyParams, +type sendDepositParams = { + value: Deposit, fee?: StdFee, memo?: string }; -type sendQueryVotesResponseParams = { - value: QueryVotesResponse, +type sendQueryProposalsRequestParams = { + value: QueryProposalsRequest, fee?: StdFee, memo?: string }; -type sendQueryVoteRequestParams = { - value: QueryVoteRequest, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendVoteParams = { + value: Vote, fee?: StdFee, memo?: string }; -type sendMsgCancelProposalParams = { - value: MsgCancelProposal, +type sendQueryVoteResponseParams = { + value: QueryVoteResponse, fee?: StdFee, memo?: string }; -type sendQueryConstitutionResponseParams = { - value: QueryConstitutionResponse, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendMsgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse, +type sendDepositParamsParams = { + value: DepositParams, fee?: StdFee, memo?: string }; @@ -154,44 +148,44 @@ type sendQueryProposalResponseParams = { memo?: string }; -type sendMsgExecLegacyContentParams = { - value: MsgExecLegacyContent, +type sendQueryDepositsResponseParams = { + value: QueryDepositsResponse, fee?: StdFee, memo?: string }; -type sendQueryDepositsResponseParams = { - value: QueryDepositsResponse, +type sendQueryTallyResultRequestParams = { + value: QueryTallyResultRequest, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryTallyResultResponseParams = { + value: QueryTallyResultResponse, fee?: StdFee, memo?: string }; -type sendTallyResultParams = { - value: TallyResult, +type sendMsgDepositParams = { + value: MsgDeposit, fee?: StdFee, memo?: string }; -type sendQueryProposalRequestParams = { - value: QueryProposalRequest, +type sendProposalParams = { + value: Proposal, fee?: StdFee, memo?: string }; -type sendMsgCancelProposalResponseParams = { - value: MsgCancelProposalResponse, +type sendQueryProposalsResponseParams = { + value: QueryProposalsResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendMsgVoteWeightedParams = { + value: MsgVoteWeighted, fee?: StdFee, memo?: string }; @@ -202,275 +196,281 @@ type sendMsgUpdateParamsParams = { memo?: string }; -type sendQueryDepositsRequestParams = { - value: QueryDepositsRequest, +type sendVotingParamsParams = { + value: VotingParams, fee?: StdFee, memo?: string }; -type sendProposalParams = { - value: Proposal, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendQueryVotesRequestParams = { - value: QueryVotesRequest, +type sendQueryProposalRequestParams = { + value: QueryProposalRequest, fee?: StdFee, memo?: string }; -type sendQueryTallyResultResponseParams = { - value: QueryTallyResultResponse, +type sendMsgCancelProposalParams = { + value: MsgCancelProposal, fee?: StdFee, memo?: string }; -type sendMsgVoteResponseParams = { - value: MsgVoteResponse, +type sendMsgCancelProposalResponseParams = { + value: MsgCancelProposalResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendQueryVotesRequestParams = { + value: QueryVotesRequest, fee?: StdFee, memo?: string }; -type sendQueryTallyResultRequestParams = { - value: QueryTallyResultRequest, +type sendQueryVotesResponseParams = { + value: QueryVotesResponse, fee?: StdFee, memo?: string }; -type sendMsgExecLegacyContentResponseParams = { - value: MsgExecLegacyContentResponse, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendMsgDepositResponseParams = { - value: MsgDepositResponse, +type sendMsgVoteParams = { + value: MsgVote, fee?: StdFee, memo?: string }; -type sendVotingParamsParams = { - value: VotingParams, +type sendWeightedVoteOptionParams = { + value: WeightedVoteOption, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendMsgSubmitProposalParams = { - value: MsgSubmitProposal, +type sendMsgExecLegacyContentParams = { + value: MsgExecLegacyContent, fee?: StdFee, memo?: string }; -type sendQueryConstitutionRequestParams = { - value: QueryConstitutionRequest, +type sendQueryConstitutionResponseParams = { + value: QueryConstitutionResponse, fee?: StdFee, memo?: string }; -type sendMsgVoteWeightedResponseParams = { - value: MsgVoteWeightedResponse, +type sendMsgExecLegacyContentResponseParams = { + value: MsgExecLegacyContentResponse, fee?: StdFee, memo?: string }; -type sendDepositParams = { - value: Deposit, +type sendTallyResultParams = { + value: TallyResult, fee?: StdFee, memo?: string }; -type sendDepositParamsParams = { - value: DepositParams, +type sendQueryDepositResponseParams = { + value: QueryDepositResponse, fee?: StdFee, memo?: string }; -type sendVoteParams = { - value: Vote, +type sendMsgVoteWeightedResponseParams = { + value: MsgVoteWeightedResponse, fee?: StdFee, memo?: string }; - -type queryProposalsRequestParams = { - value: QueryProposalsRequest, +type sendMsgDepositResponseParams = { + value: MsgDepositResponse, + fee?: StdFee, + memo?: string }; -type queryVoteResponseParams = { - value: QueryVoteResponse, + +type tallyParamsParams = { + value: TallyParams, }; -type queryDepositRequestParams = { - value: QueryDepositRequest, +type msgSubmitProposalParams = { + value: MsgSubmitProposal, }; -type msgVoteParams = { - value: MsgVote, +type queryConstitutionRequestParams = { + value: QueryConstitutionRequest, }; -type msgVoteWeightedParams = { - value: MsgVoteWeighted, +type queryVoteRequestParams = { + value: QueryVoteRequest, }; -type weightedVoteOptionParams = { - value: WeightedVoteOption, +type msgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse, }; -type queryProposalsResponseParams = { - value: QueryProposalsResponse, +type queryDepositRequestParams = { + value: QueryDepositRequest, }; -type queryDepositResponseParams = { - value: QueryDepositResponse, +type queryDepositsRequestParams = { + value: QueryDepositsRequest, }; -type msgDepositParams = { - value: MsgDeposit, +type msgVoteResponseParams = { + value: MsgVoteResponse, }; -type tallyParamsParams = { - value: TallyParams, +type depositParams = { + value: Deposit, }; -type queryVotesResponseParams = { - value: QueryVotesResponse, +type queryProposalsRequestParams = { + value: QueryProposalsRequest, }; -type queryVoteRequestParams = { - value: QueryVoteRequest, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type voteParams = { + value: Vote, }; -type msgCancelProposalParams = { - value: MsgCancelProposal, +type queryVoteResponseParams = { + value: QueryVoteResponse, }; -type queryConstitutionResponseParams = { - value: QueryConstitutionResponse, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type msgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse, +type depositParamsParams = { + value: DepositParams, }; type queryProposalResponseParams = { value: QueryProposalResponse, }; -type msgExecLegacyContentParams = { - value: MsgExecLegacyContent, -}; - type queryDepositsResponseParams = { value: QueryDepositsResponse, }; -type genesisStateParams = { - value: GenesisState, +type queryTallyResultRequestParams = { + value: QueryTallyResultRequest, }; -type tallyResultParams = { - value: TallyResult, +type queryTallyResultResponseParams = { + value: QueryTallyResultResponse, }; -type queryProposalRequestParams = { - value: QueryProposalRequest, +type msgDepositParams = { + value: MsgDeposit, }; -type msgCancelProposalResponseParams = { - value: MsgCancelProposalResponse, +type proposalParams = { + value: Proposal, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type queryProposalsResponseParams = { + value: QueryProposalsResponse, +}; + +type msgVoteWeightedParams = { + value: MsgVoteWeighted, }; type msgUpdateParamsParams = { value: MsgUpdateParams, }; -type queryDepositsRequestParams = { - value: QueryDepositsRequest, +type votingParamsParams = { + value: VotingParams, }; -type proposalParams = { - value: Proposal, +type paramsParams = { + value: Params, }; -type queryVotesRequestParams = { - value: QueryVotesRequest, +type queryProposalRequestParams = { + value: QueryProposalRequest, }; -type queryTallyResultResponseParams = { - value: QueryTallyResultResponse, +type msgCancelProposalParams = { + value: MsgCancelProposal, }; -type msgVoteResponseParams = { - value: MsgVoteResponse, +type msgCancelProposalResponseParams = { + value: MsgCancelProposalResponse, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type queryVotesRequestParams = { + value: QueryVotesRequest, }; -type queryTallyResultRequestParams = { - value: QueryTallyResultRequest, +type queryVotesResponseParams = { + value: QueryVotesResponse, }; -type msgExecLegacyContentResponseParams = { - value: MsgExecLegacyContentResponse, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; -type msgDepositResponseParams = { - value: MsgDepositResponse, +type msgVoteParams = { + value: MsgVote, }; -type votingParamsParams = { - value: VotingParams, +type weightedVoteOptionParams = { + value: WeightedVoteOption, }; -type paramsParams = { - value: Params, +type genesisStateParams = { + value: GenesisState, }; -type msgSubmitProposalParams = { - value: MsgSubmitProposal, +type msgExecLegacyContentParams = { + value: MsgExecLegacyContent, }; -type queryConstitutionRequestParams = { - value: QueryConstitutionRequest, +type queryConstitutionResponseParams = { + value: QueryConstitutionResponse, }; -type msgVoteWeightedResponseParams = { - value: MsgVoteWeightedResponse, +type msgExecLegacyContentResponseParams = { + value: MsgExecLegacyContentResponse, }; -type depositParams = { - value: Deposit, +type tallyResultParams = { + value: TallyResult, }; -type depositParamsParams = { - value: DepositParams, +type queryDepositResponseParams = { + value: QueryDepositResponse, }; -type voteParams = { - value: Vote, +type msgVoteWeightedResponseParams = { + value: MsgVoteWeightedResponse, +}; + +type msgDepositResponseParams = { + value: MsgDepositResponse, }; @@ -503,227 +503,213 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendQueryProposalsRequest({ value, fee, memo }: sendQueryProposalsRequestParams): Promise { - if (!signer) { - 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.queryProposalsRequest({ value: QueryProposalsRequest.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) - } - }, - - async sendQueryVoteResponse({ value, fee, memo }: sendQueryVoteResponseParams): Promise { + async sendTallyParams({ value, fee, memo }: sendTallyParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVoteResponse: 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.queryVoteResponse({ value: QueryVoteResponse.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:sendQueryVoteResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTallyParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDepositRequest({ value, fee, memo }: sendQueryDepositRequestParams): Promise { + async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDepositRequest: 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.queryDepositRequest({ value: QueryDepositRequest.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:sendQueryDepositRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise { + async sendQueryConstitutionRequest({ value, fee, memo }: sendQueryConstitutionRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVote: 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.msgVote({ value: MsgVote.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:sendMsgVote: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConstitutionRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise { + async sendQueryVoteRequest({ value, fee, memo }: sendQueryVoteRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteWeighted: 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.msgVoteWeighted({ value: MsgVoteWeighted.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:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVoteRequest: Could not broadcast Tx: '+ e.message) } }, - async sendWeightedVoteOption({ value, fee, memo }: sendWeightedVoteOptionParams): Promise { + async sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendWeightedVoteOption: 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.weightedVoteOption({ value: WeightedVoteOption.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:sendWeightedVoteOption: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitProposalResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalsResponse({ value, fee, memo }: sendQueryProposalsResponseParams): Promise { + async sendQueryDepositRequest({ value, fee, memo }: sendQueryDepositRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalsResponse: 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.queryProposalsResponse({ value: QueryProposalsResponse.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:sendQueryProposalsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDepositResponse({ value, fee, memo }: sendQueryDepositResponseParams): Promise { + async sendQueryDepositsRequest({ value, fee, memo }: sendQueryDepositsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDepositResponse: 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.queryDepositResponse({ value: QueryDepositResponse.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:sendQueryDepositResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise { + async sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDeposit: 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.msgDeposit({ value: MsgDeposit.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:sendMsgDeposit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteResponse: Could not broadcast Tx: '+ e.message) } }, - async sendTallyParams({ value, fee, memo }: sendTallyParamsParams): Promise { + async sendDeposit({ value, fee, memo }: sendDepositParams): Promise { if (!signer) { - throw new Error('TxClient:sendTallyParams: 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.tallyParams({ value: TallyParams.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:sendTallyParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDeposit: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVotesResponse({ value, fee, memo }: sendQueryVotesResponseParams): Promise { + async sendQueryProposalsRequest({ value, fee, memo }: sendQueryProposalsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesResponse: 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.queryVotesResponse({ value: QueryVotesResponse.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:sendQueryVotesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVoteRequest({ value, fee, memo }: sendQueryVoteRequestParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVoteRequest: 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.queryVoteRequest({ value: QueryVoteRequest.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:sendQueryVoteRequest: 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 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 sendMsgCancelProposal({ value, fee, memo }: sendMsgCancelProposalParams): Promise { + async sendQueryVoteResponse({ value, fee, memo }: sendQueryVoteResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCancelProposal: 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.msgCancelProposal({ value: MsgCancelProposal.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:sendMsgCancelProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVoteResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConstitutionResponse({ value, fee, memo }: sendQueryConstitutionResponseParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConstitutionResponse: 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.queryConstitutionResponse({ value: QueryConstitutionResponse.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:sendQueryConstitutionResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise { + async sendDepositParams({ value, fee, memo }: sendDepositParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposalResponse: 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.msgSubmitProposalResponse({ value: MsgSubmitProposalResponse.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:sendMsgSubmitProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDepositParams: Could not broadcast Tx: '+ e.message) } }, @@ -741,101 +727,101 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgExecLegacyContent({ value, fee, memo }: sendMsgExecLegacyContentParams): Promise { + async sendQueryDepositsResponse({ value, fee, memo }: sendQueryDepositsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgExecLegacyContent: 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.msgExecLegacyContent({ value: MsgExecLegacyContent.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:sendMsgExecLegacyContent: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositsResponse: 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 sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryTallyResultResponse({ value, fee, memo }: sendQueryTallyResultResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.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:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTallyResultResponse: Could not broadcast Tx: '+ e.message) } }, - async sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise { + async sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise { if (!signer) { - throw new Error('TxClient:sendTallyResult: 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.tallyResult({ value: TallyResult.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:sendTallyResult: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise { + async sendProposal({ value, fee, memo }: sendProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalRequest: 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.queryProposalRequest({ value: QueryProposalRequest.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:sendQueryProposalRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCancelProposalResponse({ value, fee, memo }: sendMsgCancelProposalResponseParams): Promise { + async sendQueryProposalsResponse({ value, fee, memo }: sendQueryProposalsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCancelProposalResponse: 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.msgCancelProposalResponse({ value: MsgCancelProposalResponse.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:sendMsgCancelProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: 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.queryParamsResponse({ value: QueryParamsResponse.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:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message) } }, @@ -853,370 +839,376 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryDepositsRequest({ value, fee, memo }: sendQueryDepositsRequestParams): Promise { + async sendVotingParams({ value, fee, memo }: sendVotingParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDepositsRequest: 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.queryDepositsRequest({ value: QueryDepositsRequest.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:sendQueryDepositsRequest: 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 sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendProposal: 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.proposal({ value: Proposal.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:sendProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVotesRequest({ value, fee, memo }: sendQueryVotesRequestParams): Promise { + async sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesRequest: 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.queryVotesRequest({ value: QueryVotesRequest.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:sendQueryVotesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTallyResultResponse({ value, fee, memo }: sendQueryTallyResultResponseParams): Promise { + async sendMsgCancelProposal({ value, fee, memo }: sendMsgCancelProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultResponse: 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.queryTallyResultResponse({ value: QueryTallyResultResponse.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:sendQueryTallyResultResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCancelProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise { + async sendMsgCancelProposalResponse({ value, fee, memo }: sendMsgCancelProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteResponse: 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.msgVoteResponse({ value: MsgVoteResponse.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:sendMsgVoteResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCancelProposalResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendQueryVotesRequest({ value, fee, memo }: sendQueryVotesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: 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.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.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:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVotesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTallyResultRequest({ value, fee, memo }: sendQueryTallyResultRequestParams): Promise { + async sendQueryVotesResponse({ value, fee, memo }: sendQueryVotesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultRequest: 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.queryTallyResultRequest({ value: QueryTallyResultRequest.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:sendQueryTallyResultRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVotesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgExecLegacyContentResponse({ value, fee, memo }: sendMsgExecLegacyContentResponseParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgExecLegacyContentResponse: 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.msgExecLegacyContentResponse({ value: MsgExecLegacyContentResponse.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:sendMsgExecLegacyContentResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDepositResponse({ value, fee, memo }: sendMsgDepositResponseParams): Promise { + async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDepositResponse: 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.msgDepositResponse({ value: MsgDepositResponse.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:sendMsgDepositResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message) } }, - async sendVotingParams({ value, fee, memo }: sendVotingParamsParams): Promise { + async sendWeightedVoteOption({ value, fee, memo }: sendWeightedVoteOptionParams): Promise { if (!signer) { - throw new Error('TxClient:sendVotingParams: 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.votingParams({ value: VotingParams.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:sendVotingParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendWeightedVoteOption: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: 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.params({ value: Params.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:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise { + async sendMsgExecLegacyContent({ value, fee, memo }: sendMsgExecLegacyContentParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposal: 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.msgSubmitProposal({ value: MsgSubmitProposal.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:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgExecLegacyContent: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConstitutionRequest({ value, fee, memo }: sendQueryConstitutionRequestParams): Promise { + async sendQueryConstitutionResponse({ value, fee, memo }: sendQueryConstitutionResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConstitutionRequest: 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.queryConstitutionRequest({ value: QueryConstitutionRequest.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:sendQueryConstitutionRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConstitutionResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteWeightedResponse({ value, fee, memo }: sendMsgVoteWeightedResponseParams): Promise { + async sendMsgExecLegacyContentResponse({ value, fee, memo }: sendMsgExecLegacyContentResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteWeightedResponse: 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.msgVoteWeightedResponse({ value: MsgVoteWeightedResponse.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:sendMsgVoteWeightedResponse: 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 sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise { if (!signer) { - throw new Error('TxClient:sendDeposit: 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.deposit({ value: Deposit.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:sendDeposit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTallyResult: Could not broadcast Tx: '+ e.message) } }, - async sendDepositParams({ value, fee, memo }: sendDepositParamsParams): Promise { + async sendQueryDepositResponse({ value, fee, memo }: sendQueryDepositResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDepositParams: 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.depositParams({ value: DepositParams.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:sendDepositParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositResponse: Could not broadcast Tx: '+ e.message) } }, - async sendVote({ value, fee, memo }: sendVoteParams): Promise { + async sendMsgVoteWeightedResponse({ value, fee, memo }: sendMsgVoteWeightedResponseParams): Promise { + if (!signer) { + 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.msgVoteWeightedResponse({ value: MsgVoteWeightedResponse.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) + } + }, + + async sendMsgDepositResponse({ value, fee, memo }: sendMsgDepositResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendVote: 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.vote({ value: Vote.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:sendVote: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDepositResponse: Could not broadcast Tx: '+ e.message) } }, - queryProposalsRequest({ value }: queryProposalsRequestParams): EncodeObject { - try { - return { typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", value: QueryProposalsRequest.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:QueryProposalsRequest: Could not create message: ' + e.message) - } - }, - - queryVoteResponse({ value }: queryVoteResponseParams): EncodeObject { + tallyParams({ value }: tallyParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryVoteResponse", value: QueryVoteResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.TallyParams", value: TallyParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVoteResponse: Could not create message: ' + e.message) + throw new Error('TxClient:TallyParams: Could not create message: ' + e.message) } }, - queryDepositRequest({ value }: queryDepositRequestParams): EncodeObject { + msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryDepositRequest", value: QueryDepositRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDepositRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message) } }, - msgVote({ value }: msgVoteParams): EncodeObject { + queryConstitutionRequest({ value }: queryConstitutionRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgVote", value: MsgVote.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryConstitutionRequest", value: QueryConstitutionRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVote: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConstitutionRequest: Could not create message: ' + e.message) } }, - msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject { + queryVoteRequest({ value }: queryVoteRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryVoteRequest", value: QueryVoteRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVoteRequest: Could not create message: ' + e.message) } }, - weightedVoteOption({ value }: weightedVoteOptionParams): EncodeObject { + msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.WeightedVoteOption", value: WeightedVoteOption.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:WeightedVoteOption: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message) } }, - queryProposalsResponse({ value }: queryProposalsResponseParams): EncodeObject { + queryDepositRequest({ value }: queryDepositRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", value: QueryProposalsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryDepositRequest", value: QueryDepositRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositRequest: Could not create message: ' + e.message) } }, - queryDepositResponse({ value }: queryDepositResponseParams): EncodeObject { + queryDepositsRequest({ value }: queryDepositsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryDepositResponse", value: QueryDepositResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", value: QueryDepositsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDepositResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositsRequest: Could not create message: ' + e.message) } }, - msgDeposit({ value }: msgDepositParams): EncodeObject { + msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgDeposit", value: MsgDeposit.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgVoteResponse", value: MsgVoteResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message) } }, - tallyParams({ value }: tallyParamsParams): EncodeObject { + deposit({ value }: depositParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.TallyParams", value: TallyParams.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.Deposit", value: Deposit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TallyParams: Could not create message: ' + e.message) + throw new Error('TxClient:Deposit: Could not create message: ' + e.message) } }, - queryVotesResponse({ value }: queryVotesResponseParams): EncodeObject { + queryProposalsRequest({ value }: queryProposalsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryVotesResponse", value: QueryVotesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", value: QueryProposalsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalsRequest: Could not create message: ' + e.message) } }, - queryVoteRequest({ value }: queryVoteRequestParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryVoteRequest", value: QueryVoteRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVoteRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: 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) } }, - msgCancelProposal({ value }: msgCancelProposalParams): EncodeObject { + queryVoteResponse({ value }: queryVoteResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgCancelProposal", value: MsgCancelProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryVoteResponse", value: QueryVoteResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCancelProposal: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVoteResponse: Could not create message: ' + e.message) } }, - queryConstitutionResponse({ value }: queryConstitutionResponseParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryConstitutionResponse", value: QueryConstitutionResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConstitutionResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject { + depositParams({ value }: depositParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.DepositParams", value: DepositParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:DepositParams: Could not create message: ' + e.message) } }, @@ -1228,59 +1220,59 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgExecLegacyContent({ value }: msgExecLegacyContentParams): EncodeObject { + queryDepositsResponse({ value }: queryDepositsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", value: MsgExecLegacyContent.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", value: QueryDepositsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgExecLegacyContent: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositsResponse: Could not create message: ' + e.message) } }, - queryDepositsResponse({ value }: queryDepositsResponseParams): EncodeObject { + queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", value: QueryDepositsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.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) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryTallyResultResponse({ value }: queryTallyResultResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message) } }, - tallyResult({ value }: tallyResultParams): EncodeObject { + msgDeposit({ value }: msgDepositParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.TallyResult", value: TallyResult.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgDeposit", value: MsgDeposit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TallyResult: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message) } }, - queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject { + proposal({ value }: proposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryProposalRequest", value: QueryProposalRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.Proposal", value: Proposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Proposal: Could not create message: ' + e.message) } }, - msgCancelProposalResponse({ value }: msgCancelProposalResponseParams): EncodeObject { + queryProposalsResponse({ value }: queryProposalsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgCancelProposalResponse", value: MsgCancelProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", value: QueryProposalsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCancelProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalsResponse: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message) } }, @@ -1292,139 +1284,147 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryDepositsRequest({ value }: queryDepositsRequestParams): EncodeObject { + votingParams({ value }: votingParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", value: QueryDepositsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.VotingParams", value: VotingParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDepositsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:VotingParams: Could not create message: ' + e.message) } }, - proposal({ value }: proposalParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.Proposal", value: Proposal.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Proposal: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - queryVotesRequest({ value }: queryVotesRequestParams): EncodeObject { + queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryVotesRequest", value: QueryVotesRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryProposalRequest", value: QueryProposalRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message) } }, - queryTallyResultResponse({ value }: queryTallyResultResponseParams): EncodeObject { + msgCancelProposal({ value }: msgCancelProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgCancelProposal", value: MsgCancelProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCancelProposal: Could not create message: ' + e.message) } }, - msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject { + msgCancelProposalResponse({ value }: msgCancelProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgVoteResponse", value: MsgVoteResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgCancelProposalResponse", value: MsgCancelProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCancelProposalResponse: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + queryVotesRequest({ value }: queryVotesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryVotesRequest", value: QueryVotesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesRequest: Could not create message: ' + e.message) } }, - queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject { + queryVotesResponse({ value }: queryVotesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryVotesResponse", value: QueryVotesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesResponse: Could not create message: ' + e.message) } }, - msgExecLegacyContentResponse({ value }: msgExecLegacyContentResponseParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", value: MsgExecLegacyContentResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgExecLegacyContentResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - msgDepositResponse({ value }: msgDepositResponseParams): EncodeObject { + msgVote({ value }: msgVoteParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgDepositResponse", value: MsgDepositResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgVote", value: MsgVote.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDepositResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVote: Could not create message: ' + e.message) } }, - votingParams({ value }: votingParamsParams): EncodeObject { + weightedVoteOption({ value }: weightedVoteOptionParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.VotingParams", value: VotingParams.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.WeightedVoteOption", value: WeightedVoteOption.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:VotingParams: Could not create message: ' + e.message) + throw new Error('TxClient:WeightedVoteOption: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject { + msgExecLegacyContent({ value }: msgExecLegacyContentParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", value: MsgExecLegacyContent.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message) + throw new Error('TxClient:MsgExecLegacyContent: Could not create message: ' + e.message) } }, - queryConstitutionRequest({ value }: queryConstitutionRequestParams): EncodeObject { + queryConstitutionResponse({ value }: queryConstitutionResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.QueryConstitutionRequest", value: QueryConstitutionRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryConstitutionResponse", value: QueryConstitutionResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConstitutionRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConstitutionResponse: Could not create message: ' + e.message) } }, - msgVoteWeightedResponse({ value }: msgVoteWeightedResponseParams): EncodeObject { + msgExecLegacyContentResponse({ value }: msgExecLegacyContentResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", value: MsgVoteWeightedResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", value: MsgExecLegacyContentResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteWeightedResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgExecLegacyContentResponse: Could not create message: ' + e.message) } }, - deposit({ value }: depositParams): EncodeObject { + tallyResult({ value }: tallyResultParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.Deposit", value: Deposit.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.TallyResult", value: TallyResult.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Deposit: Could not create message: ' + e.message) + throw new Error('TxClient:TallyResult: Could not create message: ' + e.message) } }, - depositParams({ value }: depositParamsParams): EncodeObject { + queryDepositResponse({ value }: queryDepositResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.DepositParams", value: DepositParams.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.QueryDepositResponse", value: QueryDepositResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DepositParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositResponse: Could not create message: ' + e.message) } }, - vote({ value }: voteParams): EncodeObject { + msgVoteWeightedResponse({ value }: msgVoteWeightedResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1.Vote", value: Vote.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", value: MsgVoteWeightedResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Vote: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteWeightedResponse: Could not create message: ' + e.message) + } + }, + + msgDepositResponse({ value }: msgDepositResponseParams): EncodeObject { + try { + return { typeUrl: "/cosmos.gov.v1.MsgDepositResponse", value: MsgDepositResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:MsgDepositResponse: 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 7fb3cf966..2c4345a0a 100755 --- a/ts-client/cosmos.gov.v1/registry.ts +++ b/ts-client/cosmos.gov.v1/registry.ts @@ -1,90 +1,90 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { QueryProposalsRequest } from "./types/cosmos/gov/v1/query"; -import { QueryVoteResponse } from "./types/cosmos/gov/v1/query"; -import { QueryDepositRequest } from "./types/cosmos/gov/v1/query"; -import { MsgVote } from "./types/cosmos/gov/v1/tx"; -import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx"; -import { WeightedVoteOption } from "./types/cosmos/gov/v1/gov"; -import { QueryProposalsResponse } from "./types/cosmos/gov/v1/query"; -import { QueryDepositResponse } from "./types/cosmos/gov/v1/query"; -import { MsgDeposit } from "./types/cosmos/gov/v1/tx"; import { TallyParams } from "./types/cosmos/gov/v1/gov"; -import { QueryVotesResponse } from "./types/cosmos/gov/v1/query"; +import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx"; +import { QueryConstitutionRequest } from "./types/cosmos/gov/v1/query"; import { QueryVoteRequest } from "./types/cosmos/gov/v1/query"; -import { QueryParamsRequest } from "./types/cosmos/gov/v1/query"; -import { MsgCancelProposal } from "./types/cosmos/gov/v1/tx"; -import { QueryConstitutionResponse } from "./types/cosmos/gov/v1/query"; import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1/tx"; -import { QueryProposalResponse } from "./types/cosmos/gov/v1/query"; -import { MsgExecLegacyContent } from "./types/cosmos/gov/v1/tx"; -import { QueryDepositsResponse } from "./types/cosmos/gov/v1/query"; -import { GenesisState } from "./types/cosmos/gov/v1/genesis"; -import { TallyResult } from "./types/cosmos/gov/v1/gov"; -import { QueryProposalRequest } from "./types/cosmos/gov/v1/query"; -import { MsgCancelProposalResponse } from "./types/cosmos/gov/v1/tx"; -import { QueryParamsResponse } from "./types/cosmos/gov/v1/query"; -import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx"; +import { QueryDepositRequest } from "./types/cosmos/gov/v1/query"; import { QueryDepositsRequest } from "./types/cosmos/gov/v1/query"; -import { Proposal } from "./types/cosmos/gov/v1/gov"; -import { QueryVotesRequest } from "./types/cosmos/gov/v1/query"; -import { QueryTallyResultResponse } from "./types/cosmos/gov/v1/query"; import { MsgVoteResponse } from "./types/cosmos/gov/v1/tx"; +import { Deposit } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalsRequest } from "./types/cosmos/gov/v1/query"; import { MsgUpdateParamsResponse } from "./types/cosmos/gov/v1/tx"; +import { Vote } from "./types/cosmos/gov/v1/gov"; +import { QueryVoteResponse } from "./types/cosmos/gov/v1/query"; +import { QueryParamsResponse } from "./types/cosmos/gov/v1/query"; +import { DepositParams } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalResponse } from "./types/cosmos/gov/v1/query"; +import { QueryDepositsResponse } from "./types/cosmos/gov/v1/query"; import { QueryTallyResultRequest } from "./types/cosmos/gov/v1/query"; -import { MsgExecLegacyContentResponse } from "./types/cosmos/gov/v1/tx"; -import { MsgDepositResponse } from "./types/cosmos/gov/v1/tx"; +import { QueryTallyResultResponse } from "./types/cosmos/gov/v1/query"; +import { MsgDeposit } from "./types/cosmos/gov/v1/tx"; +import { Proposal } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalsResponse } from "./types/cosmos/gov/v1/query"; +import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx"; +import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx"; import { VotingParams } from "./types/cosmos/gov/v1/gov"; import { Params } from "./types/cosmos/gov/v1/gov"; -import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx"; -import { QueryConstitutionRequest } from "./types/cosmos/gov/v1/query"; +import { QueryProposalRequest } from "./types/cosmos/gov/v1/query"; +import { MsgCancelProposal } from "./types/cosmos/gov/v1/tx"; +import { MsgCancelProposalResponse } from "./types/cosmos/gov/v1/tx"; +import { QueryVotesRequest } from "./types/cosmos/gov/v1/query"; +import { QueryVotesResponse } from "./types/cosmos/gov/v1/query"; +import { QueryParamsRequest } from "./types/cosmos/gov/v1/query"; +import { MsgVote } from "./types/cosmos/gov/v1/tx"; +import { WeightedVoteOption } from "./types/cosmos/gov/v1/gov"; +import { GenesisState } from "./types/cosmos/gov/v1/genesis"; +import { MsgExecLegacyContent } from "./types/cosmos/gov/v1/tx"; +import { QueryConstitutionResponse } from "./types/cosmos/gov/v1/query"; +import { MsgExecLegacyContentResponse } from "./types/cosmos/gov/v1/tx"; +import { TallyResult } from "./types/cosmos/gov/v1/gov"; +import { QueryDepositResponse } from "./types/cosmos/gov/v1/query"; import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1/tx"; -import { Deposit } from "./types/cosmos/gov/v1/gov"; -import { DepositParams } from "./types/cosmos/gov/v1/gov"; -import { Vote } from "./types/cosmos/gov/v1/gov"; +import { MsgDepositResponse } from "./types/cosmos/gov/v1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.gov.v1.QueryProposalsRequest", QueryProposalsRequest], - ["/cosmos.gov.v1.QueryVoteResponse", QueryVoteResponse], - ["/cosmos.gov.v1.QueryDepositRequest", QueryDepositRequest], - ["/cosmos.gov.v1.MsgVote", MsgVote], - ["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted], - ["/cosmos.gov.v1.WeightedVoteOption", WeightedVoteOption], - ["/cosmos.gov.v1.QueryProposalsResponse", QueryProposalsResponse], - ["/cosmos.gov.v1.QueryDepositResponse", QueryDepositResponse], - ["/cosmos.gov.v1.MsgDeposit", MsgDeposit], ["/cosmos.gov.v1.TallyParams", TallyParams], - ["/cosmos.gov.v1.QueryVotesResponse", QueryVotesResponse], + ["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal], + ["/cosmos.gov.v1.QueryConstitutionRequest", QueryConstitutionRequest], ["/cosmos.gov.v1.QueryVoteRequest", QueryVoteRequest], - ["/cosmos.gov.v1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.gov.v1.MsgCancelProposal", MsgCancelProposal], - ["/cosmos.gov.v1.QueryConstitutionResponse", QueryConstitutionResponse], ["/cosmos.gov.v1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], - ["/cosmos.gov.v1.QueryProposalResponse", QueryProposalResponse], - ["/cosmos.gov.v1.MsgExecLegacyContent", MsgExecLegacyContent], - ["/cosmos.gov.v1.QueryDepositsResponse", QueryDepositsResponse], - ["/cosmos.gov.v1.GenesisState", GenesisState], - ["/cosmos.gov.v1.TallyResult", TallyResult], - ["/cosmos.gov.v1.QueryProposalRequest", QueryProposalRequest], - ["/cosmos.gov.v1.MsgCancelProposalResponse", MsgCancelProposalResponse], - ["/cosmos.gov.v1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.gov.v1.MsgUpdateParams", MsgUpdateParams], + ["/cosmos.gov.v1.QueryDepositRequest", QueryDepositRequest], ["/cosmos.gov.v1.QueryDepositsRequest", QueryDepositsRequest], - ["/cosmos.gov.v1.Proposal", Proposal], - ["/cosmos.gov.v1.QueryVotesRequest", QueryVotesRequest], - ["/cosmos.gov.v1.QueryTallyResultResponse", QueryTallyResultResponse], ["/cosmos.gov.v1.MsgVoteResponse", MsgVoteResponse], + ["/cosmos.gov.v1.Deposit", Deposit], + ["/cosmos.gov.v1.QueryProposalsRequest", QueryProposalsRequest], ["/cosmos.gov.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.gov.v1.Vote", Vote], + ["/cosmos.gov.v1.QueryVoteResponse", QueryVoteResponse], + ["/cosmos.gov.v1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.gov.v1.DepositParams", DepositParams], + ["/cosmos.gov.v1.QueryProposalResponse", QueryProposalResponse], + ["/cosmos.gov.v1.QueryDepositsResponse", QueryDepositsResponse], ["/cosmos.gov.v1.QueryTallyResultRequest", QueryTallyResultRequest], - ["/cosmos.gov.v1.MsgExecLegacyContentResponse", MsgExecLegacyContentResponse], - ["/cosmos.gov.v1.MsgDepositResponse", MsgDepositResponse], + ["/cosmos.gov.v1.QueryTallyResultResponse", QueryTallyResultResponse], + ["/cosmos.gov.v1.MsgDeposit", MsgDeposit], + ["/cosmos.gov.v1.Proposal", Proposal], + ["/cosmos.gov.v1.QueryProposalsResponse", QueryProposalsResponse], + ["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted], + ["/cosmos.gov.v1.MsgUpdateParams", MsgUpdateParams], ["/cosmos.gov.v1.VotingParams", VotingParams], ["/cosmos.gov.v1.Params", Params], - ["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal], - ["/cosmos.gov.v1.QueryConstitutionRequest", QueryConstitutionRequest], + ["/cosmos.gov.v1.QueryProposalRequest", QueryProposalRequest], + ["/cosmos.gov.v1.MsgCancelProposal", MsgCancelProposal], + ["/cosmos.gov.v1.MsgCancelProposalResponse", MsgCancelProposalResponse], + ["/cosmos.gov.v1.QueryVotesRequest", QueryVotesRequest], + ["/cosmos.gov.v1.QueryVotesResponse", QueryVotesResponse], + ["/cosmos.gov.v1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.gov.v1.MsgVote", MsgVote], + ["/cosmos.gov.v1.WeightedVoteOption", WeightedVoteOption], + ["/cosmos.gov.v1.GenesisState", GenesisState], + ["/cosmos.gov.v1.MsgExecLegacyContent", MsgExecLegacyContent], + ["/cosmos.gov.v1.QueryConstitutionResponse", QueryConstitutionResponse], + ["/cosmos.gov.v1.MsgExecLegacyContentResponse", MsgExecLegacyContentResponse], + ["/cosmos.gov.v1.TallyResult", TallyResult], + ["/cosmos.gov.v1.QueryDepositResponse", QueryDepositResponse], ["/cosmos.gov.v1.MsgVoteWeightedResponse", MsgVoteWeightedResponse], - ["/cosmos.gov.v1.Deposit", Deposit], - ["/cosmos.gov.v1.DepositParams", DepositParams], - ["/cosmos.gov.v1.Vote", Vote], + ["/cosmos.gov.v1.MsgDepositResponse", MsgDepositResponse], ]; diff --git a/ts-client/cosmos.gov.v1beta1/module.ts b/ts-client/cosmos.gov.v1beta1/module.ts index 3d6d84ac4..c60b135a4 100755 --- a/ts-client/cosmos.gov.v1beta1/module.ts +++ b/ts-client/cosmos.gov.v1beta1/module.ts @@ -6,76 +6,76 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgVoteResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { WeightedVoteOption } from "./types/cosmos/gov/v1beta1/gov"; -import { Deposit } from "./types/cosmos/gov/v1beta1/gov"; -import { TallyResult } from "./types/cosmos/gov/v1beta1/gov"; -import { VotingParams } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryVotesRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryDepositsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { GenesisState } from "./types/cosmos/gov/v1beta1/genesis"; +import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx"; import { QueryProposalRequest } from "./types/cosmos/gov/v1beta1/query"; import { QueryParamsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { Vote } from "./types/cosmos/gov/v1beta1/gov"; +import { VotingParams } from "./types/cosmos/gov/v1beta1/gov"; +import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryProposalsResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryVotesResponse } from "./types/cosmos/gov/v1beta1/query"; +import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryProposalResponse } from "./types/cosmos/gov/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryTallyResultRequest } from "./types/cosmos/gov/v1beta1/query"; -import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryTallyResultResponse } from "./types/cosmos/gov/v1beta1/query"; +import { Proposal } from "./types/cosmos/gov/v1beta1/gov"; +import { MsgDepositResponse } from "./types/cosmos/gov/v1beta1/tx"; import { QueryVoteRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryTallyResultRequest } from "./types/cosmos/gov/v1beta1/query"; +import { TallyResult } from "./types/cosmos/gov/v1beta1/gov"; +import { WeightedVoteOption } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryProposalsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { Deposit } from "./types/cosmos/gov/v1beta1/gov"; import { QueryVoteResponse } from "./types/cosmos/gov/v1beta1/query"; -import { Vote } from "./types/cosmos/gov/v1beta1/gov"; -import { TallyParams } from "./types/cosmos/gov/v1beta1/gov"; -import { GenesisState } from "./types/cosmos/gov/v1beta1/genesis"; -import { QueryDepositsResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryTallyResultResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositResponse } from "./types/cosmos/gov/v1beta1/query"; -import { TextProposal } from "./types/cosmos/gov/v1beta1/gov"; import { DepositParams } from "./types/cosmos/gov/v1beta1/gov"; -import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgDepositResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryProposalResponse } from "./types/cosmos/gov/v1beta1/query"; +import { TextProposal } from "./types/cosmos/gov/v1beta1/gov"; import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryDepositResponse } from "./types/cosmos/gov/v1beta1/query"; +import { TallyParams } from "./types/cosmos/gov/v1beta1/gov"; +import { MsgVoteResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryDepositsResponse } from "./types/cosmos/gov/v1beta1/query"; +import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryVotesRequest } from "./types/cosmos/gov/v1beta1/query"; import { QueryDepositRequest } from "./types/cosmos/gov/v1beta1/query"; -import { Proposal } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryProposalsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryProposalsResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryVotesResponse } from "./types/cosmos/gov/v1beta1/query"; -export { MsgVote, MsgVoteResponse, MsgVoteWeightedResponse, WeightedVoteOption, Deposit, TallyResult, VotingParams, QueryVotesRequest, QueryProposalRequest, QueryParamsRequest, QueryDepositsRequest, QueryParamsResponse, QueryTallyResultRequest, MsgVoteWeighted, QueryVoteRequest, QueryVoteResponse, Vote, TallyParams, GenesisState, QueryDepositsResponse, QueryTallyResultResponse, QueryDepositResponse, TextProposal, DepositParams, MsgDeposit, MsgDepositResponse, QueryProposalResponse, MsgSubmitProposal, MsgSubmitProposalResponse, QueryDepositRequest, Proposal, QueryProposalsRequest, QueryProposalsResponse, QueryVotesResponse }; +export { QueryDepositsRequest, GenesisState, MsgVoteWeighted, QueryProposalRequest, QueryParamsRequest, Vote, VotingParams, MsgDeposit, QueryProposalsResponse, QueryVotesResponse, MsgSubmitProposalResponse, MsgVote, QueryProposalResponse, QueryParamsResponse, QueryTallyResultResponse, Proposal, MsgDepositResponse, QueryVoteRequest, QueryTallyResultRequest, TallyResult, WeightedVoteOption, QueryProposalsRequest, Deposit, QueryVoteResponse, DepositParams, TextProposal, MsgSubmitProposal, QueryDepositResponse, TallyParams, MsgVoteResponse, QueryDepositsResponse, MsgVoteWeightedResponse, QueryVotesRequest, QueryDepositRequest }; -type sendMsgVoteParams = { - value: MsgVote, +type sendQueryDepositsRequestParams = { + value: QueryDepositsRequest, fee?: StdFee, memo?: string }; -type sendMsgVoteResponseParams = { - value: MsgVoteResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendMsgVoteWeightedResponseParams = { - value: MsgVoteWeightedResponse, +type sendMsgVoteWeightedParams = { + value: MsgVoteWeighted, fee?: StdFee, memo?: string }; -type sendWeightedVoteOptionParams = { - value: WeightedVoteOption, +type sendQueryProposalRequestParams = { + value: QueryProposalRequest, fee?: StdFee, memo?: string }; -type sendDepositParams = { - value: Deposit, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendTallyResultParams = { - value: TallyResult, +type sendVoteParams = { + value: Vote, fee?: StdFee, memo?: string }; @@ -86,303 +86,303 @@ type sendVotingParamsParams = { memo?: string }; -type sendQueryVotesRequestParams = { - value: QueryVotesRequest, +type sendMsgDepositParams = { + value: MsgDeposit, fee?: StdFee, memo?: string }; -type sendQueryProposalRequestParams = { - value: QueryProposalRequest, +type sendQueryProposalsResponseParams = { + value: QueryProposalsResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendQueryVotesResponseParams = { + value: QueryVotesResponse, fee?: StdFee, memo?: string }; -type sendQueryDepositsRequestParams = { - value: QueryDepositsRequest, +type sendMsgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendMsgVoteParams = { + value: MsgVote, fee?: StdFee, memo?: string }; -type sendQueryTallyResultRequestParams = { - value: QueryTallyResultRequest, +type sendQueryProposalResponseParams = { + value: QueryProposalResponse, fee?: StdFee, memo?: string }; -type sendMsgVoteWeightedParams = { - value: MsgVoteWeighted, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryVoteRequestParams = { - value: QueryVoteRequest, +type sendQueryTallyResultResponseParams = { + value: QueryTallyResultResponse, fee?: StdFee, memo?: string }; -type sendQueryVoteResponseParams = { - value: QueryVoteResponse, +type sendProposalParams = { + value: Proposal, fee?: StdFee, memo?: string }; -type sendVoteParams = { - value: Vote, +type sendMsgDepositResponseParams = { + value: MsgDepositResponse, fee?: StdFee, memo?: string }; -type sendTallyParamsParams = { - value: TallyParams, +type sendQueryVoteRequestParams = { + value: QueryVoteRequest, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryTallyResultRequestParams = { + value: QueryTallyResultRequest, fee?: StdFee, memo?: string }; -type sendQueryDepositsResponseParams = { - value: QueryDepositsResponse, +type sendTallyResultParams = { + value: TallyResult, fee?: StdFee, memo?: string }; -type sendQueryTallyResultResponseParams = { - value: QueryTallyResultResponse, +type sendWeightedVoteOptionParams = { + value: WeightedVoteOption, fee?: StdFee, memo?: string }; -type sendQueryDepositResponseParams = { - value: QueryDepositResponse, +type sendQueryProposalsRequestParams = { + value: QueryProposalsRequest, fee?: StdFee, memo?: string }; -type sendTextProposalParams = { - value: TextProposal, +type sendDepositParams = { + value: Deposit, fee?: StdFee, memo?: string }; -type sendDepositParamsParams = { - value: DepositParams, +type sendQueryVoteResponseParams = { + value: QueryVoteResponse, fee?: StdFee, memo?: string }; -type sendMsgDepositParams = { - value: MsgDeposit, +type sendDepositParamsParams = { + value: DepositParams, fee?: StdFee, memo?: string }; -type sendMsgDepositResponseParams = { - value: MsgDepositResponse, +type sendTextProposalParams = { + value: TextProposal, fee?: StdFee, memo?: string }; -type sendQueryProposalResponseParams = { - value: QueryProposalResponse, +type sendMsgSubmitProposalParams = { + value: MsgSubmitProposal, fee?: StdFee, memo?: string }; -type sendMsgSubmitProposalParams = { - value: MsgSubmitProposal, +type sendQueryDepositResponseParams = { + value: QueryDepositResponse, fee?: StdFee, memo?: string }; -type sendMsgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse, +type sendTallyParamsParams = { + value: TallyParams, fee?: StdFee, memo?: string }; -type sendQueryDepositRequestParams = { - value: QueryDepositRequest, +type sendMsgVoteResponseParams = { + value: MsgVoteResponse, fee?: StdFee, memo?: string }; -type sendProposalParams = { - value: Proposal, +type sendQueryDepositsResponseParams = { + value: QueryDepositsResponse, fee?: StdFee, memo?: string }; -type sendQueryProposalsRequestParams = { - value: QueryProposalsRequest, +type sendMsgVoteWeightedResponseParams = { + value: MsgVoteWeightedResponse, fee?: StdFee, memo?: string }; -type sendQueryProposalsResponseParams = { - value: QueryProposalsResponse, +type sendQueryVotesRequestParams = { + value: QueryVotesRequest, fee?: StdFee, memo?: string }; -type sendQueryVotesResponseParams = { - value: QueryVotesResponse, +type sendQueryDepositRequestParams = { + value: QueryDepositRequest, fee?: StdFee, memo?: string }; -type msgVoteParams = { - value: MsgVote, +type queryDepositsRequestParams = { + value: QueryDepositsRequest, }; -type msgVoteResponseParams = { - value: MsgVoteResponse, +type genesisStateParams = { + value: GenesisState, }; -type msgVoteWeightedResponseParams = { - value: MsgVoteWeightedResponse, +type msgVoteWeightedParams = { + value: MsgVoteWeighted, }; -type weightedVoteOptionParams = { - value: WeightedVoteOption, +type queryProposalRequestParams = { + value: QueryProposalRequest, }; -type depositParams = { - value: Deposit, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; -type tallyResultParams = { - value: TallyResult, +type voteParams = { + value: Vote, }; type votingParamsParams = { value: VotingParams, }; -type queryVotesRequestParams = { - value: QueryVotesRequest, -}; - -type queryProposalRequestParams = { - value: QueryProposalRequest, +type msgDepositParams = { + value: MsgDeposit, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type queryProposalsResponseParams = { + value: QueryProposalsResponse, }; -type queryDepositsRequestParams = { - value: QueryDepositsRequest, +type queryVotesResponseParams = { + value: QueryVotesResponse, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type msgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse, }; -type queryTallyResultRequestParams = { - value: QueryTallyResultRequest, +type msgVoteParams = { + value: MsgVote, }; -type msgVoteWeightedParams = { - value: MsgVoteWeighted, +type queryProposalResponseParams = { + value: QueryProposalResponse, }; -type queryVoteRequestParams = { - value: QueryVoteRequest, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type queryVoteResponseParams = { - value: QueryVoteResponse, +type queryTallyResultResponseParams = { + value: QueryTallyResultResponse, }; -type voteParams = { - value: Vote, +type proposalParams = { + value: Proposal, }; -type tallyParamsParams = { - value: TallyParams, +type msgDepositResponseParams = { + value: MsgDepositResponse, }; -type genesisStateParams = { - value: GenesisState, +type queryVoteRequestParams = { + value: QueryVoteRequest, }; -type queryDepositsResponseParams = { - value: QueryDepositsResponse, +type queryTallyResultRequestParams = { + value: QueryTallyResultRequest, }; -type queryTallyResultResponseParams = { - value: QueryTallyResultResponse, +type tallyResultParams = { + value: TallyResult, }; -type queryDepositResponseParams = { - value: QueryDepositResponse, +type weightedVoteOptionParams = { + value: WeightedVoteOption, }; -type textProposalParams = { - value: TextProposal, +type queryProposalsRequestParams = { + value: QueryProposalsRequest, }; -type depositParamsParams = { - value: DepositParams, +type depositParams = { + value: Deposit, }; -type msgDepositParams = { - value: MsgDeposit, +type queryVoteResponseParams = { + value: QueryVoteResponse, }; -type msgDepositResponseParams = { - value: MsgDepositResponse, +type depositParamsParams = { + value: DepositParams, }; -type queryProposalResponseParams = { - value: QueryProposalResponse, +type textProposalParams = { + value: TextProposal, }; type msgSubmitProposalParams = { value: MsgSubmitProposal, }; -type msgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse, +type queryDepositResponseParams = { + value: QueryDepositResponse, }; -type queryDepositRequestParams = { - value: QueryDepositRequest, +type tallyParamsParams = { + value: TallyParams, }; -type proposalParams = { - value: Proposal, +type msgVoteResponseParams = { + value: MsgVoteResponse, }; -type queryProposalsRequestParams = { - value: QueryProposalsRequest, +type queryDepositsResponseParams = { + value: QueryDepositsResponse, }; -type queryProposalsResponseParams = { - value: QueryProposalsResponse, +type msgVoteWeightedResponseParams = { + value: MsgVoteWeightedResponse, }; -type queryVotesResponseParams = { - value: QueryVotesResponse, +type queryVotesRequestParams = { + value: QueryVotesRequest, +}; + +type queryDepositRequestParams = { + value: QueryDepositRequest, }; @@ -415,87 +415,87 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise { + async sendQueryDepositsRequest({ value, fee, memo }: sendQueryDepositsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVote: 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.msgVote({ value: MsgVote.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:sendMsgVote: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteResponse: 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.msgVoteResponse({ value: MsgVoteResponse.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:sendMsgVoteResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteWeightedResponse({ value, fee, memo }: sendMsgVoteWeightedResponseParams): Promise { + async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteWeightedResponse: 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.msgVoteWeightedResponse({ value: MsgVoteWeightedResponse.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:sendMsgVoteWeightedResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message) } }, - async sendWeightedVoteOption({ value, fee, memo }: sendWeightedVoteOptionParams): Promise { + async sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendWeightedVoteOption: 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.weightedVoteOption({ value: WeightedVoteOption.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:sendWeightedVoteOption: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalRequest: Could not broadcast Tx: '+ e.message) } }, - async sendDeposit({ value, fee, memo }: sendDepositParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendDeposit: 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.deposit({ value: Deposit.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:sendDeposit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise { + async sendVote({ value, fee, memo }: sendVoteParams): Promise { if (!signer) { - throw new Error('TxClient:sendTallyResult: 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.tallyResult({ value: TallyResult.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:sendTallyResult: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendVote: Could not broadcast Tx: '+ e.message) } }, @@ -513,430 +513,430 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryVotesRequest({ value, fee, memo }: sendQueryVotesRequestParams): Promise { + async sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesRequest: 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.queryVotesRequest({ value: QueryVotesRequest.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:sendQueryVotesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise { + async sendQueryProposalsResponse({ value, fee, memo }: sendQueryProposalsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalRequest: 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.queryProposalRequest({ value: QueryProposalRequest.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:sendQueryProposalRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendQueryVotesResponse({ value, fee, memo }: sendQueryVotesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: 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.queryParamsRequest({ value: QueryParamsRequest.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:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVotesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDepositsRequest({ value, fee, memo }: sendQueryDepositsRequestParams): Promise { + async sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDepositsRequest: 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.queryDepositsRequest({ value: QueryDepositsRequest.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:sendQueryDepositsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitProposalResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: 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.queryParamsResponse({ value: QueryParamsResponse.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:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTallyResultRequest({ value, fee, memo }: sendQueryTallyResultRequestParams): Promise { + async sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultRequest: 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.queryTallyResultRequest({ value: QueryTallyResultRequest.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:sendQueryTallyResultRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteWeighted: 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.msgVoteWeighted({ value: MsgVoteWeighted.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:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVoteRequest({ value, fee, memo }: sendQueryVoteRequestParams): Promise { + async sendQueryTallyResultResponse({ value, fee, memo }: sendQueryTallyResultResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVoteRequest: 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.queryVoteRequest({ value: QueryVoteRequest.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:sendQueryVoteRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTallyResultResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVoteResponse({ value, fee, memo }: sendQueryVoteResponseParams): Promise { + async sendProposal({ value, fee, memo }: sendProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVoteResponse: 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.queryVoteResponse({ value: QueryVoteResponse.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:sendQueryVoteResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendProposal: Could not broadcast Tx: '+ e.message) } }, - async sendVote({ value, fee, memo }: sendVoteParams): Promise { + async sendMsgDepositResponse({ value, fee, memo }: sendMsgDepositResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendVote: 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.vote({ value: Vote.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:sendVote: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDepositResponse: Could not broadcast Tx: '+ e.message) } }, - async sendTallyParams({ value, fee, memo }: sendTallyParamsParams): Promise { + async sendQueryVoteRequest({ value, fee, memo }: sendQueryVoteRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendTallyParams: 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.tallyParams({ value: TallyParams.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:sendTallyParams: 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 sendQueryTallyResultRequest({ value, fee, memo }: sendQueryTallyResultRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.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:sendGenesisState: 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 sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDepositsResponse: 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.queryDepositsResponse({ value: QueryDepositsResponse.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:sendQueryDepositsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTallyResult: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTallyResultResponse({ value, fee, memo }: sendQueryTallyResultResponseParams): Promise { + async sendWeightedVoteOption({ value, fee, memo }: sendWeightedVoteOptionParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultResponse: 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.queryTallyResultResponse({ value: QueryTallyResultResponse.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:sendQueryTallyResultResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendWeightedVoteOption: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDepositResponse({ value, fee, memo }: sendQueryDepositResponseParams): Promise { + async sendQueryProposalsRequest({ value, fee, memo }: sendQueryProposalsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDepositResponse: 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.queryDepositResponse({ value: QueryDepositResponse.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:sendQueryDepositResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendTextProposal({ value, fee, memo }: sendTextProposalParams): Promise { + async sendDeposit({ value, fee, memo }: sendDepositParams): Promise { if (!signer) { - throw new Error('TxClient:sendTextProposal: 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.textProposal({ value: TextProposal.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:sendTextProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDeposit: Could not broadcast Tx: '+ e.message) } }, - async sendDepositParams({ value, fee, memo }: sendDepositParamsParams): Promise { + async sendQueryVoteResponse({ value, fee, memo }: sendQueryVoteResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDepositParams: 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.depositParams({ value: DepositParams.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:sendDepositParams: 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 sendDepositParams({ value, fee, memo }: sendDepositParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDeposit: 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.msgDeposit({ value: MsgDeposit.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:sendMsgDeposit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDepositParams: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDepositResponse({ value, fee, memo }: sendMsgDepositResponseParams): Promise { + async sendTextProposal({ value, fee, memo }: sendTextProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDepositResponse: 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.msgDepositResponse({ value: MsgDepositResponse.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:sendMsgDepositResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTextProposal: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise { + async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalResponse: 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.queryProposalResponse({ value: QueryProposalResponse.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:sendQueryProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise { + async sendQueryDepositResponse({ value, fee, memo }: sendQueryDepositResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposal: 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.msgSubmitProposal({ value: MsgSubmitProposal.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:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise { + async sendTallyParams({ value, fee, memo }: sendTallyParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposalResponse: 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.msgSubmitProposalResponse({ value: MsgSubmitProposalResponse.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:sendMsgSubmitProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTallyParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDepositRequest({ value, fee, memo }: sendQueryDepositRequestParams): Promise { + async sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDepositRequest: 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.queryDepositRequest({ value: QueryDepositRequest.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:sendQueryDepositRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteResponse: Could not broadcast Tx: '+ e.message) } }, - async sendProposal({ value, fee, memo }: sendProposalParams): Promise { + async sendQueryDepositsResponse({ value, fee, memo }: sendQueryDepositsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendProposal: 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.proposal({ value: Proposal.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:sendProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalsRequest({ value, fee, memo }: sendQueryProposalsRequestParams): Promise { + async sendMsgVoteWeightedResponse({ value, fee, memo }: sendMsgVoteWeightedResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalsRequest: 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.queryProposalsRequest({ value: QueryProposalsRequest.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:sendQueryProposalsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteWeightedResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalsResponse({ value, fee, memo }: sendQueryProposalsResponseParams): Promise { + async sendQueryVotesRequest({ value, fee, memo }: sendQueryVotesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalsResponse: 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.queryProposalsResponse({ value: QueryProposalsResponse.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:sendQueryProposalsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVotesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVotesResponse({ value, fee, memo }: sendQueryVotesResponseParams): Promise { + async sendQueryDepositRequest({ value, fee, memo }: sendQueryDepositRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesResponse: 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.queryVotesResponse({ value: QueryVotesResponse.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:sendQueryVotesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDepositRequest: Could not broadcast Tx: '+ e.message) } }, - msgVote({ value }: msgVoteParams): EncodeObject { + queryDepositsRequest({ value }: queryDepositsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: MsgVote.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", value: QueryDepositsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVote: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositsRequest: Could not create message: ' + e.message) } }, - msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", value: MsgVoteResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - msgVoteWeightedResponse({ value }: msgVoteWeightedResponseParams): EncodeObject { + msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", value: MsgVoteWeightedResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteWeightedResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message) } }, - weightedVoteOption({ value }: weightedVoteOptionParams): EncodeObject { + queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", value: WeightedVoteOption.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", value: QueryProposalRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:WeightedVoteOption: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message) } }, - deposit({ value }: depositParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.Deposit", value: Deposit.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Deposit: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - tallyResult({ value }: tallyResultParams): EncodeObject { + vote({ value }: voteParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.TallyResult", value: TallyResult.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.Vote", value: Vote.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TallyResult: Could not create message: ' + e.message) + throw new Error('TxClient:Vote: Could not create message: ' + e.message) } }, @@ -948,219 +948,219 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryVotesRequest({ value }: queryVotesRequestParams): EncodeObject { + msgDeposit({ value }: msgDepositParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", value: QueryVotesRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: MsgDeposit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message) } }, - queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject { + queryProposalsResponse({ value }: queryProposalsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", value: QueryProposalRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", value: QueryProposalsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalsResponse: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + queryVotesResponse({ value }: queryVotesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", value: QueryVotesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesResponse: Could not create message: ' + e.message) } }, - queryDepositsRequest({ value }: queryDepositsRequestParams): EncodeObject { + msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", value: QueryDepositsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDepositsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + msgVote({ value }: msgVoteParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: MsgVote.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVote: Could not create message: ' + e.message) } }, - queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject { + queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", value: QueryProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message) } }, - msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - queryVoteRequest({ value }: queryVoteRequestParams): EncodeObject { + queryTallyResultResponse({ value }: queryTallyResultResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", value: QueryVoteRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVoteRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message) } }, - queryVoteResponse({ value }: queryVoteResponseParams): EncodeObject { + proposal({ value }: proposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", value: QueryVoteResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.Proposal", value: Proposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVoteResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Proposal: Could not create message: ' + e.message) } }, - vote({ value }: voteParams): EncodeObject { + msgDepositResponse({ value }: msgDepositResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.Vote", value: Vote.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", value: MsgDepositResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Vote: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDepositResponse: Could not create message: ' + e.message) } }, - tallyParams({ value }: tallyParamsParams): EncodeObject { + queryVoteRequest({ value }: queryVoteRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.TallyParams", value: TallyParams.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", value: QueryVoteRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TallyParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVoteRequest: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message) } }, - queryDepositsResponse({ value }: queryDepositsResponseParams): EncodeObject { + tallyResult({ value }: tallyResultParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", value: QueryDepositsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.TallyResult", value: TallyResult.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDepositsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:TallyResult: Could not create message: ' + e.message) } }, - queryTallyResultResponse({ value }: queryTallyResultResponseParams): EncodeObject { + weightedVoteOption({ value }: weightedVoteOptionParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", value: WeightedVoteOption.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message) + throw new Error('TxClient:WeightedVoteOption: Could not create message: ' + e.message) } }, - queryDepositResponse({ value }: queryDepositResponseParams): EncodeObject { + queryProposalsRequest({ value }: queryProposalsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", value: QueryDepositResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", value: QueryProposalsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDepositResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalsRequest: Could not create message: ' + e.message) } }, - textProposal({ value }: textProposalParams): EncodeObject { + deposit({ value }: depositParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.TextProposal", value: TextProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.Deposit", value: Deposit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TextProposal: Could not create message: ' + e.message) + throw new Error('TxClient:Deposit: Could not create message: ' + e.message) } }, - depositParams({ value }: depositParamsParams): EncodeObject { + queryVoteResponse({ value }: queryVoteResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.DepositParams", value: DepositParams.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", value: QueryVoteResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DepositParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVoteResponse: Could not create message: ' + e.message) } }, - msgDeposit({ value }: msgDepositParams): EncodeObject { + depositParams({ value }: depositParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: MsgDeposit.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.DepositParams", value: DepositParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message) + throw new Error('TxClient:DepositParams: Could not create message: ' + e.message) } }, - msgDepositResponse({ value }: msgDepositResponseParams): EncodeObject { + textProposal({ value }: textProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", value: MsgDepositResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.TextProposal", value: TextProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDepositResponse: Could not create message: ' + e.message) + throw new Error('TxClient:TextProposal: Could not create message: ' + e.message) } }, - queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject { + msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", value: QueryProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message) } }, - msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject { + queryDepositResponse({ value }: queryDepositResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", value: QueryDepositResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositResponse: Could not create message: ' + e.message) } }, - msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject { + tallyParams({ value }: tallyParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.TallyParams", value: TallyParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:TallyParams: Could not create message: ' + e.message) } }, - queryDepositRequest({ value }: queryDepositRequestParams): EncodeObject { + msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", value: QueryDepositRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", value: MsgVoteResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDepositRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message) } }, - proposal({ value }: proposalParams): EncodeObject { + queryDepositsResponse({ value }: queryDepositsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.Proposal", value: Proposal.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", value: QueryDepositsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Proposal: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositsResponse: Could not create message: ' + e.message) } }, - queryProposalsRequest({ value }: queryProposalsRequestParams): EncodeObject { + msgVoteWeightedResponse({ value }: msgVoteWeightedResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", value: QueryProposalsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", value: MsgVoteWeightedResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteWeightedResponse: Could not create message: ' + e.message) } }, - queryProposalsResponse({ value }: queryProposalsResponseParams): EncodeObject { + queryVotesRequest({ value }: queryVotesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", value: QueryProposalsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", value: QueryVotesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesRequest: Could not create message: ' + e.message) } }, - queryVotesResponse({ value }: queryVotesResponseParams): EncodeObject { + queryDepositRequest({ value }: queryDepositRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", value: QueryVotesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", value: QueryDepositRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDepositRequest: 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 8f1883165..624d3873e 100755 --- a/ts-client/cosmos.gov.v1beta1/registry.ts +++ b/ts-client/cosmos.gov.v1beta1/registry.ts @@ -1,74 +1,74 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgVoteResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { WeightedVoteOption } from "./types/cosmos/gov/v1beta1/gov"; -import { Deposit } from "./types/cosmos/gov/v1beta1/gov"; -import { TallyResult } from "./types/cosmos/gov/v1beta1/gov"; -import { VotingParams } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryVotesRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryDepositsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { GenesisState } from "./types/cosmos/gov/v1beta1/genesis"; +import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx"; import { QueryProposalRequest } from "./types/cosmos/gov/v1beta1/query"; import { QueryParamsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { Vote } from "./types/cosmos/gov/v1beta1/gov"; +import { VotingParams } from "./types/cosmos/gov/v1beta1/gov"; +import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryProposalsResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryVotesResponse } from "./types/cosmos/gov/v1beta1/query"; +import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryProposalResponse } from "./types/cosmos/gov/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryTallyResultRequest } from "./types/cosmos/gov/v1beta1/query"; -import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryTallyResultResponse } from "./types/cosmos/gov/v1beta1/query"; +import { Proposal } from "./types/cosmos/gov/v1beta1/gov"; +import { MsgDepositResponse } from "./types/cosmos/gov/v1beta1/tx"; import { QueryVoteRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryTallyResultRequest } from "./types/cosmos/gov/v1beta1/query"; +import { TallyResult } from "./types/cosmos/gov/v1beta1/gov"; +import { WeightedVoteOption } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryProposalsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { Deposit } from "./types/cosmos/gov/v1beta1/gov"; import { QueryVoteResponse } from "./types/cosmos/gov/v1beta1/query"; -import { Vote } from "./types/cosmos/gov/v1beta1/gov"; -import { TallyParams } from "./types/cosmos/gov/v1beta1/gov"; -import { GenesisState } from "./types/cosmos/gov/v1beta1/genesis"; -import { QueryDepositsResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryTallyResultResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositResponse } from "./types/cosmos/gov/v1beta1/query"; -import { TextProposal } from "./types/cosmos/gov/v1beta1/gov"; import { DepositParams } from "./types/cosmos/gov/v1beta1/gov"; -import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgDepositResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryProposalResponse } from "./types/cosmos/gov/v1beta1/query"; +import { TextProposal } from "./types/cosmos/gov/v1beta1/gov"; import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryDepositResponse } from "./types/cosmos/gov/v1beta1/query"; +import { TallyParams } from "./types/cosmos/gov/v1beta1/gov"; +import { MsgVoteResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryDepositsResponse } from "./types/cosmos/gov/v1beta1/query"; +import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryVotesRequest } from "./types/cosmos/gov/v1beta1/query"; import { QueryDepositRequest } from "./types/cosmos/gov/v1beta1/query"; -import { Proposal } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryProposalsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryProposalsResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryVotesResponse } from "./types/cosmos/gov/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.gov.v1beta1.MsgVote", MsgVote], - ["/cosmos.gov.v1beta1.MsgVoteResponse", MsgVoteResponse], - ["/cosmos.gov.v1beta1.MsgVoteWeightedResponse", MsgVoteWeightedResponse], - ["/cosmos.gov.v1beta1.WeightedVoteOption", WeightedVoteOption], - ["/cosmos.gov.v1beta1.Deposit", Deposit], - ["/cosmos.gov.v1beta1.TallyResult", TallyResult], - ["/cosmos.gov.v1beta1.VotingParams", VotingParams], - ["/cosmos.gov.v1beta1.QueryVotesRequest", QueryVotesRequest], + ["/cosmos.gov.v1beta1.QueryDepositsRequest", QueryDepositsRequest], + ["/cosmos.gov.v1beta1.GenesisState", GenesisState], + ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted], ["/cosmos.gov.v1beta1.QueryProposalRequest", QueryProposalRequest], ["/cosmos.gov.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.gov.v1beta1.QueryDepositsRequest", QueryDepositsRequest], + ["/cosmos.gov.v1beta1.Vote", Vote], + ["/cosmos.gov.v1beta1.VotingParams", VotingParams], + ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit], + ["/cosmos.gov.v1beta1.QueryProposalsResponse", QueryProposalsResponse], + ["/cosmos.gov.v1beta1.QueryVotesResponse", QueryVotesResponse], + ["/cosmos.gov.v1beta1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], + ["/cosmos.gov.v1beta1.MsgVote", MsgVote], + ["/cosmos.gov.v1beta1.QueryProposalResponse", QueryProposalResponse], ["/cosmos.gov.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.gov.v1beta1.QueryTallyResultRequest", QueryTallyResultRequest], - ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted], + ["/cosmos.gov.v1beta1.QueryTallyResultResponse", QueryTallyResultResponse], + ["/cosmos.gov.v1beta1.Proposal", Proposal], + ["/cosmos.gov.v1beta1.MsgDepositResponse", MsgDepositResponse], ["/cosmos.gov.v1beta1.QueryVoteRequest", QueryVoteRequest], + ["/cosmos.gov.v1beta1.QueryTallyResultRequest", QueryTallyResultRequest], + ["/cosmos.gov.v1beta1.TallyResult", TallyResult], + ["/cosmos.gov.v1beta1.WeightedVoteOption", WeightedVoteOption], + ["/cosmos.gov.v1beta1.QueryProposalsRequest", QueryProposalsRequest], + ["/cosmos.gov.v1beta1.Deposit", Deposit], ["/cosmos.gov.v1beta1.QueryVoteResponse", QueryVoteResponse], - ["/cosmos.gov.v1beta1.Vote", Vote], - ["/cosmos.gov.v1beta1.TallyParams", TallyParams], - ["/cosmos.gov.v1beta1.GenesisState", GenesisState], - ["/cosmos.gov.v1beta1.QueryDepositsResponse", QueryDepositsResponse], - ["/cosmos.gov.v1beta1.QueryTallyResultResponse", QueryTallyResultResponse], - ["/cosmos.gov.v1beta1.QueryDepositResponse", QueryDepositResponse], - ["/cosmos.gov.v1beta1.TextProposal", TextProposal], ["/cosmos.gov.v1beta1.DepositParams", DepositParams], - ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit], - ["/cosmos.gov.v1beta1.MsgDepositResponse", MsgDepositResponse], - ["/cosmos.gov.v1beta1.QueryProposalResponse", QueryProposalResponse], + ["/cosmos.gov.v1beta1.TextProposal", TextProposal], ["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal], - ["/cosmos.gov.v1beta1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], + ["/cosmos.gov.v1beta1.QueryDepositResponse", QueryDepositResponse], + ["/cosmos.gov.v1beta1.TallyParams", TallyParams], + ["/cosmos.gov.v1beta1.MsgVoteResponse", MsgVoteResponse], + ["/cosmos.gov.v1beta1.QueryDepositsResponse", QueryDepositsResponse], + ["/cosmos.gov.v1beta1.MsgVoteWeightedResponse", MsgVoteWeightedResponse], + ["/cosmos.gov.v1beta1.QueryVotesRequest", QueryVotesRequest], ["/cosmos.gov.v1beta1.QueryDepositRequest", QueryDepositRequest], - ["/cosmos.gov.v1beta1.Proposal", Proposal], - ["/cosmos.gov.v1beta1.QueryProposalsRequest", QueryProposalsRequest], - ["/cosmos.gov.v1beta1.QueryProposalsResponse", QueryProposalsResponse], - ["/cosmos.gov.v1beta1.QueryVotesResponse", QueryVotesResponse], ]; diff --git a/ts-client/cosmos.group.v1/module.ts b/ts-client/cosmos.group.v1/module.ts index f642792cc..bfa30160f 100755 --- a/ts-client/cosmos.group.v1/module.ts +++ b/ts-client/cosmos.group.v1/module.ts @@ -6,126 +6,126 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx"; -import { EventUpdateGroupPolicy } from "./types/cosmos/group/v1/events"; -import { EventLeaveGroup } from "./types/cosmos/group/v1/events"; -import { QueryProposalsByGroupPolicyResponse } from "./types/cosmos/group/v1/query"; -import { QueryVotesByVoterRequest } from "./types/cosmos/group/v1/query"; -import { DecisionPolicyWindows } from "./types/cosmos/group/v1/types"; -import { Proposal } from "./types/cosmos/group/v1/types"; -import { Vote } from "./types/cosmos/group/v1/types"; -import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx"; -import { MsgExecResponse } from "./types/cosmos/group/v1/tx"; -import { GroupMember } from "./types/cosmos/group/v1/types"; -import { MsgCreateGroupPolicyResponse } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupPolicyMetadataResponse } from "./types/cosmos/group/v1/tx"; -import { GroupInfo } from "./types/cosmos/group/v1/types"; -import { QueryGroupInfoResponse } from "./types/cosmos/group/v1/query"; -import { QueryGroupPoliciesByAdminRequest } from "./types/cosmos/group/v1/query"; -import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx"; -import { MsgWithdrawProposalResponse } from "./types/cosmos/group/v1/tx"; -import { QueryGroupsRequest } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPoliciesByAdminResponse } from "./types/cosmos/group/v1/query"; -import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx"; import { TallyResult } from "./types/cosmos/group/v1/types"; -import { EventVote } from "./types/cosmos/group/v1/events"; -import { QueryGroupMembersRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupPoliciesByGroupResponse } from "./types/cosmos/group/v1/query"; +import { EventUpdateGroup } from "./types/cosmos/group/v1/events"; +import { EventSubmitProposal } from "./types/cosmos/group/v1/events"; +import { EventWithdrawProposal } from "./types/cosmos/group/v1/events"; +import { QueryGroupInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupPolicyInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupPoliciesByAdminRequest } from "./types/cosmos/group/v1/query"; +import { Vote } from "./types/cosmos/group/v1/types"; +import { QueryVotesByProposalResponse } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroupWithPolicyResponse } from "./types/cosmos/group/v1/tx"; +import { MsgVoteResponse } from "./types/cosmos/group/v1/tx"; +import { QueryVoteByProposalVoterRequest } from "./types/cosmos/group/v1/query"; import { QueryVoteByProposalVoterResponse } from "./types/cosmos/group/v1/query"; -import { MsgCreateGroupResponse } from "./types/cosmos/group/v1/tx"; +import { QueryVotesByProposalRequest } from "./types/cosmos/group/v1/query"; import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx"; -import { EventSubmitProposal } from "./types/cosmos/group/v1/events"; -import { QueryGroupsByAdminRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupMetadataResponse } from "./types/cosmos/group/v1/tx"; +import { Member } from "./types/cosmos/group/v1/types"; +import { QueryProposalRequest } from "./types/cosmos/group/v1/query"; import { QueryGroupPoliciesByGroupRequest } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx"; -import { MsgCreateGroup } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupMembersResponse } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx"; import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx"; -import { EventWithdrawProposal } from "./types/cosmos/group/v1/events"; -import { QueryGroupsByAdminResponse } from "./types/cosmos/group/v1/query"; -import { QueryProposalResponse } from "./types/cosmos/group/v1/query"; -import { QueryProposalRequest } from "./types/cosmos/group/v1/query"; -import { Member } from "./types/cosmos/group/v1/types"; +import { MsgUpdateGroupMembersResponse } from "./types/cosmos/group/v1/tx"; +import { MsgExecResponse } from "./types/cosmos/group/v1/tx"; +import { MemberRequest } from "./types/cosmos/group/v1/types"; import { ThresholdDecisionPolicy } from "./types/cosmos/group/v1/types"; -import { PercentageDecisionPolicy } from "./types/cosmos/group/v1/types"; -import { EventUpdateGroup } from "./types/cosmos/group/v1/events"; -import { EventCreateGroupPolicy } from "./types/cosmos/group/v1/events"; -import { QueryGroupMembersResponse } from "./types/cosmos/group/v1/query"; +import { EventExec } from "./types/cosmos/group/v1/events"; +import { QueryProposalsByGroupPolicyRequest } from "./types/cosmos/group/v1/query"; import { QueryTallyResultResponse } from "./types/cosmos/group/v1/query"; -import { MsgCreateGroupWithPolicyResponse } from "./types/cosmos/group/v1/tx"; -import { MemberRequest } from "./types/cosmos/group/v1/types"; -import { EventCreateGroup } from "./types/cosmos/group/v1/events"; +import { MsgCreateGroupPolicyResponse } from "./types/cosmos/group/v1/tx"; import { MsgUpdateGroupPolicyDecisionPolicyResponse } from "./types/cosmos/group/v1/tx"; -import { GenesisState } from "./types/cosmos/group/v1/genesis"; -import { MsgVote } from "./types/cosmos/group/v1/tx"; +import { EventCreateGroup } from "./types/cosmos/group/v1/events"; +import { EventProposalPruned } from "./types/cosmos/group/v1/events"; +import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx"; +import { EventVote } from "./types/cosmos/group/v1/events"; +import { EventUpdateGroupPolicy } from "./types/cosmos/group/v1/events"; +import { EventLeaveGroup } from "./types/cosmos/group/v1/events"; import { MsgUpdateGroupAdminResponse } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupMetadataResponse } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupPolicyAdminResponse } from "./types/cosmos/group/v1/tx"; +import { MsgExec } from "./types/cosmos/group/v1/tx"; +import { GroupInfo } from "./types/cosmos/group/v1/types"; +import { QueryGroupsByAdminRequest } from "./types/cosmos/group/v1/query"; +import { QueryVotesByVoterRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx"; +import { GroupMember } from "./types/cosmos/group/v1/types"; +import { QueryGroupPoliciesByAdminResponse } from "./types/cosmos/group/v1/query"; +import { EventCreateGroupPolicy } from "./types/cosmos/group/v1/events"; +import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx"; +import { GenesisState } from "./types/cosmos/group/v1/genesis"; +import { MsgCreateGroupResponse } from "./types/cosmos/group/v1/tx"; import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx"; import { GroupPolicyInfo } from "./types/cosmos/group/v1/types"; -import { QueryVoteByProposalVoterRequest } from "./types/cosmos/group/v1/query"; -import { QueryVotesByProposalResponse } from "./types/cosmos/group/v1/query"; -import { QueryVotesByVoterResponse } from "./types/cosmos/group/v1/query"; +import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx"; +import { MsgCreateGroup } from "./types/cosmos/group/v1/tx"; import { QueryTallyResultRequest } from "./types/cosmos/group/v1/query"; -import { MsgSubmitProposalResponse } from "./types/cosmos/group/v1/tx"; -import { MsgVoteResponse } from "./types/cosmos/group/v1/tx"; -import { MsgExec } from "./types/cosmos/group/v1/tx"; -import { EventExec } from "./types/cosmos/group/v1/events"; -import { QueryProposalsByGroupPolicyRequest } from "./types/cosmos/group/v1/query"; -import { QueryVotesByProposalRequest } from "./types/cosmos/group/v1/query"; +import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx"; +import { DecisionPolicyWindows } from "./types/cosmos/group/v1/types"; +import { QueryGroupMembersResponse } from "./types/cosmos/group/v1/query"; +import { QueryVotesByVoterResponse } from "./types/cosmos/group/v1/query"; import { QueryGroupsByMemberRequest } from "./types/cosmos/group/v1/query"; -import { EventProposalPruned } from "./types/cosmos/group/v1/events"; -import { QueryGroupInfoRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupPolicyInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupsRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx"; +import { MsgWithdrawProposalResponse } from "./types/cosmos/group/v1/tx"; +import { QueryProposalResponse } from "./types/cosmos/group/v1/query"; +import { MsgSubmitProposalResponse } from "./types/cosmos/group/v1/tx"; import { QueryGroupsByMemberResponse } from "./types/cosmos/group/v1/query"; -import { QueryGroupsResponse } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx"; +import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupPolicyMetadataResponse } from "./types/cosmos/group/v1/tx"; +import { QueryProposalsByGroupPolicyResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupInfoResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupMembersRequest } from "./types/cosmos/group/v1/query"; import { MsgLeaveGroupResponse } from "./types/cosmos/group/v1/tx"; +import { PercentageDecisionPolicy } from "./types/cosmos/group/v1/types"; import { QueryGroupPolicyInfoResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupsResponse } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupPolicyAdminResponse } from "./types/cosmos/group/v1/tx"; +import { MsgVote } from "./types/cosmos/group/v1/tx"; +import { QueryGroupPoliciesByGroupResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByAdminResponse } from "./types/cosmos/group/v1/query"; +import { Proposal } from "./types/cosmos/group/v1/types"; -export { MsgCreateGroupWithPolicy, EventUpdateGroupPolicy, EventLeaveGroup, QueryProposalsByGroupPolicyResponse, QueryVotesByVoterRequest, DecisionPolicyWindows, Proposal, Vote, MsgWithdrawProposal, MsgExecResponse, GroupMember, MsgCreateGroupPolicyResponse, MsgUpdateGroupPolicyMetadataResponse, GroupInfo, QueryGroupInfoResponse, QueryGroupPoliciesByAdminRequest, MsgCreateGroupPolicy, MsgWithdrawProposalResponse, QueryGroupsRequest, MsgUpdateGroupAdmin, QueryGroupPoliciesByAdminResponse, MsgSubmitProposal, TallyResult, EventVote, QueryGroupMembersRequest, QueryGroupPoliciesByGroupResponse, QueryVoteByProposalVoterResponse, MsgCreateGroupResponse, MsgUpdateGroupMetadata, EventSubmitProposal, QueryGroupsByAdminRequest, QueryGroupPoliciesByGroupRequest, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyMetadata, MsgCreateGroup, MsgUpdateGroupMembersResponse, MsgUpdateGroupPolicyDecisionPolicy, EventWithdrawProposal, QueryGroupsByAdminResponse, QueryProposalResponse, QueryProposalRequest, Member, ThresholdDecisionPolicy, PercentageDecisionPolicy, EventUpdateGroup, EventCreateGroupPolicy, QueryGroupMembersResponse, QueryTallyResultResponse, MsgCreateGroupWithPolicyResponse, MemberRequest, EventCreateGroup, MsgUpdateGroupPolicyDecisionPolicyResponse, GenesisState, MsgVote, MsgUpdateGroupAdminResponse, MsgUpdateGroupMetadataResponse, MsgUpdateGroupPolicyAdminResponse, MsgLeaveGroup, GroupPolicyInfo, QueryVoteByProposalVoterRequest, QueryVotesByProposalResponse, QueryVotesByVoterResponse, QueryTallyResultRequest, MsgSubmitProposalResponse, MsgVoteResponse, MsgExec, EventExec, QueryProposalsByGroupPolicyRequest, QueryVotesByProposalRequest, QueryGroupsByMemberRequest, EventProposalPruned, QueryGroupInfoRequest, QueryGroupPolicyInfoRequest, QueryGroupsByMemberResponse, QueryGroupsResponse, MsgUpdateGroupMembers, MsgLeaveGroupResponse, QueryGroupPolicyInfoResponse }; +export { TallyResult, EventUpdateGroup, EventSubmitProposal, EventWithdrawProposal, QueryGroupInfoRequest, QueryGroupPolicyInfoRequest, QueryGroupPoliciesByAdminRequest, Vote, QueryVotesByProposalResponse, MsgCreateGroupWithPolicyResponse, MsgVoteResponse, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponse, QueryVotesByProposalRequest, MsgUpdateGroupMetadata, MsgUpdateGroupMetadataResponse, Member, QueryProposalRequest, QueryGroupPoliciesByGroupRequest, MsgUpdateGroupAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupMembersResponse, MsgExecResponse, MemberRequest, ThresholdDecisionPolicy, EventExec, QueryProposalsByGroupPolicyRequest, QueryTallyResultResponse, MsgCreateGroupPolicyResponse, MsgUpdateGroupPolicyDecisionPolicyResponse, EventCreateGroup, EventProposalPruned, MsgUpdateGroupPolicyAdmin, EventVote, EventUpdateGroupPolicy, EventLeaveGroup, MsgUpdateGroupAdminResponse, MsgExec, GroupInfo, QueryGroupsByAdminRequest, QueryVotesByVoterRequest, MsgUpdateGroupMembers, GroupMember, QueryGroupPoliciesByAdminResponse, EventCreateGroupPolicy, MsgCreateGroupWithPolicy, GenesisState, MsgCreateGroupResponse, MsgLeaveGroup, GroupPolicyInfo, MsgSubmitProposal, MsgCreateGroup, QueryTallyResultRequest, MsgWithdrawProposal, DecisionPolicyWindows, QueryGroupMembersResponse, QueryVotesByVoterResponse, QueryGroupsByMemberRequest, QueryGroupsRequest, MsgUpdateGroupPolicyMetadata, MsgWithdrawProposalResponse, QueryProposalResponse, MsgSubmitProposalResponse, QueryGroupsByMemberResponse, MsgCreateGroupPolicy, MsgUpdateGroupPolicyMetadataResponse, QueryProposalsByGroupPolicyResponse, QueryGroupInfoResponse, QueryGroupMembersRequest, MsgLeaveGroupResponse, PercentageDecisionPolicy, QueryGroupPolicyInfoResponse, QueryGroupsResponse, MsgUpdateGroupPolicyAdminResponse, MsgVote, QueryGroupPoliciesByGroupResponse, QueryGroupsByAdminResponse, Proposal }; -type sendMsgCreateGroupWithPolicyParams = { - value: MsgCreateGroupWithPolicy, +type sendTallyResultParams = { + value: TallyResult, fee?: StdFee, memo?: string }; -type sendEventUpdateGroupPolicyParams = { - value: EventUpdateGroupPolicy, +type sendEventUpdateGroupParams = { + value: EventUpdateGroup, fee?: StdFee, memo?: string }; -type sendEventLeaveGroupParams = { - value: EventLeaveGroup, +type sendEventSubmitProposalParams = { + value: EventSubmitProposal, fee?: StdFee, memo?: string }; -type sendQueryProposalsByGroupPolicyResponseParams = { - value: QueryProposalsByGroupPolicyResponse, +type sendEventWithdrawProposalParams = { + value: EventWithdrawProposal, fee?: StdFee, memo?: string }; -type sendQueryVotesByVoterRequestParams = { - value: QueryVotesByVoterRequest, +type sendQueryGroupInfoRequestParams = { + value: QueryGroupInfoRequest, fee?: StdFee, memo?: string }; -type sendDecisionPolicyWindowsParams = { - value: DecisionPolicyWindows, +type sendQueryGroupPolicyInfoRequestParams = { + value: QueryGroupPolicyInfoRequest, fee?: StdFee, memo?: string }; -type sendProposalParams = { - value: Proposal, +type sendQueryGroupPoliciesByAdminRequestParams = { + value: QueryGroupPoliciesByAdminRequest, fee?: StdFee, memo?: string }; @@ -136,68 +136,68 @@ type sendVoteParams = { memo?: string }; -type sendMsgWithdrawProposalParams = { - value: MsgWithdrawProposal, +type sendQueryVotesByProposalResponseParams = { + value: QueryVotesByProposalResponse, fee?: StdFee, memo?: string }; -type sendMsgExecResponseParams = { - value: MsgExecResponse, +type sendMsgCreateGroupWithPolicyResponseParams = { + value: MsgCreateGroupWithPolicyResponse, fee?: StdFee, memo?: string }; -type sendGroupMemberParams = { - value: GroupMember, +type sendMsgVoteResponseParams = { + value: MsgVoteResponse, fee?: StdFee, memo?: string }; -type sendMsgCreateGroupPolicyResponseParams = { - value: MsgCreateGroupPolicyResponse, +type sendQueryVoteByProposalVoterRequestParams = { + value: QueryVoteByProposalVoterRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupPolicyMetadataResponseParams = { - value: MsgUpdateGroupPolicyMetadataResponse, +type sendQueryVoteByProposalVoterResponseParams = { + value: QueryVoteByProposalVoterResponse, fee?: StdFee, memo?: string }; -type sendGroupInfoParams = { - value: GroupInfo, +type sendQueryVotesByProposalRequestParams = { + value: QueryVotesByProposalRequest, fee?: StdFee, memo?: string }; -type sendQueryGroupInfoResponseParams = { - value: QueryGroupInfoResponse, +type sendMsgUpdateGroupMetadataParams = { + value: MsgUpdateGroupMetadata, fee?: StdFee, memo?: string }; -type sendQueryGroupPoliciesByAdminRequestParams = { - value: QueryGroupPoliciesByAdminRequest, +type sendMsgUpdateGroupMetadataResponseParams = { + value: MsgUpdateGroupMetadataResponse, fee?: StdFee, memo?: string }; -type sendMsgCreateGroupPolicyParams = { - value: MsgCreateGroupPolicy, +type sendMemberParams = { + value: Member, fee?: StdFee, memo?: string }; -type sendMsgWithdrawProposalResponseParams = { - value: MsgWithdrawProposalResponse, +type sendQueryProposalRequestParams = { + value: QueryProposalRequest, fee?: StdFee, memo?: string }; -type sendQueryGroupsRequestParams = { - value: QueryGroupsRequest, +type sendQueryGroupPoliciesByGroupRequestParams = { + value: QueryGroupPoliciesByGroupRequest, fee?: StdFee, memo?: string }; @@ -208,74 +208,74 @@ type sendMsgUpdateGroupAdminParams = { memo?: string }; -type sendQueryGroupPoliciesByAdminResponseParams = { - value: QueryGroupPoliciesByAdminResponse, +type sendMsgUpdateGroupPolicyDecisionPolicyParams = { + value: MsgUpdateGroupPolicyDecisionPolicy, fee?: StdFee, memo?: string }; -type sendMsgSubmitProposalParams = { - value: MsgSubmitProposal, +type sendMsgUpdateGroupMembersResponseParams = { + value: MsgUpdateGroupMembersResponse, fee?: StdFee, memo?: string }; -type sendTallyResultParams = { - value: TallyResult, +type sendMsgExecResponseParams = { + value: MsgExecResponse, fee?: StdFee, memo?: string }; -type sendEventVoteParams = { - value: EventVote, +type sendMemberRequestParams = { + value: MemberRequest, fee?: StdFee, memo?: string }; -type sendQueryGroupMembersRequestParams = { - value: QueryGroupMembersRequest, +type sendThresholdDecisionPolicyParams = { + value: ThresholdDecisionPolicy, fee?: StdFee, memo?: string }; -type sendQueryGroupPoliciesByGroupResponseParams = { - value: QueryGroupPoliciesByGroupResponse, +type sendEventExecParams = { + value: EventExec, fee?: StdFee, memo?: string }; -type sendQueryVoteByProposalVoterResponseParams = { - value: QueryVoteByProposalVoterResponse, +type sendQueryProposalsByGroupPolicyRequestParams = { + value: QueryProposalsByGroupPolicyRequest, fee?: StdFee, memo?: string }; -type sendMsgCreateGroupResponseParams = { - value: MsgCreateGroupResponse, +type sendQueryTallyResultResponseParams = { + value: QueryTallyResultResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupMetadataParams = { - value: MsgUpdateGroupMetadata, +type sendMsgCreateGroupPolicyResponseParams = { + value: MsgCreateGroupPolicyResponse, fee?: StdFee, memo?: string }; -type sendEventSubmitProposalParams = { - value: EventSubmitProposal, +type sendMsgUpdateGroupPolicyDecisionPolicyResponseParams = { + value: MsgUpdateGroupPolicyDecisionPolicyResponse, fee?: StdFee, memo?: string }; -type sendQueryGroupsByAdminRequestParams = { - value: QueryGroupsByAdminRequest, +type sendEventCreateGroupParams = { + value: EventCreateGroup, fee?: StdFee, memo?: string }; -type sendQueryGroupPoliciesByGroupRequestParams = { - value: QueryGroupPoliciesByGroupRequest, +type sendEventProposalPrunedParams = { + value: EventProposalPruned, fee?: StdFee, memo?: string }; @@ -286,74 +286,68 @@ type sendMsgUpdateGroupPolicyAdminParams = { memo?: string }; -type sendMsgUpdateGroupPolicyMetadataParams = { - value: MsgUpdateGroupPolicyMetadata, - fee?: StdFee, - memo?: string -}; - -type sendMsgCreateGroupParams = { - value: MsgCreateGroup, +type sendEventVoteParams = { + value: EventVote, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupMembersResponseParams = { - value: MsgUpdateGroupMembersResponse, +type sendEventUpdateGroupPolicyParams = { + value: EventUpdateGroupPolicy, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupPolicyDecisionPolicyParams = { - value: MsgUpdateGroupPolicyDecisionPolicy, +type sendEventLeaveGroupParams = { + value: EventLeaveGroup, fee?: StdFee, memo?: string }; -type sendEventWithdrawProposalParams = { - value: EventWithdrawProposal, +type sendMsgUpdateGroupAdminResponseParams = { + value: MsgUpdateGroupAdminResponse, fee?: StdFee, memo?: string }; -type sendQueryGroupsByAdminResponseParams = { - value: QueryGroupsByAdminResponse, +type sendMsgExecParams = { + value: MsgExec, fee?: StdFee, memo?: string }; -type sendQueryProposalResponseParams = { - value: QueryProposalResponse, +type sendGroupInfoParams = { + value: GroupInfo, fee?: StdFee, memo?: string }; -type sendQueryProposalRequestParams = { - value: QueryProposalRequest, +type sendQueryGroupsByAdminRequestParams = { + value: QueryGroupsByAdminRequest, fee?: StdFee, memo?: string }; -type sendMemberParams = { - value: Member, +type sendQueryVotesByVoterRequestParams = { + value: QueryVotesByVoterRequest, fee?: StdFee, memo?: string }; -type sendThresholdDecisionPolicyParams = { - value: ThresholdDecisionPolicy, +type sendMsgUpdateGroupMembersParams = { + value: MsgUpdateGroupMembers, fee?: StdFee, memo?: string }; -type sendPercentageDecisionPolicyParams = { - value: PercentageDecisionPolicy, +type sendGroupMemberParams = { + value: GroupMember, fee?: StdFee, memo?: string }; -type sendEventUpdateGroupParams = { - value: EventUpdateGroup, +type sendQueryGroupPoliciesByAdminResponseParams = { + value: QueryGroupPoliciesByAdminResponse, fee?: StdFee, memo?: string }; @@ -364,104 +358,104 @@ type sendEventCreateGroupPolicyParams = { memo?: string }; -type sendQueryGroupMembersResponseParams = { - value: QueryGroupMembersResponse, +type sendMsgCreateGroupWithPolicyParams = { + value: MsgCreateGroupWithPolicy, fee?: StdFee, memo?: string }; -type sendQueryTallyResultResponseParams = { - value: QueryTallyResultResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendMsgCreateGroupWithPolicyResponseParams = { - value: MsgCreateGroupWithPolicyResponse, +type sendMsgCreateGroupResponseParams = { + value: MsgCreateGroupResponse, fee?: StdFee, memo?: string }; -type sendMemberRequestParams = { - value: MemberRequest, +type sendMsgLeaveGroupParams = { + value: MsgLeaveGroup, fee?: StdFee, memo?: string }; -type sendEventCreateGroupParams = { - value: EventCreateGroup, +type sendGroupPolicyInfoParams = { + value: GroupPolicyInfo, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupPolicyDecisionPolicyResponseParams = { - value: MsgUpdateGroupPolicyDecisionPolicyResponse, +type sendMsgSubmitProposalParams = { + value: MsgSubmitProposal, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendMsgCreateGroupParams = { + value: MsgCreateGroup, fee?: StdFee, memo?: string }; -type sendMsgVoteParams = { - value: MsgVote, +type sendQueryTallyResultRequestParams = { + value: QueryTallyResultRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupAdminResponseParams = { - value: MsgUpdateGroupAdminResponse, +type sendMsgWithdrawProposalParams = { + value: MsgWithdrawProposal, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupMetadataResponseParams = { - value: MsgUpdateGroupMetadataResponse, +type sendDecisionPolicyWindowsParams = { + value: DecisionPolicyWindows, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupPolicyAdminResponseParams = { - value: MsgUpdateGroupPolicyAdminResponse, +type sendQueryGroupMembersResponseParams = { + value: QueryGroupMembersResponse, fee?: StdFee, memo?: string }; -type sendMsgLeaveGroupParams = { - value: MsgLeaveGroup, +type sendQueryVotesByVoterResponseParams = { + value: QueryVotesByVoterResponse, fee?: StdFee, memo?: string }; -type sendGroupPolicyInfoParams = { - value: GroupPolicyInfo, +type sendQueryGroupsByMemberRequestParams = { + value: QueryGroupsByMemberRequest, fee?: StdFee, memo?: string }; -type sendQueryVoteByProposalVoterRequestParams = { - value: QueryVoteByProposalVoterRequest, +type sendQueryGroupsRequestParams = { + value: QueryGroupsRequest, fee?: StdFee, memo?: string }; -type sendQueryVotesByProposalResponseParams = { - value: QueryVotesByProposalResponse, +type sendMsgUpdateGroupPolicyMetadataParams = { + value: MsgUpdateGroupPolicyMetadata, fee?: StdFee, memo?: string }; -type sendQueryVotesByVoterResponseParams = { - value: QueryVotesByVoterResponse, +type sendMsgWithdrawProposalResponseParams = { + value: MsgWithdrawProposalResponse, fee?: StdFee, memo?: string }; -type sendQueryTallyResultRequestParams = { - value: QueryTallyResultRequest, +type sendQueryProposalResponseParams = { + value: QueryProposalResponse, fee?: StdFee, memo?: string }; @@ -472,401 +466,407 @@ type sendMsgSubmitProposalResponseParams = { memo?: string }; -type sendMsgVoteResponseParams = { - value: MsgVoteResponse, +type sendQueryGroupsByMemberResponseParams = { + value: QueryGroupsByMemberResponse, fee?: StdFee, memo?: string }; -type sendMsgExecParams = { - value: MsgExec, +type sendMsgCreateGroupPolicyParams = { + value: MsgCreateGroupPolicy, fee?: StdFee, memo?: string }; -type sendEventExecParams = { - value: EventExec, +type sendMsgUpdateGroupPolicyMetadataResponseParams = { + value: MsgUpdateGroupPolicyMetadataResponse, fee?: StdFee, memo?: string }; -type sendQueryProposalsByGroupPolicyRequestParams = { - value: QueryProposalsByGroupPolicyRequest, +type sendQueryProposalsByGroupPolicyResponseParams = { + value: QueryProposalsByGroupPolicyResponse, fee?: StdFee, memo?: string }; -type sendQueryVotesByProposalRequestParams = { - value: QueryVotesByProposalRequest, +type sendQueryGroupInfoResponseParams = { + value: QueryGroupInfoResponse, fee?: StdFee, memo?: string }; -type sendQueryGroupsByMemberRequestParams = { - value: QueryGroupsByMemberRequest, +type sendQueryGroupMembersRequestParams = { + value: QueryGroupMembersRequest, fee?: StdFee, memo?: string }; -type sendEventProposalPrunedParams = { - value: EventProposalPruned, +type sendMsgLeaveGroupResponseParams = { + value: MsgLeaveGroupResponse, fee?: StdFee, memo?: string }; -type sendQueryGroupInfoRequestParams = { - value: QueryGroupInfoRequest, +type sendPercentageDecisionPolicyParams = { + value: PercentageDecisionPolicy, fee?: StdFee, memo?: string }; -type sendQueryGroupPolicyInfoRequestParams = { - value: QueryGroupPolicyInfoRequest, +type sendQueryGroupPolicyInfoResponseParams = { + value: QueryGroupPolicyInfoResponse, fee?: StdFee, memo?: string }; -type sendQueryGroupsByMemberResponseParams = { - value: QueryGroupsByMemberResponse, +type sendQueryGroupsResponseParams = { + value: QueryGroupsResponse, fee?: StdFee, memo?: string }; -type sendQueryGroupsResponseParams = { - value: QueryGroupsResponse, +type sendMsgUpdateGroupPolicyAdminResponseParams = { + value: MsgUpdateGroupPolicyAdminResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateGroupMembersParams = { - value: MsgUpdateGroupMembers, +type sendMsgVoteParams = { + value: MsgVote, fee?: StdFee, memo?: string }; -type sendMsgLeaveGroupResponseParams = { - value: MsgLeaveGroupResponse, +type sendQueryGroupPoliciesByGroupResponseParams = { + value: QueryGroupPoliciesByGroupResponse, fee?: StdFee, memo?: string }; -type sendQueryGroupPolicyInfoResponseParams = { - value: QueryGroupPolicyInfoResponse, +type sendQueryGroupsByAdminResponseParams = { + value: QueryGroupsByAdminResponse, fee?: StdFee, memo?: string }; +type sendProposalParams = { + value: Proposal, + fee?: StdFee, + memo?: string +}; -type msgCreateGroupWithPolicyParams = { - value: MsgCreateGroupWithPolicy, + +type tallyResultParams = { + value: TallyResult, }; -type eventUpdateGroupPolicyParams = { - value: EventUpdateGroupPolicy, +type eventUpdateGroupParams = { + value: EventUpdateGroup, }; -type eventLeaveGroupParams = { - value: EventLeaveGroup, +type eventSubmitProposalParams = { + value: EventSubmitProposal, }; -type queryProposalsByGroupPolicyResponseParams = { - value: QueryProposalsByGroupPolicyResponse, +type eventWithdrawProposalParams = { + value: EventWithdrawProposal, }; -type queryVotesByVoterRequestParams = { - value: QueryVotesByVoterRequest, +type queryGroupInfoRequestParams = { + value: QueryGroupInfoRequest, }; -type decisionPolicyWindowsParams = { - value: DecisionPolicyWindows, +type queryGroupPolicyInfoRequestParams = { + value: QueryGroupPolicyInfoRequest, }; -type proposalParams = { - value: Proposal, +type queryGroupPoliciesByAdminRequestParams = { + value: QueryGroupPoliciesByAdminRequest, }; type voteParams = { value: Vote, }; -type msgWithdrawProposalParams = { - value: MsgWithdrawProposal, +type queryVotesByProposalResponseParams = { + value: QueryVotesByProposalResponse, }; -type msgExecResponseParams = { - value: MsgExecResponse, +type msgCreateGroupWithPolicyResponseParams = { + value: MsgCreateGroupWithPolicyResponse, }; -type groupMemberParams = { - value: GroupMember, +type msgVoteResponseParams = { + value: MsgVoteResponse, }; -type msgCreateGroupPolicyResponseParams = { - value: MsgCreateGroupPolicyResponse, +type queryVoteByProposalVoterRequestParams = { + value: QueryVoteByProposalVoterRequest, }; -type msgUpdateGroupPolicyMetadataResponseParams = { - value: MsgUpdateGroupPolicyMetadataResponse, +type queryVoteByProposalVoterResponseParams = { + value: QueryVoteByProposalVoterResponse, }; -type groupInfoParams = { - value: GroupInfo, +type queryVotesByProposalRequestParams = { + value: QueryVotesByProposalRequest, }; -type queryGroupInfoResponseParams = { - value: QueryGroupInfoResponse, +type msgUpdateGroupMetadataParams = { + value: MsgUpdateGroupMetadata, }; -type queryGroupPoliciesByAdminRequestParams = { - value: QueryGroupPoliciesByAdminRequest, +type msgUpdateGroupMetadataResponseParams = { + value: MsgUpdateGroupMetadataResponse, }; -type msgCreateGroupPolicyParams = { - value: MsgCreateGroupPolicy, +type memberParams = { + value: Member, }; -type msgWithdrawProposalResponseParams = { - value: MsgWithdrawProposalResponse, +type queryProposalRequestParams = { + value: QueryProposalRequest, }; -type queryGroupsRequestParams = { - value: QueryGroupsRequest, +type queryGroupPoliciesByGroupRequestParams = { + value: QueryGroupPoliciesByGroupRequest, }; type msgUpdateGroupAdminParams = { value: MsgUpdateGroupAdmin, }; -type queryGroupPoliciesByAdminResponseParams = { - value: QueryGroupPoliciesByAdminResponse, +type msgUpdateGroupPolicyDecisionPolicyParams = { + value: MsgUpdateGroupPolicyDecisionPolicy, }; -type msgSubmitProposalParams = { - value: MsgSubmitProposal, +type msgUpdateGroupMembersResponseParams = { + value: MsgUpdateGroupMembersResponse, }; -type tallyResultParams = { - value: TallyResult, +type msgExecResponseParams = { + value: MsgExecResponse, }; -type eventVoteParams = { - value: EventVote, +type memberRequestParams = { + value: MemberRequest, }; -type queryGroupMembersRequestParams = { - value: QueryGroupMembersRequest, +type thresholdDecisionPolicyParams = { + value: ThresholdDecisionPolicy, }; -type queryGroupPoliciesByGroupResponseParams = { - value: QueryGroupPoliciesByGroupResponse, +type eventExecParams = { + value: EventExec, }; -type queryVoteByProposalVoterResponseParams = { - value: QueryVoteByProposalVoterResponse, +type queryProposalsByGroupPolicyRequestParams = { + value: QueryProposalsByGroupPolicyRequest, }; -type msgCreateGroupResponseParams = { - value: MsgCreateGroupResponse, +type queryTallyResultResponseParams = { + value: QueryTallyResultResponse, }; -type msgUpdateGroupMetadataParams = { - value: MsgUpdateGroupMetadata, +type msgCreateGroupPolicyResponseParams = { + value: MsgCreateGroupPolicyResponse, }; -type eventSubmitProposalParams = { - value: EventSubmitProposal, +type msgUpdateGroupPolicyDecisionPolicyResponseParams = { + value: MsgUpdateGroupPolicyDecisionPolicyResponse, }; -type queryGroupsByAdminRequestParams = { - value: QueryGroupsByAdminRequest, +type eventCreateGroupParams = { + value: EventCreateGroup, }; -type queryGroupPoliciesByGroupRequestParams = { - value: QueryGroupPoliciesByGroupRequest, +type eventProposalPrunedParams = { + value: EventProposalPruned, }; type msgUpdateGroupPolicyAdminParams = { value: MsgUpdateGroupPolicyAdmin, }; -type msgUpdateGroupPolicyMetadataParams = { - value: MsgUpdateGroupPolicyMetadata, -}; - -type msgCreateGroupParams = { - value: MsgCreateGroup, +type eventVoteParams = { + value: EventVote, }; -type msgUpdateGroupMembersResponseParams = { - value: MsgUpdateGroupMembersResponse, +type eventUpdateGroupPolicyParams = { + value: EventUpdateGroupPolicy, }; -type msgUpdateGroupPolicyDecisionPolicyParams = { - value: MsgUpdateGroupPolicyDecisionPolicy, +type eventLeaveGroupParams = { + value: EventLeaveGroup, }; -type eventWithdrawProposalParams = { - value: EventWithdrawProposal, +type msgUpdateGroupAdminResponseParams = { + value: MsgUpdateGroupAdminResponse, }; -type queryGroupsByAdminResponseParams = { - value: QueryGroupsByAdminResponse, +type msgExecParams = { + value: MsgExec, }; -type queryProposalResponseParams = { - value: QueryProposalResponse, +type groupInfoParams = { + value: GroupInfo, }; -type queryProposalRequestParams = { - value: QueryProposalRequest, +type queryGroupsByAdminRequestParams = { + value: QueryGroupsByAdminRequest, }; -type memberParams = { - value: Member, +type queryVotesByVoterRequestParams = { + value: QueryVotesByVoterRequest, }; -type thresholdDecisionPolicyParams = { - value: ThresholdDecisionPolicy, +type msgUpdateGroupMembersParams = { + value: MsgUpdateGroupMembers, }; -type percentageDecisionPolicyParams = { - value: PercentageDecisionPolicy, +type groupMemberParams = { + value: GroupMember, }; -type eventUpdateGroupParams = { - value: EventUpdateGroup, +type queryGroupPoliciesByAdminResponseParams = { + value: QueryGroupPoliciesByAdminResponse, }; type eventCreateGroupPolicyParams = { value: EventCreateGroupPolicy, }; -type queryGroupMembersResponseParams = { - value: QueryGroupMembersResponse, +type msgCreateGroupWithPolicyParams = { + value: MsgCreateGroupWithPolicy, }; -type queryTallyResultResponseParams = { - value: QueryTallyResultResponse, +type genesisStateParams = { + value: GenesisState, }; -type msgCreateGroupWithPolicyResponseParams = { - value: MsgCreateGroupWithPolicyResponse, +type msgCreateGroupResponseParams = { + value: MsgCreateGroupResponse, }; -type memberRequestParams = { - value: MemberRequest, +type msgLeaveGroupParams = { + value: MsgLeaveGroup, }; -type eventCreateGroupParams = { - value: EventCreateGroup, +type groupPolicyInfoParams = { + value: GroupPolicyInfo, }; -type msgUpdateGroupPolicyDecisionPolicyResponseParams = { - value: MsgUpdateGroupPolicyDecisionPolicyResponse, +type msgSubmitProposalParams = { + value: MsgSubmitProposal, }; -type genesisStateParams = { - value: GenesisState, +type msgCreateGroupParams = { + value: MsgCreateGroup, }; -type msgVoteParams = { - value: MsgVote, +type queryTallyResultRequestParams = { + value: QueryTallyResultRequest, }; -type msgUpdateGroupAdminResponseParams = { - value: MsgUpdateGroupAdminResponse, +type msgWithdrawProposalParams = { + value: MsgWithdrawProposal, }; -type msgUpdateGroupMetadataResponseParams = { - value: MsgUpdateGroupMetadataResponse, +type decisionPolicyWindowsParams = { + value: DecisionPolicyWindows, }; -type msgUpdateGroupPolicyAdminResponseParams = { - value: MsgUpdateGroupPolicyAdminResponse, +type queryGroupMembersResponseParams = { + value: QueryGroupMembersResponse, }; -type msgLeaveGroupParams = { - value: MsgLeaveGroup, +type queryVotesByVoterResponseParams = { + value: QueryVotesByVoterResponse, }; -type groupPolicyInfoParams = { - value: GroupPolicyInfo, +type queryGroupsByMemberRequestParams = { + value: QueryGroupsByMemberRequest, }; -type queryVoteByProposalVoterRequestParams = { - value: QueryVoteByProposalVoterRequest, +type queryGroupsRequestParams = { + value: QueryGroupsRequest, }; -type queryVotesByProposalResponseParams = { - value: QueryVotesByProposalResponse, +type msgUpdateGroupPolicyMetadataParams = { + value: MsgUpdateGroupPolicyMetadata, }; -type queryVotesByVoterResponseParams = { - value: QueryVotesByVoterResponse, +type msgWithdrawProposalResponseParams = { + value: MsgWithdrawProposalResponse, }; -type queryTallyResultRequestParams = { - value: QueryTallyResultRequest, +type queryProposalResponseParams = { + value: QueryProposalResponse, }; type msgSubmitProposalResponseParams = { value: MsgSubmitProposalResponse, }; -type msgVoteResponseParams = { - value: MsgVoteResponse, -}; - -type msgExecParams = { - value: MsgExec, +type queryGroupsByMemberResponseParams = { + value: QueryGroupsByMemberResponse, }; -type eventExecParams = { - value: EventExec, +type msgCreateGroupPolicyParams = { + value: MsgCreateGroupPolicy, }; -type queryProposalsByGroupPolicyRequestParams = { - value: QueryProposalsByGroupPolicyRequest, +type msgUpdateGroupPolicyMetadataResponseParams = { + value: MsgUpdateGroupPolicyMetadataResponse, }; -type queryVotesByProposalRequestParams = { - value: QueryVotesByProposalRequest, +type queryProposalsByGroupPolicyResponseParams = { + value: QueryProposalsByGroupPolicyResponse, }; -type queryGroupsByMemberRequestParams = { - value: QueryGroupsByMemberRequest, +type queryGroupInfoResponseParams = { + value: QueryGroupInfoResponse, }; -type eventProposalPrunedParams = { - value: EventProposalPruned, +type queryGroupMembersRequestParams = { + value: QueryGroupMembersRequest, }; -type queryGroupInfoRequestParams = { - value: QueryGroupInfoRequest, +type msgLeaveGroupResponseParams = { + value: MsgLeaveGroupResponse, }; -type queryGroupPolicyInfoRequestParams = { - value: QueryGroupPolicyInfoRequest, +type percentageDecisionPolicyParams = { + value: PercentageDecisionPolicy, }; -type queryGroupsByMemberResponseParams = { - value: QueryGroupsByMemberResponse, +type queryGroupPolicyInfoResponseParams = { + value: QueryGroupPolicyInfoResponse, }; type queryGroupsResponseParams = { value: QueryGroupsResponse, }; -type msgUpdateGroupMembersParams = { - value: MsgUpdateGroupMembers, +type msgUpdateGroupPolicyAdminResponseParams = { + value: MsgUpdateGroupPolicyAdminResponse, }; -type msgLeaveGroupResponseParams = { - value: MsgLeaveGroupResponse, +type msgVoteParams = { + value: MsgVote, }; -type queryGroupPolicyInfoResponseParams = { - value: QueryGroupPolicyInfoResponse, +type queryGroupPoliciesByGroupResponseParams = { + value: QueryGroupPoliciesByGroupResponse, +}; + +type queryGroupsByAdminResponseParams = { + value: QueryGroupsByAdminResponse, +}; + +type proposalParams = { + value: Proposal, }; @@ -899,101 +899,101 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgCreateGroupWithPolicy({ value, fee, memo }: sendMsgCreateGroupWithPolicyParams): Promise { + async sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroupWithPolicy: 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.msgCreateGroupWithPolicy({ value: MsgCreateGroupWithPolicy.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:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTallyResult: Could not broadcast Tx: '+ e.message) } }, - async sendEventUpdateGroupPolicy({ value, fee, memo }: sendEventUpdateGroupPolicyParams): Promise { + async sendEventUpdateGroup({ value, fee, memo }: sendEventUpdateGroupParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventUpdateGroupPolicy: 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.eventUpdateGroupPolicy({ value: EventUpdateGroupPolicy.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:sendEventUpdateGroupPolicy: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventUpdateGroup: Could not broadcast Tx: '+ e.message) } }, - async sendEventLeaveGroup({ value, fee, memo }: sendEventLeaveGroupParams): Promise { + async sendEventSubmitProposal({ value, fee, memo }: sendEventSubmitProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventLeaveGroup: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendEventSubmitProposal: Unable to 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.eventSubmitProposal({ value: EventSubmitProposal.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:sendEventSubmitProposal: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalsByGroupPolicyResponse({ value, fee, memo }: sendQueryProposalsByGroupPolicyResponseParams): Promise { + async sendEventWithdrawProposal({ value, fee, memo }: sendEventWithdrawProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalsByGroupPolicyResponse: 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.queryProposalsByGroupPolicyResponse({ value: QueryProposalsByGroupPolicyResponse.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:sendQueryProposalsByGroupPolicyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventWithdrawProposal: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVotesByVoterRequest({ value, fee, memo }: sendQueryVotesByVoterRequestParams): Promise { + async sendQueryGroupInfoRequest({ value, fee, memo }: sendQueryGroupInfoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesByVoterRequest: 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.queryVotesByVoterRequest({ value: QueryVotesByVoterRequest.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:sendQueryVotesByVoterRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupInfoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendDecisionPolicyWindows({ value, fee, memo }: sendDecisionPolicyWindowsParams): Promise { + async sendQueryGroupPolicyInfoRequest({ value, fee, memo }: sendQueryGroupPolicyInfoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendDecisionPolicyWindows: 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.decisionPolicyWindows({ value: DecisionPolicyWindows.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:sendDecisionPolicyWindows: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupPolicyInfoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendProposal({ value, fee, memo }: sendProposalParams): Promise { + async sendQueryGroupPoliciesByAdminRequest({ value, fee, memo }: sendQueryGroupPoliciesByAdminRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendProposal: 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.proposal({ value: Proposal.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:sendProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupPoliciesByAdminRequest: Could not broadcast Tx: '+ e.message) } }, @@ -1011,157 +1011,157 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgWithdrawProposal({ value, fee, memo }: sendMsgWithdrawProposalParams): Promise { + async sendQueryVotesByProposalResponse({ value, fee, memo }: sendQueryVotesByProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgWithdrawProposal: 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.msgWithdrawProposal({ value: MsgWithdrawProposal.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:sendMsgWithdrawProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVotesByProposalResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgExecResponse({ value, fee, memo }: sendMsgExecResponseParams): Promise { + async sendMsgCreateGroupWithPolicyResponse({ value, fee, memo }: sendMsgCreateGroupWithPolicyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgExecResponse: 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.msgExecResponse({ value: MsgExecResponse.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:sendMsgExecResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateGroupWithPolicyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGroupMember({ value, fee, memo }: sendGroupMemberParams): Promise { + async sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGroupMember: 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.groupMember({ value: GroupMember.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:sendGroupMember: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVoteResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateGroupPolicyResponse({ value, fee, memo }: sendMsgCreateGroupPolicyResponseParams): Promise { + async sendQueryVoteByProposalVoterRequest({ value, fee, memo }: sendQueryVoteByProposalVoterRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroupPolicyResponse: 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.msgCreateGroupPolicyResponse({ value: MsgCreateGroupPolicyResponse.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:sendMsgCreateGroupPolicyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVoteByProposalVoterRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupPolicyMetadataResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataResponseParams): Promise { + async sendQueryVoteByProposalVoterResponse({ value, fee, memo }: sendQueryVoteByProposalVoterResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadataResponse: 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.msgUpdateGroupPolicyMetadataResponse({ value: MsgUpdateGroupPolicyMetadataResponse.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:sendMsgUpdateGroupPolicyMetadataResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVoteByProposalVoterResponse: 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 sendQueryGroupInfoResponse({ value, fee, memo }: sendQueryGroupInfoResponseParams): Promise { + async sendMsgUpdateGroupMetadata({ value, fee, memo }: sendMsgUpdateGroupMetadataParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupInfoResponse: 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.queryGroupInfoResponse({ value: QueryGroupInfoResponse.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:sendQueryGroupInfoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupMetadata: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupPoliciesByAdminRequest({ value, fee, memo }: sendQueryGroupPoliciesByAdminRequestParams): Promise { + async sendMsgUpdateGroupMetadataResponse({ value, fee, memo }: sendMsgUpdateGroupMetadataResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupPoliciesByAdminRequest: 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.queryGroupPoliciesByAdminRequest({ value: QueryGroupPoliciesByAdminRequest.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:sendQueryGroupPoliciesByAdminRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupMetadataResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateGroupPolicy({ value, fee, memo }: sendMsgCreateGroupPolicyParams): Promise { + async sendMember({ value, fee, memo }: sendMemberParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroupPolicy: 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.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.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:sendMsgCreateGroupPolicy: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMember: Could not broadcast Tx: '+ e.message) } }, - async sendMsgWithdrawProposalResponse({ value, fee, memo }: sendMsgWithdrawProposalResponseParams): Promise { + async sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgWithdrawProposalResponse: 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.msgWithdrawProposalResponse({ value: MsgWithdrawProposalResponse.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:sendMsgWithdrawProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupsRequest({ value, fee, memo }: sendQueryGroupsRequestParams): Promise { + async sendQueryGroupPoliciesByGroupRequest({ value, fee, memo }: sendQueryGroupPoliciesByGroupRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupsRequest: 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.queryGroupsRequest({ value: QueryGroupsRequest.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:sendQueryGroupsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupPoliciesByGroupRequest: Could not broadcast Tx: '+ e.message) } }, @@ -1179,171 +1179,171 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryGroupPoliciesByAdminResponse({ value, fee, memo }: sendQueryGroupPoliciesByAdminResponseParams): Promise { + async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupPoliciesByAdminResponse: 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.queryGroupPoliciesByAdminResponse({ value: QueryGroupPoliciesByAdminResponse.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:sendQueryGroupPoliciesByAdminResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise { + async sendMsgUpdateGroupMembersResponse({ value, fee, memo }: sendMsgUpdateGroupMembersResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposal: 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.msgSubmitProposal({ value: MsgSubmitProposal.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:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupMembersResponse: Could not broadcast Tx: '+ e.message) } }, - async sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise { + async sendMsgExecResponse({ value, fee, memo }: sendMsgExecResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendTallyResult: 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.tallyResult({ value: TallyResult.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:sendTallyResult: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgExecResponse: Could not broadcast Tx: '+ e.message) } }, - async sendEventVote({ value, fee, memo }: sendEventVoteParams): Promise { + async sendMemberRequest({ value, fee, memo }: sendMemberRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventVote: 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.eventVote({ value: EventVote.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:sendEventVote: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMemberRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupMembersRequest({ value, fee, memo }: sendQueryGroupMembersRequestParams): Promise { + async sendThresholdDecisionPolicy({ value, fee, memo }: sendThresholdDecisionPolicyParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupMembersRequest: 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.queryGroupMembersRequest({ value: QueryGroupMembersRequest.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:sendQueryGroupMembersRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendThresholdDecisionPolicy: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupPoliciesByGroupResponse({ value, fee, memo }: sendQueryGroupPoliciesByGroupResponseParams): Promise { + async sendEventExec({ value, fee, memo }: sendEventExecParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupPoliciesByGroupResponse: 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.queryGroupPoliciesByGroupResponse({ value: QueryGroupPoliciesByGroupResponse.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:sendQueryGroupPoliciesByGroupResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventExec: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVoteByProposalVoterResponse({ value, fee, memo }: sendQueryVoteByProposalVoterResponseParams): Promise { + async sendQueryProposalsByGroupPolicyRequest({ value, fee, memo }: sendQueryProposalsByGroupPolicyRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVoteByProposalVoterResponse: 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.queryVoteByProposalVoterResponse({ value: QueryVoteByProposalVoterResponse.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:sendQueryVoteByProposalVoterResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalsByGroupPolicyRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateGroupResponse({ value, fee, memo }: sendMsgCreateGroupResponseParams): Promise { + async sendQueryTallyResultResponse({ value, fee, memo }: sendQueryTallyResultResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroupResponse: 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.msgCreateGroupResponse({ value: MsgCreateGroupResponse.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:sendMsgCreateGroupResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTallyResultResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupMetadata({ value, fee, memo }: sendMsgUpdateGroupMetadataParams): Promise { + async sendMsgCreateGroupPolicyResponse({ value, fee, memo }: sendMsgCreateGroupPolicyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupMetadata: 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.msgUpdateGroupMetadata({ value: MsgUpdateGroupMetadata.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:sendMsgUpdateGroupMetadata: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateGroupPolicyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendEventSubmitProposal({ value, fee, memo }: sendEventSubmitProposalParams): Promise { + async sendMsgUpdateGroupPolicyDecisionPolicyResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventSubmitProposal: 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.eventSubmitProposal({ value: EventSubmitProposal.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:sendEventSubmitProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupsByAdminRequest({ value, fee, memo }: sendQueryGroupsByAdminRequestParams): Promise { + async sendEventCreateGroup({ value, fee, memo }: sendEventCreateGroupParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupsByAdminRequest: 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.queryGroupsByAdminRequest({ value: QueryGroupsByAdminRequest.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:sendQueryGroupsByAdminRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventCreateGroup: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupPoliciesByGroupRequest({ value, fee, memo }: sendQueryGroupPoliciesByGroupRequestParams): Promise { + async sendEventProposalPruned({ value, fee, memo }: sendEventProposalPrunedParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupPoliciesByGroupRequest: 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.queryGroupPoliciesByGroupRequest({ value: QueryGroupPoliciesByGroupRequest.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:sendQueryGroupPoliciesByGroupRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventProposalPruned: Could not broadcast Tx: '+ e.message) } }, @@ -1361,171 +1361,157 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataParams): Promise { - if (!signer) { - 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.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.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) - } - }, - - async sendMsgCreateGroup({ value, fee, memo }: sendMsgCreateGroupParams): Promise { + async sendEventVote({ value, fee, memo }: sendEventVoteParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroup: 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.msgCreateGroup({ value: MsgCreateGroup.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:sendMsgCreateGroup: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventVote: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupMembersResponse({ value, fee, memo }: sendMsgUpdateGroupMembersResponseParams): Promise { + async sendEventUpdateGroupPolicy({ value, fee, memo }: sendEventUpdateGroupPolicyParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupMembersResponse: 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.msgUpdateGroupMembersResponse({ value: MsgUpdateGroupMembersResponse.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:sendMsgUpdateGroupMembersResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventUpdateGroupPolicy: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyParams): Promise { + async sendEventLeaveGroup({ value, fee, memo }: sendEventLeaveGroupParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: 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.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.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:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendEventLeaveGroup: Could not broadcast Tx: '+ e.message) } }, - async sendEventWithdrawProposal({ value, fee, memo }: sendEventWithdrawProposalParams): Promise { + async sendMsgUpdateGroupAdminResponse({ value, fee, memo }: sendMsgUpdateGroupAdminResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventWithdrawProposal: 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.eventWithdrawProposal({ value: EventWithdrawProposal.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:sendEventWithdrawProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupAdminResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupsByAdminResponse({ value, fee, memo }: sendQueryGroupsByAdminResponseParams): Promise { + async sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupsByAdminResponse: 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.queryGroupsByAdminResponse({ value: QueryGroupsByAdminResponse.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:sendQueryGroupsByAdminResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise { + async sendGroupInfo({ value, fee, memo }: sendGroupInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalResponse: 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.queryProposalResponse({ value: QueryProposalResponse.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:sendQueryProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGroupInfo: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise { + async sendQueryGroupsByAdminRequest({ value, fee, memo }: sendQueryGroupsByAdminRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalRequest: 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.queryProposalRequest({ value: QueryProposalRequest.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:sendQueryProposalRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupsByAdminRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMember({ value, fee, memo }: sendMemberParams): Promise { + async sendQueryVotesByVoterRequest({ value, fee, memo }: sendQueryVotesByVoterRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMember: 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.member({ value: Member.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:sendMember: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVotesByVoterRequest: Could not broadcast Tx: '+ e.message) } }, - async sendThresholdDecisionPolicy({ value, fee, memo }: sendThresholdDecisionPolicyParams): Promise { + async sendMsgUpdateGroupMembers({ value, fee, memo }: sendMsgUpdateGroupMembersParams): Promise { if (!signer) { - throw new Error('TxClient:sendThresholdDecisionPolicy: 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.thresholdDecisionPolicy({ value: ThresholdDecisionPolicy.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:sendThresholdDecisionPolicy: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: '+ e.message) } }, - async sendPercentageDecisionPolicy({ value, fee, memo }: sendPercentageDecisionPolicyParams): Promise { + async sendGroupMember({ value, fee, memo }: sendGroupMemberParams): Promise { if (!signer) { - throw new Error('TxClient:sendPercentageDecisionPolicy: 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.percentageDecisionPolicy({ value: PercentageDecisionPolicy.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:sendPercentageDecisionPolicy: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGroupMember: Could not broadcast Tx: '+ e.message) } }, - async sendEventUpdateGroup({ value, fee, memo }: sendEventUpdateGroupParams): Promise { + async sendQueryGroupPoliciesByAdminResponse({ value, fee, memo }: sendQueryGroupPoliciesByAdminResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventUpdateGroup: 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.eventUpdateGroup({ value: EventUpdateGroup.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:sendEventUpdateGroup: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupPoliciesByAdminResponse: Could not broadcast Tx: '+ e.message) } }, @@ -1543,241 +1529,241 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryGroupMembersResponse({ value, fee, memo }: sendQueryGroupMembersResponseParams): Promise { + async sendMsgCreateGroupWithPolicy({ value, fee, memo }: sendMsgCreateGroupWithPolicyParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupMembersResponse: 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.queryGroupMembersResponse({ value: QueryGroupMembersResponse.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:sendQueryGroupMembersResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTallyResultResponse({ value, fee, memo }: sendQueryTallyResultResponseParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultResponse: 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.queryTallyResultResponse({ value: QueryTallyResultResponse.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:sendQueryTallyResultResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateGroupWithPolicyResponse({ value, fee, memo }: sendMsgCreateGroupWithPolicyResponseParams): Promise { + async sendMsgCreateGroupResponse({ value, fee, memo }: sendMsgCreateGroupResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroupWithPolicyResponse: 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.msgCreateGroupWithPolicyResponse({ value: MsgCreateGroupWithPolicyResponse.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:sendMsgCreateGroupWithPolicyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateGroupResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMemberRequest({ value, fee, memo }: sendMemberRequestParams): Promise { + async sendMsgLeaveGroup({ value, fee, memo }: sendMsgLeaveGroupParams): Promise { if (!signer) { - throw new Error('TxClient:sendMemberRequest: 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.memberRequest({ value: MemberRequest.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:sendMemberRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgLeaveGroup: Could not broadcast Tx: '+ e.message) } }, - async sendEventCreateGroup({ value, fee, memo }: sendEventCreateGroupParams): Promise { + async sendGroupPolicyInfo({ value, fee, memo }: sendGroupPolicyInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventCreateGroup: 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.eventCreateGroup({ value: EventCreateGroup.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:sendEventCreateGroup: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGroupPolicyInfo: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupPolicyDecisionPolicyResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyResponseParams): Promise { + async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicyResponse: 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.msgUpdateGroupPolicyDecisionPolicyResponse({ value: MsgUpdateGroupPolicyDecisionPolicyResponse.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:sendMsgUpdateGroupPolicyDecisionPolicyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendMsgCreateGroup({ value, fee, memo }: sendMsgCreateGroupParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.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:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: '+ e.message) } }, - async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise { + async sendQueryTallyResultRequest({ value, fee, memo }: sendQueryTallyResultRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVote: 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.msgVote({ value: MsgVote.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:sendMsgVote: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTallyResultRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupAdminResponse({ value, fee, memo }: sendMsgUpdateGroupAdminResponseParams): Promise { + async sendMsgWithdrawProposal({ value, fee, memo }: sendMsgWithdrawProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupAdminResponse: 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.msgUpdateGroupAdminResponse({ value: MsgUpdateGroupAdminResponse.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:sendMsgUpdateGroupAdminResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupMetadataResponse({ value, fee, memo }: sendMsgUpdateGroupMetadataResponseParams): Promise { + async sendDecisionPolicyWindows({ value, fee, memo }: sendDecisionPolicyWindowsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupMetadataResponse: 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.msgUpdateGroupMetadataResponse({ value: MsgUpdateGroupMetadataResponse.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:sendMsgUpdateGroupMetadataResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDecisionPolicyWindows: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupPolicyAdminResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyAdminResponseParams): Promise { + async sendQueryGroupMembersResponse({ value, fee, memo }: sendQueryGroupMembersResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyAdminResponse: 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.msgUpdateGroupPolicyAdminResponse({ value: MsgUpdateGroupPolicyAdminResponse.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:sendMsgUpdateGroupPolicyAdminResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupMembersResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgLeaveGroup({ value, fee, memo }: sendMsgLeaveGroupParams): Promise { + async sendQueryVotesByVoterResponse({ value, fee, memo }: sendQueryVotesByVoterResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgLeaveGroup: 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.msgLeaveGroup({ value: MsgLeaveGroup.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:sendMsgLeaveGroup: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryVotesByVoterResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGroupPolicyInfo({ value, fee, memo }: sendGroupPolicyInfoParams): Promise { + async sendQueryGroupsByMemberRequest({ value, fee, memo }: sendQueryGroupsByMemberRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGroupPolicyInfo: 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.groupPolicyInfo({ value: GroupPolicyInfo.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:sendGroupPolicyInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupsByMemberRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVoteByProposalVoterRequest({ value, fee, memo }: sendQueryVoteByProposalVoterRequestParams): Promise { + async sendQueryGroupsRequest({ value, fee, memo }: sendQueryGroupsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVoteByProposalVoterRequest: 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.queryVoteByProposalVoterRequest({ value: QueryVoteByProposalVoterRequest.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:sendQueryVoteByProposalVoterRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVotesByProposalResponse({ value, fee, memo }: sendQueryVotesByProposalResponseParams): Promise { + async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesByProposalResponse: 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.queryVotesByProposalResponse({ value: QueryVotesByProposalResponse.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:sendQueryVotesByProposalResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVotesByVoterResponse({ value, fee, memo }: sendQueryVotesByVoterResponseParams): Promise { + async sendMsgWithdrawProposalResponse({ value, fee, memo }: sendMsgWithdrawProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesByVoterResponse: 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.queryVotesByVoterResponse({ value: QueryVotesByVoterResponse.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:sendQueryVotesByVoterResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgWithdrawProposalResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTallyResultRequest({ value, fee, memo }: sendQueryTallyResultRequestParams): Promise { + async sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultRequest: 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.queryTallyResultRequest({ value: QueryTallyResultRequest.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:sendQueryTallyResultRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalResponse: Could not broadcast Tx: '+ e.message) } }, @@ -1795,256 +1781,270 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise { + async sendQueryGroupsByMemberResponse({ value, fee, memo }: sendQueryGroupsByMemberResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgVoteResponse: 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.msgVoteResponse({ value: MsgVoteResponse.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:sendMsgVoteResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupsByMemberResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise { + async sendMsgCreateGroupPolicy({ value, fee, memo }: sendMsgCreateGroupPolicyParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgExec: 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.msgExec({ value: MsgExec.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:sendMsgExec: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: '+ e.message) } }, - async sendEventExec({ value, fee, memo }: sendEventExecParams): Promise { + async sendMsgUpdateGroupPolicyMetadataResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventExec: 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.eventExec({ value: EventExec.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:sendEventExec: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadataResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryProposalsByGroupPolicyRequest({ value, fee, memo }: sendQueryProposalsByGroupPolicyRequestParams): Promise { + async sendQueryProposalsByGroupPolicyResponse({ value, fee, memo }: sendQueryProposalsByGroupPolicyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryProposalsByGroupPolicyRequest: 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.queryProposalsByGroupPolicyRequest({ value: QueryProposalsByGroupPolicyRequest.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:sendQueryProposalsByGroupPolicyRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryProposalsByGroupPolicyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryVotesByProposalRequest({ value, fee, memo }: sendQueryVotesByProposalRequestParams): Promise { + async sendQueryGroupInfoResponse({ value, fee, memo }: sendQueryGroupInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryVotesByProposalRequest: 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.queryVotesByProposalRequest({ value: QueryVotesByProposalRequest.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:sendQueryVotesByProposalRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupInfoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupsByMemberRequest({ value, fee, memo }: sendQueryGroupsByMemberRequestParams): Promise { + async sendQueryGroupMembersRequest({ value, fee, memo }: sendQueryGroupMembersRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupsByMemberRequest: 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.queryGroupsByMemberRequest({ value: QueryGroupsByMemberRequest.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:sendQueryGroupsByMemberRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupMembersRequest: Could not broadcast Tx: '+ e.message) + } + }, + + async sendMsgLeaveGroupResponse({ value, fee, memo }: sendMsgLeaveGroupResponseParams): Promise { + if (!signer) { + 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.msgLeaveGroupResponse({ value: MsgLeaveGroupResponse.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) } }, - async sendEventProposalPruned({ value, fee, memo }: sendEventProposalPrunedParams): Promise { + async sendPercentageDecisionPolicy({ value, fee, memo }: sendPercentageDecisionPolicyParams): Promise { if (!signer) { - throw new Error('TxClient:sendEventProposalPruned: 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.eventProposalPruned({ value: EventProposalPruned.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:sendEventProposalPruned: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPercentageDecisionPolicy: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupInfoRequest({ value, fee, memo }: sendQueryGroupInfoRequestParams): Promise { + async sendQueryGroupPolicyInfoResponse({ value, fee, memo }: sendQueryGroupPolicyInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupInfoRequest: 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.queryGroupInfoRequest({ value: QueryGroupInfoRequest.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:sendQueryGroupInfoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupPolicyInfoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupPolicyInfoRequest({ value, fee, memo }: sendQueryGroupPolicyInfoRequestParams): Promise { + async sendQueryGroupsResponse({ value, fee, memo }: sendQueryGroupsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupPolicyInfoRequest: 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.queryGroupPolicyInfoRequest({ value: QueryGroupPolicyInfoRequest.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:sendQueryGroupPolicyInfoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupsByMemberResponse({ value, fee, memo }: sendQueryGroupsByMemberResponseParams): Promise { + async sendMsgUpdateGroupPolicyAdminResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyAdminResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupsByMemberResponse: 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.queryGroupsByMemberResponse({ value: QueryGroupsByMemberResponse.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:sendQueryGroupsByMemberResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateGroupPolicyAdminResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupsResponse({ value, fee, memo }: sendQueryGroupsResponseParams): Promise { + async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupsResponse: 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.queryGroupsResponse({ value: QueryGroupsResponse.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:sendQueryGroupsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateGroupMembers({ value, fee, memo }: sendMsgUpdateGroupMembersParams): Promise { + async sendQueryGroupPoliciesByGroupResponse({ value, fee, memo }: sendQueryGroupPoliciesByGroupResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupMembers: 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.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.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:sendMsgUpdateGroupMembers: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupPoliciesByGroupResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgLeaveGroupResponse({ value, fee, memo }: sendMsgLeaveGroupResponseParams): Promise { + async sendQueryGroupsByAdminResponse({ value, fee, memo }: sendQueryGroupsByAdminResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgLeaveGroupResponse: 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.msgLeaveGroupResponse({ value: MsgLeaveGroupResponse.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:sendMsgLeaveGroupResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryGroupsByAdminResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryGroupPolicyInfoResponse({ value, fee, memo }: sendQueryGroupPolicyInfoResponseParams): Promise { + async sendProposal({ value, fee, memo }: sendProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryGroupPolicyInfoResponse: 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.queryGroupPolicyInfoResponse({ value: QueryGroupPolicyInfoResponse.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:sendQueryGroupPolicyInfoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendProposal: Could not broadcast Tx: '+ e.message) } }, - msgCreateGroupWithPolicy({ value }: msgCreateGroupWithPolicyParams): EncodeObject { + tallyResult({ value }: tallyResultParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", value: MsgCreateGroupWithPolicy.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.TallyResult", value: TallyResult.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message) + throw new Error('TxClient:TallyResult: Could not create message: ' + e.message) } }, - eventUpdateGroupPolicy({ value }: eventUpdateGroupPolicyParams): EncodeObject { + eventUpdateGroup({ value }: eventUpdateGroupParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", value: EventUpdateGroupPolicy.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventUpdateGroup", value: EventUpdateGroup.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventUpdateGroupPolicy: Could not create message: ' + e.message) + throw new Error('TxClient:EventUpdateGroup: Could not create message: ' + e.message) } }, - eventLeaveGroup({ value }: eventLeaveGroupParams): EncodeObject { + eventSubmitProposal({ value }: eventSubmitProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventLeaveGroup", value: EventLeaveGroup.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventSubmitProposal", value: EventSubmitProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventLeaveGroup: Could not create message: ' + e.message) + throw new Error('TxClient:EventSubmitProposal: Could not create message: ' + e.message) } }, - queryProposalsByGroupPolicyResponse({ value }: queryProposalsByGroupPolicyResponseParams): EncodeObject { + eventWithdrawProposal({ value }: eventWithdrawProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", value: QueryProposalsByGroupPolicyResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventWithdrawProposal", value: EventWithdrawProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalsByGroupPolicyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:EventWithdrawProposal: Could not create message: ' + e.message) } }, - queryVotesByVoterRequest({ value }: queryVotesByVoterRequestParams): EncodeObject { + queryGroupInfoRequest({ value }: queryGroupInfoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", value: QueryVotesByVoterRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", value: QueryGroupInfoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesByVoterRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupInfoRequest: Could not create message: ' + e.message) } }, - decisionPolicyWindows({ value }: decisionPolicyWindowsParams): EncodeObject { + queryGroupPolicyInfoRequest({ value }: queryGroupPolicyInfoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", value: DecisionPolicyWindows.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", value: QueryGroupPolicyInfoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DecisionPolicyWindows: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupPolicyInfoRequest: Could not create message: ' + e.message) } }, - proposal({ value }: proposalParams): EncodeObject { + queryGroupPoliciesByAdminRequest({ value }: queryGroupPoliciesByAdminRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.Proposal", value: Proposal.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", value: QueryGroupPoliciesByAdminRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Proposal: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupPoliciesByAdminRequest: Could not create message: ' + e.message) } }, @@ -2056,91 +2056,91 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgWithdrawProposal({ value }: msgWithdrawProposalParams): EncodeObject { + queryVotesByProposalResponse({ value }: queryVotesByProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", value: QueryVotesByProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesByProposalResponse: Could not create message: ' + e.message) } }, - msgExecResponse({ value }: msgExecResponseParams): EncodeObject { + msgCreateGroupWithPolicyResponse({ value }: msgCreateGroupWithPolicyResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgExecResponse", value: MsgExecResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", value: MsgCreateGroupWithPolicyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgExecResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateGroupWithPolicyResponse: Could not create message: ' + e.message) } }, - groupMember({ value }: groupMemberParams): EncodeObject { + msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.GroupMember", value: GroupMember.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgVoteResponse", value: MsgVoteResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GroupMember: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message) } }, - msgCreateGroupPolicyResponse({ value }: msgCreateGroupPolicyResponseParams): EncodeObject { + queryVoteByProposalVoterRequest({ value }: queryVoteByProposalVoterRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", value: MsgCreateGroupPolicyResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", value: QueryVoteByProposalVoterRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateGroupPolicyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVoteByProposalVoterRequest: Could not create message: ' + e.message) } }, - msgUpdateGroupPolicyMetadataResponse({ value }: msgUpdateGroupPolicyMetadataResponseParams): EncodeObject { + queryVoteByProposalVoterResponse({ value }: queryVoteByProposalVoterResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", value: MsgUpdateGroupPolicyMetadataResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", value: QueryVoteByProposalVoterResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupPolicyMetadataResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVoteByProposalVoterResponse: Could not create message: ' + e.message) } }, - groupInfo({ value }: groupInfoParams): EncodeObject { + queryVotesByProposalRequest({ value }: queryVotesByProposalRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.GroupInfo", value: GroupInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", value: QueryVotesByProposalRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GroupInfo: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesByProposalRequest: Could not create message: ' + e.message) } }, - queryGroupInfoResponse({ value }: queryGroupInfoResponseParams): EncodeObject { + msgUpdateGroupMetadata({ value }: msgUpdateGroupMetadataParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", value: QueryGroupInfoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", value: MsgUpdateGroupMetadata.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupInfoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message) } }, - queryGroupPoliciesByAdminRequest({ value }: queryGroupPoliciesByAdminRequestParams): EncodeObject { + msgUpdateGroupMetadataResponse({ value }: msgUpdateGroupMetadataResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", value: QueryGroupPoliciesByAdminRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", value: MsgUpdateGroupMetadataResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupPoliciesByAdminRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupMetadataResponse: Could not create message: ' + e.message) } }, - msgCreateGroupPolicy({ value }: msgCreateGroupPolicyParams): EncodeObject { + member({ value }: memberParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.Member", value: Member.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message) + throw new Error('TxClient:Member: Could not create message: ' + e.message) } }, - msgWithdrawProposalResponse({ value }: msgWithdrawProposalResponseParams): EncodeObject { + queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", value: MsgWithdrawProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryProposalRequest", value: QueryProposalRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgWithdrawProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message) } }, - queryGroupsRequest({ value }: queryGroupsRequestParams): EncodeObject { + queryGroupPoliciesByGroupRequest({ value }: queryGroupPoliciesByGroupRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsRequest", value: QueryGroupsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", value: QueryGroupPoliciesByGroupRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupPoliciesByGroupRequest: Could not create message: ' + e.message) } }, @@ -2152,99 +2152,99 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryGroupPoliciesByAdminResponse({ value }: queryGroupPoliciesByAdminResponseParams): EncodeObject { + msgUpdateGroupPolicyDecisionPolicy({ value }: msgUpdateGroupPolicyDecisionPolicyParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", value: QueryGroupPoliciesByAdminResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupPoliciesByAdminResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message) } }, - msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject { + msgUpdateGroupMembersResponse({ value }: msgUpdateGroupMembersResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", value: MsgUpdateGroupMembersResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupMembersResponse: Could not create message: ' + e.message) } }, - tallyResult({ value }: tallyResultParams): EncodeObject { + msgExecResponse({ value }: msgExecResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.TallyResult", value: TallyResult.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgExecResponse", value: MsgExecResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TallyResult: Could not create message: ' + e.message) + throw new Error('TxClient:MsgExecResponse: Could not create message: ' + e.message) } }, - eventVote({ value }: eventVoteParams): EncodeObject { + memberRequest({ value }: memberRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventVote", value: EventVote.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MemberRequest", value: MemberRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventVote: Could not create message: ' + e.message) + throw new Error('TxClient:MemberRequest: Could not create message: ' + e.message) } }, - queryGroupMembersRequest({ value }: queryGroupMembersRequestParams): EncodeObject { + thresholdDecisionPolicy({ value }: thresholdDecisionPolicyParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", value: QueryGroupMembersRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", value: ThresholdDecisionPolicy.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupMembersRequest: Could not create message: ' + e.message) + throw new Error('TxClient:ThresholdDecisionPolicy: Could not create message: ' + e.message) } }, - queryGroupPoliciesByGroupResponse({ value }: queryGroupPoliciesByGroupResponseParams): EncodeObject { + eventExec({ value }: eventExecParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", value: QueryGroupPoliciesByGroupResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventExec", value: EventExec.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupPoliciesByGroupResponse: Could not create message: ' + e.message) + throw new Error('TxClient:EventExec: Could not create message: ' + e.message) } }, - queryVoteByProposalVoterResponse({ value }: queryVoteByProposalVoterResponseParams): EncodeObject { + queryProposalsByGroupPolicyRequest({ value }: queryProposalsByGroupPolicyRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", value: QueryVoteByProposalVoterResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", value: QueryProposalsByGroupPolicyRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVoteByProposalVoterResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalsByGroupPolicyRequest: Could not create message: ' + e.message) } }, - msgCreateGroupResponse({ value }: msgCreateGroupResponseParams): EncodeObject { + queryTallyResultResponse({ value }: queryTallyResultResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", value: MsgCreateGroupResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateGroupResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message) } }, - msgUpdateGroupMetadata({ value }: msgUpdateGroupMetadataParams): EncodeObject { + msgCreateGroupPolicyResponse({ value }: msgCreateGroupPolicyResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", value: MsgUpdateGroupMetadata.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", value: MsgCreateGroupPolicyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateGroupPolicyResponse: Could not create message: ' + e.message) } }, - eventSubmitProposal({ value }: eventSubmitProposalParams): EncodeObject { + msgUpdateGroupPolicyDecisionPolicyResponse({ value }: msgUpdateGroupPolicyDecisionPolicyResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventSubmitProposal", value: EventSubmitProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", value: MsgUpdateGroupPolicyDecisionPolicyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventSubmitProposal: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicyResponse: Could not create message: ' + e.message) } }, - queryGroupsByAdminRequest({ value }: queryGroupsByAdminRequestParams): EncodeObject { + eventCreateGroup({ value }: eventCreateGroupParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", value: QueryGroupsByAdminRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventCreateGroup", value: EventCreateGroup.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupsByAdminRequest: Could not create message: ' + e.message) + throw new Error('TxClient:EventCreateGroup: Could not create message: ' + e.message) } }, - queryGroupPoliciesByGroupRequest({ value }: queryGroupPoliciesByGroupRequestParams): EncodeObject { + eventProposalPruned({ value }: eventProposalPrunedParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", value: QueryGroupPoliciesByGroupRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventProposalPruned", value: EventProposalPruned.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupPoliciesByGroupRequest: Could not create message: ' + e.message) + throw new Error('TxClient:EventProposalPruned: Could not create message: ' + e.message) } }, @@ -2256,99 +2256,91 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgUpdateGroupPolicyMetadata({ value }: msgUpdateGroupPolicyMetadataParams): EncodeObject { - try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message) - } - }, - - msgCreateGroup({ value }: msgCreateGroupParams): EncodeObject { + eventVote({ value }: eventVoteParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventVote", value: EventVote.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message) + throw new Error('TxClient:EventVote: Could not create message: ' + e.message) } }, - msgUpdateGroupMembersResponse({ value }: msgUpdateGroupMembersResponseParams): EncodeObject { + eventUpdateGroupPolicy({ value }: eventUpdateGroupPolicyParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", value: MsgUpdateGroupMembersResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", value: EventUpdateGroupPolicy.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupMembersResponse: Could not create message: ' + e.message) + throw new Error('TxClient:EventUpdateGroupPolicy: Could not create message: ' + e.message) } }, - msgUpdateGroupPolicyDecisionPolicy({ value }: msgUpdateGroupPolicyDecisionPolicyParams): EncodeObject { + eventLeaveGroup({ value }: eventLeaveGroupParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.EventLeaveGroup", value: EventLeaveGroup.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message) + throw new Error('TxClient:EventLeaveGroup: Could not create message: ' + e.message) } }, - eventWithdrawProposal({ value }: eventWithdrawProposalParams): EncodeObject { + msgUpdateGroupAdminResponse({ value }: msgUpdateGroupAdminResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventWithdrawProposal", value: EventWithdrawProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", value: MsgUpdateGroupAdminResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventWithdrawProposal: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupAdminResponse: Could not create message: ' + e.message) } }, - queryGroupsByAdminResponse({ value }: queryGroupsByAdminResponseParams): EncodeObject { + msgExec({ value }: msgExecParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", value: QueryGroupsByAdminResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupsByAdminResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgExec: Could not create message: ' + e.message) } }, - queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject { + groupInfo({ value }: groupInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryProposalResponse", value: QueryProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.GroupInfo", value: GroupInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GroupInfo: Could not create message: ' + e.message) } }, - queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject { + queryGroupsByAdminRequest({ value }: queryGroupsByAdminRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryProposalRequest", value: QueryProposalRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", value: QueryGroupsByAdminRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupsByAdminRequest: Could not create message: ' + e.message) } }, - member({ value }: memberParams): EncodeObject { + queryVotesByVoterRequest({ value }: queryVotesByVoterRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.Member", value: Member.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", value: QueryVotesByVoterRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Member: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesByVoterRequest: Could not create message: ' + e.message) } }, - thresholdDecisionPolicy({ value }: thresholdDecisionPolicyParams): EncodeObject { + msgUpdateGroupMembers({ value }: msgUpdateGroupMembersParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", value: ThresholdDecisionPolicy.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ThresholdDecisionPolicy: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message) } }, - percentageDecisionPolicy({ value }: percentageDecisionPolicyParams): EncodeObject { + groupMember({ value }: groupMemberParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", value: PercentageDecisionPolicy.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.GroupMember", value: GroupMember.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PercentageDecisionPolicy: Could not create message: ' + e.message) + throw new Error('TxClient:GroupMember: Could not create message: ' + e.message) } }, - eventUpdateGroup({ value }: eventUpdateGroupParams): EncodeObject { + queryGroupPoliciesByAdminResponse({ value }: queryGroupPoliciesByAdminResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventUpdateGroup", value: EventUpdateGroup.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", value: QueryGroupPoliciesByAdminResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventUpdateGroup: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupPoliciesByAdminResponse: Could not create message: ' + e.message) } }, @@ -2360,139 +2352,139 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryGroupMembersResponse({ value }: queryGroupMembersResponseParams): EncodeObject { + msgCreateGroupWithPolicy({ value }: msgCreateGroupWithPolicyParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", value: QueryGroupMembersResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", value: MsgCreateGroupWithPolicy.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupMembersResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message) } }, - queryTallyResultResponse({ value }: queryTallyResultResponseParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - msgCreateGroupWithPolicyResponse({ value }: msgCreateGroupWithPolicyResponseParams): EncodeObject { + msgCreateGroupResponse({ value }: msgCreateGroupResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", value: MsgCreateGroupWithPolicyResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", value: MsgCreateGroupResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateGroupWithPolicyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateGroupResponse: Could not create message: ' + e.message) } }, - memberRequest({ value }: memberRequestParams): EncodeObject { + msgLeaveGroup({ value }: msgLeaveGroupParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MemberRequest", value: MemberRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgLeaveGroup", value: MsgLeaveGroup.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MemberRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message) } }, - eventCreateGroup({ value }: eventCreateGroupParams): EncodeObject { + groupPolicyInfo({ value }: groupPolicyInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventCreateGroup", value: EventCreateGroup.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.GroupPolicyInfo", value: GroupPolicyInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventCreateGroup: Could not create message: ' + e.message) + throw new Error('TxClient:GroupPolicyInfo: Could not create message: ' + e.message) } }, - msgUpdateGroupPolicyDecisionPolicyResponse({ value }: msgUpdateGroupPolicyDecisionPolicyResponseParams): EncodeObject { + msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", value: MsgUpdateGroupPolicyDecisionPolicyResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + msgCreateGroup({ value }: msgCreateGroupParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message) } }, - msgVote({ value }: msgVoteParams): EncodeObject { + queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgVote", value: MsgVote.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVote: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message) } }, - msgUpdateGroupAdminResponse({ value }: msgUpdateGroupAdminResponseParams): EncodeObject { + msgWithdrawProposal({ value }: msgWithdrawProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", value: MsgUpdateGroupAdminResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupAdminResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message) } }, - msgUpdateGroupMetadataResponse({ value }: msgUpdateGroupMetadataResponseParams): EncodeObject { + decisionPolicyWindows({ value }: decisionPolicyWindowsParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", value: MsgUpdateGroupMetadataResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", value: DecisionPolicyWindows.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupMetadataResponse: Could not create message: ' + e.message) + throw new Error('TxClient:DecisionPolicyWindows: Could not create message: ' + e.message) } }, - msgUpdateGroupPolicyAdminResponse({ value }: msgUpdateGroupPolicyAdminResponseParams): EncodeObject { + queryGroupMembersResponse({ value }: queryGroupMembersResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", value: MsgUpdateGroupPolicyAdminResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", value: QueryGroupMembersResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupPolicyAdminResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupMembersResponse: Could not create message: ' + e.message) } }, - msgLeaveGroup({ value }: msgLeaveGroupParams): EncodeObject { + queryVotesByVoterResponse({ value }: queryVotesByVoterResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgLeaveGroup", value: MsgLeaveGroup.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", value: QueryVotesByVoterResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message) + throw new Error('TxClient:QueryVotesByVoterResponse: Could not create message: ' + e.message) } }, - groupPolicyInfo({ value }: groupPolicyInfoParams): EncodeObject { + queryGroupsByMemberRequest({ value }: queryGroupsByMemberRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.GroupPolicyInfo", value: GroupPolicyInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", value: QueryGroupsByMemberRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GroupPolicyInfo: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupsByMemberRequest: Could not create message: ' + e.message) } }, - queryVoteByProposalVoterRequest({ value }: queryVoteByProposalVoterRequestParams): EncodeObject { + queryGroupsRequest({ value }: queryGroupsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", value: QueryVoteByProposalVoterRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupsRequest", value: QueryGroupsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVoteByProposalVoterRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupsRequest: Could not create message: ' + e.message) } }, - queryVotesByProposalResponse({ value }: queryVotesByProposalResponseParams): EncodeObject { + msgUpdateGroupPolicyMetadata({ value }: msgUpdateGroupPolicyMetadataParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", value: QueryVotesByProposalResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesByProposalResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message) } }, - queryVotesByVoterResponse({ value }: queryVotesByVoterResponseParams): EncodeObject { + msgWithdrawProposalResponse({ value }: msgWithdrawProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", value: QueryVotesByVoterResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", value: MsgWithdrawProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesByVoterResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgWithdrawProposalResponse: Could not create message: ' + e.message) } }, - queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject { + queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryProposalResponse", value: QueryProposalResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message) } }, @@ -2504,115 +2496,123 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject { + queryGroupsByMemberResponse({ value }: queryGroupsByMemberResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgVoteResponse", value: MsgVoteResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", value: QueryGroupsByMemberResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupsByMemberResponse: Could not create message: ' + e.message) } }, - msgExec({ value }: msgExecParams): EncodeObject { + msgCreateGroupPolicy({ value }: msgCreateGroupPolicyParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgExec: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message) } }, - eventExec({ value }: eventExecParams): EncodeObject { + msgUpdateGroupPolicyMetadataResponse({ value }: msgUpdateGroupPolicyMetadataResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventExec", value: EventExec.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", value: MsgUpdateGroupPolicyMetadataResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventExec: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupPolicyMetadataResponse: Could not create message: ' + e.message) } }, - queryProposalsByGroupPolicyRequest({ value }: queryProposalsByGroupPolicyRequestParams): EncodeObject { + queryProposalsByGroupPolicyResponse({ value }: queryProposalsByGroupPolicyResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", value: QueryProposalsByGroupPolicyRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", value: QueryProposalsByGroupPolicyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryProposalsByGroupPolicyRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryProposalsByGroupPolicyResponse: Could not create message: ' + e.message) } }, - queryVotesByProposalRequest({ value }: queryVotesByProposalRequestParams): EncodeObject { + queryGroupInfoResponse({ value }: queryGroupInfoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", value: QueryVotesByProposalRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", value: QueryGroupInfoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryVotesByProposalRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupInfoResponse: Could not create message: ' + e.message) } }, - queryGroupsByMemberRequest({ value }: queryGroupsByMemberRequestParams): EncodeObject { + queryGroupMembersRequest({ value }: queryGroupMembersRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", value: QueryGroupsByMemberRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", value: QueryGroupMembersRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupsByMemberRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupMembersRequest: Could not create message: ' + e.message) } }, - eventProposalPruned({ value }: eventProposalPrunedParams): EncodeObject { + msgLeaveGroupResponse({ value }: msgLeaveGroupResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.EventProposalPruned", value: EventProposalPruned.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", value: MsgLeaveGroupResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:EventProposalPruned: Could not create message: ' + e.message) + throw new Error('TxClient:MsgLeaveGroupResponse: Could not create message: ' + e.message) } }, - queryGroupInfoRequest({ value }: queryGroupInfoRequestParams): EncodeObject { + percentageDecisionPolicy({ value }: percentageDecisionPolicyParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", value: QueryGroupInfoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", value: PercentageDecisionPolicy.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupInfoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:PercentageDecisionPolicy: Could not create message: ' + e.message) } }, - queryGroupPolicyInfoRequest({ value }: queryGroupPolicyInfoRequestParams): EncodeObject { + queryGroupPolicyInfoResponse({ value }: queryGroupPolicyInfoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", value: QueryGroupPolicyInfoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", value: QueryGroupPolicyInfoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupPolicyInfoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupPolicyInfoResponse: Could not create message: ' + e.message) } }, - queryGroupsByMemberResponse({ value }: queryGroupsByMemberResponseParams): EncodeObject { + queryGroupsResponse({ value }: queryGroupsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", value: QueryGroupsByMemberResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupsResponse", value: QueryGroupsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupsByMemberResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupsResponse: Could not create message: ' + e.message) } }, - queryGroupsResponse({ value }: queryGroupsResponseParams): EncodeObject { + msgUpdateGroupPolicyAdminResponse({ value }: msgUpdateGroupPolicyAdminResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsResponse", value: QueryGroupsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", value: MsgUpdateGroupPolicyAdminResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateGroupPolicyAdminResponse: Could not create message: ' + e.message) } }, - msgUpdateGroupMembers({ value }: msgUpdateGroupMembersParams): EncodeObject { + msgVote({ value }: msgVoteParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.MsgVote", value: MsgVote.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message) + throw new Error('TxClient:MsgVote: Could not create message: ' + e.message) } }, - msgLeaveGroupResponse({ value }: msgLeaveGroupResponseParams): EncodeObject { + queryGroupPoliciesByGroupResponse({ value }: queryGroupPoliciesByGroupResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", value: MsgLeaveGroupResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", value: QueryGroupPoliciesByGroupResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgLeaveGroupResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupPoliciesByGroupResponse: Could not create message: ' + e.message) } }, - queryGroupPolicyInfoResponse({ value }: queryGroupPolicyInfoResponseParams): EncodeObject { + queryGroupsByAdminResponse({ value }: queryGroupsByAdminResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", value: QueryGroupPolicyInfoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", value: QueryGroupsByAdminResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryGroupPolicyInfoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryGroupsByAdminResponse: Could not create message: ' + e.message) + } + }, + + proposal({ value }: proposalParams): EncodeObject { + try { + return { typeUrl: "/cosmos.group.v1.Proposal", value: Proposal.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:Proposal: 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 21245174b..a9bbbd51c 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 { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx"; -import { EventUpdateGroupPolicy } from "./types/cosmos/group/v1/events"; -import { EventLeaveGroup } from "./types/cosmos/group/v1/events"; -import { QueryProposalsByGroupPolicyResponse } from "./types/cosmos/group/v1/query"; -import { QueryVotesByVoterRequest } from "./types/cosmos/group/v1/query"; -import { DecisionPolicyWindows } from "./types/cosmos/group/v1/types"; -import { Proposal } from "./types/cosmos/group/v1/types"; -import { Vote } from "./types/cosmos/group/v1/types"; -import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx"; -import { MsgExecResponse } from "./types/cosmos/group/v1/tx"; -import { GroupMember } from "./types/cosmos/group/v1/types"; -import { MsgCreateGroupPolicyResponse } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupPolicyMetadataResponse } from "./types/cosmos/group/v1/tx"; -import { GroupInfo } from "./types/cosmos/group/v1/types"; -import { QueryGroupInfoResponse } from "./types/cosmos/group/v1/query"; -import { QueryGroupPoliciesByAdminRequest } from "./types/cosmos/group/v1/query"; -import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx"; -import { MsgWithdrawProposalResponse } from "./types/cosmos/group/v1/tx"; -import { QueryGroupsRequest } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPoliciesByAdminResponse } from "./types/cosmos/group/v1/query"; -import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx"; import { TallyResult } from "./types/cosmos/group/v1/types"; -import { EventVote } from "./types/cosmos/group/v1/events"; -import { QueryGroupMembersRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupPoliciesByGroupResponse } from "./types/cosmos/group/v1/query"; +import { EventUpdateGroup } from "./types/cosmos/group/v1/events"; +import { EventSubmitProposal } from "./types/cosmos/group/v1/events"; +import { EventWithdrawProposal } from "./types/cosmos/group/v1/events"; +import { QueryGroupInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupPolicyInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupPoliciesByAdminRequest } from "./types/cosmos/group/v1/query"; +import { Vote } from "./types/cosmos/group/v1/types"; +import { QueryVotesByProposalResponse } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroupWithPolicyResponse } from "./types/cosmos/group/v1/tx"; +import { MsgVoteResponse } from "./types/cosmos/group/v1/tx"; +import { QueryVoteByProposalVoterRequest } from "./types/cosmos/group/v1/query"; import { QueryVoteByProposalVoterResponse } from "./types/cosmos/group/v1/query"; -import { MsgCreateGroupResponse } from "./types/cosmos/group/v1/tx"; +import { QueryVotesByProposalRequest } from "./types/cosmos/group/v1/query"; import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx"; -import { EventSubmitProposal } from "./types/cosmos/group/v1/events"; -import { QueryGroupsByAdminRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupMetadataResponse } from "./types/cosmos/group/v1/tx"; +import { Member } from "./types/cosmos/group/v1/types"; +import { QueryProposalRequest } from "./types/cosmos/group/v1/query"; import { QueryGroupPoliciesByGroupRequest } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx"; -import { MsgCreateGroup } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupMembersResponse } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx"; import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx"; -import { EventWithdrawProposal } from "./types/cosmos/group/v1/events"; -import { QueryGroupsByAdminResponse } from "./types/cosmos/group/v1/query"; -import { QueryProposalResponse } from "./types/cosmos/group/v1/query"; -import { QueryProposalRequest } from "./types/cosmos/group/v1/query"; -import { Member } from "./types/cosmos/group/v1/types"; +import { MsgUpdateGroupMembersResponse } from "./types/cosmos/group/v1/tx"; +import { MsgExecResponse } from "./types/cosmos/group/v1/tx"; +import { MemberRequest } from "./types/cosmos/group/v1/types"; import { ThresholdDecisionPolicy } from "./types/cosmos/group/v1/types"; -import { PercentageDecisionPolicy } from "./types/cosmos/group/v1/types"; -import { EventUpdateGroup } from "./types/cosmos/group/v1/events"; -import { EventCreateGroupPolicy } from "./types/cosmos/group/v1/events"; -import { QueryGroupMembersResponse } from "./types/cosmos/group/v1/query"; +import { EventExec } from "./types/cosmos/group/v1/events"; +import { QueryProposalsByGroupPolicyRequest } from "./types/cosmos/group/v1/query"; import { QueryTallyResultResponse } from "./types/cosmos/group/v1/query"; -import { MsgCreateGroupWithPolicyResponse } from "./types/cosmos/group/v1/tx"; -import { MemberRequest } from "./types/cosmos/group/v1/types"; -import { EventCreateGroup } from "./types/cosmos/group/v1/events"; +import { MsgCreateGroupPolicyResponse } from "./types/cosmos/group/v1/tx"; import { MsgUpdateGroupPolicyDecisionPolicyResponse } from "./types/cosmos/group/v1/tx"; -import { GenesisState } from "./types/cosmos/group/v1/genesis"; -import { MsgVote } from "./types/cosmos/group/v1/tx"; +import { EventCreateGroup } from "./types/cosmos/group/v1/events"; +import { EventProposalPruned } from "./types/cosmos/group/v1/events"; +import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx"; +import { EventVote } from "./types/cosmos/group/v1/events"; +import { EventUpdateGroupPolicy } from "./types/cosmos/group/v1/events"; +import { EventLeaveGroup } from "./types/cosmos/group/v1/events"; import { MsgUpdateGroupAdminResponse } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupMetadataResponse } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupPolicyAdminResponse } from "./types/cosmos/group/v1/tx"; +import { MsgExec } from "./types/cosmos/group/v1/tx"; +import { GroupInfo } from "./types/cosmos/group/v1/types"; +import { QueryGroupsByAdminRequest } from "./types/cosmos/group/v1/query"; +import { QueryVotesByVoterRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx"; +import { GroupMember } from "./types/cosmos/group/v1/types"; +import { QueryGroupPoliciesByAdminResponse } from "./types/cosmos/group/v1/query"; +import { EventCreateGroupPolicy } from "./types/cosmos/group/v1/events"; +import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx"; +import { GenesisState } from "./types/cosmos/group/v1/genesis"; +import { MsgCreateGroupResponse } from "./types/cosmos/group/v1/tx"; import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx"; import { GroupPolicyInfo } from "./types/cosmos/group/v1/types"; -import { QueryVoteByProposalVoterRequest } from "./types/cosmos/group/v1/query"; -import { QueryVotesByProposalResponse } from "./types/cosmos/group/v1/query"; -import { QueryVotesByVoterResponse } from "./types/cosmos/group/v1/query"; +import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx"; +import { MsgCreateGroup } from "./types/cosmos/group/v1/tx"; import { QueryTallyResultRequest } from "./types/cosmos/group/v1/query"; -import { MsgSubmitProposalResponse } from "./types/cosmos/group/v1/tx"; -import { MsgVoteResponse } from "./types/cosmos/group/v1/tx"; -import { MsgExec } from "./types/cosmos/group/v1/tx"; -import { EventExec } from "./types/cosmos/group/v1/events"; -import { QueryProposalsByGroupPolicyRequest } from "./types/cosmos/group/v1/query"; -import { QueryVotesByProposalRequest } from "./types/cosmos/group/v1/query"; +import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx"; +import { DecisionPolicyWindows } from "./types/cosmos/group/v1/types"; +import { QueryGroupMembersResponse } from "./types/cosmos/group/v1/query"; +import { QueryVotesByVoterResponse } from "./types/cosmos/group/v1/query"; import { QueryGroupsByMemberRequest } from "./types/cosmos/group/v1/query"; -import { EventProposalPruned } from "./types/cosmos/group/v1/events"; -import { QueryGroupInfoRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupPolicyInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupsRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx"; +import { MsgWithdrawProposalResponse } from "./types/cosmos/group/v1/tx"; +import { QueryProposalResponse } from "./types/cosmos/group/v1/query"; +import { MsgSubmitProposalResponse } from "./types/cosmos/group/v1/tx"; import { QueryGroupsByMemberResponse } from "./types/cosmos/group/v1/query"; -import { QueryGroupsResponse } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx"; +import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupPolicyMetadataResponse } from "./types/cosmos/group/v1/tx"; +import { QueryProposalsByGroupPolicyResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupInfoResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupMembersRequest } from "./types/cosmos/group/v1/query"; import { MsgLeaveGroupResponse } from "./types/cosmos/group/v1/tx"; +import { PercentageDecisionPolicy } from "./types/cosmos/group/v1/types"; import { QueryGroupPolicyInfoResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupsResponse } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupPolicyAdminResponse } from "./types/cosmos/group/v1/tx"; +import { MsgVote } from "./types/cosmos/group/v1/tx"; +import { QueryGroupPoliciesByGroupResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByAdminResponse } from "./types/cosmos/group/v1/query"; +import { Proposal } from "./types/cosmos/group/v1/types"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy], - ["/cosmos.group.v1.EventUpdateGroupPolicy", EventUpdateGroupPolicy], - ["/cosmos.group.v1.EventLeaveGroup", EventLeaveGroup], - ["/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", QueryProposalsByGroupPolicyResponse], - ["/cosmos.group.v1.QueryVotesByVoterRequest", QueryVotesByVoterRequest], - ["/cosmos.group.v1.DecisionPolicyWindows", DecisionPolicyWindows], - ["/cosmos.group.v1.Proposal", Proposal], - ["/cosmos.group.v1.Vote", Vote], - ["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal], - ["/cosmos.group.v1.MsgExecResponse", MsgExecResponse], - ["/cosmos.group.v1.GroupMember", GroupMember], - ["/cosmos.group.v1.MsgCreateGroupPolicyResponse", MsgCreateGroupPolicyResponse], - ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", MsgUpdateGroupPolicyMetadataResponse], - ["/cosmos.group.v1.GroupInfo", GroupInfo], - ["/cosmos.group.v1.QueryGroupInfoResponse", QueryGroupInfoResponse], - ["/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", QueryGroupPoliciesByAdminRequest], - ["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy], - ["/cosmos.group.v1.MsgWithdrawProposalResponse", MsgWithdrawProposalResponse], - ["/cosmos.group.v1.QueryGroupsRequest", QueryGroupsRequest], - ["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin], - ["/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", QueryGroupPoliciesByAdminResponse], - ["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal], ["/cosmos.group.v1.TallyResult", TallyResult], - ["/cosmos.group.v1.EventVote", EventVote], - ["/cosmos.group.v1.QueryGroupMembersRequest", QueryGroupMembersRequest], - ["/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", QueryGroupPoliciesByGroupResponse], + ["/cosmos.group.v1.EventUpdateGroup", EventUpdateGroup], + ["/cosmos.group.v1.EventSubmitProposal", EventSubmitProposal], + ["/cosmos.group.v1.EventWithdrawProposal", EventWithdrawProposal], + ["/cosmos.group.v1.QueryGroupInfoRequest", QueryGroupInfoRequest], + ["/cosmos.group.v1.QueryGroupPolicyInfoRequest", QueryGroupPolicyInfoRequest], + ["/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", QueryGroupPoliciesByAdminRequest], + ["/cosmos.group.v1.Vote", Vote], + ["/cosmos.group.v1.QueryVotesByProposalResponse", QueryVotesByProposalResponse], + ["/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", MsgCreateGroupWithPolicyResponse], + ["/cosmos.group.v1.MsgVoteResponse", MsgVoteResponse], + ["/cosmos.group.v1.QueryVoteByProposalVoterRequest", QueryVoteByProposalVoterRequest], ["/cosmos.group.v1.QueryVoteByProposalVoterResponse", QueryVoteByProposalVoterResponse], - ["/cosmos.group.v1.MsgCreateGroupResponse", MsgCreateGroupResponse], + ["/cosmos.group.v1.QueryVotesByProposalRequest", QueryVotesByProposalRequest], ["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata], - ["/cosmos.group.v1.EventSubmitProposal", EventSubmitProposal], - ["/cosmos.group.v1.QueryGroupsByAdminRequest", QueryGroupsByAdminRequest], + ["/cosmos.group.v1.MsgUpdateGroupMetadataResponse", MsgUpdateGroupMetadataResponse], + ["/cosmos.group.v1.Member", Member], + ["/cosmos.group.v1.QueryProposalRequest", QueryProposalRequest], ["/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", QueryGroupPoliciesByGroupRequest], - ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin], - ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata], - ["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup], - ["/cosmos.group.v1.MsgUpdateGroupMembersResponse", MsgUpdateGroupMembersResponse], + ["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin], ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy], - ["/cosmos.group.v1.EventWithdrawProposal", EventWithdrawProposal], - ["/cosmos.group.v1.QueryGroupsByAdminResponse", QueryGroupsByAdminResponse], - ["/cosmos.group.v1.QueryProposalResponse", QueryProposalResponse], - ["/cosmos.group.v1.QueryProposalRequest", QueryProposalRequest], - ["/cosmos.group.v1.Member", Member], + ["/cosmos.group.v1.MsgUpdateGroupMembersResponse", MsgUpdateGroupMembersResponse], + ["/cosmos.group.v1.MsgExecResponse", MsgExecResponse], + ["/cosmos.group.v1.MemberRequest", MemberRequest], ["/cosmos.group.v1.ThresholdDecisionPolicy", ThresholdDecisionPolicy], - ["/cosmos.group.v1.PercentageDecisionPolicy", PercentageDecisionPolicy], - ["/cosmos.group.v1.EventUpdateGroup", EventUpdateGroup], - ["/cosmos.group.v1.EventCreateGroupPolicy", EventCreateGroupPolicy], - ["/cosmos.group.v1.QueryGroupMembersResponse", QueryGroupMembersResponse], + ["/cosmos.group.v1.EventExec", EventExec], + ["/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", QueryProposalsByGroupPolicyRequest], ["/cosmos.group.v1.QueryTallyResultResponse", QueryTallyResultResponse], - ["/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", MsgCreateGroupWithPolicyResponse], - ["/cosmos.group.v1.MemberRequest", MemberRequest], - ["/cosmos.group.v1.EventCreateGroup", EventCreateGroup], + ["/cosmos.group.v1.MsgCreateGroupPolicyResponse", MsgCreateGroupPolicyResponse], ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", MsgUpdateGroupPolicyDecisionPolicyResponse], - ["/cosmos.group.v1.GenesisState", GenesisState], - ["/cosmos.group.v1.MsgVote", MsgVote], + ["/cosmos.group.v1.EventCreateGroup", EventCreateGroup], + ["/cosmos.group.v1.EventProposalPruned", EventProposalPruned], + ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin], + ["/cosmos.group.v1.EventVote", EventVote], + ["/cosmos.group.v1.EventUpdateGroupPolicy", EventUpdateGroupPolicy], + ["/cosmos.group.v1.EventLeaveGroup", EventLeaveGroup], ["/cosmos.group.v1.MsgUpdateGroupAdminResponse", MsgUpdateGroupAdminResponse], - ["/cosmos.group.v1.MsgUpdateGroupMetadataResponse", MsgUpdateGroupMetadataResponse], - ["/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", MsgUpdateGroupPolicyAdminResponse], + ["/cosmos.group.v1.MsgExec", MsgExec], + ["/cosmos.group.v1.GroupInfo", GroupInfo], + ["/cosmos.group.v1.QueryGroupsByAdminRequest", QueryGroupsByAdminRequest], + ["/cosmos.group.v1.QueryVotesByVoterRequest", QueryVotesByVoterRequest], + ["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], + ["/cosmos.group.v1.GroupMember", GroupMember], + ["/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", QueryGroupPoliciesByAdminResponse], + ["/cosmos.group.v1.EventCreateGroupPolicy", EventCreateGroupPolicy], + ["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy], + ["/cosmos.group.v1.GenesisState", GenesisState], + ["/cosmos.group.v1.MsgCreateGroupResponse", MsgCreateGroupResponse], ["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup], ["/cosmos.group.v1.GroupPolicyInfo", GroupPolicyInfo], - ["/cosmos.group.v1.QueryVoteByProposalVoterRequest", QueryVoteByProposalVoterRequest], - ["/cosmos.group.v1.QueryVotesByProposalResponse", QueryVotesByProposalResponse], - ["/cosmos.group.v1.QueryVotesByVoterResponse", QueryVotesByVoterResponse], + ["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal], + ["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup], ["/cosmos.group.v1.QueryTallyResultRequest", QueryTallyResultRequest], - ["/cosmos.group.v1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], - ["/cosmos.group.v1.MsgVoteResponse", MsgVoteResponse], - ["/cosmos.group.v1.MsgExec", MsgExec], - ["/cosmos.group.v1.EventExec", EventExec], - ["/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", QueryProposalsByGroupPolicyRequest], - ["/cosmos.group.v1.QueryVotesByProposalRequest", QueryVotesByProposalRequest], + ["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal], + ["/cosmos.group.v1.DecisionPolicyWindows", DecisionPolicyWindows], + ["/cosmos.group.v1.QueryGroupMembersResponse", QueryGroupMembersResponse], + ["/cosmos.group.v1.QueryVotesByVoterResponse", QueryVotesByVoterResponse], ["/cosmos.group.v1.QueryGroupsByMemberRequest", QueryGroupsByMemberRequest], - ["/cosmos.group.v1.EventProposalPruned", EventProposalPruned], - ["/cosmos.group.v1.QueryGroupInfoRequest", QueryGroupInfoRequest], - ["/cosmos.group.v1.QueryGroupPolicyInfoRequest", QueryGroupPolicyInfoRequest], + ["/cosmos.group.v1.QueryGroupsRequest", QueryGroupsRequest], + ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata], + ["/cosmos.group.v1.MsgWithdrawProposalResponse", MsgWithdrawProposalResponse], + ["/cosmos.group.v1.QueryProposalResponse", QueryProposalResponse], + ["/cosmos.group.v1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], ["/cosmos.group.v1.QueryGroupsByMemberResponse", QueryGroupsByMemberResponse], - ["/cosmos.group.v1.QueryGroupsResponse", QueryGroupsResponse], - ["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], + ["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy], + ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", MsgUpdateGroupPolicyMetadataResponse], + ["/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", QueryProposalsByGroupPolicyResponse], + ["/cosmos.group.v1.QueryGroupInfoResponse", QueryGroupInfoResponse], + ["/cosmos.group.v1.QueryGroupMembersRequest", QueryGroupMembersRequest], ["/cosmos.group.v1.MsgLeaveGroupResponse", MsgLeaveGroupResponse], + ["/cosmos.group.v1.PercentageDecisionPolicy", PercentageDecisionPolicy], ["/cosmos.group.v1.QueryGroupPolicyInfoResponse", QueryGroupPolicyInfoResponse], + ["/cosmos.group.v1.QueryGroupsResponse", QueryGroupsResponse], + ["/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", MsgUpdateGroupPolicyAdminResponse], + ["/cosmos.group.v1.MsgVote", MsgVote], + ["/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", QueryGroupPoliciesByGroupResponse], + ["/cosmos.group.v1.QueryGroupsByAdminResponse", QueryGroupsByAdminResponse], + ["/cosmos.group.v1.Proposal", Proposal], ]; diff --git a/ts-client/cosmos.mint.v1beta1/module.ts b/ts-client/cosmos.mint.v1beta1/module.ts index 932853e10..be6e4d145 100755 --- a/ts-client/cosmos.mint.v1beta1/module.ts +++ b/ts-client/cosmos.mint.v1beta1/module.ts @@ -6,29 +6,35 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { GenesisState } from "./types/cosmos/mint/v1beta1/genesis"; -import { MsgUpdateParamsResponse } from "./types/cosmos/mint/v1beta1/tx"; +import { QueryAnnualProvisionsRequest } from "./types/cosmos/mint/v1beta1/query"; +import { QueryAnnualProvisionsResponse } from "./types/cosmos/mint/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/mint/v1beta1/query"; import { QueryInflationResponse } from "./types/cosmos/mint/v1beta1/query"; +import { Minter } from "./types/cosmos/mint/v1beta1/mint"; import { Params } from "./types/cosmos/mint/v1beta1/mint"; -import { QueryParamsRequest } from "./types/cosmos/mint/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/mint/v1beta1/query"; -import { Minter } from "./types/cosmos/mint/v1beta1/mint"; -import { QueryInflationRequest } from "./types/cosmos/mint/v1beta1/query"; -import { QueryAnnualProvisionsRequest } from "./types/cosmos/mint/v1beta1/query"; -import { QueryAnnualProvisionsResponse } from "./types/cosmos/mint/v1beta1/query"; import { MsgUpdateParams } from "./types/cosmos/mint/v1beta1/tx"; +import { MsgUpdateParamsResponse } from "./types/cosmos/mint/v1beta1/tx"; +import { GenesisState } from "./types/cosmos/mint/v1beta1/genesis"; +import { QueryInflationRequest } from "./types/cosmos/mint/v1beta1/query"; -export { GenesisState, MsgUpdateParamsResponse, QueryInflationResponse, Params, QueryParamsRequest, QueryParamsResponse, Minter, QueryInflationRequest, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse, MsgUpdateParams }; +export { QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse, QueryParamsRequest, QueryInflationResponse, Minter, Params, QueryParamsResponse, MsgUpdateParams, MsgUpdateParamsResponse, GenesisState, QueryInflationRequest }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryAnnualProvisionsRequestParams = { + value: QueryAnnualProvisionsRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendQueryAnnualProvisionsResponseParams = { + value: QueryAnnualProvisionsResponse, + fee?: StdFee, + memo?: string +}; + +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; @@ -39,14 +45,14 @@ type sendQueryInflationResponseParams = { memo?: string }; -type sendParamsParams = { - value: Params, +type sendMinterParams = { + value: Minter, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; @@ -57,79 +63,73 @@ type sendQueryParamsResponseParams = { memo?: string }; -type sendMinterParams = { - value: Minter, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendQueryInflationRequestParams = { - value: QueryInflationRequest, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryAnnualProvisionsRequestParams = { - value: QueryAnnualProvisionsRequest, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendQueryAnnualProvisionsResponseParams = { - value: QueryAnnualProvisionsResponse, +type sendQueryInflationRequestParams = { + value: QueryInflationRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, - fee?: StdFee, - memo?: string -}; +type queryAnnualProvisionsRequestParams = { + value: QueryAnnualProvisionsRequest, +}; -type genesisStateParams = { - value: GenesisState, +type queryAnnualProvisionsResponseParams = { + value: QueryAnnualProvisionsResponse, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; type queryInflationResponseParams = { value: QueryInflationResponse, }; -type paramsParams = { - value: Params, +type minterParams = { + value: Minter, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type paramsParams = { + value: Params, }; type queryParamsResponseParams = { value: QueryParamsResponse, }; -type minterParams = { - value: Minter, -}; - -type queryInflationRequestParams = { - value: QueryInflationRequest, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type queryAnnualProvisionsRequestParams = { - value: QueryAnnualProvisionsRequest, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type queryAnnualProvisionsResponseParams = { - value: QueryAnnualProvisionsResponse, +type genesisStateParams = { + value: GenesisState, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryInflationRequestParams = { + value: QueryInflationRequest, }; @@ -162,31 +162,45 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryAnnualProvisionsRequest({ value, fee, memo }: sendQueryAnnualProvisionsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.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:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAnnualProvisionsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendQueryAnnualProvisionsResponse({ value, fee, memo }: sendQueryAnnualProvisionsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + 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.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }) + 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:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAnnualProvisionsResponse: 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.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + 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:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, @@ -204,31 +218,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendMinter({ value, fee, memo }: sendMinterParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMinter: Unable to 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.minter({ value: Minter.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:sendMinter: 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) } }, @@ -246,90 +260,84 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMinter({ value, fee, memo }: sendMinterParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMinter: 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.minter({ value: Minter.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:sendMinter: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryInflationRequest({ value, fee, memo }: sendQueryInflationRequestParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryInflationRequest: 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.queryInflationRequest({ value: QueryInflationRequest.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:sendQueryInflationRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAnnualProvisionsRequest({ value, fee, memo }: sendQueryAnnualProvisionsRequestParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAnnualProvisionsRequest: 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.queryAnnualProvisionsRequest({ value: QueryAnnualProvisionsRequest.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:sendQueryAnnualProvisionsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAnnualProvisionsResponse({ value, fee, memo }: sendQueryAnnualProvisionsResponseParams): Promise { + async sendQueryInflationRequest({ value, fee, memo }: sendQueryInflationRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAnnualProvisionsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryInflationRequest: Unable to 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.queryInflationRequest({ value: QueryInflationRequest.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:sendQueryInflationRequest: Could not broadcast Tx: '+ e.message) } }, - 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) + + queryAnnualProvisionsRequest({ value }: queryAnnualProvisionsRequestParams): EncodeObject { + try { + return { typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", value: QueryAnnualProvisionsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:QueryAnnualProvisionsRequest: Could not create message: ' + e.message) } }, - - genesisState({ value }: genesisStateParams): EncodeObject { + queryAnnualProvisionsResponse({ value }: queryAnnualProvisionsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.mint.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", value: QueryAnnualProvisionsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAnnualProvisionsResponse: 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) } }, @@ -341,19 +349,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - params({ value }: paramsParams): EncodeObject { + minter({ value }: minterParams): EncodeObject { try { - return { typeUrl: "/cosmos.mint.v1beta1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/cosmos.mint.v1beta1.Minter", value: Minter.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:Minter: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/cosmos.mint.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.mint.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) } }, @@ -365,43 +373,35 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - minter({ value }: minterParams): EncodeObject { - try { - return { typeUrl: "/cosmos.mint.v1beta1.Minter", value: Minter.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:Minter: Could not create message: ' + e.message) - } - }, - - queryInflationRequest({ value }: queryInflationRequestParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", value: QueryInflationRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryInflationRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - queryAnnualProvisionsRequest({ value }: queryAnnualProvisionsRequestParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", value: QueryAnnualProvisionsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAnnualProvisionsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: 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 { + queryInflationRequest({ value }: queryInflationRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", value: QueryInflationRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryInflationRequest: 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 6fac321a1..5b9a22631 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 { GenesisState } from "./types/cosmos/mint/v1beta1/genesis"; -import { MsgUpdateParamsResponse } from "./types/cosmos/mint/v1beta1/tx"; +import { QueryAnnualProvisionsRequest } from "./types/cosmos/mint/v1beta1/query"; +import { QueryAnnualProvisionsResponse } from "./types/cosmos/mint/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/mint/v1beta1/query"; import { QueryInflationResponse } from "./types/cosmos/mint/v1beta1/query"; +import { Minter } from "./types/cosmos/mint/v1beta1/mint"; import { Params } from "./types/cosmos/mint/v1beta1/mint"; -import { QueryParamsRequest } from "./types/cosmos/mint/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/mint/v1beta1/query"; -import { Minter } from "./types/cosmos/mint/v1beta1/mint"; -import { QueryInflationRequest } from "./types/cosmos/mint/v1beta1/query"; -import { QueryAnnualProvisionsRequest } from "./types/cosmos/mint/v1beta1/query"; -import { QueryAnnualProvisionsResponse } from "./types/cosmos/mint/v1beta1/query"; import { MsgUpdateParams } from "./types/cosmos/mint/v1beta1/tx"; +import { MsgUpdateParamsResponse } from "./types/cosmos/mint/v1beta1/tx"; +import { GenesisState } from "./types/cosmos/mint/v1beta1/genesis"; +import { QueryInflationRequest } from "./types/cosmos/mint/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.mint.v1beta1.GenesisState", GenesisState], - ["/cosmos.mint.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", QueryAnnualProvisionsRequest], + ["/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", QueryAnnualProvisionsResponse], + ["/cosmos.mint.v1beta1.QueryParamsRequest", QueryParamsRequest], ["/cosmos.mint.v1beta1.QueryInflationResponse", QueryInflationResponse], + ["/cosmos.mint.v1beta1.Minter", Minter], ["/cosmos.mint.v1beta1.Params", Params], - ["/cosmos.mint.v1beta1.QueryParamsRequest", QueryParamsRequest], ["/cosmos.mint.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.mint.v1beta1.Minter", Minter], - ["/cosmos.mint.v1beta1.QueryInflationRequest", QueryInflationRequest], - ["/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", QueryAnnualProvisionsRequest], - ["/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", QueryAnnualProvisionsResponse], ["/cosmos.mint.v1beta1.MsgUpdateParams", MsgUpdateParams], + ["/cosmos.mint.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.mint.v1beta1.GenesisState", GenesisState], + ["/cosmos.mint.v1beta1.QueryInflationRequest", QueryInflationRequest], ]; diff --git a/ts-client/cosmos.params.v1beta1/module.ts b/ts-client/cosmos.params.v1beta1/module.ts index 73902db17..b55e1db8a 100755 --- a/ts-client/cosmos.params.v1beta1/module.ts +++ b/ts-client/cosmos.params.v1beta1/module.ts @@ -6,28 +6,16 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { Subspace } from "./types/cosmos/params/v1beta1/query"; -import { ParamChange } from "./types/cosmos/params/v1beta1/params"; import { ParameterChangeProposal } from "./types/cosmos/params/v1beta1/params"; -import { QueryParamsResponse } from "./types/cosmos/params/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/params/v1beta1/query"; import { QuerySubspacesRequest } from "./types/cosmos/params/v1beta1/query"; import { QuerySubspacesResponse } from "./types/cosmos/params/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/params/v1beta1/query"; - - -export { Subspace, ParamChange, ParameterChangeProposal, QueryParamsResponse, QuerySubspacesRequest, QuerySubspacesResponse, QueryParamsRequest }; +import { Subspace } from "./types/cosmos/params/v1beta1/query"; +import { ParamChange } from "./types/cosmos/params/v1beta1/params"; +import { QueryParamsResponse } from "./types/cosmos/params/v1beta1/query"; -type sendSubspaceParams = { - value: Subspace, - fee?: StdFee, - memo?: string -}; -type sendParamChangeParams = { - value: ParamChange, - fee?: StdFee, - memo?: string -}; +export { ParameterChangeProposal, QueryParamsRequest, QuerySubspacesRequest, QuerySubspacesResponse, Subspace, ParamChange, QueryParamsResponse }; type sendParameterChangeProposalParams = { value: ParameterChangeProposal, @@ -35,8 +23,8 @@ type sendParameterChangeProposalParams = { memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; @@ -53,27 +41,31 @@ type sendQuerySubspacesResponseParams = { memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendSubspaceParams = { + value: Subspace, fee?: StdFee, memo?: string }; - -type subspaceParams = { - value: Subspace, +type sendParamChangeParams = { + value: ParamChange, + fee?: StdFee, + memo?: string }; -type paramChangeParams = { - value: ParamChange, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, + fee?: StdFee, + memo?: string }; + type parameterChangeProposalParams = { value: ParameterChangeProposal, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; type querySubspacesRequestParams = { @@ -84,8 +76,16 @@ type querySubspacesResponseParams = { value: QuerySubspacesResponse, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type subspaceParams = { + value: Subspace, +}; + +type paramChangeParams = { + value: ParamChange, +}; + +type queryParamsResponseParams = { + value: QueryParamsResponse, }; @@ -118,158 +118,158 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendSubspace({ value, fee, memo }: sendSubspaceParams): Promise { + async sendParameterChangeProposal({ value, fee, memo }: sendParameterChangeProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendSubspace: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendParameterChangeProposal: Unable to 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.parameterChangeProposal({ value: ParameterChangeProposal.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:sendParameterChangeProposal: Could not broadcast Tx: '+ e.message) } }, - 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) } }, - async sendParameterChangeProposal({ value, fee, memo }: sendParameterChangeProposalParams): Promise { + async sendQuerySubspacesRequest({ value, fee, memo }: sendQuerySubspacesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendParameterChangeProposal: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySubspacesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.parameterChangeProposal({ value: ParameterChangeProposal.fromPartial(value) }) + let msg = this.querySubspacesRequest({ value: QuerySubspacesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendParameterChangeProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySubspacesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendQuerySubspacesResponse({ value, fee, memo }: sendQuerySubspacesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: 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.queryParamsResponse({ value: QueryParamsResponse.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:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySubspacesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySubspacesRequest({ value, fee, memo }: sendQuerySubspacesRequestParams): Promise { + async sendSubspace({ value, fee, memo }: sendSubspaceParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySubspacesRequest: 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.querySubspacesRequest({ value: QuerySubspacesRequest.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:sendQuerySubspacesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSubspace: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySubspacesResponse({ value, fee, memo }: sendQuerySubspacesResponseParams): Promise { + async sendParamChange({ value, fee, memo }: sendParamChangeParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySubspacesResponse: 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.querySubspacesResponse({ value: QuerySubspacesResponse.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:sendQuerySubspacesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParamChange: 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) } }, - subspace({ value }: subspaceParams): EncodeObject { + parameterChangeProposal({ value }: parameterChangeProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.params.v1beta1.Subspace", value: Subspace.fromPartial( value ) } + return { typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", value: ParameterChangeProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Subspace: Could not create message: ' + e.message) + throw new Error('TxClient:ParameterChangeProposal: Could not create message: ' + 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) } }, - parameterChangeProposal({ value }: parameterChangeProposalParams): EncodeObject { + querySubspacesRequest({ value }: querySubspacesRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", value: ParameterChangeProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest", value: QuerySubspacesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ParameterChangeProposal: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySubspacesRequest: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + querySubspacesResponse({ value }: querySubspacesResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", value: QuerySubspacesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySubspacesResponse: Could not create message: ' + e.message) } }, - querySubspacesRequest({ value }: querySubspacesRequestParams): EncodeObject { + subspace({ value }: subspaceParams): EncodeObject { try { - return { typeUrl: "/cosmos.params.v1beta1.QuerySubspacesRequest", value: QuerySubspacesRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.params.v1beta1.Subspace", value: Subspace.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySubspacesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Subspace: Could not create message: ' + e.message) } }, - querySubspacesResponse({ value }: querySubspacesResponseParams): EncodeObject { + paramChange({ value }: paramChangeParams): EncodeObject { try { - return { typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", value: QuerySubspacesResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.params.v1beta1.ParamChange", value: ParamChange.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySubspacesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ParamChange: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.params.v1beta1.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/cosmos.params.v1beta1/registry.ts b/ts-client/cosmos.params.v1beta1/registry.ts index 963d1ca26..82b887756 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 { Subspace } from "./types/cosmos/params/v1beta1/query"; -import { ParamChange } from "./types/cosmos/params/v1beta1/params"; import { ParameterChangeProposal } from "./types/cosmos/params/v1beta1/params"; -import { QueryParamsResponse } from "./types/cosmos/params/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/params/v1beta1/query"; import { QuerySubspacesRequest } from "./types/cosmos/params/v1beta1/query"; import { QuerySubspacesResponse } from "./types/cosmos/params/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/params/v1beta1/query"; +import { Subspace } from "./types/cosmos/params/v1beta1/query"; +import { ParamChange } from "./types/cosmos/params/v1beta1/params"; +import { QueryParamsResponse } from "./types/cosmos/params/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.params.v1beta1.Subspace", Subspace], - ["/cosmos.params.v1beta1.ParamChange", ParamChange], ["/cosmos.params.v1beta1.ParameterChangeProposal", ParameterChangeProposal], - ["/cosmos.params.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.params.v1beta1.QueryParamsRequest", QueryParamsRequest], ["/cosmos.params.v1beta1.QuerySubspacesRequest", QuerySubspacesRequest], ["/cosmos.params.v1beta1.QuerySubspacesResponse", QuerySubspacesResponse], - ["/cosmos.params.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.params.v1beta1.Subspace", Subspace], + ["/cosmos.params.v1beta1.ParamChange", ParamChange], + ["/cosmos.params.v1beta1.QueryParamsResponse", QueryParamsResponse], ]; diff --git a/ts-client/cosmos.slashing.v1beta1/module.ts b/ts-client/cosmos.slashing.v1beta1/module.ts index 793b32dfd..3eba6f964 100755 --- a/ts-client/cosmos.slashing.v1beta1/module.ts +++ b/ts-client/cosmos.slashing.v1beta1/module.ts @@ -6,28 +6,34 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { QueryParamsRequest } from "./types/cosmos/slashing/v1beta1/query"; -import { QuerySigningInfosRequest } from "./types/cosmos/slashing/v1beta1/query"; import { MissedBlock } from "./types/cosmos/slashing/v1beta1/genesis"; +import { QuerySigningInfoResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { QuerySigningInfosRequest } from "./types/cosmos/slashing/v1beta1/query"; +import { QuerySigningInfoRequest } from "./types/cosmos/slashing/v1beta1/query"; +import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; import { MsgUnjailResponse } from "./types/cosmos/slashing/v1beta1/tx"; import { MsgUpdateParams } from "./types/cosmos/slashing/v1beta1/tx"; -import { ValidatorSigningInfo } from "./types/cosmos/slashing/v1beta1/slashing"; -import { QuerySigningInfoResponse } from "./types/cosmos/slashing/v1beta1/query"; -import { GenesisState } from "./types/cosmos/slashing/v1beta1/genesis"; import { MsgUpdateParamsResponse } from "./types/cosmos/slashing/v1beta1/tx"; -import { Params } from "./types/cosmos/slashing/v1beta1/slashing"; +import { QueryParamsRequest } from "./types/cosmos/slashing/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/slashing/v1beta1/query"; -import { QuerySigningInfoRequest } from "./types/cosmos/slashing/v1beta1/query"; -import { SigningInfo } from "./types/cosmos/slashing/v1beta1/genesis"; +import { ValidatorSigningInfo } from "./types/cosmos/slashing/v1beta1/slashing"; import { ValidatorMissedBlocks } from "./types/cosmos/slashing/v1beta1/genesis"; -import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; import { QuerySigningInfosResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { GenesisState } from "./types/cosmos/slashing/v1beta1/genesis"; +import { SigningInfo } from "./types/cosmos/slashing/v1beta1/genesis"; +import { Params } from "./types/cosmos/slashing/v1beta1/slashing"; -export { QueryParamsRequest, QuerySigningInfosRequest, MissedBlock, MsgUnjailResponse, MsgUpdateParams, ValidatorSigningInfo, QuerySigningInfoResponse, GenesisState, MsgUpdateParamsResponse, Params, QueryParamsResponse, QuerySigningInfoRequest, SigningInfo, ValidatorMissedBlocks, MsgUnjail, QuerySigningInfosResponse }; +export { MissedBlock, QuerySigningInfoResponse, QuerySigningInfosRequest, QuerySigningInfoRequest, MsgUnjail, MsgUnjailResponse, MsgUpdateParams, MsgUpdateParamsResponse, QueryParamsRequest, QueryParamsResponse, ValidatorSigningInfo, ValidatorMissedBlocks, QuerySigningInfosResponse, GenesisState, SigningInfo, Params }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendMissedBlockParams = { + value: MissedBlock, + fee?: StdFee, + memo?: string +}; + +type sendQuerySigningInfoResponseParams = { + value: QuerySigningInfoResponse, fee?: StdFee, memo?: string }; @@ -38,8 +44,14 @@ type sendQuerySigningInfosRequestParams = { memo?: string }; -type sendMissedBlockParams = { - value: MissedBlock, +type sendQuerySigningInfoRequestParams = { + value: QuerySigningInfoRequest, + fee?: StdFee, + memo?: string +}; + +type sendMsgUnjailParams = { + value: MsgUnjail, fee?: StdFee, memo?: string }; @@ -56,44 +68,44 @@ type sendMsgUpdateParamsParams = { memo?: string }; -type sendValidatorSigningInfoParams = { - value: ValidatorSigningInfo, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendQuerySigningInfoResponseParams = { - value: QuerySigningInfoResponse, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendValidatorSigningInfoParams = { + value: ValidatorSigningInfo, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendValidatorMissedBlocksParams = { + value: ValidatorMissedBlocks, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendQuerySigningInfosResponseParams = { + value: QuerySigningInfosResponse, fee?: StdFee, memo?: string }; -type sendQuerySigningInfoRequestParams = { - value: QuerySigningInfoRequest, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; @@ -104,35 +116,31 @@ type sendSigningInfoParams = { memo?: string }; -type sendValidatorMissedBlocksParams = { - value: ValidatorMissedBlocks, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendMsgUnjailParams = { - value: MsgUnjail, - fee?: StdFee, - memo?: string -}; -type sendQuerySigningInfosResponseParams = { - value: QuerySigningInfosResponse, - fee?: StdFee, - memo?: string +type missedBlockParams = { + value: MissedBlock, }; - -type queryParamsRequestParams = { - value: QueryParamsRequest, +type querySigningInfoResponseParams = { + value: QuerySigningInfoResponse, }; type querySigningInfosRequestParams = { value: QuerySigningInfosRequest, }; -type missedBlockParams = { - value: MissedBlock, +type querySigningInfoRequestParams = { + value: QuerySigningInfoRequest, +}; + +type msgUnjailParams = { + value: MsgUnjail, }; type msgUnjailResponseParams = { @@ -143,50 +151,42 @@ type msgUpdateParamsParams = { value: MsgUpdateParams, }; -type validatorSigningInfoParams = { - value: ValidatorSigningInfo, -}; - -type querySigningInfoResponseParams = { - value: QuerySigningInfoResponse, -}; - -type genesisStateParams = { - value: GenesisState, -}; - type msgUpdateParamsResponseParams = { value: MsgUpdateParamsResponse, }; -type paramsParams = { - value: Params, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; type queryParamsResponseParams = { value: QueryParamsResponse, }; -type querySigningInfoRequestParams = { - value: QuerySigningInfoRequest, -}; - -type signingInfoParams = { - value: SigningInfo, +type validatorSigningInfoParams = { + value: ValidatorSigningInfo, }; type validatorMissedBlocksParams = { value: ValidatorMissedBlocks, }; -type msgUnjailParams = { - value: MsgUnjail, -}; - type querySigningInfosResponseParams = { value: QuerySigningInfosResponse, }; +type genesisStateParams = { + value: GenesisState, +}; + +type signingInfoParams = { + value: SigningInfo, +}; + +type paramsParams = { + value: Params, +}; + export const registry = new Registry(msgTypes); @@ -217,115 +217,101 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { - if (!signer) { - 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.queryParamsRequest({ value: QueryParamsRequest.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) - } - }, - - 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 sendMissedBlock({ value, fee, memo }: sendMissedBlockParams): Promise { + async sendQuerySigningInfoResponse({ value, fee, memo }: sendQuerySigningInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMissedBlock: 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.missedBlock({ value: MissedBlock.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:sendMissedBlock: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySigningInfoResponse: 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 sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendQuerySigningInfoRequest({ value, fee, memo }: sendQuerySigningInfoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.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:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySigningInfoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorSigningInfo({ value, fee, memo }: sendValidatorSigningInfoParams): Promise { + async sendMsgUnjail({ value, fee, memo }: sendMsgUnjailParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorSigningInfo: 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.validatorSigningInfo({ value: ValidatorSigningInfo.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:sendValidatorSigningInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUnjail: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySigningInfoResponse({ value, fee, memo }: sendQuerySigningInfoResponseParams): Promise { + async sendMsgUnjailResponse({ value, fee, memo }: sendMsgUnjailResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySigningInfoResponse: 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.querySigningInfoResponse({ value: QuerySigningInfoResponse.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:sendQuerySigningInfoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUnjailResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.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:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, @@ -343,17 +329,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - 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) } }, @@ -371,138 +357,144 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQuerySigningInfoRequest({ value, fee, memo }: sendQuerySigningInfoRequestParams): Promise { + async sendValidatorSigningInfo({ value, fee, memo }: sendValidatorSigningInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySigningInfoRequest: 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.querySigningInfoRequest({ value: QuerySigningInfoRequest.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:sendQuerySigningInfoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorSigningInfo: Could not broadcast Tx: '+ e.message) } }, - async sendSigningInfo({ value, fee, memo }: sendSigningInfoParams): Promise { + async sendValidatorMissedBlocks({ value, fee, memo }: sendValidatorMissedBlocksParams): Promise { if (!signer) { - throw new Error('TxClient:sendSigningInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendValidatorMissedBlocks: Unable to 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.validatorMissedBlocks({ value: ValidatorMissedBlocks.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:sendValidatorMissedBlocks: Could not broadcast Tx: '+ e.message) } }, - async sendValidatorMissedBlocks({ value, fee, memo }: sendValidatorMissedBlocksParams): Promise { + async sendQuerySigningInfosResponse({ value, fee, memo }: sendQuerySigningInfosResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorMissedBlocks: 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.validatorMissedBlocks({ value: ValidatorMissedBlocks.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:sendValidatorMissedBlocks: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySigningInfosResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUnjail({ value, fee, memo }: sendMsgUnjailParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUnjail: 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.msgUnjail({ value: MsgUnjail.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:sendMsgUnjail: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySigningInfosResponse({ value, fee, memo }: sendQuerySigningInfosResponseParams): Promise { + async sendSigningInfo({ value, fee, memo }: sendSigningInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySigningInfosResponse: 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.querySigningInfosResponse({ value: QuerySigningInfosResponse.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:sendQuerySigningInfosResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSigningInfo: Could not broadcast Tx: '+ e.message) } }, - - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { - try { - return { typeUrl: "/cosmos.slashing.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + 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:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ 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) } }, - missedBlock({ value }: missedBlockParams): EncodeObject { + querySigningInfoResponse({ value }: querySigningInfoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.MissedBlock", value: MissedBlock.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoResponse", value: QuerySigningInfoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MissedBlock: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySigningInfoResponse: 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) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + querySigningInfoRequest({ value }: querySigningInfoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoRequest", value: QuerySigningInfoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySigningInfoRequest: Could not create message: ' + e.message) } }, - validatorSigningInfo({ value }: validatorSigningInfoParams): EncodeObject { + msgUnjail({ value }: msgUnjailParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo", value: ValidatorSigningInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", value: MsgUnjail.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorSigningInfo: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUnjail: Could not create message: ' + e.message) } }, - querySigningInfoResponse({ value }: querySigningInfoResponseParams): EncodeObject { + msgUnjailResponse({ value }: msgUnjailResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoResponse", value: QuerySigningInfoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.MsgUnjailResponse", value: MsgUnjailResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySigningInfoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUnjailResponse: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, @@ -514,11 +506,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - params({ value }: paramsParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.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) } }, @@ -530,43 +522,51 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - querySigningInfoRequest({ value }: querySigningInfoRequestParams): EncodeObject { + validatorSigningInfo({ value }: validatorSigningInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoRequest", value: QuerySigningInfoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo", value: ValidatorSigningInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySigningInfoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorSigningInfo: Could not create message: ' + e.message) } }, - signingInfo({ value }: signingInfoParams): EncodeObject { + validatorMissedBlocks({ value }: validatorMissedBlocksParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.SigningInfo", value: SigningInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.ValidatorMissedBlocks", value: ValidatorMissedBlocks.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SigningInfo: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorMissedBlocks: Could not create message: ' + e.message) } }, - validatorMissedBlocks({ value }: validatorMissedBlocksParams): EncodeObject { + querySigningInfosResponse({ value }: querySigningInfosResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.ValidatorMissedBlocks", value: ValidatorMissedBlocks.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosResponse", value: QuerySigningInfosResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorMissedBlocks: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySigningInfosResponse: Could not create message: ' + e.message) } }, - msgUnjail({ value }: msgUnjailParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", value: MsgUnjail.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUnjail: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - querySigningInfosResponse({ value }: querySigningInfosResponseParams): EncodeObject { + signingInfo({ value }: signingInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosResponse", value: QuerySigningInfosResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.slashing.v1beta1.SigningInfo", value: SigningInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySigningInfosResponse: Could not create message: ' + e.message) + throw new Error('TxClient:SigningInfo: Could not create message: ' + e.message) + } + }, + + params({ value }: paramsParams): EncodeObject { + try { + return { typeUrl: "/cosmos.slashing.v1beta1.Params", value: Params.fromPartial( value ) } + } catch (e: any) { + 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 9abe75cae..26cd8796d 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 { QueryParamsRequest } from "./types/cosmos/slashing/v1beta1/query"; -import { QuerySigningInfosRequest } from "./types/cosmos/slashing/v1beta1/query"; import { MissedBlock } from "./types/cosmos/slashing/v1beta1/genesis"; +import { QuerySigningInfoResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { QuerySigningInfosRequest } from "./types/cosmos/slashing/v1beta1/query"; +import { QuerySigningInfoRequest } from "./types/cosmos/slashing/v1beta1/query"; +import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; import { MsgUnjailResponse } from "./types/cosmos/slashing/v1beta1/tx"; import { MsgUpdateParams } from "./types/cosmos/slashing/v1beta1/tx"; -import { ValidatorSigningInfo } from "./types/cosmos/slashing/v1beta1/slashing"; -import { QuerySigningInfoResponse } from "./types/cosmos/slashing/v1beta1/query"; -import { GenesisState } from "./types/cosmos/slashing/v1beta1/genesis"; import { MsgUpdateParamsResponse } from "./types/cosmos/slashing/v1beta1/tx"; -import { Params } from "./types/cosmos/slashing/v1beta1/slashing"; +import { QueryParamsRequest } from "./types/cosmos/slashing/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/slashing/v1beta1/query"; -import { QuerySigningInfoRequest } from "./types/cosmos/slashing/v1beta1/query"; -import { SigningInfo } from "./types/cosmos/slashing/v1beta1/genesis"; +import { ValidatorSigningInfo } from "./types/cosmos/slashing/v1beta1/slashing"; import { ValidatorMissedBlocks } from "./types/cosmos/slashing/v1beta1/genesis"; -import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; import { QuerySigningInfosResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { GenesisState } from "./types/cosmos/slashing/v1beta1/genesis"; +import { SigningInfo } from "./types/cosmos/slashing/v1beta1/genesis"; +import { Params } from "./types/cosmos/slashing/v1beta1/slashing"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.slashing.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.slashing.v1beta1.QuerySigningInfosRequest", QuerySigningInfosRequest], ["/cosmos.slashing.v1beta1.MissedBlock", MissedBlock], + ["/cosmos.slashing.v1beta1.QuerySigningInfoResponse", QuerySigningInfoResponse], + ["/cosmos.slashing.v1beta1.QuerySigningInfosRequest", QuerySigningInfosRequest], + ["/cosmos.slashing.v1beta1.QuerySigningInfoRequest", QuerySigningInfoRequest], + ["/cosmos.slashing.v1beta1.MsgUnjail", MsgUnjail], ["/cosmos.slashing.v1beta1.MsgUnjailResponse", MsgUnjailResponse], ["/cosmos.slashing.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/cosmos.slashing.v1beta1.ValidatorSigningInfo", ValidatorSigningInfo], - ["/cosmos.slashing.v1beta1.QuerySigningInfoResponse", QuerySigningInfoResponse], - ["/cosmos.slashing.v1beta1.GenesisState", GenesisState], ["/cosmos.slashing.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/cosmos.slashing.v1beta1.Params", Params], + ["/cosmos.slashing.v1beta1.QueryParamsRequest", QueryParamsRequest], ["/cosmos.slashing.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.slashing.v1beta1.QuerySigningInfoRequest", QuerySigningInfoRequest], - ["/cosmos.slashing.v1beta1.SigningInfo", SigningInfo], + ["/cosmos.slashing.v1beta1.ValidatorSigningInfo", ValidatorSigningInfo], ["/cosmos.slashing.v1beta1.ValidatorMissedBlocks", ValidatorMissedBlocks], - ["/cosmos.slashing.v1beta1.MsgUnjail", MsgUnjail], ["/cosmos.slashing.v1beta1.QuerySigningInfosResponse", QuerySigningInfosResponse], + ["/cosmos.slashing.v1beta1.GenesisState", GenesisState], + ["/cosmos.slashing.v1beta1.SigningInfo", SigningInfo], + ["/cosmos.slashing.v1beta1.Params", Params], ]; diff --git a/ts-client/cosmos.staking.v1beta1/module.ts b/ts-client/cosmos.staking.v1beta1/module.ts index 7b6163f55..e84d28e8b 100755 --- a/ts-client/cosmos.staking.v1beta1/module.ts +++ b/ts-client/cosmos.staking.v1beta1/module.ts @@ -6,115 +6,115 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { ValidatorUpdates } from "./types/cosmos/staking/v1beta1/staking"; -import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { HistoricalInfo } from "./types/cosmos/staking/v1beta1/staking"; -import { DVVTriplet } from "./types/cosmos/staking/v1beta1/staking"; +import { Validator } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgBeginRedelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; import { RedelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; -import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { ValAddresses } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryValidatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryParamsResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryValidatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryRedelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgEditValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgUpdateParams } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgUpdateParamsResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryUnbondingDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgDelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { Redelegation } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgCancelUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/tx"; import { StakeAuthorization_Validators } from "./types/cosmos/staking/v1beta1/authz"; -import { QueryHistoricalInfoResponse } from "./types/cosmos/staking/v1beta1/query"; -import { LastValidatorPower } from "./types/cosmos/staking/v1beta1/genesis"; +import { QueryUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUpdateParams } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgCancelUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/tx"; import { Description } from "./types/cosmos/staking/v1beta1/staking"; -import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryParamsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { Params } from "./types/cosmos/staking/v1beta1/staking"; +import { Pool } from "./types/cosmos/staking/v1beta1/staking"; import { UnbondingDelegation } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryPoolResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgCreateValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { QueryValidatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryDelegatorValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryRedelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryDelegatorValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryHistoricalInfoRequest } from "./types/cosmos/staking/v1beta1/query"; -import { DVVTriplets } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryDelegatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { ValAddresses } from "./types/cosmos/staking/v1beta1/staking"; +import { DVPairs } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; import { QueryValidatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryPoolRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; import { CommissionRates } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgBeginRedelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { QueryValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryUnbondingDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; -import { Commission } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; -import { Validator } from "./types/cosmos/staking/v1beta1/staking"; -import { DVPairs } from "./types/cosmos/staking/v1beta1/staking"; -import { Redelegation } from "./types/cosmos/staking/v1beta1/staking"; -import { GenesisState } from "./types/cosmos/staking/v1beta1/genesis"; -import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx"; -import { QueryValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryDelegatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { Delegation } from "./types/cosmos/staking/v1beta1/staking"; import { DVPair } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgDelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { ValidatorUpdates } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgCreateValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; import { MsgUndelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { Pool } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { QueryDelegatorValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; -import { StakeAuthorization } from "./types/cosmos/staking/v1beta1/authz"; +import { Params } from "./types/cosmos/staking/v1beta1/staking"; +import { Delegation } from "./types/cosmos/staking/v1beta1/staking"; import { UnbondingDelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; +import { HistoricalInfo } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { LastValidatorPower } from "./types/cosmos/staking/v1beta1/genesis"; +import { QueryRedelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryPoolRequest } from "./types/cosmos/staking/v1beta1/query"; +import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryRedelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { MsgEditValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryHistoricalInfoRequest } from "./types/cosmos/staking/v1beta1/query"; +import { Commission } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryHistoricalInfoResponse } from "./types/cosmos/staking/v1beta1/query"; +import { DVVTriplet } from "./types/cosmos/staking/v1beta1/staking"; +import { DVVTriplets } from "./types/cosmos/staking/v1beta1/staking"; +import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { StakeAuthorization } from "./types/cosmos/staking/v1beta1/authz"; +import { GenesisState } from "./types/cosmos/staking/v1beta1/genesis"; +import { QueryDelegatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryPoolResponse } from "./types/cosmos/staking/v1beta1/query"; -export { ValidatorUpdates, DelegationResponse, HistoricalInfo, DVVTriplet, RedelegationEntry, RedelegationResponse, ValAddresses, QueryValidatorUnbondingDelegationsRequest, QueryRedelegationsRequest, MsgCreateValidator, MsgEditValidatorResponse, MsgUpdateParams, MsgUpdateParamsResponse, StakeAuthorization_Validators, QueryHistoricalInfoResponse, LastValidatorPower, QueryDelegatorDelegationsRequest, QueryDelegatorValidatorResponse, MsgCancelUnbondingDelegationResponse, Description, RedelegationEntryResponse, QueryParamsResponse, Params, UnbondingDelegation, QueryValidatorUnbondingDelegationsResponse, QueryPoolResponse, MsgCreateValidatorResponse, QueryValidatorDelegationsResponse, QueryDelegatorValidatorsResponse, QueryUnbondingDelegationResponse, QueryRedelegationsResponse, QueryDelegatorValidatorsRequest, QueryHistoricalInfoRequest, DVVTriplets, QueryValidatorDelegationsRequest, QueryPoolRequest, CommissionRates, QueryDelegatorDelegationsResponse, MsgBeginRedelegateResponse, QueryValidatorResponse, QueryUnbondingDelegationRequest, Commission, QueryValidatorsResponse, QueryValidatorRequest, Validator, DVPairs, Redelegation, GenesisState, MsgDelegate, MsgCancelUnbondingDelegation, QueryValidatorsRequest, QueryDelegationResponse, QueryDelegatorUnbondingDelegationsResponse, Delegation, DVPair, QueryDelegatorUnbondingDelegationsRequest, QueryParamsRequest, MsgEditValidator, MsgDelegateResponse, MsgUndelegateResponse, Pool, QueryDelegationRequest, MsgUndelegate, QueryDelegatorValidatorRequest, StakeAuthorization, UnbondingDelegationEntry, MsgBeginRedelegate }; +export { Validator, MsgBeginRedelegateResponse, RedelegationEntry, QueryValidatorResponse, QueryValidatorDelegationsResponse, QueryParamsRequest, QueryParamsResponse, QueryValidatorUnbondingDelegationsRequest, QueryUnbondingDelegationRequest, MsgDelegateResponse, MsgUndelegate, Redelegation, QueryValidatorsRequest, MsgEditValidator, MsgCancelUnbondingDelegationResponse, StakeAuthorization_Validators, QueryUnbondingDelegationResponse, QueryDelegatorValidatorsRequest, MsgUpdateParamsResponse, DelegationResponse, QueryValidatorUnbondingDelegationsResponse, MsgDelegate, MsgCancelUnbondingDelegation, MsgUpdateParams, QueryDelegationRequest, QueryDelegatorDelegationsRequest, QueryDelegatorValidatorResponse, Description, Pool, UnbondingDelegation, QueryDelegatorUnbondingDelegationsResponse, ValAddresses, DVPairs, MsgCreateValidator, QueryValidatorDelegationsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorRequest, CommissionRates, QueryDelegationResponse, DVPair, ValidatorUpdates, MsgCreateValidatorResponse, MsgUndelegateResponse, Params, Delegation, UnbondingDelegationEntry, HistoricalInfo, QueryValidatorsResponse, QueryDelegatorDelegationsResponse, MsgBeginRedelegate, LastValidatorPower, QueryRedelegationsRequest, QueryPoolRequest, RedelegationResponse, QueryRedelegationsResponse, MsgEditValidatorResponse, QueryHistoricalInfoRequest, Commission, QueryValidatorRequest, QueryHistoricalInfoResponse, DVVTriplet, DVVTriplets, RedelegationEntryResponse, StakeAuthorization, GenesisState, QueryDelegatorUnbondingDelegationsRequest, QueryPoolResponse }; -type sendValidatorUpdatesParams = { - value: ValidatorUpdates, +type sendValidatorParams = { + value: Validator, fee?: StdFee, memo?: string }; -type sendDelegationResponseParams = { - value: DelegationResponse, +type sendMsgBeginRedelegateResponseParams = { + value: MsgBeginRedelegateResponse, fee?: StdFee, memo?: string }; -type sendHistoricalInfoParams = { - value: HistoricalInfo, +type sendRedelegationEntryParams = { + value: RedelegationEntry, fee?: StdFee, memo?: string }; -type sendDVVTripletParams = { - value: DVVTriplet, +type sendQueryValidatorResponseParams = { + value: QueryValidatorResponse, fee?: StdFee, memo?: string }; -type sendRedelegationEntryParams = { - value: RedelegationEntry, +type sendQueryValidatorDelegationsResponseParams = { + value: QueryValidatorDelegationsResponse, fee?: StdFee, memo?: string }; -type sendRedelegationResponseParams = { - value: RedelegationResponse, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendValAddressesParams = { - value: ValAddresses, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; @@ -125,158 +125,158 @@ type sendQueryValidatorUnbondingDelegationsRequestParams = { memo?: string }; -type sendQueryRedelegationsRequestParams = { - value: QueryRedelegationsRequest, +type sendQueryUnbondingDelegationRequestParams = { + value: QueryUnbondingDelegationRequest, fee?: StdFee, memo?: string }; -type sendMsgCreateValidatorParams = { - value: MsgCreateValidator, +type sendMsgDelegateResponseParams = { + value: MsgDelegateResponse, fee?: StdFee, memo?: string }; -type sendMsgEditValidatorResponseParams = { - value: MsgEditValidatorResponse, +type sendMsgUndelegateParams = { + value: MsgUndelegate, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendRedelegationParams = { + value: Redelegation, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendQueryValidatorsRequestParams = { + value: QueryValidatorsRequest, fee?: StdFee, memo?: string }; -type sendStakeAuthorization_ValidatorsParams = { - value: StakeAuthorization_Validators, +type sendMsgEditValidatorParams = { + value: MsgEditValidator, fee?: StdFee, memo?: string }; -type sendQueryHistoricalInfoResponseParams = { - value: QueryHistoricalInfoResponse, +type sendMsgCancelUnbondingDelegationResponseParams = { + value: MsgCancelUnbondingDelegationResponse, fee?: StdFee, memo?: string }; -type sendLastValidatorPowerParams = { - value: LastValidatorPower, +type sendStakeAuthorization_ValidatorsParams = { + value: StakeAuthorization_Validators, fee?: StdFee, memo?: string }; -type sendQueryDelegatorDelegationsRequestParams = { - value: QueryDelegatorDelegationsRequest, +type sendQueryUnbondingDelegationResponseParams = { + value: QueryUnbondingDelegationResponse, fee?: StdFee, memo?: string }; -type sendQueryDelegatorValidatorResponseParams = { - value: QueryDelegatorValidatorResponse, +type sendQueryDelegatorValidatorsRequestParams = { + value: QueryDelegatorValidatorsRequest, fee?: StdFee, memo?: string }; -type sendMsgCancelUnbondingDelegationResponseParams = { - value: MsgCancelUnbondingDelegationResponse, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendDescriptionParams = { - value: Description, +type sendDelegationResponseParams = { + value: DelegationResponse, fee?: StdFee, memo?: string }; -type sendRedelegationEntryResponseParams = { - value: RedelegationEntryResponse, +type sendQueryValidatorUnbondingDelegationsResponseParams = { + value: QueryValidatorUnbondingDelegationsResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendMsgDelegateParams = { + value: MsgDelegate, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendMsgCancelUnbondingDelegationParams = { + value: MsgCancelUnbondingDelegation, fee?: StdFee, memo?: string }; -type sendUnbondingDelegationParams = { - value: UnbondingDelegation, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendQueryValidatorUnbondingDelegationsResponseParams = { - value: QueryValidatorUnbondingDelegationsResponse, +type sendQueryDelegationRequestParams = { + value: QueryDelegationRequest, fee?: StdFee, memo?: string }; -type sendQueryPoolResponseParams = { - value: QueryPoolResponse, +type sendQueryDelegatorDelegationsRequestParams = { + value: QueryDelegatorDelegationsRequest, fee?: StdFee, memo?: string }; -type sendMsgCreateValidatorResponseParams = { - value: MsgCreateValidatorResponse, +type sendQueryDelegatorValidatorResponseParams = { + value: QueryDelegatorValidatorResponse, fee?: StdFee, memo?: string }; -type sendQueryValidatorDelegationsResponseParams = { - value: QueryValidatorDelegationsResponse, +type sendDescriptionParams = { + value: Description, fee?: StdFee, memo?: string }; -type sendQueryDelegatorValidatorsResponseParams = { - value: QueryDelegatorValidatorsResponse, +type sendPoolParams = { + value: Pool, fee?: StdFee, memo?: string }; -type sendQueryUnbondingDelegationResponseParams = { - value: QueryUnbondingDelegationResponse, +type sendUnbondingDelegationParams = { + value: UnbondingDelegation, fee?: StdFee, memo?: string }; -type sendQueryRedelegationsResponseParams = { - value: QueryRedelegationsResponse, +type sendQueryDelegatorUnbondingDelegationsResponseParams = { + value: QueryDelegatorUnbondingDelegationsResponse, fee?: StdFee, memo?: string }; -type sendQueryDelegatorValidatorsRequestParams = { - value: QueryDelegatorValidatorsRequest, +type sendValAddressesParams = { + value: ValAddresses, fee?: StdFee, memo?: string }; -type sendQueryHistoricalInfoRequestParams = { - value: QueryHistoricalInfoRequest, +type sendDVPairsParams = { + value: DVPairs, fee?: StdFee, memo?: string }; -type sendDVVTripletsParams = { - value: DVVTriplets, +type sendMsgCreateValidatorParams = { + value: MsgCreateValidator, fee?: StdFee, memo?: string }; @@ -287,465 +287,465 @@ type sendQueryValidatorDelegationsRequestParams = { memo?: string }; -type sendQueryPoolRequestParams = { - value: QueryPoolRequest, +type sendQueryDelegatorValidatorsResponseParams = { + value: QueryDelegatorValidatorsResponse, fee?: StdFee, memo?: string }; -type sendCommissionRatesParams = { - value: CommissionRates, +type sendQueryDelegatorValidatorRequestParams = { + value: QueryDelegatorValidatorRequest, fee?: StdFee, memo?: string }; -type sendQueryDelegatorDelegationsResponseParams = { - value: QueryDelegatorDelegationsResponse, +type sendCommissionRatesParams = { + value: CommissionRates, fee?: StdFee, memo?: string }; -type sendMsgBeginRedelegateResponseParams = { - value: MsgBeginRedelegateResponse, +type sendQueryDelegationResponseParams = { + value: QueryDelegationResponse, fee?: StdFee, memo?: string }; -type sendQueryValidatorResponseParams = { - value: QueryValidatorResponse, +type sendDVPairParams = { + value: DVPair, fee?: StdFee, memo?: string }; -type sendQueryUnbondingDelegationRequestParams = { - value: QueryUnbondingDelegationRequest, +type sendValidatorUpdatesParams = { + value: ValidatorUpdates, fee?: StdFee, memo?: string }; -type sendCommissionParams = { - value: Commission, +type sendMsgCreateValidatorResponseParams = { + value: MsgCreateValidatorResponse, fee?: StdFee, memo?: string }; -type sendQueryValidatorsResponseParams = { - value: QueryValidatorsResponse, +type sendMsgUndelegateResponseParams = { + value: MsgUndelegateResponse, fee?: StdFee, memo?: string }; -type sendQueryValidatorRequestParams = { - value: QueryValidatorRequest, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendValidatorParams = { - value: Validator, +type sendDelegationParams = { + value: Delegation, fee?: StdFee, memo?: string }; -type sendDVPairsParams = { - value: DVPairs, +type sendUnbondingDelegationEntryParams = { + value: UnbondingDelegationEntry, fee?: StdFee, memo?: string }; -type sendRedelegationParams = { - value: Redelegation, +type sendHistoricalInfoParams = { + value: HistoricalInfo, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryValidatorsResponseParams = { + value: QueryValidatorsResponse, fee?: StdFee, memo?: string }; -type sendMsgDelegateParams = { - value: MsgDelegate, +type sendQueryDelegatorDelegationsResponseParams = { + value: QueryDelegatorDelegationsResponse, fee?: StdFee, memo?: string }; -type sendMsgCancelUnbondingDelegationParams = { - value: MsgCancelUnbondingDelegation, +type sendMsgBeginRedelegateParams = { + value: MsgBeginRedelegate, fee?: StdFee, memo?: string }; -type sendQueryValidatorsRequestParams = { - value: QueryValidatorsRequest, +type sendLastValidatorPowerParams = { + value: LastValidatorPower, fee?: StdFee, memo?: string }; -type sendQueryDelegationResponseParams = { - value: QueryDelegationResponse, +type sendQueryRedelegationsRequestParams = { + value: QueryRedelegationsRequest, fee?: StdFee, memo?: string }; -type sendQueryDelegatorUnbondingDelegationsResponseParams = { - value: QueryDelegatorUnbondingDelegationsResponse, +type sendQueryPoolRequestParams = { + value: QueryPoolRequest, fee?: StdFee, memo?: string }; -type sendDelegationParams = { - value: Delegation, +type sendRedelegationResponseParams = { + value: RedelegationResponse, fee?: StdFee, memo?: string }; -type sendDVPairParams = { - value: DVPair, +type sendQueryRedelegationsResponseParams = { + value: QueryRedelegationsResponse, fee?: StdFee, memo?: string }; -type sendQueryDelegatorUnbondingDelegationsRequestParams = { - value: QueryDelegatorUnbondingDelegationsRequest, +type sendMsgEditValidatorResponseParams = { + value: MsgEditValidatorResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendQueryHistoricalInfoRequestParams = { + value: QueryHistoricalInfoRequest, fee?: StdFee, memo?: string }; -type sendMsgEditValidatorParams = { - value: MsgEditValidator, +type sendCommissionParams = { + value: Commission, fee?: StdFee, memo?: string }; -type sendMsgDelegateResponseParams = { - value: MsgDelegateResponse, +type sendQueryValidatorRequestParams = { + value: QueryValidatorRequest, fee?: StdFee, memo?: string }; -type sendMsgUndelegateResponseParams = { - value: MsgUndelegateResponse, +type sendQueryHistoricalInfoResponseParams = { + value: QueryHistoricalInfoResponse, fee?: StdFee, memo?: string }; -type sendPoolParams = { - value: Pool, +type sendDVVTripletParams = { + value: DVVTriplet, fee?: StdFee, memo?: string }; -type sendQueryDelegationRequestParams = { - value: QueryDelegationRequest, +type sendDVVTripletsParams = { + value: DVVTriplets, fee?: StdFee, memo?: string }; -type sendMsgUndelegateParams = { - value: MsgUndelegate, +type sendRedelegationEntryResponseParams = { + value: RedelegationEntryResponse, fee?: StdFee, memo?: string }; -type sendQueryDelegatorValidatorRequestParams = { - value: QueryDelegatorValidatorRequest, +type sendStakeAuthorizationParams = { + value: StakeAuthorization, fee?: StdFee, memo?: string }; -type sendStakeAuthorizationParams = { - value: StakeAuthorization, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendUnbondingDelegationEntryParams = { - value: UnbondingDelegationEntry, +type sendQueryDelegatorUnbondingDelegationsRequestParams = { + value: QueryDelegatorUnbondingDelegationsRequest, fee?: StdFee, memo?: string }; -type sendMsgBeginRedelegateParams = { - value: MsgBeginRedelegate, +type sendQueryPoolResponseParams = { + value: QueryPoolResponse, fee?: StdFee, memo?: string }; -type validatorUpdatesParams = { - value: ValidatorUpdates, +type validatorParams = { + value: Validator, }; -type delegationResponseParams = { - value: DelegationResponse, +type msgBeginRedelegateResponseParams = { + value: MsgBeginRedelegateResponse, }; -type historicalInfoParams = { - value: HistoricalInfo, +type redelegationEntryParams = { + value: RedelegationEntry, }; -type dvvtripletParams = { - value: DVVTriplet, +type queryValidatorResponseParams = { + value: QueryValidatorResponse, }; -type redelegationEntryParams = { - value: RedelegationEntry, +type queryValidatorDelegationsResponseParams = { + value: QueryValidatorDelegationsResponse, }; -type redelegationResponseParams = { - value: RedelegationResponse, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; -type valAddressesParams = { - value: ValAddresses, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; type queryValidatorUnbondingDelegationsRequestParams = { value: QueryValidatorUnbondingDelegationsRequest, }; -type queryRedelegationsRequestParams = { - value: QueryRedelegationsRequest, +type queryUnbondingDelegationRequestParams = { + value: QueryUnbondingDelegationRequest, }; -type msgCreateValidatorParams = { - value: MsgCreateValidator, +type msgDelegateResponseParams = { + value: MsgDelegateResponse, }; -type msgEditValidatorResponseParams = { - value: MsgEditValidatorResponse, +type msgUndelegateParams = { + value: MsgUndelegate, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type redelegationParams = { + value: Redelegation, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type queryValidatorsRequestParams = { + value: QueryValidatorsRequest, }; -type stakeAuthorizationValidatorsParams = { - value: StakeAuthorization_Validators, +type msgEditValidatorParams = { + value: MsgEditValidator, }; -type queryHistoricalInfoResponseParams = { - value: QueryHistoricalInfoResponse, +type msgCancelUnbondingDelegationResponseParams = { + value: MsgCancelUnbondingDelegationResponse, }; -type lastValidatorPowerParams = { - value: LastValidatorPower, +type stakeAuthorizationValidatorsParams = { + value: StakeAuthorization_Validators, }; -type queryDelegatorDelegationsRequestParams = { - value: QueryDelegatorDelegationsRequest, +type queryUnbondingDelegationResponseParams = { + value: QueryUnbondingDelegationResponse, }; -type queryDelegatorValidatorResponseParams = { - value: QueryDelegatorValidatorResponse, +type queryDelegatorValidatorsRequestParams = { + value: QueryDelegatorValidatorsRequest, }; -type msgCancelUnbondingDelegationResponseParams = { - value: MsgCancelUnbondingDelegationResponse, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type descriptionParams = { - value: Description, +type delegationResponseParams = { + value: DelegationResponse, }; -type redelegationEntryResponseParams = { - value: RedelegationEntryResponse, +type queryValidatorUnbondingDelegationsResponseParams = { + value: QueryValidatorUnbondingDelegationsResponse, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type msgDelegateParams = { + value: MsgDelegate, }; -type paramsParams = { - value: Params, +type msgCancelUnbondingDelegationParams = { + value: MsgCancelUnbondingDelegation, }; -type unbondingDelegationParams = { - value: UnbondingDelegation, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type queryValidatorUnbondingDelegationsResponseParams = { - value: QueryValidatorUnbondingDelegationsResponse, +type queryDelegationRequestParams = { + value: QueryDelegationRequest, }; -type queryPoolResponseParams = { - value: QueryPoolResponse, +type queryDelegatorDelegationsRequestParams = { + value: QueryDelegatorDelegationsRequest, }; -type msgCreateValidatorResponseParams = { - value: MsgCreateValidatorResponse, +type queryDelegatorValidatorResponseParams = { + value: QueryDelegatorValidatorResponse, }; -type queryValidatorDelegationsResponseParams = { - value: QueryValidatorDelegationsResponse, +type descriptionParams = { + value: Description, }; -type queryDelegatorValidatorsResponseParams = { - value: QueryDelegatorValidatorsResponse, +type poolParams = { + value: Pool, }; -type queryUnbondingDelegationResponseParams = { - value: QueryUnbondingDelegationResponse, +type unbondingDelegationParams = { + value: UnbondingDelegation, }; -type queryRedelegationsResponseParams = { - value: QueryRedelegationsResponse, +type queryDelegatorUnbondingDelegationsResponseParams = { + value: QueryDelegatorUnbondingDelegationsResponse, }; -type queryDelegatorValidatorsRequestParams = { - value: QueryDelegatorValidatorsRequest, +type valAddressesParams = { + value: ValAddresses, }; -type queryHistoricalInfoRequestParams = { - value: QueryHistoricalInfoRequest, +type dvpairsParams = { + value: DVPairs, }; -type dvvtripletsParams = { - value: DVVTriplets, +type msgCreateValidatorParams = { + value: MsgCreateValidator, }; type queryValidatorDelegationsRequestParams = { value: QueryValidatorDelegationsRequest, }; -type queryPoolRequestParams = { - value: QueryPoolRequest, -}; - -type commissionRatesParams = { - value: CommissionRates, +type queryDelegatorValidatorsResponseParams = { + value: QueryDelegatorValidatorsResponse, }; -type queryDelegatorDelegationsResponseParams = { - value: QueryDelegatorDelegationsResponse, +type queryDelegatorValidatorRequestParams = { + value: QueryDelegatorValidatorRequest, }; -type msgBeginRedelegateResponseParams = { - value: MsgBeginRedelegateResponse, +type commissionRatesParams = { + value: CommissionRates, }; -type queryValidatorResponseParams = { - value: QueryValidatorResponse, +type queryDelegationResponseParams = { + value: QueryDelegationResponse, }; -type queryUnbondingDelegationRequestParams = { - value: QueryUnbondingDelegationRequest, +type dvpairParams = { + value: DVPair, }; -type commissionParams = { - value: Commission, +type validatorUpdatesParams = { + value: ValidatorUpdates, }; -type queryValidatorsResponseParams = { - value: QueryValidatorsResponse, +type msgCreateValidatorResponseParams = { + value: MsgCreateValidatorResponse, }; -type queryValidatorRequestParams = { - value: QueryValidatorRequest, +type msgUndelegateResponseParams = { + value: MsgUndelegateResponse, }; -type validatorParams = { - value: Validator, +type paramsParams = { + value: Params, }; -type dvpairsParams = { - value: DVPairs, +type delegationParams = { + value: Delegation, }; -type redelegationParams = { - value: Redelegation, +type unbondingDelegationEntryParams = { + value: UnbondingDelegationEntry, }; -type genesisStateParams = { - value: GenesisState, +type historicalInfoParams = { + value: HistoricalInfo, }; -type msgDelegateParams = { - value: MsgDelegate, +type queryValidatorsResponseParams = { + value: QueryValidatorsResponse, }; -type msgCancelUnbondingDelegationParams = { - value: MsgCancelUnbondingDelegation, +type queryDelegatorDelegationsResponseParams = { + value: QueryDelegatorDelegationsResponse, }; -type queryValidatorsRequestParams = { - value: QueryValidatorsRequest, +type msgBeginRedelegateParams = { + value: MsgBeginRedelegate, }; -type queryDelegationResponseParams = { - value: QueryDelegationResponse, +type lastValidatorPowerParams = { + value: LastValidatorPower, }; -type queryDelegatorUnbondingDelegationsResponseParams = { - value: QueryDelegatorUnbondingDelegationsResponse, +type queryRedelegationsRequestParams = { + value: QueryRedelegationsRequest, }; -type delegationParams = { - value: Delegation, +type queryPoolRequestParams = { + value: QueryPoolRequest, }; -type dvpairParams = { - value: DVPair, +type redelegationResponseParams = { + value: RedelegationResponse, }; -type queryDelegatorUnbondingDelegationsRequestParams = { - value: QueryDelegatorUnbondingDelegationsRequest, +type queryRedelegationsResponseParams = { + value: QueryRedelegationsResponse, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type msgEditValidatorResponseParams = { + value: MsgEditValidatorResponse, }; -type msgEditValidatorParams = { - value: MsgEditValidator, +type queryHistoricalInfoRequestParams = { + value: QueryHistoricalInfoRequest, }; -type msgDelegateResponseParams = { - value: MsgDelegateResponse, +type commissionParams = { + value: Commission, }; -type msgUndelegateResponseParams = { - value: MsgUndelegateResponse, +type queryValidatorRequestParams = { + value: QueryValidatorRequest, }; -type poolParams = { - value: Pool, +type queryHistoricalInfoResponseParams = { + value: QueryHistoricalInfoResponse, }; -type queryDelegationRequestParams = { - value: QueryDelegationRequest, +type dvvtripletParams = { + value: DVVTriplet, }; -type msgUndelegateParams = { - value: MsgUndelegate, +type dvvtripletsParams = { + value: DVVTriplets, }; -type queryDelegatorValidatorRequestParams = { - value: QueryDelegatorValidatorRequest, +type redelegationEntryResponseParams = { + value: RedelegationEntryResponse, }; type stakeAuthorizationParams = { value: StakeAuthorization, }; -type unbondingDelegationEntryParams = { - value: UnbondingDelegationEntry, +type genesisStateParams = { + value: GenesisState, }; -type msgBeginRedelegateParams = { - value: MsgBeginRedelegate, +type queryDelegatorUnbondingDelegationsRequestParams = { + value: QueryDelegatorUnbondingDelegationsRequest, +}; + +type queryPoolResponseParams = { + value: QueryPoolResponse, }; @@ -778,101 +778,101 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendValidatorUpdates({ value, fee, memo }: sendValidatorUpdatesParams): Promise { + async sendValidator({ value, fee, memo }: sendValidatorParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidatorUpdates: 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.validatorUpdates({ value: ValidatorUpdates.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:sendValidatorUpdates: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidator: Could not broadcast Tx: '+ e.message) } }, - async sendDelegationResponse({ value, fee, memo }: sendDelegationResponseParams): Promise { + async sendMsgBeginRedelegateResponse({ value, fee, memo }: sendMsgBeginRedelegateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDelegationResponse: 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.delegationResponse({ value: DelegationResponse.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:sendDelegationResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgBeginRedelegateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendHistoricalInfo({ value, fee, memo }: sendHistoricalInfoParams): Promise { + async sendRedelegationEntry({ value, fee, memo }: sendRedelegationEntryParams): Promise { if (!signer) { - throw new Error('TxClient:sendHistoricalInfo: 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.historicalInfo({ value: HistoricalInfo.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:sendHistoricalInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendRedelegationEntry: Could not broadcast Tx: '+ e.message) } }, - async sendDVVTriplet({ value, fee, memo }: sendDVVTripletParams): Promise { + async sendQueryValidatorResponse({ value, fee, memo }: sendQueryValidatorResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDVVTriplet: 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.dvvtriplet({ value: DVVTriplet.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:sendDVVTriplet: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorResponse: Could not broadcast Tx: '+ e.message) } }, - async sendRedelegationEntry({ value, fee, memo }: sendRedelegationEntryParams): Promise { + async sendQueryValidatorDelegationsResponse({ value, fee, memo }: sendQueryValidatorDelegationsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendRedelegationEntry: 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.redelegationEntry({ value: RedelegationEntry.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:sendRedelegationEntry: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorDelegationsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendRedelegationResponse({ value, fee, memo }: sendRedelegationResponseParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendRedelegationResponse: 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.redelegationResponse({ value: RedelegationResponse.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:sendRedelegationResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendValAddresses({ value, fee, memo }: sendValAddressesParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendValAddresses: 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.valAddresses({ value: ValAddresses.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:sendValAddresses: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, @@ -890,367 +890,367 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryRedelegationsRequest({ value, fee, memo }: sendQueryRedelegationsRequestParams): Promise { + async sendQueryUnbondingDelegationRequest({ value, fee, memo }: sendQueryUnbondingDelegationRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryRedelegationsRequest: 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.queryRedelegationsRequest({ value: QueryRedelegationsRequest.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:sendQueryRedelegationsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUnbondingDelegationRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateValidator({ value, fee, memo }: sendMsgCreateValidatorParams): Promise { + async sendMsgDelegateResponse({ value, fee, memo }: sendMsgDelegateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateValidator: 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.msgCreateValidator({ value: MsgCreateValidator.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:sendMsgCreateValidator: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDelegateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgEditValidatorResponse({ value, fee, memo }: sendMsgEditValidatorResponseParams): Promise { + async sendMsgUndelegate({ value, fee, memo }: sendMsgUndelegateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgEditValidatorResponse: 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.msgEditValidatorResponse({ value: MsgEditValidatorResponse.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:sendMsgEditValidatorResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUndelegate: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendRedelegation({ value, fee, memo }: sendRedelegationParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.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:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendRedelegation: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendQueryValidatorsRequest({ value, fee, memo }: sendQueryValidatorsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: 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.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.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:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendStakeAuthorization_Validators({ value, fee, memo }: sendStakeAuthorization_ValidatorsParams): Promise { + async sendMsgEditValidator({ value, fee, memo }: sendMsgEditValidatorParams): Promise { if (!signer) { - throw new Error('TxClient:sendStakeAuthorization_Validators: 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.stakeAuthorizationValidators({ value: StakeAuthorization_Validators.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:sendStakeAuthorization_Validators: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: '+ e.message) } }, - async sendQueryHistoricalInfoResponse({ value, fee, memo }: sendQueryHistoricalInfoResponseParams): Promise { + async sendMsgCancelUnbondingDelegationResponse({ value, fee, memo }: sendMsgCancelUnbondingDelegationResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryHistoricalInfoResponse: 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.queryHistoricalInfoResponse({ value: QueryHistoricalInfoResponse.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:sendQueryHistoricalInfoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCancelUnbondingDelegationResponse: Could not broadcast Tx: '+ e.message) } }, - async sendLastValidatorPower({ value, fee, memo }: sendLastValidatorPowerParams): Promise { + async sendStakeAuthorization_Validators({ value, fee, memo }: sendStakeAuthorization_ValidatorsParams): Promise { if (!signer) { - throw new Error('TxClient:sendLastValidatorPower: 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.lastValidatorPower({ value: LastValidatorPower.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:sendLastValidatorPower: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendStakeAuthorization_Validators: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorDelegationsRequest({ value, fee, memo }: sendQueryDelegatorDelegationsRequestParams): Promise { + async sendQueryUnbondingDelegationResponse({ value, fee, memo }: sendQueryUnbondingDelegationResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorDelegationsRequest: 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.queryDelegatorDelegationsRequest({ value: QueryDelegatorDelegationsRequest.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:sendQueryDelegatorDelegationsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUnbondingDelegationResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorValidatorResponse({ value, fee, memo }: sendQueryDelegatorValidatorResponseParams): Promise { + async sendQueryDelegatorValidatorsRequest({ value, fee, memo }: sendQueryDelegatorValidatorsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorResponse: 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.queryDelegatorValidatorResponse({ value: QueryDelegatorValidatorResponse.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:sendQueryDelegatorValidatorResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCancelUnbondingDelegationResponse({ value, fee, memo }: sendMsgCancelUnbondingDelegationResponseParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCancelUnbondingDelegationResponse: 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.msgCancelUnbondingDelegationResponse({ value: MsgCancelUnbondingDelegationResponse.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:sendMsgCancelUnbondingDelegationResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendDescription({ value, fee, memo }: sendDescriptionParams): Promise { + async sendDelegationResponse({ value, fee, memo }: sendDelegationResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDescription: 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.description({ value: Description.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:sendDescription: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDelegationResponse: Could not broadcast Tx: '+ e.message) } }, - async sendRedelegationEntryResponse({ value, fee, memo }: sendRedelegationEntryResponseParams): Promise { + async sendQueryValidatorUnbondingDelegationsResponse({ value, fee, memo }: sendQueryValidatorUnbondingDelegationsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendRedelegationEntryResponse: 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.redelegationEntryResponse({ value: RedelegationEntryResponse.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:sendRedelegationEntryResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendMsgDelegate({ value, fee, memo }: sendMsgDelegateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: 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.queryParamsResponse({ value: QueryParamsResponse.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:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDelegate: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendMsgCancelUnbondingDelegation({ value, fee, memo }: sendMsgCancelUnbondingDelegationParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: 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.params({ value: Params.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:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: '+ e.message) } }, - async sendUnbondingDelegation({ value, fee, memo }: sendUnbondingDelegationParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendUnbondingDelegation: 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.unbondingDelegation({ value: UnbondingDelegation.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:sendUnbondingDelegation: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorUnbondingDelegationsResponse({ value, fee, memo }: sendQueryValidatorUnbondingDelegationsResponseParams): Promise { + async sendQueryDelegationRequest({ value, fee, memo }: sendQueryDelegationRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsResponse: 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.queryValidatorUnbondingDelegationsResponse({ value: QueryValidatorUnbondingDelegationsResponse.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:sendQueryValidatorUnbondingDelegationsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegationRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPoolResponse({ value, fee, memo }: sendQueryPoolResponseParams): Promise { + async sendQueryDelegatorDelegationsRequest({ value, fee, memo }: sendQueryDelegatorDelegationsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPoolResponse: 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.queryPoolResponse({ value: QueryPoolResponse.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:sendQueryPoolResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorDelegationsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateValidatorResponse({ value, fee, memo }: sendMsgCreateValidatorResponseParams): Promise { + async sendQueryDelegatorValidatorResponse({ value, fee, memo }: sendQueryDelegatorValidatorResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateValidatorResponse: 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.msgCreateValidatorResponse({ value: MsgCreateValidatorResponse.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:sendMsgCreateValidatorResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorValidatorResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorDelegationsResponse({ value, fee, memo }: sendQueryValidatorDelegationsResponseParams): Promise { + async sendDescription({ value, fee, memo }: sendDescriptionParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorDelegationsResponse: 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.queryValidatorDelegationsResponse({ value: QueryValidatorDelegationsResponse.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:sendQueryValidatorDelegationsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDescription: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorValidatorsResponse({ value, fee, memo }: sendQueryDelegatorValidatorsResponseParams): Promise { + async sendPool({ value, fee, memo }: sendPoolParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: 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.queryDelegatorValidatorsResponse({ value: QueryDelegatorValidatorsResponse.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:sendQueryDelegatorValidatorsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPool: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUnbondingDelegationResponse({ value, fee, memo }: sendQueryUnbondingDelegationResponseParams): Promise { + async sendUnbondingDelegation({ value, fee, memo }: sendUnbondingDelegationParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUnbondingDelegationResponse: 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.queryUnbondingDelegationResponse({ value: QueryUnbondingDelegationResponse.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:sendQueryUnbondingDelegationResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendUnbondingDelegation: Could not broadcast Tx: '+ e.message) } }, - async sendQueryRedelegationsResponse({ value, fee, memo }: sendQueryRedelegationsResponseParams): Promise { + async sendQueryDelegatorUnbondingDelegationsResponse({ value, fee, memo }: sendQueryDelegatorUnbondingDelegationsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryRedelegationsResponse: 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.queryRedelegationsResponse({ value: QueryRedelegationsResponse.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:sendQueryRedelegationsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorValidatorsRequest({ value, fee, memo }: sendQueryDelegatorValidatorsRequestParams): Promise { + async sendValAddresses({ value, fee, memo }: sendValAddressesParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: 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.queryDelegatorValidatorsRequest({ value: QueryDelegatorValidatorsRequest.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:sendQueryDelegatorValidatorsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValAddresses: Could not broadcast Tx: '+ e.message) } }, - async sendQueryHistoricalInfoRequest({ value, fee, memo }: sendQueryHistoricalInfoRequestParams): Promise { + async sendDVPairs({ value, fee, memo }: sendDVPairsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryHistoricalInfoRequest: 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.queryHistoricalInfoRequest({ value: QueryHistoricalInfoRequest.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:sendQueryHistoricalInfoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDVPairs: Could not broadcast Tx: '+ e.message) } }, - async sendDVVTriplets({ value, fee, memo }: sendDVVTripletsParams): Promise { + async sendMsgCreateValidator({ value, fee, memo }: sendMsgCreateValidatorParams): Promise { if (!signer) { - throw new Error('TxClient:sendDVVTriplets: 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.dvvtriplets({ value: DVVTriplets.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:sendDVVTriplets: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: '+ e.message) } }, @@ -1268,508 +1268,508 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryPoolRequest({ value, fee, memo }: sendQueryPoolRequestParams): Promise { + async sendQueryDelegatorValidatorsResponse({ value, fee, memo }: sendQueryDelegatorValidatorsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPoolRequest: 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.queryPoolRequest({ value: QueryPoolRequest.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:sendQueryPoolRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendCommissionRates({ value, fee, memo }: sendCommissionRatesParams): Promise { + async sendQueryDelegatorValidatorRequest({ value, fee, memo }: sendQueryDelegatorValidatorRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendCommissionRates: 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.commissionRates({ value: CommissionRates.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:sendCommissionRates: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorValidatorRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorDelegationsResponse({ value, fee, memo }: sendQueryDelegatorDelegationsResponseParams): Promise { + async sendCommissionRates({ value, fee, memo }: sendCommissionRatesParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorDelegationsResponse: 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.queryDelegatorDelegationsResponse({ value: QueryDelegatorDelegationsResponse.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:sendQueryDelegatorDelegationsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCommissionRates: Could not broadcast Tx: '+ e.message) } }, - async sendMsgBeginRedelegateResponse({ value, fee, memo }: sendMsgBeginRedelegateResponseParams): Promise { + async sendQueryDelegationResponse({ value, fee, memo }: sendQueryDelegationResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgBeginRedelegateResponse: 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.msgBeginRedelegateResponse({ value: MsgBeginRedelegateResponse.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:sendMsgBeginRedelegateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegationResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorResponse({ value, fee, memo }: sendQueryValidatorResponseParams): Promise { + async sendDVPair({ value, fee, memo }: sendDVPairParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorResponse: 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.queryValidatorResponse({ value: QueryValidatorResponse.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:sendQueryValidatorResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDVPair: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUnbondingDelegationRequest({ value, fee, memo }: sendQueryUnbondingDelegationRequestParams): Promise { + async sendValidatorUpdates({ value, fee, memo }: sendValidatorUpdatesParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUnbondingDelegationRequest: 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.queryUnbondingDelegationRequest({ value: QueryUnbondingDelegationRequest.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:sendQueryUnbondingDelegationRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendValidatorUpdates: Could not broadcast Tx: '+ e.message) } }, - async sendCommission({ value, fee, memo }: sendCommissionParams): Promise { + async sendMsgCreateValidatorResponse({ value, fee, memo }: sendMsgCreateValidatorResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendCommission: 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.commission({ value: Commission.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:sendCommission: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateValidatorResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorsResponse({ value, fee, memo }: sendQueryValidatorsResponseParams): Promise { + async sendMsgUndelegateResponse({ value, fee, memo }: sendMsgUndelegateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorsResponse: 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.queryValidatorsResponse({ value: QueryValidatorsResponse.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:sendQueryValidatorsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUndelegateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorRequest({ value, fee, memo }: sendQueryValidatorRequestParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorRequest: 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.queryValidatorRequest({ value: QueryValidatorRequest.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:sendQueryValidatorRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendValidator({ value, fee, memo }: sendValidatorParams): Promise { + async sendDelegation({ value, fee, memo }: sendDelegationParams): Promise { if (!signer) { - throw new Error('TxClient:sendValidator: 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.validator({ value: Validator.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:sendValidator: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDelegation: Could not broadcast Tx: '+ e.message) } }, - async sendDVPairs({ value, fee, memo }: sendDVPairsParams): Promise { + async sendUnbondingDelegationEntry({ value, fee, memo }: sendUnbondingDelegationEntryParams): Promise { if (!signer) { - throw new Error('TxClient:sendDVPairs: 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.dvpairs({ value: DVPairs.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:sendDVPairs: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendUnbondingDelegationEntry: Could not broadcast Tx: '+ e.message) } }, - async sendRedelegation({ value, fee, memo }: sendRedelegationParams): Promise { + async sendHistoricalInfo({ value, fee, memo }: sendHistoricalInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendRedelegation: 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.redelegation({ value: Redelegation.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:sendRedelegation: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendHistoricalInfo: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryValidatorsResponse({ value, fee, memo }: sendQueryValidatorsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.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:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDelegate({ value, fee, memo }: sendMsgDelegateParams): Promise { + async sendQueryDelegatorDelegationsResponse({ value, fee, memo }: sendQueryDelegatorDelegationsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDelegate: 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.msgDelegate({ value: MsgDelegate.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:sendMsgDelegate: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorDelegationsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCancelUnbondingDelegation({ value, fee, memo }: sendMsgCancelUnbondingDelegationParams): Promise { + async sendMsgBeginRedelegate({ value, fee, memo }: sendMsgBeginRedelegateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCancelUnbondingDelegation: 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.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.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:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgBeginRedelegate: Could not broadcast Tx: '+ e.message) } }, - async sendQueryValidatorsRequest({ value, fee, memo }: sendQueryValidatorsRequestParams): Promise { + async sendLastValidatorPower({ value, fee, memo }: sendLastValidatorPowerParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryValidatorsRequest: 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.queryValidatorsRequest({ value: QueryValidatorsRequest.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:sendQueryValidatorsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendLastValidatorPower: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegationResponse({ value, fee, memo }: sendQueryDelegationResponseParams): Promise { + async sendQueryRedelegationsRequest({ value, fee, memo }: sendQueryRedelegationsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegationResponse: 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.queryDelegationResponse({ value: QueryDelegationResponse.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:sendQueryDelegationResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryRedelegationsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorUnbondingDelegationsResponse({ value, fee, memo }: sendQueryDelegatorUnbondingDelegationsResponseParams): Promise { + async sendQueryPoolRequest({ value, fee, memo }: sendQueryPoolRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsResponse: 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.queryDelegatorUnbondingDelegationsResponse({ value: QueryDelegatorUnbondingDelegationsResponse.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:sendQueryDelegatorUnbondingDelegationsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPoolRequest: Could not broadcast Tx: '+ e.message) } }, - async sendDelegation({ value, fee, memo }: sendDelegationParams): Promise { + async sendRedelegationResponse({ value, fee, memo }: sendRedelegationResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDelegation: 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.delegation({ value: Delegation.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:sendDelegation: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendRedelegationResponse: Could not broadcast Tx: '+ e.message) } }, - async sendDVPair({ value, fee, memo }: sendDVPairParams): Promise { + async sendQueryRedelegationsResponse({ value, fee, memo }: sendQueryRedelegationsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendDVPair: 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.dvpair({ value: DVPair.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:sendDVPair: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryRedelegationsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorUnbondingDelegationsRequest({ value, fee, memo }: sendQueryDelegatorUnbondingDelegationsRequestParams): Promise { + async sendMsgEditValidatorResponse({ value, fee, memo }: sendMsgEditValidatorResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgEditValidatorResponse: Unable to 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.msgEditValidatorResponse({ value: MsgEditValidatorResponse.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:sendMsgEditValidatorResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendQueryHistoricalInfoRequest({ value, fee, memo }: sendQueryHistoricalInfoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: 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.queryParamsRequest({ value: QueryParamsRequest.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:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryHistoricalInfoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgEditValidator({ value, fee, memo }: sendMsgEditValidatorParams): Promise { + async sendCommission({ value, fee, memo }: sendCommissionParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgEditValidator: 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.msgEditValidator({ value: MsgEditValidator.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:sendMsgEditValidator: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCommission: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDelegateResponse({ value, fee, memo }: sendMsgDelegateResponseParams): Promise { + async sendQueryValidatorRequest({ value, fee, memo }: sendQueryValidatorRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDelegateResponse: 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.msgDelegateResponse({ value: MsgDelegateResponse.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:sendMsgDelegateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryValidatorRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUndelegateResponse({ value, fee, memo }: sendMsgUndelegateResponseParams): Promise { + async sendQueryHistoricalInfoResponse({ value, fee, memo }: sendQueryHistoricalInfoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUndelegateResponse: 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.msgUndelegateResponse({ value: MsgUndelegateResponse.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:sendMsgUndelegateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryHistoricalInfoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendPool({ value, fee, memo }: sendPoolParams): Promise { + async sendDVVTriplet({ value, fee, memo }: sendDVVTripletParams): Promise { if (!signer) { - throw new Error('TxClient:sendPool: 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.pool({ value: Pool.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:sendPool: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDVVTriplet: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegationRequest({ value, fee, memo }: sendQueryDelegationRequestParams): Promise { + async sendDVVTriplets({ value, fee, memo }: sendDVVTripletsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegationRequest: 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.queryDelegationRequest({ value: QueryDelegationRequest.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:sendQueryDelegationRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDVVTriplets: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUndelegate({ value, fee, memo }: sendMsgUndelegateParams): Promise { + async sendRedelegationEntryResponse({ value, fee, memo }: sendRedelegationEntryResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUndelegate: 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.msgUndelegate({ value: MsgUndelegate.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:sendMsgUndelegate: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendRedelegationEntryResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDelegatorValidatorRequest({ value, fee, memo }: sendQueryDelegatorValidatorRequestParams): Promise { + async sendStakeAuthorization({ value, fee, memo }: sendStakeAuthorizationParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendStakeAuthorization: Unable to 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.stakeAuthorization({ value: StakeAuthorization.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:sendStakeAuthorization: Could not broadcast Tx: '+ e.message) } }, - async sendStakeAuthorization({ value, fee, memo }: sendStakeAuthorizationParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendStakeAuthorization: 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.stakeAuthorization({ value: StakeAuthorization.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:sendStakeAuthorization: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendUnbondingDelegationEntry({ value, fee, memo }: sendUnbondingDelegationEntryParams): Promise { + async sendQueryDelegatorUnbondingDelegationsRequest({ value, fee, memo }: sendQueryDelegatorUnbondingDelegationsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendUnbondingDelegationEntry: 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.unbondingDelegationEntry({ value: UnbondingDelegationEntry.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:sendUnbondingDelegationEntry: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgBeginRedelegate({ value, fee, memo }: sendMsgBeginRedelegateParams): Promise { + async sendQueryPoolResponse({ value, fee, memo }: sendQueryPoolResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgBeginRedelegate: 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.msgBeginRedelegate({ value: MsgBeginRedelegate.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:sendMsgBeginRedelegate: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPoolResponse: Could not broadcast Tx: '+ e.message) } }, - validatorUpdates({ value }: validatorUpdatesParams): EncodeObject { + validator({ value }: validatorParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.ValidatorUpdates", value: ValidatorUpdates.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.Validator", value: Validator.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValidatorUpdates: Could not create message: ' + e.message) + throw new Error('TxClient:Validator: Could not create message: ' + e.message) } }, - delegationResponse({ value }: delegationResponseParams): EncodeObject { + msgBeginRedelegateResponse({ value }: msgBeginRedelegateResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", value: DelegationResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", value: MsgBeginRedelegateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DelegationResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgBeginRedelegateResponse: Could not create message: ' + e.message) } }, - historicalInfo({ value }: historicalInfoParams): EncodeObject { + redelegationEntry({ value }: redelegationEntryParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", value: HistoricalInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", value: RedelegationEntry.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:HistoricalInfo: Could not create message: ' + e.message) + throw new Error('TxClient:RedelegationEntry: Could not create message: ' + e.message) } }, - dvvtriplet({ value }: dvvtripletParams): EncodeObject { + queryValidatorResponse({ value }: queryValidatorResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", value: DVVTriplet.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", value: QueryValidatorResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DVVTriplet: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorResponse: Could not create message: ' + e.message) } }, - redelegationEntry({ value }: redelegationEntryParams): EncodeObject { + queryValidatorDelegationsResponse({ value }: queryValidatorDelegationsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", value: RedelegationEntry.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", value: QueryValidatorDelegationsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:RedelegationEntry: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorDelegationsResponse: Could not create message: ' + e.message) } }, - redelegationResponse({ value }: redelegationResponseParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", value: RedelegationResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:RedelegationResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - valAddresses({ value }: valAddressesParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.ValAddresses", value: ValAddresses.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ValAddresses: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, @@ -1781,211 +1781,211 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryRedelegationsRequest({ value }: queryRedelegationsRequestParams): EncodeObject { + queryUnbondingDelegationRequest({ value }: queryUnbondingDelegationRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", value: QueryRedelegationsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", value: QueryUnbondingDelegationRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryRedelegationsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUnbondingDelegationRequest: Could not create message: ' + e.message) } }, - msgCreateValidator({ value }: msgCreateValidatorParams): EncodeObject { + msgDelegateResponse({ value }: msgDelegateResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", value: MsgDelegateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDelegateResponse: Could not create message: ' + e.message) } }, - msgEditValidatorResponse({ value }: msgEditValidatorResponseParams): EncodeObject { + msgUndelegate({ value }: msgUndelegateParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", value: MsgEditValidatorResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgEditValidatorResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUndelegate: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + redelegation({ value }: redelegationParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.Redelegation", value: Redelegation.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:Redelegation: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + queryValidatorsRequest({ value }: queryValidatorsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", value: QueryValidatorsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorsRequest: Could not create message: ' + e.message) } }, - stakeAuthorizationValidators({ value }: stakeAuthorizationValidatorsParams): EncodeObject { + msgEditValidator({ value }: msgEditValidatorParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization_Validators", value: StakeAuthorization_Validators.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:StakeAuthorization_Validators: Could not create message: ' + e.message) + throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message) } }, - queryHistoricalInfoResponse({ value }: queryHistoricalInfoResponseParams): EncodeObject { + msgCancelUnbondingDelegationResponse({ value }: msgCancelUnbondingDelegationResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", value: QueryHistoricalInfoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", value: MsgCancelUnbondingDelegationResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryHistoricalInfoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCancelUnbondingDelegationResponse: Could not create message: ' + e.message) } }, - lastValidatorPower({ value }: lastValidatorPowerParams): EncodeObject { + stakeAuthorizationValidators({ value }: stakeAuthorizationValidatorsParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", value: LastValidatorPower.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization_Validators", value: StakeAuthorization_Validators.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:LastValidatorPower: Could not create message: ' + e.message) + throw new Error('TxClient:StakeAuthorization_Validators: Could not create message: ' + e.message) } }, - queryDelegatorDelegationsRequest({ value }: queryDelegatorDelegationsRequestParams): EncodeObject { + queryUnbondingDelegationResponse({ value }: queryUnbondingDelegationResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", value: QueryDelegatorDelegationsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", value: QueryUnbondingDelegationResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorDelegationsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUnbondingDelegationResponse: Could not create message: ' + e.message) } }, - queryDelegatorValidatorResponse({ value }: queryDelegatorValidatorResponseParams): EncodeObject { + queryDelegatorValidatorsRequest({ value }: queryDelegatorValidatorsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", value: QueryDelegatorValidatorResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", value: QueryDelegatorValidatorsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorValidatorResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorValidatorsRequest: Could not create message: ' + e.message) } }, - msgCancelUnbondingDelegationResponse({ value }: msgCancelUnbondingDelegationResponseParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", value: MsgCancelUnbondingDelegationResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCancelUnbondingDelegationResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - description({ value }: descriptionParams): EncodeObject { + delegationResponse({ value }: delegationResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.Description", value: Description.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", value: DelegationResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Description: Could not create message: ' + e.message) + throw new Error('TxClient:DelegationResponse: Could not create message: ' + e.message) } }, - redelegationEntryResponse({ value }: redelegationEntryResponseParams): EncodeObject { + queryValidatorUnbondingDelegationsResponse({ value }: queryValidatorUnbondingDelegationsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", value: RedelegationEntryResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", value: QueryValidatorUnbondingDelegationsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:RedelegationEntryResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorUnbondingDelegationsResponse: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + msgDelegate({ value }: msgDelegateParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: MsgDelegate.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDelegate: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + msgCancelUnbondingDelegation({ value }: msgCancelUnbondingDelegationParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message) } }, - unbondingDelegation({ value }: unbondingDelegationParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", value: UnbondingDelegation.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:UnbondingDelegation: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - queryValidatorUnbondingDelegationsResponse({ value }: queryValidatorUnbondingDelegationsResponseParams): EncodeObject { + queryDelegationRequest({ value }: queryDelegationRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", value: QueryValidatorUnbondingDelegationsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", value: QueryDelegationRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorUnbondingDelegationsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegationRequest: Could not create message: ' + e.message) } }, - queryPoolResponse({ value }: queryPoolResponseParams): EncodeObject { + queryDelegatorDelegationsRequest({ value }: queryDelegatorDelegationsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", value: QueryPoolResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", value: QueryDelegatorDelegationsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPoolResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorDelegationsRequest: Could not create message: ' + e.message) } }, - msgCreateValidatorResponse({ value }: msgCreateValidatorResponseParams): EncodeObject { + queryDelegatorValidatorResponse({ value }: queryDelegatorValidatorResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", value: MsgCreateValidatorResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", value: QueryDelegatorValidatorResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateValidatorResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorValidatorResponse: Could not create message: ' + e.message) } }, - queryValidatorDelegationsResponse({ value }: queryValidatorDelegationsResponseParams): EncodeObject { + description({ value }: descriptionParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", value: QueryValidatorDelegationsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.Description", value: Description.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorDelegationsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Description: Could not create message: ' + e.message) } }, - queryDelegatorValidatorsResponse({ value }: queryDelegatorValidatorsResponseParams): EncodeObject { + pool({ value }: poolParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", value: QueryDelegatorValidatorsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.Pool", value: Pool.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorValidatorsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Pool: Could not create message: ' + e.message) } }, - queryUnbondingDelegationResponse({ value }: queryUnbondingDelegationResponseParams): EncodeObject { + unbondingDelegation({ value }: unbondingDelegationParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", value: QueryUnbondingDelegationResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", value: UnbondingDelegation.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUnbondingDelegationResponse: Could not create message: ' + e.message) + throw new Error('TxClient:UnbondingDelegation: Could not create message: ' + e.message) } }, - queryRedelegationsResponse({ value }: queryRedelegationsResponseParams): EncodeObject { + queryDelegatorUnbondingDelegationsResponse({ value }: queryDelegatorUnbondingDelegationsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", value: QueryRedelegationsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", value: QueryDelegatorUnbondingDelegationsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryRedelegationsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorUnbondingDelegationsResponse: Could not create message: ' + e.message) } }, - queryDelegatorValidatorsRequest({ value }: queryDelegatorValidatorsRequestParams): EncodeObject { + valAddresses({ value }: valAddressesParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", value: QueryDelegatorValidatorsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.ValAddresses", value: ValAddresses.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorValidatorsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:ValAddresses: Could not create message: ' + e.message) } }, - queryHistoricalInfoRequest({ value }: queryHistoricalInfoRequestParams): EncodeObject { + dvpairs({ value }: dvpairsParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", value: QueryHistoricalInfoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.DVPairs", value: DVPairs.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryHistoricalInfoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:DVPairs: Could not create message: ' + e.message) } }, - dvvtriplets({ value }: dvvtripletsParams): EncodeObject { + msgCreateValidator({ value }: msgCreateValidatorParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", value: DVVTriplets.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DVVTriplets: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message) } }, @@ -1997,259 +1997,259 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryPoolRequest({ value }: queryPoolRequestParams): EncodeObject { + queryDelegatorValidatorsResponse({ value }: queryDelegatorValidatorsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", value: QueryPoolRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", value: QueryDelegatorValidatorsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPoolRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorValidatorsResponse: Could not create message: ' + e.message) } }, - commissionRates({ value }: commissionRatesParams): EncodeObject { + queryDelegatorValidatorRequest({ value }: queryDelegatorValidatorRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.CommissionRates", value: CommissionRates.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", value: QueryDelegatorValidatorRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:CommissionRates: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorValidatorRequest: Could not create message: ' + e.message) } }, - queryDelegatorDelegationsResponse({ value }: queryDelegatorDelegationsResponseParams): EncodeObject { + commissionRates({ value }: commissionRatesParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", value: QueryDelegatorDelegationsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.CommissionRates", value: CommissionRates.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorDelegationsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:CommissionRates: Could not create message: ' + e.message) } }, - msgBeginRedelegateResponse({ value }: msgBeginRedelegateResponseParams): EncodeObject { + queryDelegationResponse({ value }: queryDelegationResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", value: MsgBeginRedelegateResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", value: QueryDelegationResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgBeginRedelegateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegationResponse: Could not create message: ' + e.message) } }, - queryValidatorResponse({ value }: queryValidatorResponseParams): EncodeObject { + dvpair({ value }: dvpairParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", value: QueryValidatorResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.DVPair", value: DVPair.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorResponse: Could not create message: ' + e.message) + throw new Error('TxClient:DVPair: Could not create message: ' + e.message) } }, - queryUnbondingDelegationRequest({ value }: queryUnbondingDelegationRequestParams): EncodeObject { + validatorUpdates({ value }: validatorUpdatesParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", value: QueryUnbondingDelegationRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.ValidatorUpdates", value: ValidatorUpdates.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUnbondingDelegationRequest: Could not create message: ' + e.message) + throw new Error('TxClient:ValidatorUpdates: Could not create message: ' + e.message) } }, - commission({ value }: commissionParams): EncodeObject { + msgCreateValidatorResponse({ value }: msgCreateValidatorResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.Commission", value: Commission.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", value: MsgCreateValidatorResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Commission: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateValidatorResponse: Could not create message: ' + e.message) } }, - queryValidatorsResponse({ value }: queryValidatorsResponseParams): EncodeObject { + msgUndelegateResponse({ value }: msgUndelegateResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", value: QueryValidatorsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", value: MsgUndelegateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUndelegateResponse: Could not create message: ' + e.message) } }, - queryValidatorRequest({ value }: queryValidatorRequestParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", value: QueryValidatorRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - validator({ value }: validatorParams): EncodeObject { + delegation({ value }: delegationParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.Validator", value: Validator.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.Delegation", value: Delegation.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Validator: Could not create message: ' + e.message) + throw new Error('TxClient:Delegation: Could not create message: ' + e.message) } }, - dvpairs({ value }: dvpairsParams): EncodeObject { + unbondingDelegationEntry({ value }: unbondingDelegationEntryParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.DVPairs", value: DVPairs.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", value: UnbondingDelegationEntry.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DVPairs: Could not create message: ' + e.message) + throw new Error('TxClient:UnbondingDelegationEntry: Could not create message: ' + e.message) } }, - redelegation({ value }: redelegationParams): EncodeObject { + historicalInfo({ value }: historicalInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.Redelegation", value: Redelegation.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", value: HistoricalInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Redelegation: Could not create message: ' + e.message) + throw new Error('TxClient:HistoricalInfo: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryValidatorsResponse({ value }: queryValidatorsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", value: QueryValidatorsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorsResponse: Could not create message: ' + e.message) } }, - msgDelegate({ value }: msgDelegateParams): EncodeObject { + queryDelegatorDelegationsResponse({ value }: queryDelegatorDelegationsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: MsgDelegate.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", value: QueryDelegatorDelegationsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDelegate: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorDelegationsResponse: Could not create message: ' + e.message) } }, - msgCancelUnbondingDelegation({ value }: msgCancelUnbondingDelegationParams): EncodeObject { + msgBeginRedelegate({ value }: msgBeginRedelegateParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message) + throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message) } }, - queryValidatorsRequest({ value }: queryValidatorsRequestParams): EncodeObject { + lastValidatorPower({ value }: lastValidatorPowerParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", value: QueryValidatorsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", value: LastValidatorPower.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryValidatorsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:LastValidatorPower: 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) } }, - queryDelegatorUnbondingDelegationsResponse({ value }: queryDelegatorUnbondingDelegationsResponseParams): EncodeObject { + queryPoolRequest({ value }: queryPoolRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", value: QueryDelegatorUnbondingDelegationsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", value: QueryPoolRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorUnbondingDelegationsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPoolRequest: 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) } }, - dvpair({ value }: dvpairParams): EncodeObject { + queryRedelegationsResponse({ value }: queryRedelegationsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.DVPair", value: DVPair.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", value: QueryRedelegationsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DVPair: Could not create message: ' + e.message) + throw new Error('TxClient:QueryRedelegationsResponse: Could not create message: ' + e.message) } }, - queryDelegatorUnbondingDelegationsRequest({ value }: queryDelegatorUnbondingDelegationsRequestParams): EncodeObject { + msgEditValidatorResponse({ value }: msgEditValidatorResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", value: QueryDelegatorUnbondingDelegationsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", value: MsgEditValidatorResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorUnbondingDelegationsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgEditValidatorResponse: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + queryHistoricalInfoRequest({ value }: queryHistoricalInfoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", value: QueryHistoricalInfoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryHistoricalInfoRequest: Could not create message: ' + e.message) } }, - msgEditValidator({ value }: msgEditValidatorParams): EncodeObject { + commission({ value }: commissionParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.Commission", value: Commission.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message) + throw new Error('TxClient:Commission: Could not create message: ' + e.message) } }, - msgDelegateResponse({ value }: msgDelegateResponseParams): EncodeObject { + queryValidatorRequest({ value }: queryValidatorRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", value: MsgDelegateResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", value: QueryValidatorRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDelegateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryValidatorRequest: Could not create message: ' + e.message) } }, - msgUndelegateResponse({ value }: msgUndelegateResponseParams): EncodeObject { + queryHistoricalInfoResponse({ value }: queryHistoricalInfoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", value: MsgUndelegateResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", value: QueryHistoricalInfoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUndelegateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryHistoricalInfoResponse: Could not create message: ' + e.message) } }, - pool({ value }: poolParams): EncodeObject { + dvvtriplet({ value }: dvvtripletParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.Pool", value: Pool.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", value: DVVTriplet.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Pool: Could not create message: ' + e.message) + throw new Error('TxClient:DVVTriplet: Could not create message: ' + e.message) } }, - queryDelegationRequest({ value }: queryDelegationRequestParams): EncodeObject { + dvvtriplets({ value }: dvvtripletsParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", value: QueryDelegationRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", value: DVVTriplets.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegationRequest: Could not create message: ' + e.message) + throw new Error('TxClient:DVVTriplets: Could not create message: ' + e.message) } }, - msgUndelegate({ value }: msgUndelegateParams): EncodeObject { + redelegationEntryResponse({ value }: redelegationEntryResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", value: RedelegationEntryResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUndelegate: Could not create message: ' + e.message) + throw new Error('TxClient:RedelegationEntryResponse: Could not create message: ' + e.message) } }, - queryDelegatorValidatorRequest({ value }: queryDelegatorValidatorRequestParams): EncodeObject { + stakeAuthorization({ value }: stakeAuthorizationParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", value: QueryDelegatorValidatorRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", value: StakeAuthorization.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDelegatorValidatorRequest: Could not create message: ' + e.message) + throw new Error('TxClient:StakeAuthorization: Could not create message: ' + e.message) } }, - stakeAuthorization({ value }: stakeAuthorizationParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", value: StakeAuthorization.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:StakeAuthorization: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - unbondingDelegationEntry({ value }: unbondingDelegationEntryParams): EncodeObject { + queryDelegatorUnbondingDelegationsRequest({ value }: queryDelegatorUnbondingDelegationsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", value: UnbondingDelegationEntry.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", value: QueryDelegatorUnbondingDelegationsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:UnbondingDelegationEntry: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDelegatorUnbondingDelegationsRequest: Could not create message: ' + e.message) } }, - msgBeginRedelegate({ value }: msgBeginRedelegateParams): EncodeObject { + queryPoolResponse({ value }: queryPoolResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial( value ) } + return { typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", value: QueryPoolResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPoolResponse: 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 c13cfcd87..584c9ca9c 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 { ValidatorUpdates } from "./types/cosmos/staking/v1beta1/staking"; -import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { HistoricalInfo } from "./types/cosmos/staking/v1beta1/staking"; -import { DVVTriplet } from "./types/cosmos/staking/v1beta1/staking"; +import { Validator } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgBeginRedelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; import { RedelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; -import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { ValAddresses } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryValidatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryParamsResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryValidatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryRedelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgEditValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgUpdateParams } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgUpdateParamsResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryUnbondingDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgDelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { Redelegation } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgCancelUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/tx"; import { StakeAuthorization_Validators } from "./types/cosmos/staking/v1beta1/authz"; -import { QueryHistoricalInfoResponse } from "./types/cosmos/staking/v1beta1/query"; -import { LastValidatorPower } from "./types/cosmos/staking/v1beta1/genesis"; +import { QueryUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUpdateParams } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgCancelUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/tx"; import { Description } from "./types/cosmos/staking/v1beta1/staking"; -import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryParamsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { Params } from "./types/cosmos/staking/v1beta1/staking"; +import { Pool } from "./types/cosmos/staking/v1beta1/staking"; import { UnbondingDelegation } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryPoolResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgCreateValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { QueryValidatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryDelegatorValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryRedelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryDelegatorValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryHistoricalInfoRequest } from "./types/cosmos/staking/v1beta1/query"; -import { DVVTriplets } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryDelegatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { ValAddresses } from "./types/cosmos/staking/v1beta1/staking"; +import { DVPairs } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; import { QueryValidatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryPoolRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; import { CommissionRates } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgBeginRedelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { QueryValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryUnbondingDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; -import { Commission } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; -import { Validator } from "./types/cosmos/staking/v1beta1/staking"; -import { DVPairs } from "./types/cosmos/staking/v1beta1/staking"; -import { Redelegation } from "./types/cosmos/staking/v1beta1/staking"; -import { GenesisState } from "./types/cosmos/staking/v1beta1/genesis"; -import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx"; -import { QueryValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryDelegatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { Delegation } from "./types/cosmos/staking/v1beta1/staking"; import { DVPair } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgDelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { ValidatorUpdates } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgCreateValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; import { MsgUndelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { Pool } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { QueryDelegatorValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; -import { StakeAuthorization } from "./types/cosmos/staking/v1beta1/authz"; +import { Params } from "./types/cosmos/staking/v1beta1/staking"; +import { Delegation } from "./types/cosmos/staking/v1beta1/staking"; import { UnbondingDelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; +import { HistoricalInfo } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { LastValidatorPower } from "./types/cosmos/staking/v1beta1/genesis"; +import { QueryRedelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryPoolRequest } from "./types/cosmos/staking/v1beta1/query"; +import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryRedelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { MsgEditValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryHistoricalInfoRequest } from "./types/cosmos/staking/v1beta1/query"; +import { Commission } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryHistoricalInfoResponse } from "./types/cosmos/staking/v1beta1/query"; +import { DVVTriplet } from "./types/cosmos/staking/v1beta1/staking"; +import { DVVTriplets } from "./types/cosmos/staking/v1beta1/staking"; +import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { StakeAuthorization } from "./types/cosmos/staking/v1beta1/authz"; +import { GenesisState } from "./types/cosmos/staking/v1beta1/genesis"; +import { QueryDelegatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryPoolResponse } from "./types/cosmos/staking/v1beta1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/cosmos.staking.v1beta1.ValidatorUpdates", ValidatorUpdates], - ["/cosmos.staking.v1beta1.DelegationResponse", DelegationResponse], - ["/cosmos.staking.v1beta1.HistoricalInfo", HistoricalInfo], - ["/cosmos.staking.v1beta1.DVVTriplet", DVVTriplet], + ["/cosmos.staking.v1beta1.Validator", Validator], + ["/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", MsgBeginRedelegateResponse], ["/cosmos.staking.v1beta1.RedelegationEntry", RedelegationEntry], - ["/cosmos.staking.v1beta1.RedelegationResponse", RedelegationResponse], - ["/cosmos.staking.v1beta1.ValAddresses", ValAddresses], + ["/cosmos.staking.v1beta1.QueryValidatorResponse", QueryValidatorResponse], + ["/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", QueryValidatorDelegationsResponse], + ["/cosmos.staking.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.staking.v1beta1.QueryParamsResponse", QueryParamsResponse], ["/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", QueryValidatorUnbondingDelegationsRequest], - ["/cosmos.staking.v1beta1.QueryRedelegationsRequest", QueryRedelegationsRequest], - ["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], - ["/cosmos.staking.v1beta1.MsgEditValidatorResponse", MsgEditValidatorResponse], - ["/cosmos.staking.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/cosmos.staking.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", QueryUnbondingDelegationRequest], + ["/cosmos.staking.v1beta1.MsgDelegateResponse", MsgDelegateResponse], + ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], + ["/cosmos.staking.v1beta1.Redelegation", Redelegation], + ["/cosmos.staking.v1beta1.QueryValidatorsRequest", QueryValidatorsRequest], + ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], + ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", MsgCancelUnbondingDelegationResponse], ["/cosmos.staking.v1beta1.StakeAuthorization_Validators", StakeAuthorization_Validators], - ["/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", QueryHistoricalInfoResponse], - ["/cosmos.staking.v1beta1.LastValidatorPower", LastValidatorPower], + ["/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", QueryUnbondingDelegationResponse], + ["/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", QueryDelegatorValidatorsRequest], + ["/cosmos.staking.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.staking.v1beta1.DelegationResponse", DelegationResponse], + ["/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", QueryValidatorUnbondingDelegationsResponse], + ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], + ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation], + ["/cosmos.staking.v1beta1.MsgUpdateParams", MsgUpdateParams], + ["/cosmos.staking.v1beta1.QueryDelegationRequest", QueryDelegationRequest], ["/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", QueryDelegatorDelegationsRequest], ["/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", QueryDelegatorValidatorResponse], - ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", MsgCancelUnbondingDelegationResponse], ["/cosmos.staking.v1beta1.Description", Description], - ["/cosmos.staking.v1beta1.RedelegationEntryResponse", RedelegationEntryResponse], - ["/cosmos.staking.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.staking.v1beta1.Params", Params], + ["/cosmos.staking.v1beta1.Pool", Pool], ["/cosmos.staking.v1beta1.UnbondingDelegation", UnbondingDelegation], - ["/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", QueryValidatorUnbondingDelegationsResponse], - ["/cosmos.staking.v1beta1.QueryPoolResponse", QueryPoolResponse], - ["/cosmos.staking.v1beta1.MsgCreateValidatorResponse", MsgCreateValidatorResponse], - ["/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", QueryValidatorDelegationsResponse], - ["/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", QueryDelegatorValidatorsResponse], - ["/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", QueryUnbondingDelegationResponse], - ["/cosmos.staking.v1beta1.QueryRedelegationsResponse", QueryRedelegationsResponse], - ["/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", QueryDelegatorValidatorsRequest], - ["/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", QueryHistoricalInfoRequest], - ["/cosmos.staking.v1beta1.DVVTriplets", DVVTriplets], + ["/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", QueryDelegatorUnbondingDelegationsResponse], + ["/cosmos.staking.v1beta1.ValAddresses", ValAddresses], + ["/cosmos.staking.v1beta1.DVPairs", DVPairs], + ["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], ["/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", QueryValidatorDelegationsRequest], - ["/cosmos.staking.v1beta1.QueryPoolRequest", QueryPoolRequest], + ["/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", QueryDelegatorValidatorsResponse], + ["/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", QueryDelegatorValidatorRequest], ["/cosmos.staking.v1beta1.CommissionRates", CommissionRates], - ["/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", QueryDelegatorDelegationsResponse], - ["/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", MsgBeginRedelegateResponse], - ["/cosmos.staking.v1beta1.QueryValidatorResponse", QueryValidatorResponse], - ["/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", QueryUnbondingDelegationRequest], - ["/cosmos.staking.v1beta1.Commission", Commission], - ["/cosmos.staking.v1beta1.QueryValidatorsResponse", QueryValidatorsResponse], - ["/cosmos.staking.v1beta1.QueryValidatorRequest", QueryValidatorRequest], - ["/cosmos.staking.v1beta1.Validator", Validator], - ["/cosmos.staking.v1beta1.DVPairs", DVPairs], - ["/cosmos.staking.v1beta1.Redelegation", Redelegation], - ["/cosmos.staking.v1beta1.GenesisState", GenesisState], - ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], - ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation], - ["/cosmos.staking.v1beta1.QueryValidatorsRequest", QueryValidatorsRequest], ["/cosmos.staking.v1beta1.QueryDelegationResponse", QueryDelegationResponse], - ["/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", QueryDelegatorUnbondingDelegationsResponse], - ["/cosmos.staking.v1beta1.Delegation", Delegation], ["/cosmos.staking.v1beta1.DVPair", DVPair], - ["/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", QueryDelegatorUnbondingDelegationsRequest], - ["/cosmos.staking.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], - ["/cosmos.staking.v1beta1.MsgDelegateResponse", MsgDelegateResponse], + ["/cosmos.staking.v1beta1.ValidatorUpdates", ValidatorUpdates], + ["/cosmos.staking.v1beta1.MsgCreateValidatorResponse", MsgCreateValidatorResponse], ["/cosmos.staking.v1beta1.MsgUndelegateResponse", MsgUndelegateResponse], - ["/cosmos.staking.v1beta1.Pool", Pool], - ["/cosmos.staking.v1beta1.QueryDelegationRequest", QueryDelegationRequest], - ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], - ["/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", QueryDelegatorValidatorRequest], - ["/cosmos.staking.v1beta1.StakeAuthorization", StakeAuthorization], + ["/cosmos.staking.v1beta1.Params", Params], + ["/cosmos.staking.v1beta1.Delegation", Delegation], ["/cosmos.staking.v1beta1.UnbondingDelegationEntry", UnbondingDelegationEntry], + ["/cosmos.staking.v1beta1.HistoricalInfo", HistoricalInfo], + ["/cosmos.staking.v1beta1.QueryValidatorsResponse", QueryValidatorsResponse], + ["/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", QueryDelegatorDelegationsResponse], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], + ["/cosmos.staking.v1beta1.LastValidatorPower", LastValidatorPower], + ["/cosmos.staking.v1beta1.QueryRedelegationsRequest", QueryRedelegationsRequest], + ["/cosmos.staking.v1beta1.QueryPoolRequest", QueryPoolRequest], + ["/cosmos.staking.v1beta1.RedelegationResponse", RedelegationResponse], + ["/cosmos.staking.v1beta1.QueryRedelegationsResponse", QueryRedelegationsResponse], + ["/cosmos.staking.v1beta1.MsgEditValidatorResponse", MsgEditValidatorResponse], + ["/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", QueryHistoricalInfoRequest], + ["/cosmos.staking.v1beta1.Commission", Commission], + ["/cosmos.staking.v1beta1.QueryValidatorRequest", QueryValidatorRequest], + ["/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", QueryHistoricalInfoResponse], + ["/cosmos.staking.v1beta1.DVVTriplet", DVVTriplet], + ["/cosmos.staking.v1beta1.DVVTriplets", DVVTriplets], + ["/cosmos.staking.v1beta1.RedelegationEntryResponse", RedelegationEntryResponse], + ["/cosmos.staking.v1beta1.StakeAuthorization", StakeAuthorization], + ["/cosmos.staking.v1beta1.GenesisState", GenesisState], + ["/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", QueryDelegatorUnbondingDelegationsRequest], + ["/cosmos.staking.v1beta1.QueryPoolResponse", QueryPoolResponse], ]; diff --git a/ts-client/cosmos.tx.v1beta1/module.ts b/ts-client/cosmos.tx.v1beta1/module.ts index 88031ddaa..2533db245 100755 --- a/ts-client/cosmos.tx.v1beta1/module.ts +++ b/ts-client/cosmos.tx.v1beta1/module.ts @@ -6,151 +6,151 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; +import { TxBody } from "./types/cosmos/tx/v1beta1/tx"; +import { SignerInfo } from "./types/cosmos/tx/v1beta1/tx"; import { TxDecodeRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; -import { Tip } from "./types/cosmos/tx/v1beta1/tx"; -import { GetBlockWithTxsResponse } from "./types/cosmos/tx/v1beta1/service"; -import { SignDoc } from "./types/cosmos/tx/v1beta1/tx"; -import { BroadcastTxResponse } from "./types/cosmos/tx/v1beta1/service"; -import { GetTxResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; -import { SignDocDirectAux } from "./types/cosmos/tx/v1beta1/tx"; -import { AuthInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { GetTxsEventRequest } from "./types/cosmos/tx/v1beta1/service"; +import { TxEncodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; import { BroadcastTxRequest } from "./types/cosmos/tx/v1beta1/service"; +import { SimulateResponse } from "./types/cosmos/tx/v1beta1/service"; import { GetBlockWithTxsRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxEncodeRequest } from "./types/cosmos/tx/v1beta1/service"; +import { GetTxsEventRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxDecodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; -import { GetTxRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxBody } from "./types/cosmos/tx/v1beta1/tx"; import { ModeInfo } from "./types/cosmos/tx/v1beta1/tx"; +import { Fee } from "./types/cosmos/tx/v1beta1/tx"; +import { ModeInfo_Single } from "./types/cosmos/tx/v1beta1/tx"; +import { Tx } from "./types/cosmos/tx/v1beta1/tx"; +import { GetTxRequest } from "./types/cosmos/tx/v1beta1/service"; +import { SignDocDirectAux } from "./types/cosmos/tx/v1beta1/tx"; +import { TxDecodeResponse } from "./types/cosmos/tx/v1beta1/service"; +import { SignDoc } from "./types/cosmos/tx/v1beta1/tx"; +import { Tip } from "./types/cosmos/tx/v1beta1/tx"; import { AuxSignerData } from "./types/cosmos/tx/v1beta1/tx"; +import { TxEncodeResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxDecodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxRaw } from "./types/cosmos/tx/v1beta1/tx"; import { ModeInfo_Multi } from "./types/cosmos/tx/v1beta1/tx"; import { GetTxsEventResponse } from "./types/cosmos/tx/v1beta1/service"; +import { BroadcastTxResponse } from "./types/cosmos/tx/v1beta1/service"; +import { GetBlockWithTxsResponse } from "./types/cosmos/tx/v1beta1/service"; +import { AuthInfo } from "./types/cosmos/tx/v1beta1/tx"; import { SimulateRequest } from "./types/cosmos/tx/v1beta1/service"; -import { SimulateResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; -import { Tx } from "./types/cosmos/tx/v1beta1/tx"; -import { TxRaw } from "./types/cosmos/tx/v1beta1/tx"; -import { SignerInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { ModeInfo_Single } from "./types/cosmos/tx/v1beta1/tx"; -import { Fee } from "./types/cosmos/tx/v1beta1/tx"; +import { GetTxResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxEncodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; -export { TxDecodeRequest, TxEncodeAminoRequest, Tip, GetBlockWithTxsResponse, SignDoc, BroadcastTxResponse, GetTxResponse, TxEncodeResponse, TxDecodeAminoResponse, SignDocDirectAux, AuthInfo, GetTxsEventRequest, BroadcastTxRequest, GetBlockWithTxsRequest, TxEncodeRequest, TxDecodeAminoRequest, GetTxRequest, TxBody, ModeInfo, AuxSignerData, ModeInfo_Multi, GetTxsEventResponse, SimulateRequest, SimulateResponse, TxDecodeResponse, TxEncodeAminoResponse, Tx, TxRaw, SignerInfo, ModeInfo_Single, Fee }; +export { TxBody, SignerInfo, TxDecodeRequest, TxEncodeAminoResponse, BroadcastTxRequest, SimulateResponse, GetBlockWithTxsRequest, TxEncodeRequest, GetTxsEventRequest, TxDecodeAminoRequest, ModeInfo, Fee, ModeInfo_Single, Tx, GetTxRequest, SignDocDirectAux, TxDecodeResponse, SignDoc, Tip, AuxSignerData, TxEncodeResponse, TxDecodeAminoResponse, TxRaw, ModeInfo_Multi, GetTxsEventResponse, BroadcastTxResponse, GetBlockWithTxsResponse, AuthInfo, SimulateRequest, GetTxResponse, TxEncodeAminoRequest }; -type sendTxDecodeRequestParams = { - value: TxDecodeRequest, +type sendTxBodyParams = { + value: TxBody, fee?: StdFee, memo?: string }; -type sendTxEncodeAminoRequestParams = { - value: TxEncodeAminoRequest, +type sendSignerInfoParams = { + value: SignerInfo, fee?: StdFee, memo?: string }; -type sendTipParams = { - value: Tip, +type sendTxDecodeRequestParams = { + value: TxDecodeRequest, fee?: StdFee, memo?: string }; -type sendGetBlockWithTxsResponseParams = { - value: GetBlockWithTxsResponse, +type sendTxEncodeAminoResponseParams = { + value: TxEncodeAminoResponse, fee?: StdFee, memo?: string }; -type sendSignDocParams = { - value: SignDoc, +type sendBroadcastTxRequestParams = { + value: BroadcastTxRequest, fee?: StdFee, memo?: string }; -type sendBroadcastTxResponseParams = { - value: BroadcastTxResponse, +type sendSimulateResponseParams = { + value: SimulateResponse, fee?: StdFee, memo?: string }; -type sendGetTxResponseParams = { - value: GetTxResponse, +type sendGetBlockWithTxsRequestParams = { + value: GetBlockWithTxsRequest, fee?: StdFee, memo?: string }; -type sendTxEncodeResponseParams = { - value: TxEncodeResponse, +type sendTxEncodeRequestParams = { + value: TxEncodeRequest, fee?: StdFee, memo?: string }; -type sendTxDecodeAminoResponseParams = { - value: TxDecodeAminoResponse, +type sendGetTxsEventRequestParams = { + value: GetTxsEventRequest, fee?: StdFee, memo?: string }; -type sendSignDocDirectAuxParams = { - value: SignDocDirectAux, +type sendTxDecodeAminoRequestParams = { + value: TxDecodeAminoRequest, fee?: StdFee, memo?: string }; -type sendAuthInfoParams = { - value: AuthInfo, +type sendModeInfoParams = { + value: ModeInfo, fee?: StdFee, memo?: string }; -type sendGetTxsEventRequestParams = { - value: GetTxsEventRequest, +type sendFeeParams = { + value: Fee, fee?: StdFee, memo?: string }; -type sendBroadcastTxRequestParams = { - value: BroadcastTxRequest, +type sendModeInfo_SingleParams = { + value: ModeInfo_Single, fee?: StdFee, memo?: string }; -type sendGetBlockWithTxsRequestParams = { - value: GetBlockWithTxsRequest, +type sendTxParams = { + value: Tx, fee?: StdFee, memo?: string }; -type sendTxEncodeRequestParams = { - value: TxEncodeRequest, +type sendGetTxRequestParams = { + value: GetTxRequest, fee?: StdFee, memo?: string }; -type sendTxDecodeAminoRequestParams = { - value: TxDecodeAminoRequest, +type sendSignDocDirectAuxParams = { + value: SignDocDirectAux, fee?: StdFee, memo?: string }; -type sendGetTxRequestParams = { - value: GetTxRequest, +type sendTxDecodeResponseParams = { + value: TxDecodeResponse, fee?: StdFee, memo?: string }; -type sendTxBodyParams = { - value: TxBody, +type sendSignDocParams = { + value: SignDoc, fee?: StdFee, memo?: string }; -type sendModeInfoParams = { - value: ModeInfo, +type sendTipParams = { + value: Tip, fee?: StdFee, memo?: string }; @@ -161,195 +161,195 @@ type sendAuxSignerDataParams = { memo?: string }; -type sendModeInfo_MultiParams = { - value: ModeInfo_Multi, +type sendTxEncodeResponseParams = { + value: TxEncodeResponse, fee?: StdFee, memo?: string }; -type sendGetTxsEventResponseParams = { - value: GetTxsEventResponse, +type sendTxDecodeAminoResponseParams = { + value: TxDecodeAminoResponse, fee?: StdFee, memo?: string }; -type sendSimulateRequestParams = { - value: SimulateRequest, +type sendTxRawParams = { + value: TxRaw, fee?: StdFee, memo?: string }; -type sendSimulateResponseParams = { - value: SimulateResponse, +type sendModeInfo_MultiParams = { + value: ModeInfo_Multi, fee?: StdFee, memo?: string }; -type sendTxDecodeResponseParams = { - value: TxDecodeResponse, +type sendGetTxsEventResponseParams = { + value: GetTxsEventResponse, fee?: StdFee, memo?: string }; -type sendTxEncodeAminoResponseParams = { - value: TxEncodeAminoResponse, +type sendBroadcastTxResponseParams = { + value: BroadcastTxResponse, fee?: StdFee, memo?: string }; -type sendTxParams = { - value: Tx, +type sendGetBlockWithTxsResponseParams = { + value: GetBlockWithTxsResponse, fee?: StdFee, memo?: string }; -type sendTxRawParams = { - value: TxRaw, +type sendAuthInfoParams = { + value: AuthInfo, fee?: StdFee, memo?: string }; -type sendSignerInfoParams = { - value: SignerInfo, +type sendSimulateRequestParams = { + value: SimulateRequest, fee?: StdFee, memo?: string }; -type sendModeInfo_SingleParams = { - value: ModeInfo_Single, +type sendGetTxResponseParams = { + value: GetTxResponse, fee?: StdFee, memo?: string }; -type sendFeeParams = { - value: Fee, +type sendTxEncodeAminoRequestParams = { + value: TxEncodeAminoRequest, fee?: StdFee, memo?: string }; -type txDecodeRequestParams = { - value: TxDecodeRequest, +type txBodyParams = { + value: TxBody, }; -type txEncodeAminoRequestParams = { - value: TxEncodeAminoRequest, +type signerInfoParams = { + value: SignerInfo, }; -type tipParams = { - value: Tip, +type txDecodeRequestParams = { + value: TxDecodeRequest, }; -type getBlockWithTxsResponseParams = { - value: GetBlockWithTxsResponse, +type txEncodeAminoResponseParams = { + value: TxEncodeAminoResponse, }; -type signDocParams = { - value: SignDoc, +type broadcastTxRequestParams = { + value: BroadcastTxRequest, }; -type broadcastTxResponseParams = { - value: BroadcastTxResponse, +type simulateResponseParams = { + value: SimulateResponse, }; -type getTxResponseParams = { - value: GetTxResponse, +type getBlockWithTxsRequestParams = { + value: GetBlockWithTxsRequest, }; -type txEncodeResponseParams = { - value: TxEncodeResponse, +type txEncodeRequestParams = { + value: TxEncodeRequest, }; -type txDecodeAminoResponseParams = { - value: TxDecodeAminoResponse, +type getTxsEventRequestParams = { + value: GetTxsEventRequest, }; -type signDocDirectAuxParams = { - value: SignDocDirectAux, +type txDecodeAminoRequestParams = { + value: TxDecodeAminoRequest, }; -type authInfoParams = { - value: AuthInfo, +type modeInfoParams = { + value: ModeInfo, }; -type getTxsEventRequestParams = { - value: GetTxsEventRequest, +type feeParams = { + value: Fee, }; -type broadcastTxRequestParams = { - value: BroadcastTxRequest, +type modeInfoSingleParams = { + value: ModeInfo_Single, }; -type getBlockWithTxsRequestParams = { - value: GetBlockWithTxsRequest, +type txParams = { + value: Tx, }; -type txEncodeRequestParams = { - value: TxEncodeRequest, +type getTxRequestParams = { + value: GetTxRequest, }; -type txDecodeAminoRequestParams = { - value: TxDecodeAminoRequest, +type signDocDirectAuxParams = { + value: SignDocDirectAux, }; -type getTxRequestParams = { - value: GetTxRequest, +type txDecodeResponseParams = { + value: TxDecodeResponse, }; -type txBodyParams = { - value: TxBody, +type signDocParams = { + value: SignDoc, }; -type modeInfoParams = { - value: ModeInfo, +type tipParams = { + value: Tip, }; type auxSignerDataParams = { value: AuxSignerData, }; -type modeInfoMultiParams = { - value: ModeInfo_Multi, +type txEncodeResponseParams = { + value: TxEncodeResponse, }; -type getTxsEventResponseParams = { - value: GetTxsEventResponse, +type txDecodeAminoResponseParams = { + value: TxDecodeAminoResponse, }; -type simulateRequestParams = { - value: SimulateRequest, +type txRawParams = { + value: TxRaw, }; -type simulateResponseParams = { - value: SimulateResponse, +type modeInfoMultiParams = { + value: ModeInfo_Multi, }; -type txDecodeResponseParams = { - value: TxDecodeResponse, +type getTxsEventResponseParams = { + value: GetTxsEventResponse, }; -type txEncodeAminoResponseParams = { - value: TxEncodeAminoResponse, +type broadcastTxResponseParams = { + value: BroadcastTxResponse, }; -type txParams = { - value: Tx, +type getBlockWithTxsResponseParams = { + value: GetBlockWithTxsResponse, }; -type txRawParams = { - value: TxRaw, +type authInfoParams = { + value: AuthInfo, }; -type signerInfoParams = { - value: SignerInfo, +type simulateRequestParams = { + value: SimulateRequest, }; -type modeInfoSingleParams = { - value: ModeInfo_Single, +type getTxResponseParams = { + value: GetTxResponse, }; -type feeParams = { - value: Fee, +type txEncodeAminoRequestParams = { + value: TxEncodeAminoRequest, }; @@ -382,269 +382,269 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendTxDecodeRequest({ value, fee, memo }: sendTxDecodeRequestParams): Promise { + async sendTxBody({ value, fee, memo }: sendTxBodyParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxDecodeRequest: 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.txDecodeRequest({ value: TxDecodeRequest.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:sendTxDecodeRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxBody: Could not broadcast Tx: '+ e.message) } }, - async sendTxEncodeAminoRequest({ value, fee, memo }: sendTxEncodeAminoRequestParams): Promise { + async sendSignerInfo({ value, fee, memo }: sendSignerInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxEncodeAminoRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSignerInfo: Unable to 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.signerInfo({ value: SignerInfo.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:sendSignerInfo: Could not broadcast Tx: '+ e.message) } }, - async sendTip({ value, fee, memo }: sendTipParams): Promise { + async sendTxDecodeRequest({ value, fee, memo }: sendTxDecodeRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendTip: 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.tip({ value: Tip.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:sendTip: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxDecodeRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGetBlockWithTxsResponse({ value, fee, memo }: sendGetBlockWithTxsResponseParams): Promise { + async sendTxEncodeAminoResponse({ value, fee, memo }: sendTxEncodeAminoResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetBlockWithTxsResponse: 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.getBlockWithTxsResponse({ value: GetBlockWithTxsResponse.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:sendGetBlockWithTxsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxEncodeAminoResponse: Could not broadcast Tx: '+ e.message) } }, - async sendSignDoc({ value, fee, memo }: sendSignDocParams): Promise { + async sendBroadcastTxRequest({ value, fee, memo }: sendBroadcastTxRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendSignDoc: 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.signDoc({ value: SignDoc.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:sendSignDoc: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendBroadcastTxRequest: Could not broadcast Tx: '+ e.message) } }, - async sendBroadcastTxResponse({ value, fee, memo }: sendBroadcastTxResponseParams): Promise { + async sendSimulateResponse({ value, fee, memo }: sendSimulateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendBroadcastTxResponse: 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.broadcastTxResponse({ value: BroadcastTxResponse.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:sendBroadcastTxResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSimulateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGetTxResponse({ value, fee, memo }: sendGetTxResponseParams): Promise { + async sendGetBlockWithTxsRequest({ value, fee, memo }: sendGetBlockWithTxsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetTxResponse: 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.getTxResponse({ value: GetTxResponse.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:sendGetTxResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetBlockWithTxsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendTxEncodeResponse({ value, fee, memo }: sendTxEncodeResponseParams): Promise { + async sendTxEncodeRequest({ value, fee, memo }: sendTxEncodeRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxEncodeResponse: 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.txEncodeResponse({ value: TxEncodeResponse.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:sendTxEncodeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxEncodeRequest: Could not broadcast Tx: '+ e.message) } }, - async sendTxDecodeAminoResponse({ value, fee, memo }: sendTxDecodeAminoResponseParams): Promise { + async sendGetTxsEventRequest({ value, fee, memo }: sendGetTxsEventRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxDecodeAminoResponse: 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.txDecodeAminoResponse({ value: TxDecodeAminoResponse.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:sendTxDecodeAminoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetTxsEventRequest: Could not broadcast Tx: '+ e.message) } }, - async sendSignDocDirectAux({ value, fee, memo }: sendSignDocDirectAuxParams): Promise { + async sendTxDecodeAminoRequest({ value, fee, memo }: sendTxDecodeAminoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendSignDocDirectAux: 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.signDocDirectAux({ value: SignDocDirectAux.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:sendSignDocDirectAux: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxDecodeAminoRequest: Could not broadcast Tx: '+ e.message) } }, - async sendAuthInfo({ value, fee, memo }: sendAuthInfoParams): Promise { + async sendModeInfo({ value, fee, memo }: sendModeInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendAuthInfo: 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.authInfo({ value: AuthInfo.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:sendAuthInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendModeInfo: Could not broadcast Tx: '+ e.message) } }, - async sendGetTxsEventRequest({ value, fee, memo }: sendGetTxsEventRequestParams): Promise { + async sendFee({ value, fee, memo }: sendFeeParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetTxsEventRequest: 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.getTxsEventRequest({ value: GetTxsEventRequest.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:sendGetTxsEventRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendFee: Could not broadcast Tx: '+ e.message) } }, - async sendBroadcastTxRequest({ value, fee, memo }: sendBroadcastTxRequestParams): Promise { + async sendModeInfo_Single({ value, fee, memo }: sendModeInfo_SingleParams): Promise { if (!signer) { - throw new Error('TxClient:sendBroadcastTxRequest: 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.broadcastTxRequest({ value: BroadcastTxRequest.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:sendBroadcastTxRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendModeInfo_Single: Could not broadcast Tx: '+ e.message) } }, - async sendGetBlockWithTxsRequest({ value, fee, memo }: sendGetBlockWithTxsRequestParams): Promise { + async sendTx({ value, fee, memo }: sendTxParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetBlockWithTxsRequest: 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.getBlockWithTxsRequest({ value: GetBlockWithTxsRequest.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:sendGetBlockWithTxsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTx: Could not broadcast Tx: '+ e.message) } }, - async sendTxEncodeRequest({ value, fee, memo }: sendTxEncodeRequestParams): Promise { + async sendGetTxRequest({ value, fee, memo }: sendGetTxRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxEncodeRequest: 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.txEncodeRequest({ value: TxEncodeRequest.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:sendTxEncodeRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetTxRequest: Could not broadcast Tx: '+ e.message) } }, - async sendTxDecodeAminoRequest({ value, fee, memo }: sendTxDecodeAminoRequestParams): Promise { + async sendSignDocDirectAux({ value, fee, memo }: sendSignDocDirectAuxParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxDecodeAminoRequest: 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.txDecodeAminoRequest({ value: TxDecodeAminoRequest.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:sendTxDecodeAminoRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSignDocDirectAux: Could not broadcast Tx: '+ e.message) } }, - async sendGetTxRequest({ value, fee, memo }: sendGetTxRequestParams): Promise { + async sendTxDecodeResponse({ value, fee, memo }: sendTxDecodeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGetTxRequest: Unable to sign Tx. Signer is not present.') + 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.getTxRequest({ value: GetTxRequest.fromPartial(value) }) + 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:sendGetTxRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxDecodeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendTxBody({ value, fee, memo }: sendTxBodyParams): Promise { + async sendSignDoc({ value, fee, memo }: sendSignDocParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxBody: 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.txBody({ value: TxBody.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:sendTxBody: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSignDoc: Could not broadcast Tx: '+ e.message) } }, - async sendModeInfo({ value, fee, memo }: sendModeInfoParams): Promise { + async sendTip({ value, fee, memo }: sendTipParams): Promise { if (!signer) { - throw new Error('TxClient:sendModeInfo: 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.modeInfo({ value: ModeInfo.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:sendModeInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTip: Could not broadcast Tx: '+ e.message) } }, @@ -662,310 +662,310 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendModeInfo_Multi({ value, fee, memo }: sendModeInfo_MultiParams): Promise { + async sendTxEncodeResponse({ value, fee, memo }: sendTxEncodeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendModeInfo_Multi: 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.modeInfoMulti({ value: ModeInfo_Multi.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:sendModeInfo_Multi: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxEncodeResponse: Could not broadcast Tx: '+ e.message) } }, - 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 sendSimulateRequest({ value, fee, memo }: sendSimulateRequestParams): Promise { + async sendTxRaw({ value, fee, memo }: sendTxRawParams): Promise { if (!signer) { - throw new Error('TxClient:sendSimulateRequest: 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.simulateRequest({ value: SimulateRequest.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:sendSimulateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxRaw: Could not broadcast Tx: '+ e.message) } }, - async sendSimulateResponse({ value, fee, memo }: sendSimulateResponseParams): Promise { + async sendModeInfo_Multi({ value, fee, memo }: sendModeInfo_MultiParams): Promise { if (!signer) { - throw new Error('TxClient:sendSimulateResponse: 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.simulateResponse({ value: SimulateResponse.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:sendSimulateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendModeInfo_Multi: Could not broadcast Tx: '+ e.message) } }, - async sendTxDecodeResponse({ value, fee, memo }: sendTxDecodeResponseParams): Promise { + async sendGetTxsEventResponse({ value, fee, memo }: sendGetTxsEventResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxDecodeResponse: 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.txDecodeResponse({ value: TxDecodeResponse.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:sendTxDecodeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetTxsEventResponse: Could not broadcast Tx: '+ e.message) } }, - async sendTxEncodeAminoResponse({ value, fee, memo }: sendTxEncodeAminoResponseParams): Promise { + async sendBroadcastTxResponse({ value, fee, memo }: sendBroadcastTxResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxEncodeAminoResponse: 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.txEncodeAminoResponse({ value: TxEncodeAminoResponse.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:sendTxEncodeAminoResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendBroadcastTxResponse: Could not broadcast Tx: '+ e.message) } }, - async sendTx({ value, fee, memo }: sendTxParams): Promise { + async sendGetBlockWithTxsResponse({ value, fee, memo }: sendGetBlockWithTxsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendTx: 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.tx({ value: Tx.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:sendTx: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetBlockWithTxsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendTxRaw({ value, fee, memo }: sendTxRawParams): Promise { + async sendAuthInfo({ value, fee, memo }: sendAuthInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendTxRaw: 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.txRaw({ value: TxRaw.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:sendTxRaw: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAuthInfo: Could not broadcast Tx: '+ e.message) } }, - async sendSignerInfo({ value, fee, memo }: sendSignerInfoParams): Promise { + async sendSimulateRequest({ value, fee, memo }: sendSimulateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendSignerInfo: 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.signerInfo({ value: SignerInfo.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:sendSignerInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSimulateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendModeInfo_Single({ value, fee, memo }: sendModeInfo_SingleParams): Promise { + async sendGetTxResponse({ value, fee, memo }: sendGetTxResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendModeInfo_Single: 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.modeInfoSingle({ value: ModeInfo_Single.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:sendModeInfo_Single: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGetTxResponse: Could not broadcast Tx: '+ e.message) } }, - async sendFee({ value, fee, memo }: sendFeeParams): Promise { + async sendTxEncodeAminoRequest({ value, fee, memo }: sendTxEncodeAminoRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendFee: 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.fee({ value: Fee.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:sendFee: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTxEncodeAminoRequest: Could not broadcast Tx: '+ e.message) } }, - txDecodeRequest({ value }: txDecodeRequestParams): EncodeObject { + txBody({ value }: txBodyParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeRequest", value: TxDecodeRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxBody", value: TxBody.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxDecodeRequest: Could not create message: ' + e.message) + throw new Error('TxClient:TxBody: Could not create message: ' + e.message) } }, - txEncodeAminoRequest({ value }: txEncodeAminoRequestParams): EncodeObject { + signerInfo({ value }: signerInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoRequest", value: TxEncodeAminoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.SignerInfo", value: SignerInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxEncodeAminoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:SignerInfo: Could not create message: ' + e.message) } }, - tip({ value }: tipParams): EncodeObject { + txDecodeRequest({ value }: txDecodeRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.Tip", value: Tip.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeRequest", value: TxDecodeRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Tip: Could not create message: ' + e.message) + throw new Error('TxClient:TxDecodeRequest: Could not create message: ' + e.message) } }, - getBlockWithTxsResponse({ value }: getBlockWithTxsResponseParams): EncodeObject { + txEncodeAminoResponse({ value }: txEncodeAminoResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", value: GetBlockWithTxsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoResponse", value: TxEncodeAminoResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetBlockWithTxsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:TxEncodeAminoResponse: Could not create message: ' + e.message) } }, - signDoc({ value }: signDocParams): EncodeObject { + broadcastTxRequest({ value }: broadcastTxRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.SignDoc", value: SignDoc.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", value: BroadcastTxRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SignDoc: Could not create message: ' + e.message) + throw new Error('TxClient:BroadcastTxRequest: Could not create message: ' + e.message) } }, - broadcastTxResponse({ value }: broadcastTxResponseParams): EncodeObject { + simulateResponse({ value }: simulateResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", value: BroadcastTxResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", value: SimulateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:BroadcastTxResponse: Could not create message: ' + e.message) + throw new Error('TxClient:SimulateResponse: Could not create message: ' + e.message) } }, - getTxResponse({ value }: getTxResponseParams): EncodeObject { + getBlockWithTxsRequest({ value }: getBlockWithTxsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", value: GetTxResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", value: GetBlockWithTxsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetTxResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GetBlockWithTxsRequest: Could not create message: ' + e.message) } }, - txEncodeResponse({ value }: txEncodeResponseParams): EncodeObject { + txEncodeRequest({ value }: txEncodeRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeResponse", value: TxEncodeResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeRequest", value: TxEncodeRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxEncodeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:TxEncodeRequest: Could not create message: ' + e.message) } }, - txDecodeAminoResponse({ value }: txDecodeAminoResponseParams): EncodeObject { + getTxsEventRequest({ value }: getTxsEventRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoResponse", value: TxDecodeAminoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", value: GetTxsEventRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxDecodeAminoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GetTxsEventRequest: Could not create message: ' + e.message) } }, - signDocDirectAux({ value }: signDocDirectAuxParams): EncodeObject { + txDecodeAminoRequest({ value }: txDecodeAminoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", value: SignDocDirectAux.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoRequest", value: TxDecodeAminoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SignDocDirectAux: Could not create message: ' + e.message) + throw new Error('TxClient:TxDecodeAminoRequest: Could not create message: ' + e.message) } }, - authInfo({ value }: authInfoParams): EncodeObject { + modeInfo({ value }: modeInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.AuthInfo", value: AuthInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo", value: ModeInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:AuthInfo: Could not create message: ' + e.message) + throw new Error('TxClient:ModeInfo: Could not create message: ' + e.message) } }, - getTxsEventRequest({ value }: getTxsEventRequestParams): EncodeObject { + fee({ value }: feeParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", value: GetTxsEventRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.Fee", value: Fee.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetTxsEventRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Fee: Could not create message: ' + e.message) } }, - broadcastTxRequest({ value }: broadcastTxRequestParams): EncodeObject { + modeInfoSingle({ value }: modeInfoSingleParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", value: BroadcastTxRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo_Single", value: ModeInfo_Single.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:BroadcastTxRequest: Could not create message: ' + e.message) + throw new Error('TxClient:ModeInfo_Single: Could not create message: ' + e.message) } }, - getBlockWithTxsRequest({ value }: getBlockWithTxsRequestParams): EncodeObject { + tx({ value }: txParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsRequest", value: GetBlockWithTxsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.Tx", value: Tx.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetBlockWithTxsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Tx: Could not create message: ' + e.message) } }, - txEncodeRequest({ value }: txEncodeRequestParams): EncodeObject { + getTxRequest({ value }: getTxRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeRequest", value: TxEncodeRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", value: GetTxRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxEncodeRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GetTxRequest: Could not create message: ' + e.message) } }, - txDecodeAminoRequest({ value }: txDecodeAminoRequestParams): EncodeObject { + signDocDirectAux({ value }: signDocDirectAuxParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoRequest", value: TxDecodeAminoRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", value: SignDocDirectAux.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxDecodeAminoRequest: Could not create message: ' + e.message) + throw new Error('TxClient:SignDocDirectAux: Could not create message: ' + e.message) } }, - getTxRequest({ value }: getTxRequestParams): EncodeObject { + txDecodeResponse({ value }: txDecodeResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", value: GetTxRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeResponse", value: TxDecodeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GetTxRequest: Could not create message: ' + e.message) + throw new Error('TxClient:TxDecodeResponse: Could not create message: ' + e.message) } }, - txBody({ value }: txBodyParams): EncodeObject { + signDoc({ value }: signDocParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxBody", value: TxBody.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.SignDoc", value: SignDoc.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxBody: Could not create message: ' + e.message) + throw new Error('TxClient:SignDoc: Could not create message: ' + e.message) } }, - modeInfo({ value }: modeInfoParams): EncodeObject { + tip({ value }: tipParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo", value: ModeInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.Tip", value: Tip.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ModeInfo: Could not create message: ' + e.message) + throw new Error('TxClient:Tip: Could not create message: ' + e.message) } }, @@ -977,91 +977,91 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - modeInfoMulti({ value }: modeInfoMultiParams): EncodeObject { + txEncodeResponse({ value }: txEncodeResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo_Multi", value: ModeInfo_Multi.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeResponse", value: TxEncodeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ModeInfo_Multi: Could not create message: ' + e.message) + throw new Error('TxClient:TxEncodeResponse: Could not create message: ' + e.message) } }, - 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) } }, - simulateRequest({ value }: simulateRequestParams): EncodeObject { + txRaw({ value }: txRawParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", value: SimulateRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxRaw", value: TxRaw.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SimulateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:TxRaw: Could not create message: ' + e.message) } }, - simulateResponse({ value }: simulateResponseParams): EncodeObject { + modeInfoMulti({ value }: modeInfoMultiParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", value: SimulateResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo_Multi", value: ModeInfo_Multi.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SimulateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ModeInfo_Multi: Could not create message: ' + e.message) } }, - txDecodeResponse({ value }: txDecodeResponseParams): EncodeObject { + getTxsEventResponse({ value }: getTxsEventResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeResponse", value: TxDecodeResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", value: GetTxsEventResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxDecodeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GetTxsEventResponse: Could not create message: ' + e.message) } }, - txEncodeAminoResponse({ value }: txEncodeAminoResponseParams): EncodeObject { + broadcastTxResponse({ value }: broadcastTxResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoResponse", value: TxEncodeAminoResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", value: BroadcastTxResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxEncodeAminoResponse: Could not create message: ' + e.message) + throw new Error('TxClient:BroadcastTxResponse: Could not create message: ' + e.message) } }, - tx({ value }: txParams): EncodeObject { + getBlockWithTxsResponse({ value }: getBlockWithTxsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.Tx", value: Tx.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", value: GetBlockWithTxsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Tx: Could not create message: ' + e.message) + throw new Error('TxClient:GetBlockWithTxsResponse: Could not create message: ' + e.message) } }, - txRaw({ value }: txRawParams): EncodeObject { + authInfo({ value }: authInfoParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxRaw", value: TxRaw.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.AuthInfo", value: AuthInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TxRaw: Could not create message: ' + e.message) + throw new Error('TxClient:AuthInfo: Could not create message: ' + e.message) } }, - signerInfo({ value }: signerInfoParams): EncodeObject { + simulateRequest({ value }: simulateRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.SignerInfo", value: SignerInfo.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", value: SimulateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SignerInfo: Could not create message: ' + e.message) + throw new Error('TxClient:SimulateRequest: Could not create message: ' + e.message) } }, - modeInfoSingle({ value }: modeInfoSingleParams): EncodeObject { + getTxResponse({ value }: getTxResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo_Single", value: ModeInfo_Single.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", value: GetTxResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ModeInfo_Single: Could not create message: ' + e.message) + throw new Error('TxClient:GetTxResponse: Could not create message: ' + e.message) } }, - fee({ value }: feeParams): EncodeObject { + txEncodeAminoRequest({ value }: txEncodeAminoRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.tx.v1beta1.Fee", value: Fee.fromPartial( value ) } + return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoRequest", value: TxEncodeAminoRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Fee: Could not create message: ' + e.message) + throw new Error('TxClient:TxEncodeAminoRequest: 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 20b6b92a7..e82e3fa54 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 { TxBody } from "./types/cosmos/tx/v1beta1/tx"; +import { SignerInfo } from "./types/cosmos/tx/v1beta1/tx"; import { TxDecodeRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; -import { Tip } from "./types/cosmos/tx/v1beta1/tx"; -import { GetBlockWithTxsResponse } from "./types/cosmos/tx/v1beta1/service"; -import { SignDoc } from "./types/cosmos/tx/v1beta1/tx"; -import { BroadcastTxResponse } from "./types/cosmos/tx/v1beta1/service"; -import { GetTxResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; -import { SignDocDirectAux } from "./types/cosmos/tx/v1beta1/tx"; -import { AuthInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { GetTxsEventRequest } from "./types/cosmos/tx/v1beta1/service"; +import { TxEncodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; import { BroadcastTxRequest } from "./types/cosmos/tx/v1beta1/service"; +import { SimulateResponse } from "./types/cosmos/tx/v1beta1/service"; import { GetBlockWithTxsRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxEncodeRequest } from "./types/cosmos/tx/v1beta1/service"; +import { GetTxsEventRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxDecodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; -import { GetTxRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxBody } from "./types/cosmos/tx/v1beta1/tx"; import { ModeInfo } from "./types/cosmos/tx/v1beta1/tx"; +import { Fee } from "./types/cosmos/tx/v1beta1/tx"; +import { ModeInfo_Single } from "./types/cosmos/tx/v1beta1/tx"; +import { Tx } from "./types/cosmos/tx/v1beta1/tx"; +import { GetTxRequest } from "./types/cosmos/tx/v1beta1/service"; +import { SignDocDirectAux } from "./types/cosmos/tx/v1beta1/tx"; +import { TxDecodeResponse } from "./types/cosmos/tx/v1beta1/service"; +import { SignDoc } from "./types/cosmos/tx/v1beta1/tx"; +import { Tip } from "./types/cosmos/tx/v1beta1/tx"; import { AuxSignerData } from "./types/cosmos/tx/v1beta1/tx"; +import { TxEncodeResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxDecodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxRaw } from "./types/cosmos/tx/v1beta1/tx"; import { ModeInfo_Multi } from "./types/cosmos/tx/v1beta1/tx"; import { GetTxsEventResponse } from "./types/cosmos/tx/v1beta1/service"; +import { BroadcastTxResponse } from "./types/cosmos/tx/v1beta1/service"; +import { GetBlockWithTxsResponse } from "./types/cosmos/tx/v1beta1/service"; +import { AuthInfo } from "./types/cosmos/tx/v1beta1/tx"; import { SimulateRequest } from "./types/cosmos/tx/v1beta1/service"; -import { SimulateResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; -import { Tx } from "./types/cosmos/tx/v1beta1/tx"; -import { TxRaw } from "./types/cosmos/tx/v1beta1/tx"; -import { SignerInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { ModeInfo_Single } from "./types/cosmos/tx/v1beta1/tx"; -import { Fee } from "./types/cosmos/tx/v1beta1/tx"; +import { GetTxResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxEncodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; const msgTypes: Array<[string, GeneratedType]> = [ + ["/cosmos.tx.v1beta1.TxBody", TxBody], + ["/cosmos.tx.v1beta1.SignerInfo", SignerInfo], ["/cosmos.tx.v1beta1.TxDecodeRequest", TxDecodeRequest], - ["/cosmos.tx.v1beta1.TxEncodeAminoRequest", TxEncodeAminoRequest], - ["/cosmos.tx.v1beta1.Tip", Tip], - ["/cosmos.tx.v1beta1.GetBlockWithTxsResponse", GetBlockWithTxsResponse], - ["/cosmos.tx.v1beta1.SignDoc", SignDoc], - ["/cosmos.tx.v1beta1.BroadcastTxResponse", BroadcastTxResponse], - ["/cosmos.tx.v1beta1.GetTxResponse", GetTxResponse], - ["/cosmos.tx.v1beta1.TxEncodeResponse", TxEncodeResponse], - ["/cosmos.tx.v1beta1.TxDecodeAminoResponse", TxDecodeAminoResponse], - ["/cosmos.tx.v1beta1.SignDocDirectAux", SignDocDirectAux], - ["/cosmos.tx.v1beta1.AuthInfo", AuthInfo], - ["/cosmos.tx.v1beta1.GetTxsEventRequest", GetTxsEventRequest], + ["/cosmos.tx.v1beta1.TxEncodeAminoResponse", TxEncodeAminoResponse], ["/cosmos.tx.v1beta1.BroadcastTxRequest", BroadcastTxRequest], + ["/cosmos.tx.v1beta1.SimulateResponse", SimulateResponse], ["/cosmos.tx.v1beta1.GetBlockWithTxsRequest", GetBlockWithTxsRequest], ["/cosmos.tx.v1beta1.TxEncodeRequest", TxEncodeRequest], + ["/cosmos.tx.v1beta1.GetTxsEventRequest", GetTxsEventRequest], ["/cosmos.tx.v1beta1.TxDecodeAminoRequest", TxDecodeAminoRequest], - ["/cosmos.tx.v1beta1.GetTxRequest", GetTxRequest], - ["/cosmos.tx.v1beta1.TxBody", TxBody], ["/cosmos.tx.v1beta1.ModeInfo", ModeInfo], + ["/cosmos.tx.v1beta1.Fee", Fee], + ["/cosmos.tx.v1beta1.ModeInfo_Single", ModeInfo_Single], + ["/cosmos.tx.v1beta1.Tx", Tx], + ["/cosmos.tx.v1beta1.GetTxRequest", GetTxRequest], + ["/cosmos.tx.v1beta1.SignDocDirectAux", SignDocDirectAux], + ["/cosmos.tx.v1beta1.TxDecodeResponse", TxDecodeResponse], + ["/cosmos.tx.v1beta1.SignDoc", SignDoc], + ["/cosmos.tx.v1beta1.Tip", Tip], ["/cosmos.tx.v1beta1.AuxSignerData", AuxSignerData], + ["/cosmos.tx.v1beta1.TxEncodeResponse", TxEncodeResponse], + ["/cosmos.tx.v1beta1.TxDecodeAminoResponse", TxDecodeAminoResponse], + ["/cosmos.tx.v1beta1.TxRaw", TxRaw], ["/cosmos.tx.v1beta1.ModeInfo_Multi", ModeInfo_Multi], ["/cosmos.tx.v1beta1.GetTxsEventResponse", GetTxsEventResponse], + ["/cosmos.tx.v1beta1.BroadcastTxResponse", BroadcastTxResponse], + ["/cosmos.tx.v1beta1.GetBlockWithTxsResponse", GetBlockWithTxsResponse], + ["/cosmos.tx.v1beta1.AuthInfo", AuthInfo], ["/cosmos.tx.v1beta1.SimulateRequest", SimulateRequest], - ["/cosmos.tx.v1beta1.SimulateResponse", SimulateResponse], - ["/cosmos.tx.v1beta1.TxDecodeResponse", TxDecodeResponse], - ["/cosmos.tx.v1beta1.TxEncodeAminoResponse", TxEncodeAminoResponse], - ["/cosmos.tx.v1beta1.Tx", Tx], - ["/cosmos.tx.v1beta1.TxRaw", TxRaw], - ["/cosmos.tx.v1beta1.SignerInfo", SignerInfo], - ["/cosmos.tx.v1beta1.ModeInfo_Single", ModeInfo_Single], - ["/cosmos.tx.v1beta1.Fee", Fee], + ["/cosmos.tx.v1beta1.GetTxResponse", GetTxResponse], + ["/cosmos.tx.v1beta1.TxEncodeAminoRequest", TxEncodeAminoRequest], ]; diff --git a/ts-client/cosmos.upgrade.v1beta1/module.ts b/ts-client/cosmos.upgrade.v1beta1/module.ts index 78967c022..35d053529 100755 --- a/ts-client/cosmos.upgrade.v1beta1/module.ts +++ b/ts-client/cosmos.upgrade.v1beta1/module.ts @@ -6,42 +6,48 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; +import { MsgCancelUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; +import { MsgCancelUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; import { QueryCurrentPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryAppliedPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryModuleVersionsRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryAppliedPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; -import { MsgSoftwareUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; -import { CancelSoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; +import { QueryModuleVersionsResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { Plan } from "./types/cosmos/upgrade/v1beta1/upgrade"; import { QueryCurrentPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryAppliedPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; import { QueryUpgradedConsensusStateRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { Plan } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { QueryAppliedPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryAuthorityRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { ModuleVersion } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { MsgCancelUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; -import { MsgCancelUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; -import { SoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; import { QueryUpgradedConsensusStateResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryModuleVersionsResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryModuleVersionsRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { SoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; +import { MsgSoftwareUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; +import { QueryAuthorityRequest } from "./types/cosmos/upgrade/v1beta1/query"; import { QueryAuthorityResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { CancelSoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; +import { ModuleVersion } from "./types/cosmos/upgrade/v1beta1/upgrade"; -export { QueryCurrentPlanResponse, QueryAppliedPlanResponse, QueryModuleVersionsRequest, MsgSoftwareUpgrade, MsgSoftwareUpgradeResponse, CancelSoftwareUpgradeProposal, QueryCurrentPlanRequest, QueryUpgradedConsensusStateRequest, Plan, QueryAppliedPlanRequest, QueryAuthorityRequest, ModuleVersion, MsgCancelUpgrade, MsgCancelUpgradeResponse, SoftwareUpgradeProposal, QueryUpgradedConsensusStateResponse, QueryModuleVersionsResponse, QueryAuthorityResponse }; +export { MsgCancelUpgrade, MsgCancelUpgradeResponse, QueryCurrentPlanResponse, QueryAppliedPlanRequest, MsgSoftwareUpgrade, QueryModuleVersionsResponse, Plan, QueryCurrentPlanRequest, QueryAppliedPlanResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryModuleVersionsRequest, SoftwareUpgradeProposal, MsgSoftwareUpgradeResponse, QueryAuthorityRequest, QueryAuthorityResponse, CancelSoftwareUpgradeProposal, ModuleVersion }; -type sendQueryCurrentPlanResponseParams = { - value: QueryCurrentPlanResponse, +type sendMsgCancelUpgradeParams = { + value: MsgCancelUpgrade, fee?: StdFee, memo?: string }; -type sendQueryAppliedPlanResponseParams = { - value: QueryAppliedPlanResponse, +type sendMsgCancelUpgradeResponseParams = { + value: MsgCancelUpgradeResponse, fee?: StdFee, memo?: string }; -type sendQueryModuleVersionsRequestParams = { - value: QueryModuleVersionsRequest, +type sendQueryCurrentPlanResponseParams = { + value: QueryCurrentPlanResponse, + fee?: StdFee, + memo?: string +}; + +type sendQueryAppliedPlanRequestParams = { + value: QueryAppliedPlanRequest, fee?: StdFee, memo?: string }; @@ -52,14 +58,14 @@ type sendMsgSoftwareUpgradeParams = { memo?: string }; -type sendMsgSoftwareUpgradeResponseParams = { - value: MsgSoftwareUpgradeResponse, +type sendQueryModuleVersionsResponseParams = { + value: QueryModuleVersionsResponse, fee?: StdFee, memo?: string }; -type sendCancelSoftwareUpgradeProposalParams = { - value: CancelSoftwareUpgradeProposal, +type sendPlanParams = { + value: Plan, fee?: StdFee, memo?: string }; @@ -70,145 +76,139 @@ type sendQueryCurrentPlanRequestParams = { memo?: string }; -type sendQueryUpgradedConsensusStateRequestParams = { - value: QueryUpgradedConsensusStateRequest, +type sendQueryAppliedPlanResponseParams = { + value: QueryAppliedPlanResponse, fee?: StdFee, memo?: string }; -type sendPlanParams = { - value: Plan, +type sendQueryUpgradedConsensusStateRequestParams = { + value: QueryUpgradedConsensusStateRequest, fee?: StdFee, memo?: string }; -type sendQueryAppliedPlanRequestParams = { - value: QueryAppliedPlanRequest, +type sendQueryUpgradedConsensusStateResponseParams = { + value: QueryUpgradedConsensusStateResponse, fee?: StdFee, memo?: string }; -type sendQueryAuthorityRequestParams = { - value: QueryAuthorityRequest, +type sendQueryModuleVersionsRequestParams = { + value: QueryModuleVersionsRequest, fee?: StdFee, memo?: string }; -type sendModuleVersionParams = { - value: ModuleVersion, +type sendSoftwareUpgradeProposalParams = { + value: SoftwareUpgradeProposal, fee?: StdFee, memo?: string }; -type sendMsgCancelUpgradeParams = { - value: MsgCancelUpgrade, +type sendMsgSoftwareUpgradeResponseParams = { + value: MsgSoftwareUpgradeResponse, fee?: StdFee, memo?: string }; -type sendMsgCancelUpgradeResponseParams = { - value: MsgCancelUpgradeResponse, +type sendQueryAuthorityRequestParams = { + value: QueryAuthorityRequest, fee?: StdFee, memo?: string }; -type sendSoftwareUpgradeProposalParams = { - value: SoftwareUpgradeProposal, +type sendQueryAuthorityResponseParams = { + value: QueryAuthorityResponse, fee?: StdFee, memo?: string }; -type sendQueryUpgradedConsensusStateResponseParams = { - value: QueryUpgradedConsensusStateResponse, +type sendCancelSoftwareUpgradeProposalParams = { + value: CancelSoftwareUpgradeProposal, fee?: StdFee, memo?: string }; -type sendQueryModuleVersionsResponseParams = { - value: QueryModuleVersionsResponse, +type sendModuleVersionParams = { + value: ModuleVersion, fee?: StdFee, memo?: string }; -type sendQueryAuthorityResponseParams = { - value: QueryAuthorityResponse, - fee?: StdFee, - memo?: string + +type msgCancelUpgradeParams = { + value: MsgCancelUpgrade, }; +type msgCancelUpgradeResponseParams = { + value: MsgCancelUpgradeResponse, +}; type queryCurrentPlanResponseParams = { value: QueryCurrentPlanResponse, }; -type queryAppliedPlanResponseParams = { - value: QueryAppliedPlanResponse, -}; - -type queryModuleVersionsRequestParams = { - value: QueryModuleVersionsRequest, +type queryAppliedPlanRequestParams = { + value: QueryAppliedPlanRequest, }; type msgSoftwareUpgradeParams = { value: MsgSoftwareUpgrade, }; -type msgSoftwareUpgradeResponseParams = { - value: MsgSoftwareUpgradeResponse, -}; - -type cancelSoftwareUpgradeProposalParams = { - value: CancelSoftwareUpgradeProposal, -}; - -type queryCurrentPlanRequestParams = { - value: QueryCurrentPlanRequest, -}; - -type queryUpgradedConsensusStateRequestParams = { - value: QueryUpgradedConsensusStateRequest, +type queryModuleVersionsResponseParams = { + value: QueryModuleVersionsResponse, }; type planParams = { value: Plan, }; -type queryAppliedPlanRequestParams = { - value: QueryAppliedPlanRequest, +type queryCurrentPlanRequestParams = { + value: QueryCurrentPlanRequest, }; -type queryAuthorityRequestParams = { - value: QueryAuthorityRequest, +type queryAppliedPlanResponseParams = { + value: QueryAppliedPlanResponse, }; -type moduleVersionParams = { - value: ModuleVersion, +type queryUpgradedConsensusStateRequestParams = { + value: QueryUpgradedConsensusStateRequest, }; -type msgCancelUpgradeParams = { - value: MsgCancelUpgrade, +type queryUpgradedConsensusStateResponseParams = { + value: QueryUpgradedConsensusStateResponse, }; -type msgCancelUpgradeResponseParams = { - value: MsgCancelUpgradeResponse, +type queryModuleVersionsRequestParams = { + value: QueryModuleVersionsRequest, }; type softwareUpgradeProposalParams = { value: SoftwareUpgradeProposal, }; -type queryUpgradedConsensusStateResponseParams = { - value: QueryUpgradedConsensusStateResponse, +type msgSoftwareUpgradeResponseParams = { + value: MsgSoftwareUpgradeResponse, }; -type queryModuleVersionsResponseParams = { - value: QueryModuleVersionsResponse, +type queryAuthorityRequestParams = { + value: QueryAuthorityRequest, }; type queryAuthorityResponseParams = { value: QueryAuthorityResponse, }; +type cancelSoftwareUpgradeProposalParams = { + value: CancelSoftwareUpgradeProposal, +}; + +type moduleVersionParams = { + value: ModuleVersion, +}; + export const registry = new Registry(msgTypes); @@ -239,45 +239,59 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendQueryCurrentPlanResponse({ value, fee, memo }: sendQueryCurrentPlanResponseParams): Promise { + async sendMsgCancelUpgrade({ value, fee, memo }: sendMsgCancelUpgradeParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryCurrentPlanResponse: 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.queryCurrentPlanResponse({ value: QueryCurrentPlanResponse.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:sendQueryCurrentPlanResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCancelUpgrade: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAppliedPlanResponse({ value, fee, memo }: sendQueryAppliedPlanResponseParams): Promise { + async sendMsgCancelUpgradeResponse({ value, fee, memo }: sendMsgCancelUpgradeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAppliedPlanResponse: 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.queryAppliedPlanResponse({ value: QueryAppliedPlanResponse.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:sendQueryAppliedPlanResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCancelUpgradeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryModuleVersionsRequest({ value, fee, memo }: sendQueryModuleVersionsRequestParams): Promise { + async sendQueryCurrentPlanResponse({ value, fee, memo }: sendQueryCurrentPlanResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryModuleVersionsRequest: 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.queryModuleVersionsRequest({ value: QueryModuleVersionsRequest.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:sendQueryModuleVersionsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryCurrentPlanResponse: Could not broadcast Tx: '+ e.message) + } + }, + + async sendQueryAppliedPlanRequest({ value, fee, memo }: sendQueryAppliedPlanRequestParams): Promise { + if (!signer) { + throw new Error('TxClient:sendQueryAppliedPlanRequest: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.queryAppliedPlanRequest({ value: QueryAppliedPlanRequest.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendQueryAppliedPlanRequest: Could not broadcast Tx: '+ e.message) } }, @@ -295,31 +309,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgSoftwareUpgradeResponse({ value, fee, memo }: sendMsgSoftwareUpgradeResponseParams): Promise { + async sendQueryModuleVersionsResponse({ value, fee, memo }: sendQueryModuleVersionsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSoftwareUpgradeResponse: 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.msgSoftwareUpgradeResponse({ value: MsgSoftwareUpgradeResponse.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:sendMsgSoftwareUpgradeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryModuleVersionsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendCancelSoftwareUpgradeProposal({ value, fee, memo }: sendCancelSoftwareUpgradeProposalParams): Promise { + async sendPlan({ value, fee, memo }: sendPlanParams): Promise { if (!signer) { - throw new Error('TxClient:sendCancelSoftwareUpgradeProposal: 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.cancelSoftwareUpgradeProposal({ value: CancelSoftwareUpgradeProposal.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:sendCancelSoftwareUpgradeProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPlan: Could not broadcast Tx: '+ e.message) } }, @@ -337,182 +351,176 @@ 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 sendPlan({ value, fee, memo }: sendPlanParams): Promise { + async sendQueryUpgradedConsensusStateRequest({ value, fee, memo }: sendQueryUpgradedConsensusStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendPlan: 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.plan({ value: Plan.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:sendPlan: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAppliedPlanRequest({ value, fee, memo }: sendQueryAppliedPlanRequestParams): Promise { + async sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: sendQueryUpgradedConsensusStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAppliedPlanRequest: 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.queryAppliedPlanRequest({ value: QueryAppliedPlanRequest.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:sendQueryAppliedPlanRequest: 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 sendQueryModuleVersionsRequest({ value, fee, memo }: sendQueryModuleVersionsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryAuthorityRequest: 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.queryAuthorityRequest({ value: QueryAuthorityRequest.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:sendQueryAuthorityRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryModuleVersionsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendModuleVersion({ value, fee, memo }: sendModuleVersionParams): Promise { + async sendSoftwareUpgradeProposal({ value, fee, memo }: sendSoftwareUpgradeProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendModuleVersion: 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.moduleVersion({ value: ModuleVersion.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:sendModuleVersion: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSoftwareUpgradeProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCancelUpgrade({ value, fee, memo }: sendMsgCancelUpgradeParams): Promise { + async sendMsgSoftwareUpgradeResponse({ value, fee, memo }: sendMsgSoftwareUpgradeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCancelUpgrade: 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.msgCancelUpgrade({ value: MsgCancelUpgrade.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:sendMsgCancelUpgrade: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSoftwareUpgradeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCancelUpgradeResponse({ value, fee, memo }: sendMsgCancelUpgradeResponseParams): Promise { + async sendQueryAuthorityRequest({ value, fee, memo }: sendQueryAuthorityRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCancelUpgradeResponse: 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.msgCancelUpgradeResponse({ value: MsgCancelUpgradeResponse.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:sendMsgCancelUpgradeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAuthorityRequest: Could not broadcast Tx: '+ e.message) } }, - async sendSoftwareUpgradeProposal({ value, fee, memo }: sendSoftwareUpgradeProposalParams): Promise { + async sendQueryAuthorityResponse({ value, fee, memo }: sendQueryAuthorityResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendSoftwareUpgradeProposal: 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.softwareUpgradeProposal({ value: SoftwareUpgradeProposal.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:sendSoftwareUpgradeProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAuthorityResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: sendQueryUpgradedConsensusStateResponseParams): Promise { + async sendCancelSoftwareUpgradeProposal({ value, fee, memo }: sendCancelSoftwareUpgradeProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: Unable to sign Tx. Signer is not present.') + 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.queryUpgradedConsensusStateResponse({ value: QueryUpgradedConsensusStateResponse.fromPartial(value) }) + 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:sendQueryUpgradedConsensusStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCancelSoftwareUpgradeProposal: Could not broadcast Tx: '+ e.message) } }, - async sendQueryModuleVersionsResponse({ value, fee, memo }: sendQueryModuleVersionsResponseParams): Promise { + async sendModuleVersion({ value, fee, memo }: sendModuleVersionParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryModuleVersionsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendModuleVersion: Unable to 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.moduleVersion({ value: ModuleVersion.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:sendModuleVersion: Could not broadcast Tx: '+ e.message) } }, - async sendQueryAuthorityResponse({ value, fee, memo }: sendQueryAuthorityResponseParams): Promise { - if (!signer) { - 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.queryAuthorityResponse({ value: QueryAuthorityResponse.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + + msgCancelUpgrade({ value }: msgCancelUpgradeParams): EncodeObject { + try { + return { typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", value: MsgCancelUpgrade.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:sendQueryAuthorityResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:MsgCancelUpgrade: Could not create message: ' + e.message) } }, - - queryCurrentPlanResponse({ value }: queryCurrentPlanResponseParams): EncodeObject { + msgCancelUpgradeResponse({ value }: msgCancelUpgradeResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", value: QueryCurrentPlanResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", value: MsgCancelUpgradeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryCurrentPlanResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCancelUpgradeResponse: Could not create message: ' + e.message) } }, - queryAppliedPlanResponse({ value }: queryAppliedPlanResponseParams): EncodeObject { + queryCurrentPlanResponse({ value }: queryCurrentPlanResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", value: QueryAppliedPlanResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", value: QueryCurrentPlanResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAppliedPlanResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryCurrentPlanResponse: Could not create message: ' + e.message) } }, - queryModuleVersionsRequest({ value }: queryModuleVersionsRequestParams): EncodeObject { + queryAppliedPlanRequest({ value }: queryAppliedPlanRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", value: QueryModuleVersionsRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", value: QueryAppliedPlanRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryModuleVersionsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAppliedPlanRequest: Could not create message: ' + e.message) } }, @@ -524,19 +532,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgSoftwareUpgradeResponse({ value }: msgSoftwareUpgradeResponseParams): EncodeObject { + queryModuleVersionsResponse({ value }: queryModuleVersionsResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", value: MsgSoftwareUpgradeResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", value: QueryModuleVersionsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSoftwareUpgradeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryModuleVersionsResponse: Could not create message: ' + e.message) } }, - cancelSoftwareUpgradeProposal({ value }: cancelSoftwareUpgradeProposalParams): EncodeObject { + plan({ value }: planParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", value: CancelSoftwareUpgradeProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.Plan", value: Plan.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:CancelSoftwareUpgradeProposal: Could not create message: ' + e.message) + throw new Error('TxClient:Plan: Could not create message: ' + e.message) } }, @@ -548,91 +556,83 @@ 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) - } - }, - - plan({ value }: planParams): EncodeObject { + queryAppliedPlanResponse({ value }: queryAppliedPlanResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.Plan", value: Plan.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", value: QueryAppliedPlanResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Plan: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAppliedPlanResponse: Could not create message: ' + e.message) } }, - queryAppliedPlanRequest({ value }: queryAppliedPlanRequestParams): EncodeObject { + queryUpgradedConsensusStateRequest({ value }: queryUpgradedConsensusStateRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", value: QueryAppliedPlanRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", value: QueryUpgradedConsensusStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAppliedPlanRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUpgradedConsensusStateRequest: Could not create message: ' + e.message) } }, - queryAuthorityRequest({ value }: queryAuthorityRequestParams): EncodeObject { + queryUpgradedConsensusStateResponse({ value }: queryUpgradedConsensusStateResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", value: QueryAuthorityRequest.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", value: QueryUpgradedConsensusStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAuthorityRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUpgradedConsensusStateResponse: Could not create message: ' + e.message) } }, - moduleVersion({ value }: moduleVersionParams): EncodeObject { + queryModuleVersionsRequest({ value }: queryModuleVersionsRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", value: ModuleVersion.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", value: QueryModuleVersionsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ModuleVersion: Could not create message: ' + e.message) + throw new Error('TxClient:QueryModuleVersionsRequest: Could not create message: ' + e.message) } }, - msgCancelUpgrade({ value }: msgCancelUpgradeParams): EncodeObject { + softwareUpgradeProposal({ value }: softwareUpgradeProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", value: MsgCancelUpgrade.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", value: SoftwareUpgradeProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCancelUpgrade: Could not create message: ' + e.message) + throw new Error('TxClient:SoftwareUpgradeProposal: 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) } }, - softwareUpgradeProposal({ value }: softwareUpgradeProposalParams): EncodeObject { + queryAuthorityRequest({ value }: queryAuthorityRequestParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", value: SoftwareUpgradeProposal.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", value: QueryAuthorityRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SoftwareUpgradeProposal: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAuthorityRequest: Could not create message: ' + e.message) } }, - queryUpgradedConsensusStateResponse({ value }: queryUpgradedConsensusStateResponseParams): EncodeObject { + queryAuthorityResponse({ value }: queryAuthorityResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", value: QueryUpgradedConsensusStateResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", value: QueryAuthorityResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUpgradedConsensusStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAuthorityResponse: Could not create message: ' + e.message) } }, - queryModuleVersionsResponse({ value }: queryModuleVersionsResponseParams): EncodeObject { + cancelSoftwareUpgradeProposal({ value }: cancelSoftwareUpgradeProposalParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", value: QueryModuleVersionsResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", value: CancelSoftwareUpgradeProposal.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryModuleVersionsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:CancelSoftwareUpgradeProposal: Could not create message: ' + e.message) } }, - queryAuthorityResponse({ value }: queryAuthorityResponseParams): EncodeObject { + moduleVersion({ value }: moduleVersionParams): EncodeObject { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", value: QueryAuthorityResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", value: ModuleVersion.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryAuthorityResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ModuleVersion: 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 67fe99f36..14c827976 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 { MsgCancelUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; +import { MsgCancelUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; import { QueryCurrentPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryAppliedPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryModuleVersionsRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryAppliedPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; -import { MsgSoftwareUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; -import { CancelSoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; +import { QueryModuleVersionsResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { Plan } from "./types/cosmos/upgrade/v1beta1/upgrade"; import { QueryCurrentPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryAppliedPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; import { QueryUpgradedConsensusStateRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { Plan } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { QueryAppliedPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryAuthorityRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { ModuleVersion } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { MsgCancelUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; -import { MsgCancelUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; -import { SoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; import { QueryUpgradedConsensusStateResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryModuleVersionsResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryModuleVersionsRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { SoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; +import { MsgSoftwareUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; +import { QueryAuthorityRequest } from "./types/cosmos/upgrade/v1beta1/query"; import { QueryAuthorityResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { CancelSoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; +import { ModuleVersion } from "./types/cosmos/upgrade/v1beta1/upgrade"; const msgTypes: Array<[string, GeneratedType]> = [ + ["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", MsgCancelUpgrade], + ["/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", MsgCancelUpgradeResponse], ["/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", QueryCurrentPlanResponse], - ["/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", QueryAppliedPlanResponse], - ["/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", QueryModuleVersionsRequest], + ["/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", QueryAppliedPlanRequest], ["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade], - ["/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", MsgSoftwareUpgradeResponse], - ["/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", CancelSoftwareUpgradeProposal], + ["/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", QueryModuleVersionsResponse], + ["/cosmos.upgrade.v1beta1.Plan", Plan], ["/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", QueryCurrentPlanRequest], + ["/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", QueryAppliedPlanResponse], ["/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", QueryUpgradedConsensusStateRequest], - ["/cosmos.upgrade.v1beta1.Plan", Plan], - ["/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", QueryAppliedPlanRequest], - ["/cosmos.upgrade.v1beta1.QueryAuthorityRequest", QueryAuthorityRequest], - ["/cosmos.upgrade.v1beta1.ModuleVersion", ModuleVersion], - ["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", MsgCancelUpgrade], - ["/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", MsgCancelUpgradeResponse], - ["/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", SoftwareUpgradeProposal], ["/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", QueryUpgradedConsensusStateResponse], - ["/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", QueryModuleVersionsResponse], + ["/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", QueryModuleVersionsRequest], + ["/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", SoftwareUpgradeProposal], + ["/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", MsgSoftwareUpgradeResponse], + ["/cosmos.upgrade.v1beta1.QueryAuthorityRequest", QueryAuthorityRequest], ["/cosmos.upgrade.v1beta1.QueryAuthorityResponse", QueryAuthorityResponse], + ["/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", CancelSoftwareUpgradeProposal], + ["/cosmos.upgrade.v1beta1.ModuleVersion", ModuleVersion], ]; diff --git a/ts-client/cosmos.vesting.v1beta1/module.ts b/ts-client/cosmos.vesting.v1beta1/module.ts index b286da328..d82633ed0 100755 --- a/ts-client/cosmos.vesting.v1beta1/module.ts +++ b/ts-client/cosmos.vesting.v1beta1/module.ts @@ -6,66 +6,60 @@ 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 { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreateVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreatePermanentLockedAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreatePeriodicVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; import { BaseVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; import { DelayedVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; import { PermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/vesting"; import { Period } from "./types/cosmos/vesting/v1beta1/vesting"; -import { MsgCreatePermanentLockedAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; -import { ContinuousVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; -import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; -import { MsgCreatePeriodicVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; -import { PeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -import { MsgCreateVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; -import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx"; -export { BaseVestingAccount, DelayedVestingAccount, PermanentLockedAccount, Period, MsgCreatePermanentLockedAccountResponse, ContinuousVestingAccount, MsgCreateVestingAccount, MsgCreatePeriodicVestingAccount, MsgCreatePeriodicVestingAccountResponse, PeriodicVestingAccount, MsgCreateVestingAccountResponse, MsgCreatePermanentLockedAccount }; +export { ContinuousVestingAccount, PeriodicVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount, MsgCreateVestingAccount, MsgCreateVestingAccountResponse, MsgCreatePermanentLockedAccountResponse, MsgCreatePeriodicVestingAccountResponse, BaseVestingAccount, DelayedVestingAccount, PermanentLockedAccount, Period }; -type sendBaseVestingAccountParams = { - value: BaseVestingAccount, - fee?: StdFee, - memo?: string -}; - -type sendDelayedVestingAccountParams = { - value: DelayedVestingAccount, +type sendContinuousVestingAccountParams = { + value: ContinuousVestingAccount, fee?: StdFee, memo?: string }; -type sendPermanentLockedAccountParams = { - value: PermanentLockedAccount, +type sendPeriodicVestingAccountParams = { + value: PeriodicVestingAccount, fee?: StdFee, memo?: string }; -type sendPeriodParams = { - value: Period, +type sendMsgCreatePermanentLockedAccountParams = { + value: MsgCreatePermanentLockedAccount, fee?: StdFee, memo?: string }; -type sendMsgCreatePermanentLockedAccountResponseParams = { - value: MsgCreatePermanentLockedAccountResponse, +type sendMsgCreatePeriodicVestingAccountParams = { + value: MsgCreatePeriodicVestingAccount, fee?: StdFee, memo?: string }; -type sendContinuousVestingAccountParams = { - value: ContinuousVestingAccount, +type sendMsgCreateVestingAccountParams = { + value: MsgCreateVestingAccount, fee?: StdFee, memo?: string }; -type sendMsgCreateVestingAccountParams = { - value: MsgCreateVestingAccount, +type sendMsgCreateVestingAccountResponseParams = { + value: MsgCreateVestingAccountResponse, fee?: StdFee, memo?: string }; -type sendMsgCreatePeriodicVestingAccountParams = { - value: MsgCreatePeriodicVestingAccount, +type sendMsgCreatePermanentLockedAccountResponseParams = { + value: MsgCreatePermanentLockedAccountResponse, fee?: StdFee, memo?: string }; @@ -76,71 +70,77 @@ type sendMsgCreatePeriodicVestingAccountResponseParams = { memo?: string }; -type sendPeriodicVestingAccountParams = { - value: PeriodicVestingAccount, +type sendBaseVestingAccountParams = { + value: BaseVestingAccount, fee?: StdFee, memo?: string }; -type sendMsgCreateVestingAccountResponseParams = { - value: MsgCreateVestingAccountResponse, +type sendDelayedVestingAccountParams = { + value: DelayedVestingAccount, fee?: StdFee, memo?: string }; -type sendMsgCreatePermanentLockedAccountParams = { - value: MsgCreatePermanentLockedAccount, +type sendPermanentLockedAccountParams = { + value: PermanentLockedAccount, fee?: StdFee, memo?: string }; - -type baseVestingAccountParams = { - value: BaseVestingAccount, +type sendPeriodParams = { + value: Period, + fee?: StdFee, + memo?: string }; -type delayedVestingAccountParams = { - value: DelayedVestingAccount, -}; -type permanentLockedAccountParams = { - value: PermanentLockedAccount, +type continuousVestingAccountParams = { + value: ContinuousVestingAccount, }; -type periodParams = { - value: Period, +type periodicVestingAccountParams = { + value: PeriodicVestingAccount, }; -type msgCreatePermanentLockedAccountResponseParams = { - value: MsgCreatePermanentLockedAccountResponse, +type msgCreatePermanentLockedAccountParams = { + value: MsgCreatePermanentLockedAccount, }; -type continuousVestingAccountParams = { - value: ContinuousVestingAccount, +type msgCreatePeriodicVestingAccountParams = { + value: MsgCreatePeriodicVestingAccount, }; type msgCreateVestingAccountParams = { value: MsgCreateVestingAccount, }; -type msgCreatePeriodicVestingAccountParams = { - value: MsgCreatePeriodicVestingAccount, +type msgCreateVestingAccountResponseParams = { + value: MsgCreateVestingAccountResponse, +}; + +type msgCreatePermanentLockedAccountResponseParams = { + value: MsgCreatePermanentLockedAccountResponse, }; type msgCreatePeriodicVestingAccountResponseParams = { value: MsgCreatePeriodicVestingAccountResponse, }; -type periodicVestingAccountParams = { - value: PeriodicVestingAccount, +type baseVestingAccountParams = { + value: BaseVestingAccount, }; -type msgCreateVestingAccountResponseParams = { - value: MsgCreateVestingAccountResponse, +type delayedVestingAccountParams = { + value: DelayedVestingAccount, }; -type msgCreatePermanentLockedAccountParams = { - value: MsgCreatePermanentLockedAccount, +type permanentLockedAccountParams = { + value: PermanentLockedAccount, +}; + +type periodParams = { + value: Period, }; @@ -173,268 +173,268 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendBaseVestingAccount({ value, fee, memo }: sendBaseVestingAccountParams): Promise { + async sendContinuousVestingAccount({ value, fee, memo }: sendContinuousVestingAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendBaseVestingAccount: 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.baseVestingAccount({ value: BaseVestingAccount.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:sendBaseVestingAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendContinuousVestingAccount: Could not broadcast Tx: '+ e.message) } }, - async sendDelayedVestingAccount({ value, fee, memo }: sendDelayedVestingAccountParams): Promise { + async sendPeriodicVestingAccount({ value, fee, memo }: sendPeriodicVestingAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendDelayedVestingAccount: 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.delayedVestingAccount({ value: DelayedVestingAccount.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:sendDelayedVestingAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPeriodicVestingAccount: Could not broadcast Tx: '+ e.message) } }, - async sendPermanentLockedAccount({ value, fee, memo }: sendPermanentLockedAccountParams): Promise { + async sendMsgCreatePermanentLockedAccount({ value, fee, memo }: sendMsgCreatePermanentLockedAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendPermanentLockedAccount: 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.permanentLockedAccount({ value: PermanentLockedAccount.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:sendPermanentLockedAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Could not broadcast Tx: '+ e.message) } }, - async sendPeriod({ value, fee, memo }: sendPeriodParams): Promise { + async sendMsgCreatePeriodicVestingAccount({ value, fee, memo }: sendMsgCreatePeriodicVestingAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendPeriod: 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.period({ value: Period.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:sendPeriod: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreatePeriodicVestingAccount: 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 sendContinuousVestingAccount({ value, fee, memo }: sendContinuousVestingAccountParams): Promise { + async sendMsgCreateVestingAccountResponse({ value, fee, memo }: sendMsgCreateVestingAccountResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendContinuousVestingAccount: 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.continuousVestingAccount({ value: ContinuousVestingAccount.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:sendContinuousVestingAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateVestingAccountResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateVestingAccount({ value, fee, memo }: sendMsgCreateVestingAccountParams): Promise { + async sendMsgCreatePermanentLockedAccountResponse({ value, fee, memo }: sendMsgCreatePermanentLockedAccountResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateVestingAccount: 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.msgCreateVestingAccount({ value: MsgCreateVestingAccount.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:sendMsgCreateVestingAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreatePermanentLockedAccountResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreatePeriodicVestingAccount({ value, fee, memo }: sendMsgCreatePeriodicVestingAccountParams): Promise { + async sendMsgCreatePeriodicVestingAccountResponse({ value, fee, memo }: sendMsgCreatePeriodicVestingAccountResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreatePeriodicVestingAccount: 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.msgCreatePeriodicVestingAccount({ value: MsgCreatePeriodicVestingAccount.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:sendMsgCreatePeriodicVestingAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreatePeriodicVestingAccountResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreatePeriodicVestingAccountResponse({ value, fee, memo }: sendMsgCreatePeriodicVestingAccountResponseParams): Promise { + async sendBaseVestingAccount({ value, fee, memo }: sendBaseVestingAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreatePeriodicVestingAccountResponse: 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.msgCreatePeriodicVestingAccountResponse({ value: MsgCreatePeriodicVestingAccountResponse.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:sendMsgCreatePeriodicVestingAccountResponse: 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 sendDelayedVestingAccount({ value, fee, memo }: sendDelayedVestingAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendPeriodicVestingAccount: 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.periodicVestingAccount({ value: PeriodicVestingAccount.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:sendPeriodicVestingAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendDelayedVestingAccount: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateVestingAccountResponse({ value, fee, memo }: sendMsgCreateVestingAccountResponseParams): Promise { + async sendPermanentLockedAccount({ value, fee, memo }: sendPermanentLockedAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateVestingAccountResponse: 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.msgCreateVestingAccountResponse({ value: MsgCreateVestingAccountResponse.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:sendMsgCreateVestingAccountResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPermanentLockedAccount: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreatePermanentLockedAccount({ value, fee, memo }: sendMsgCreatePermanentLockedAccountParams): Promise { + async sendPeriod({ value, fee, memo }: sendPeriodParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: 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.msgCreatePermanentLockedAccount({ value: MsgCreatePermanentLockedAccount.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:sendMsgCreatePermanentLockedAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPeriod: Could not broadcast Tx: '+ e.message) } }, - baseVestingAccount({ value }: baseVestingAccountParams): EncodeObject { + continuousVestingAccount({ value }: continuousVestingAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", value: BaseVestingAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", value: ContinuousVestingAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:BaseVestingAccount: Could not create message: ' + e.message) + throw new Error('TxClient:ContinuousVestingAccount: Could not create message: ' + e.message) } }, - delayedVestingAccount({ value }: delayedVestingAccountParams): EncodeObject { + periodicVestingAccount({ value }: periodicVestingAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", value: DelayedVestingAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", value: PeriodicVestingAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DelayedVestingAccount: Could not create message: ' + e.message) + throw new Error('TxClient:PeriodicVestingAccount: Could not create message: ' + e.message) } }, - permanentLockedAccount({ value }: permanentLockedAccountParams): EncodeObject { + msgCreatePermanentLockedAccount({ value }: msgCreatePermanentLockedAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", value: PermanentLockedAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", value: MsgCreatePermanentLockedAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PermanentLockedAccount: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreatePermanentLockedAccount: Could not create message: ' + e.message) } }, - period({ value }: periodParams): EncodeObject { + msgCreatePeriodicVestingAccount({ value }: msgCreatePeriodicVestingAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.Period", value: Period.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", value: MsgCreatePeriodicVestingAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Period: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreatePeriodicVestingAccount: 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) } }, - continuousVestingAccount({ value }: continuousVestingAccountParams): EncodeObject { + msgCreateVestingAccountResponse({ value }: msgCreateVestingAccountResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", value: ContinuousVestingAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", value: MsgCreateVestingAccountResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ContinuousVestingAccount: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateVestingAccountResponse: Could not create message: ' + e.message) } }, - msgCreateVestingAccount({ value }: msgCreateVestingAccountParams): EncodeObject { + msgCreatePermanentLockedAccountResponse({ value }: msgCreatePermanentLockedAccountResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", value: MsgCreateVestingAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", value: MsgCreatePermanentLockedAccountResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateVestingAccount: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreatePermanentLockedAccountResponse: Could not create message: ' + e.message) } }, - msgCreatePeriodicVestingAccount({ value }: msgCreatePeriodicVestingAccountParams): EncodeObject { + msgCreatePeriodicVestingAccountResponse({ value }: msgCreatePeriodicVestingAccountResponseParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", value: MsgCreatePeriodicVestingAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", value: MsgCreatePeriodicVestingAccountResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreatePeriodicVestingAccount: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreatePeriodicVestingAccountResponse: Could not create message: ' + e.message) } }, - msgCreatePeriodicVestingAccountResponse({ value }: msgCreatePeriodicVestingAccountResponseParams): EncodeObject { + baseVestingAccount({ value }: baseVestingAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", value: MsgCreatePeriodicVestingAccountResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", value: BaseVestingAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreatePeriodicVestingAccountResponse: Could not create message: ' + e.message) + throw new Error('TxClient:BaseVestingAccount: Could not create message: ' + e.message) } }, - periodicVestingAccount({ value }: periodicVestingAccountParams): EncodeObject { + delayedVestingAccount({ value }: delayedVestingAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", value: PeriodicVestingAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", value: DelayedVestingAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PeriodicVestingAccount: Could not create message: ' + e.message) + throw new Error('TxClient:DelayedVestingAccount: Could not create message: ' + e.message) } }, - msgCreateVestingAccountResponse({ value }: msgCreateVestingAccountResponseParams): EncodeObject { + permanentLockedAccount({ value }: permanentLockedAccountParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", value: MsgCreateVestingAccountResponse.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", value: PermanentLockedAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateVestingAccountResponse: Could not create message: ' + e.message) + throw new Error('TxClient:PermanentLockedAccount: Could not create message: ' + e.message) } }, - msgCreatePermanentLockedAccount({ value }: msgCreatePermanentLockedAccountParams): EncodeObject { + period({ value }: periodParams): EncodeObject { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", value: MsgCreatePermanentLockedAccount.fromPartial( value ) } + return { typeUrl: "/cosmos.vesting.v1beta1.Period", value: Period.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreatePermanentLockedAccount: Could not create message: ' + e.message) + throw new Error('TxClient:Period: 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 32c4f330f..3396e57f4 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 { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreateVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreatePermanentLockedAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreatePeriodicVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; import { BaseVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; import { DelayedVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; import { PermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/vesting"; import { Period } from "./types/cosmos/vesting/v1beta1/vesting"; -import { MsgCreatePermanentLockedAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; -import { ContinuousVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; -import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; -import { MsgCreatePeriodicVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; -import { PeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -import { MsgCreateVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; -import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ + ["/cosmos.vesting.v1beta1.ContinuousVestingAccount", ContinuousVestingAccount], + ["/cosmos.vesting.v1beta1.PeriodicVestingAccount", PeriodicVestingAccount], + ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount], + ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount], + ["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount], + ["/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", MsgCreateVestingAccountResponse], + ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", MsgCreatePermanentLockedAccountResponse], + ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", MsgCreatePeriodicVestingAccountResponse], ["/cosmos.vesting.v1beta1.BaseVestingAccount", BaseVestingAccount], ["/cosmos.vesting.v1beta1.DelayedVestingAccount", DelayedVestingAccount], ["/cosmos.vesting.v1beta1.PermanentLockedAccount", PermanentLockedAccount], ["/cosmos.vesting.v1beta1.Period", Period], - ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", MsgCreatePermanentLockedAccountResponse], - ["/cosmos.vesting.v1beta1.ContinuousVestingAccount", ContinuousVestingAccount], - ["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount], - ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount], - ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", MsgCreatePeriodicVestingAccountResponse], - ["/cosmos.vesting.v1beta1.PeriodicVestingAccount", PeriodicVestingAccount], - ["/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", MsgCreateVestingAccountResponse], - ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount], ]; diff --git a/ts-client/ibc.applications.fee.v1/module.ts b/ts-client/ibc.applications.fee.v1/module.ts index 8a4011d80..794976b34 100755 --- a/ts-client/ibc.applications.fee.v1/module.ts +++ b/ts-client/ibc.applications.fee.v1/module.ts @@ -6,99 +6,105 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgRegisterPayee } from "./types/ibc/applications/fee/v1/tx"; -import { MsgRegisterPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { QueryIncentivizedPacketsForChannelRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryPayeeRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/query"; +import { MsgPayPacketFeeAsyncResponse } from "./types/ibc/applications/fee/v1/tx"; +import { GenesisState } from "./types/ibc/applications/fee/v1/genesis"; import { PacketFee } from "./types/ibc/applications/fee/v1/fee"; -import { QueryTotalRecvFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketsResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketsForChannelResponse } 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 { GenesisState } from "./types/ibc/applications/fee/v1/genesis"; -import { MsgPayPacketFee } from "./types/ibc/applications/fee/v1/tx"; -import { MsgPayPacketFeeAsyncResponse } from "./types/ibc/applications/fee/v1/tx"; +import { QueryTotalTimeoutFeesResponse } from "./types/ibc/applications/fee/v1/query"; import { RegisteredPayee } 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 { IncentivizedAcknowledgement } from "./types/ibc/applications/fee/v1/ack"; import { Metadata } from "./types/ibc/applications/fee/v1/metadata"; +import { MsgRegisterPayee } from "./types/ibc/applications/fee/v1/tx"; +import { Fee } from "./types/ibc/applications/fee/v1/fee"; +import { QueryTotalRecvFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { FeeEnabledChannel } from "./types/ibc/applications/fee/v1/genesis"; +import { RegisteredCounterpartyPayee } from "./types/ibc/applications/fee/v1/genesis"; +import { MsgRegisterCounterpartyPayee } from "./types/ibc/applications/fee/v1/tx"; +import { PacketFees } from "./types/ibc/applications/fee/v1/fee"; +import { QueryTotalRecvFeesResponse } from "./types/ibc/applications/fee/v1/query"; import { QueryTotalAckFeesResponse } from "./types/ibc/applications/fee/v1/query"; import { QueryTotalTimeoutFeesRequest } 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 { QueryFeeEnabledChannelRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryIncentivizedPacketResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryPayeeResponse } from "./types/ibc/applications/fee/v1/query"; -import { RegisteredCounterpartyPayee } from "./types/ibc/applications/fee/v1/genesis"; -import { MsgRegisterCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { QueryFeeEnabledChannelsResponse } from "./types/ibc/applications/fee/v1/query"; import { ForwardRelayerAddress } from "./types/ibc/applications/fee/v1/genesis"; -import { PacketFees } from "./types/ibc/applications/fee/v1/fee"; +import { MsgRegisterPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { MsgPayPacketFeeResponse } from "./types/ibc/applications/fee/v1/tx"; import { QueryIncentivizedPacketsRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryIncentivizedPacketsResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryPayeeResponse } from "./types/ibc/applications/fee/v1/query"; +import { MsgPayPacketFee } from "./types/ibc/applications/fee/v1/tx"; import { QueryIncentivizedPacketRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryCounterpartyPayeeRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelsRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelRequest } from "./types/ibc/applications/fee/v1/query"; import { QueryFeeEnabledChannelResponse } from "./types/ibc/applications/fee/v1/query"; -import { FeeEnabledChannel } from "./types/ibc/applications/fee/v1/genesis"; -import { MsgPayPacketFeeResponse } from "./types/ibc/applications/fee/v1/tx"; -import { MsgPayPacketFeeAsync } from "./types/ibc/applications/fee/v1/tx"; -import { Fee } from "./types/ibc/applications/fee/v1/fee"; -import { QueryIncentivizedPacketsForChannelRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryIncentivizedPacketsForChannelResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalTimeoutFeesResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/query"; -import { IncentivizedAcknowledgement } from "./types/ibc/applications/fee/v1/ack"; import { IdentifiedPacketFees } from "./types/ibc/applications/fee/v1/fee"; -import { QueryTotalRecvFeesResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryCounterpartyPayeeRequest } from "./types/ibc/applications/fee/v1/query"; -import { MsgRegisterCounterpartyPayee } from "./types/ibc/applications/fee/v1/tx"; -export { MsgRegisterPayee, MsgRegisterPayeeResponse, PacketFee, QueryTotalRecvFeesRequest, QueryTotalAckFeesRequest, QueryFeeEnabledChannelsResponse, GenesisState, MsgPayPacketFee, MsgPayPacketFeeAsyncResponse, RegisteredPayee, Metadata, QueryTotalAckFeesResponse, QueryTotalTimeoutFeesRequest, QueryPayeeRequest, QueryFeeEnabledChannelsRequest, QueryFeeEnabledChannelRequest, QueryIncentivizedPacketResponse, QueryPayeeResponse, RegisteredCounterpartyPayee, MsgRegisterCounterpartyPayeeResponse, ForwardRelayerAddress, PacketFees, QueryIncentivizedPacketsRequest, QueryIncentivizedPacketsResponse, QueryIncentivizedPacketRequest, QueryFeeEnabledChannelResponse, FeeEnabledChannel, MsgPayPacketFeeResponse, MsgPayPacketFeeAsync, Fee, QueryIncentivizedPacketsForChannelRequest, QueryIncentivizedPacketsForChannelResponse, QueryTotalTimeoutFeesResponse, QueryCounterpartyPayeeResponse, IncentivizedAcknowledgement, IdentifiedPacketFees, QueryTotalRecvFeesResponse, QueryCounterpartyPayeeRequest, MsgRegisterCounterpartyPayee }; +export { QueryIncentivizedPacketsForChannelRequest, QueryPayeeRequest, QueryCounterpartyPayeeResponse, MsgPayPacketFeeAsyncResponse, GenesisState, PacketFee, QueryIncentivizedPacketsResponse, QueryIncentivizedPacketsForChannelResponse, QueryTotalAckFeesRequest, QueryTotalTimeoutFeesResponse, RegisteredPayee, MsgPayPacketFeeAsync, MsgRegisterCounterpartyPayeeResponse, IncentivizedAcknowledgement, Metadata, MsgRegisterPayee, Fee, QueryTotalRecvFeesRequest, FeeEnabledChannel, RegisteredCounterpartyPayee, MsgRegisterCounterpartyPayee, PacketFees, QueryTotalRecvFeesResponse, QueryTotalAckFeesResponse, QueryTotalTimeoutFeesRequest, QueryFeeEnabledChannelsResponse, ForwardRelayerAddress, MsgRegisterPayeeResponse, MsgPayPacketFeeResponse, QueryIncentivizedPacketsRequest, QueryPayeeResponse, MsgPayPacketFee, QueryIncentivizedPacketRequest, QueryIncentivizedPacketResponse, QueryCounterpartyPayeeRequest, QueryFeeEnabledChannelsRequest, QueryFeeEnabledChannelRequest, QueryFeeEnabledChannelResponse, IdentifiedPacketFees }; -type sendMsgRegisterPayeeParams = { - value: MsgRegisterPayee, +type sendQueryIncentivizedPacketsForChannelRequestParams = { + value: QueryIncentivizedPacketsForChannelRequest, fee?: StdFee, memo?: string }; -type sendMsgRegisterPayeeResponseParams = { - value: MsgRegisterPayeeResponse, +type sendQueryPayeeRequestParams = { + value: QueryPayeeRequest, fee?: StdFee, memo?: string }; -type sendPacketFeeParams = { - value: PacketFee, +type sendQueryCounterpartyPayeeResponseParams = { + value: QueryCounterpartyPayeeResponse, fee?: StdFee, memo?: string }; -type sendQueryTotalRecvFeesRequestParams = { - value: QueryTotalRecvFeesRequest, +type sendMsgPayPacketFeeAsyncResponseParams = { + value: MsgPayPacketFeeAsyncResponse, fee?: StdFee, memo?: string }; -type sendQueryTotalAckFeesRequestParams = { - value: QueryTotalAckFeesRequest, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendQueryFeeEnabledChannelsResponseParams = { - value: QueryFeeEnabledChannelsResponse, +type sendPacketFeeParams = { + value: PacketFee, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryIncentivizedPacketsResponseParams = { + value: QueryIncentivizedPacketsResponse, fee?: StdFee, memo?: string }; -type sendMsgPayPacketFeeParams = { - value: MsgPayPacketFee, +type sendQueryIncentivizedPacketsForChannelResponseParams = { + value: QueryIncentivizedPacketsForChannelResponse, fee?: StdFee, memo?: string }; -type sendMsgPayPacketFeeAsyncResponseParams = { - value: MsgPayPacketFeeAsyncResponse, +type sendQueryTotalAckFeesRequestParams = { + value: QueryTotalAckFeesRequest, + fee?: StdFee, + memo?: string +}; + +type sendQueryTotalTimeoutFeesResponseParams = { + value: QueryTotalTimeoutFeesResponse, fee?: StdFee, memo?: string }; @@ -109,50 +115,50 @@ type sendRegisteredPayeeParams = { memo?: string }; -type sendMetadataParams = { - value: Metadata, +type sendMsgPayPacketFeeAsyncParams = { + value: MsgPayPacketFeeAsync, fee?: StdFee, memo?: string }; -type sendQueryTotalAckFeesResponseParams = { - value: QueryTotalAckFeesResponse, +type sendMsgRegisterCounterpartyPayeeResponseParams = { + value: MsgRegisterCounterpartyPayeeResponse, fee?: StdFee, memo?: string }; -type sendQueryTotalTimeoutFeesRequestParams = { - value: QueryTotalTimeoutFeesRequest, +type sendIncentivizedAcknowledgementParams = { + value: IncentivizedAcknowledgement, fee?: StdFee, memo?: string }; -type sendQueryPayeeRequestParams = { - value: QueryPayeeRequest, +type sendMetadataParams = { + value: Metadata, fee?: StdFee, memo?: string }; -type sendQueryFeeEnabledChannelsRequestParams = { - value: QueryFeeEnabledChannelsRequest, +type sendMsgRegisterPayeeParams = { + value: MsgRegisterPayee, fee?: StdFee, memo?: string }; -type sendQueryFeeEnabledChannelRequestParams = { - value: QueryFeeEnabledChannelRequest, +type sendFeeParams = { + value: Fee, fee?: StdFee, memo?: string }; -type sendQueryIncentivizedPacketResponseParams = { - value: QueryIncentivizedPacketResponse, +type sendQueryTotalRecvFeesRequestParams = { + value: QueryTotalRecvFeesRequest, fee?: StdFee, memo?: string }; -type sendQueryPayeeResponseParams = { - value: QueryPayeeResponse, +type sendFeeEnabledChannelParams = { + value: FeeEnabledChannel, fee?: StdFee, memo?: string }; @@ -163,50 +169,50 @@ type sendRegisteredCounterpartyPayeeParams = { memo?: string }; -type sendMsgRegisterCounterpartyPayeeResponseParams = { - value: MsgRegisterCounterpartyPayeeResponse, +type sendMsgRegisterCounterpartyPayeeParams = { + value: MsgRegisterCounterpartyPayee, fee?: StdFee, memo?: string }; -type sendForwardRelayerAddressParams = { - value: ForwardRelayerAddress, +type sendPacketFeesParams = { + value: PacketFees, fee?: StdFee, memo?: string }; -type sendPacketFeesParams = { - value: PacketFees, +type sendQueryTotalRecvFeesResponseParams = { + value: QueryTotalRecvFeesResponse, fee?: StdFee, memo?: string }; -type sendQueryIncentivizedPacketsRequestParams = { - value: QueryIncentivizedPacketsRequest, +type sendQueryTotalAckFeesResponseParams = { + value: QueryTotalAckFeesResponse, fee?: StdFee, memo?: string }; -type sendQueryIncentivizedPacketsResponseParams = { - value: QueryIncentivizedPacketsResponse, +type sendQueryTotalTimeoutFeesRequestParams = { + value: QueryTotalTimeoutFeesRequest, fee?: StdFee, memo?: string }; -type sendQueryIncentivizedPacketRequestParams = { - value: QueryIncentivizedPacketRequest, +type sendQueryFeeEnabledChannelsResponseParams = { + value: QueryFeeEnabledChannelsResponse, fee?: StdFee, memo?: string }; -type sendQueryFeeEnabledChannelResponseParams = { - value: QueryFeeEnabledChannelResponse, +type sendForwardRelayerAddressParams = { + value: ForwardRelayerAddress, fee?: StdFee, memo?: string }; -type sendFeeEnabledChannelParams = { - value: FeeEnabledChannel, +type sendMsgRegisterPayeeResponseParams = { + value: MsgRegisterPayeeResponse, fee?: StdFee, memo?: string }; @@ -217,227 +223,221 @@ type sendMsgPayPacketFeeResponseParams = { memo?: string }; -type sendMsgPayPacketFeeAsyncParams = { - value: MsgPayPacketFeeAsync, +type sendQueryIncentivizedPacketsRequestParams = { + value: QueryIncentivizedPacketsRequest, fee?: StdFee, memo?: string }; -type sendFeeParams = { - value: Fee, +type sendQueryPayeeResponseParams = { + value: QueryPayeeResponse, fee?: StdFee, memo?: string }; -type sendQueryIncentivizedPacketsForChannelRequestParams = { - value: QueryIncentivizedPacketsForChannelRequest, +type sendMsgPayPacketFeeParams = { + value: MsgPayPacketFee, fee?: StdFee, memo?: string }; -type sendQueryIncentivizedPacketsForChannelResponseParams = { - value: QueryIncentivizedPacketsForChannelResponse, +type sendQueryIncentivizedPacketRequestParams = { + value: QueryIncentivizedPacketRequest, fee?: StdFee, memo?: string }; -type sendQueryTotalTimeoutFeesResponseParams = { - value: QueryTotalTimeoutFeesResponse, +type sendQueryIncentivizedPacketResponseParams = { + value: QueryIncentivizedPacketResponse, fee?: StdFee, memo?: string }; -type sendQueryCounterpartyPayeeResponseParams = { - value: QueryCounterpartyPayeeResponse, +type sendQueryCounterpartyPayeeRequestParams = { + value: QueryCounterpartyPayeeRequest, fee?: StdFee, memo?: string }; -type sendIncentivizedAcknowledgementParams = { - value: IncentivizedAcknowledgement, +type sendQueryFeeEnabledChannelsRequestParams = { + value: QueryFeeEnabledChannelsRequest, fee?: StdFee, memo?: string }; -type sendIdentifiedPacketFeesParams = { - value: IdentifiedPacketFees, +type sendQueryFeeEnabledChannelRequestParams = { + value: QueryFeeEnabledChannelRequest, fee?: StdFee, memo?: string }; -type sendQueryTotalRecvFeesResponseParams = { - value: QueryTotalRecvFeesResponse, +type sendQueryFeeEnabledChannelResponseParams = { + value: QueryFeeEnabledChannelResponse, fee?: StdFee, memo?: string }; -type sendQueryCounterpartyPayeeRequestParams = { - value: QueryCounterpartyPayeeRequest, +type sendIdentifiedPacketFeesParams = { + value: IdentifiedPacketFees, fee?: StdFee, memo?: string }; -type sendMsgRegisterCounterpartyPayeeParams = { - value: MsgRegisterCounterpartyPayee, - fee?: StdFee, - memo?: string -}; +type queryIncentivizedPacketsForChannelRequestParams = { + value: QueryIncentivizedPacketsForChannelRequest, +}; -type msgRegisterPayeeParams = { - value: MsgRegisterPayee, +type queryPayeeRequestParams = { + value: QueryPayeeRequest, }; -type msgRegisterPayeeResponseParams = { - value: MsgRegisterPayeeResponse, +type queryCounterpartyPayeeResponseParams = { + value: QueryCounterpartyPayeeResponse, }; -type packetFeeParams = { - value: PacketFee, +type msgPayPacketFeeAsyncResponseParams = { + value: MsgPayPacketFeeAsyncResponse, }; -type queryTotalRecvFeesRequestParams = { - value: QueryTotalRecvFeesRequest, +type genesisStateParams = { + value: GenesisState, }; -type queryTotalAckFeesRequestParams = { - value: QueryTotalAckFeesRequest, +type packetFeeParams = { + value: PacketFee, }; -type queryFeeEnabledChannelsResponseParams = { - value: QueryFeeEnabledChannelsResponse, +type queryIncentivizedPacketsResponseParams = { + value: QueryIncentivizedPacketsResponse, }; -type genesisStateParams = { - value: GenesisState, +type queryIncentivizedPacketsForChannelResponseParams = { + value: QueryIncentivizedPacketsForChannelResponse, }; -type msgPayPacketFeeParams = { - value: MsgPayPacketFee, +type queryTotalAckFeesRequestParams = { + value: QueryTotalAckFeesRequest, }; -type msgPayPacketFeeAsyncResponseParams = { - value: MsgPayPacketFeeAsyncResponse, +type queryTotalTimeoutFeesResponseParams = { + value: QueryTotalTimeoutFeesResponse, }; type registeredPayeeParams = { value: RegisteredPayee, }; -type metadataParams = { - value: Metadata, +type msgPayPacketFeeAsyncParams = { + value: MsgPayPacketFeeAsync, }; -type queryTotalAckFeesResponseParams = { - value: QueryTotalAckFeesResponse, +type msgRegisterCounterpartyPayeeResponseParams = { + value: MsgRegisterCounterpartyPayeeResponse, }; -type queryTotalTimeoutFeesRequestParams = { - value: QueryTotalTimeoutFeesRequest, +type incentivizedAcknowledgementParams = { + value: IncentivizedAcknowledgement, }; -type queryPayeeRequestParams = { - value: QueryPayeeRequest, +type metadataParams = { + value: Metadata, }; -type queryFeeEnabledChannelsRequestParams = { - value: QueryFeeEnabledChannelsRequest, +type msgRegisterPayeeParams = { + value: MsgRegisterPayee, }; -type queryFeeEnabledChannelRequestParams = { - value: QueryFeeEnabledChannelRequest, +type feeParams = { + value: Fee, }; -type queryIncentivizedPacketResponseParams = { - value: QueryIncentivizedPacketResponse, +type queryTotalRecvFeesRequestParams = { + value: QueryTotalRecvFeesRequest, }; -type queryPayeeResponseParams = { - value: QueryPayeeResponse, +type feeEnabledChannelParams = { + value: FeeEnabledChannel, }; type registeredCounterpartyPayeeParams = { value: RegisteredCounterpartyPayee, }; -type msgRegisterCounterpartyPayeeResponseParams = { - value: MsgRegisterCounterpartyPayeeResponse, -}; - -type forwardRelayerAddressParams = { - value: ForwardRelayerAddress, +type msgRegisterCounterpartyPayeeParams = { + value: MsgRegisterCounterpartyPayee, }; type packetFeesParams = { value: PacketFees, }; -type queryIncentivizedPacketsRequestParams = { - value: QueryIncentivizedPacketsRequest, +type queryTotalRecvFeesResponseParams = { + value: QueryTotalRecvFeesResponse, }; -type queryIncentivizedPacketsResponseParams = { - value: QueryIncentivizedPacketsResponse, +type queryTotalAckFeesResponseParams = { + value: QueryTotalAckFeesResponse, }; -type queryIncentivizedPacketRequestParams = { - value: QueryIncentivizedPacketRequest, +type queryTotalTimeoutFeesRequestParams = { + value: QueryTotalTimeoutFeesRequest, }; -type queryFeeEnabledChannelResponseParams = { - value: QueryFeeEnabledChannelResponse, +type queryFeeEnabledChannelsResponseParams = { + value: QueryFeeEnabledChannelsResponse, }; -type feeEnabledChannelParams = { - value: FeeEnabledChannel, +type forwardRelayerAddressParams = { + value: ForwardRelayerAddress, }; -type msgPayPacketFeeResponseParams = { - value: MsgPayPacketFeeResponse, +type msgRegisterPayeeResponseParams = { + value: MsgRegisterPayeeResponse, }; -type msgPayPacketFeeAsyncParams = { - value: MsgPayPacketFeeAsync, +type msgPayPacketFeeResponseParams = { + value: MsgPayPacketFeeResponse, }; -type feeParams = { - value: Fee, +type queryIncentivizedPacketsRequestParams = { + value: QueryIncentivizedPacketsRequest, }; -type queryIncentivizedPacketsForChannelRequestParams = { - value: QueryIncentivizedPacketsForChannelRequest, +type queryPayeeResponseParams = { + value: QueryPayeeResponse, }; -type queryIncentivizedPacketsForChannelResponseParams = { - value: QueryIncentivizedPacketsForChannelResponse, +type msgPayPacketFeeParams = { + value: MsgPayPacketFee, }; -type queryTotalTimeoutFeesResponseParams = { - value: QueryTotalTimeoutFeesResponse, +type queryIncentivizedPacketRequestParams = { + value: QueryIncentivizedPacketRequest, }; -type queryCounterpartyPayeeResponseParams = { - value: QueryCounterpartyPayeeResponse, +type queryIncentivizedPacketResponseParams = { + value: QueryIncentivizedPacketResponse, }; -type incentivizedAcknowledgementParams = { - value: IncentivizedAcknowledgement, +type queryCounterpartyPayeeRequestParams = { + value: QueryCounterpartyPayeeRequest, }; -type identifiedPacketFeesParams = { - value: IdentifiedPacketFees, +type queryFeeEnabledChannelsRequestParams = { + value: QueryFeeEnabledChannelsRequest, }; -type queryTotalRecvFeesResponseParams = { - value: QueryTotalRecvFeesResponse, +type queryFeeEnabledChannelRequestParams = { + value: QueryFeeEnabledChannelRequest, }; -type queryCounterpartyPayeeRequestParams = { - value: QueryCounterpartyPayeeRequest, +type queryFeeEnabledChannelResponseParams = { + value: QueryFeeEnabledChannelResponse, }; -type msgRegisterCounterpartyPayeeParams = { - value: MsgRegisterCounterpartyPayee, +type identifiedPacketFeesParams = { + value: IdentifiedPacketFees, }; @@ -470,129 +470,143 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgRegisterPayee({ value, fee, memo }: sendMsgRegisterPayeeParams): Promise { + async sendQueryIncentivizedPacketsForChannelRequest({ value, fee, memo }: sendQueryIncentivizedPacketsForChannelRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRegisterPayee: 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.msgRegisterPayee({ value: MsgRegisterPayee.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:sendMsgRegisterPayee: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelRequest: Could not broadcast Tx: '+ e.message) + } + }, + + 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 { + async sendQueryCounterpartyPayeeResponse({ value, fee, memo }: sendQueryCounterpartyPayeeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRegisterPayeeResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryCounterpartyPayeeResponse: Unable to 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.queryCounterpartyPayeeResponse({ value: QueryCounterpartyPayeeResponse.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:sendQueryCounterpartyPayeeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendPacketFee({ value, fee, memo }: sendPacketFeeParams): Promise { + async sendMsgPayPacketFeeAsyncResponse({ value, fee, memo }: sendMsgPayPacketFeeAsyncResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendPacketFee: 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.packetFee({ value: PacketFee.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:sendPacketFee: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgPayPacketFeeAsyncResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalRecvFeesRequest({ value, fee, memo }: sendQueryTotalRecvFeesRequestParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalRecvFeesRequest: 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.queryTotalRecvFeesRequest({ value: QueryTotalRecvFeesRequest.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:sendQueryTotalRecvFeesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalAckFeesRequest({ value, fee, memo }: sendQueryTotalAckFeesRequestParams): Promise { + async sendPacketFee({ value, fee, memo }: sendPacketFeeParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalAckFeesRequest: 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.queryTotalAckFeesRequest({ value: QueryTotalAckFeesRequest.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:sendQueryTotalAckFeesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPacketFee: Could not broadcast Tx: '+ e.message) } }, - async sendQueryFeeEnabledChannelsResponse({ value, fee, memo }: sendQueryFeeEnabledChannelsResponseParams): Promise { + async sendQueryIncentivizedPacketsResponse({ value, fee, memo }: sendQueryIncentivizedPacketsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryFeeEnabledChannelsResponse: 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.queryFeeEnabledChannelsResponse({ value: QueryFeeEnabledChannelsResponse.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:sendQueryFeeEnabledChannelsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryIncentivizedPacketsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryIncentivizedPacketsForChannelResponse({ value, fee, memo }: sendQueryIncentivizedPacketsForChannelResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.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:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgPayPacketFee({ value, fee, memo }: sendMsgPayPacketFeeParams): Promise { + async sendQueryTotalAckFeesRequest({ value, fee, memo }: sendQueryTotalAckFeesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgPayPacketFee: 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.msgPayPacketFee({ value: MsgPayPacketFee.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:sendMsgPayPacketFee: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalAckFeesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgPayPacketFeeAsyncResponse({ value, fee, memo }: sendMsgPayPacketFeeAsyncResponseParams): Promise { + async sendQueryTotalTimeoutFeesResponse({ value, fee, memo }: sendQueryTotalTimeoutFeesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgPayPacketFeeAsyncResponse: 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.msgPayPacketFeeAsyncResponse({ value: MsgPayPacketFeeAsyncResponse.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:sendMsgPayPacketFeeAsyncResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalTimeoutFeesResponse: Could not broadcast Tx: '+ e.message) } }, @@ -610,115 +624,115 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMetadata({ value, fee, memo }: sendMetadataParams): Promise { + async sendMsgPayPacketFeeAsync({ value, fee, memo }: sendMsgPayPacketFeeAsyncParams): Promise { if (!signer) { - throw new Error('TxClient:sendMetadata: 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.metadata({ value: Metadata.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:sendMetadata: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgPayPacketFeeAsync: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalAckFeesResponse({ value, fee, memo }: sendQueryTotalAckFeesResponseParams): Promise { + async sendMsgRegisterCounterpartyPayeeResponse({ value, fee, memo }: sendMsgRegisterCounterpartyPayeeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalAckFeesResponse: 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.queryTotalAckFeesResponse({ value: QueryTotalAckFeesResponse.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:sendQueryTotalAckFeesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRegisterCounterpartyPayeeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalTimeoutFeesRequest({ value, fee, memo }: sendQueryTotalTimeoutFeesRequestParams): Promise { + async sendIncentivizedAcknowledgement({ value, fee, memo }: sendIncentivizedAcknowledgementParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalTimeoutFeesRequest: 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.queryTotalTimeoutFeesRequest({ value: QueryTotalTimeoutFeesRequest.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:sendQueryTotalTimeoutFeesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendIncentivizedAcknowledgement: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPayeeRequest({ value, fee, memo }: sendQueryPayeeRequestParams): Promise { + async sendMetadata({ value, fee, memo }: sendMetadataParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPayeeRequest: 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.queryPayeeRequest({ value: QueryPayeeRequest.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:sendQueryPayeeRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMetadata: Could not broadcast Tx: '+ e.message) } }, - async sendQueryFeeEnabledChannelsRequest({ value, fee, memo }: sendQueryFeeEnabledChannelsRequestParams): Promise { + async sendMsgRegisterPayee({ value, fee, memo }: sendMsgRegisterPayeeParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryFeeEnabledChannelsRequest: 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.queryFeeEnabledChannelsRequest({ value: QueryFeeEnabledChannelsRequest.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:sendQueryFeeEnabledChannelsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRegisterPayee: Could not broadcast Tx: '+ e.message) } }, - async sendQueryFeeEnabledChannelRequest({ value, fee, memo }: sendQueryFeeEnabledChannelRequestParams): Promise { + async sendFee({ value, fee, memo }: sendFeeParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryFeeEnabledChannelRequest: 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.queryFeeEnabledChannelRequest({ value: QueryFeeEnabledChannelRequest.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:sendQueryFeeEnabledChannelRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendFee: Could not broadcast Tx: '+ e.message) } }, - async sendQueryIncentivizedPacketResponse({ value, fee, memo }: sendQueryIncentivizedPacketResponseParams): Promise { + async sendQueryTotalRecvFeesRequest({ value, fee, memo }: sendQueryTotalRecvFeesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketResponse: 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.queryIncentivizedPacketResponse({ value: QueryIncentivizedPacketResponse.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:sendQueryIncentivizedPacketResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalRecvFeesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPayeeResponse({ value, fee, memo }: sendQueryPayeeResponseParams): Promise { + async sendFeeEnabledChannel({ value, fee, memo }: sendFeeEnabledChannelParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPayeeResponse: 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.queryPayeeResponse({ value: QueryPayeeResponse.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:sendQueryPayeeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendFeeEnabledChannel: Could not broadcast Tx: '+ e.message) } }, @@ -736,31 +750,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgRegisterCounterpartyPayeeResponse({ value, fee, memo }: sendMsgRegisterCounterpartyPayeeResponseParams): Promise { - if (!signer) { - 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.msgRegisterCounterpartyPayeeResponse({ value: MsgRegisterCounterpartyPayeeResponse.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) - } - }, - - async sendForwardRelayerAddress({ value, fee, memo }: sendForwardRelayerAddressParams): Promise { + async sendMsgRegisterCounterpartyPayee({ value, fee, memo }: sendMsgRegisterCounterpartyPayeeParams): Promise { if (!signer) { - throw new Error('TxClient:sendForwardRelayerAddress: 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.forwardRelayerAddress({ value: ForwardRelayerAddress.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:sendForwardRelayerAddress: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRegisterCounterpartyPayee: Could not broadcast Tx: '+ e.message) } }, @@ -778,314 +778,322 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryIncentivizedPacketsRequest({ value, fee, memo }: sendQueryIncentivizedPacketsRequestParams): Promise { + async sendQueryTotalRecvFeesResponse({ value, fee, memo }: sendQueryTotalRecvFeesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryTotalRecvFeesResponse: Unable to 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.queryTotalRecvFeesResponse({ value: QueryTotalRecvFeesResponse.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:sendQueryTotalRecvFeesResponse: 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) } }, - async sendQueryIncentivizedPacketRequest({ value, fee, memo }: sendQueryIncentivizedPacketRequestParams): Promise { + async sendQueryTotalTimeoutFeesRequest({ value, fee, memo }: sendQueryTotalTimeoutFeesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketRequest: 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.queryIncentivizedPacketRequest({ value: QueryIncentivizedPacketRequest.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:sendQueryIncentivizedPacketRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalTimeoutFeesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryFeeEnabledChannelResponse({ value, fee, memo }: sendQueryFeeEnabledChannelResponseParams): Promise { + async sendQueryFeeEnabledChannelsResponse({ value, fee, memo }: sendQueryFeeEnabledChannelsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryFeeEnabledChannelResponse: 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.queryFeeEnabledChannelResponse({ value: QueryFeeEnabledChannelResponse.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:sendQueryFeeEnabledChannelResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryFeeEnabledChannelsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendFeeEnabledChannel({ value, fee, memo }: sendFeeEnabledChannelParams): Promise { + async sendForwardRelayerAddress({ value, fee, memo }: sendForwardRelayerAddressParams): Promise { if (!signer) { - throw new Error('TxClient:sendFeeEnabledChannel: 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.feeEnabledChannel({ value: FeeEnabledChannel.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:sendFeeEnabledChannel: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendForwardRelayerAddress: Could not broadcast Tx: '+ e.message) } }, - async sendMsgPayPacketFeeResponse({ value, fee, memo }: sendMsgPayPacketFeeResponseParams): Promise { + async sendMsgRegisterPayeeResponse({ value, fee, memo }: sendMsgRegisterPayeeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgPayPacketFeeResponse: 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.msgPayPacketFeeResponse({ value: MsgPayPacketFeeResponse.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:sendMsgPayPacketFeeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRegisterPayeeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgPayPacketFeeAsync({ value, fee, memo }: sendMsgPayPacketFeeAsyncParams): Promise { + async sendMsgPayPacketFeeResponse({ value, fee, memo }: sendMsgPayPacketFeeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgPayPacketFeeAsync: 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.msgPayPacketFeeAsync({ value: MsgPayPacketFeeAsync.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:sendMsgPayPacketFeeAsync: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgPayPacketFeeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendFee({ value, fee, memo }: sendFeeParams): Promise { + async sendQueryIncentivizedPacketsRequest({ value, fee, memo }: sendQueryIncentivizedPacketsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendFee: 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.fee({ value: Fee.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:sendFee: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryIncentivizedPacketsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryIncentivizedPacketsForChannelRequest({ value, fee, memo }: sendQueryIncentivizedPacketsForChannelRequestParams): Promise { + async sendQueryPayeeResponse({ value, fee, memo }: sendQueryPayeeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryPayeeResponse: Unable to 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.queryPayeeResponse({ value: QueryPayeeResponse.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:sendQueryPayeeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryIncentivizedPacketsForChannelResponse({ value, fee, memo }: sendQueryIncentivizedPacketsForChannelResponseParams): Promise { + async sendMsgPayPacketFee({ value, fee, memo }: sendMsgPayPacketFeeParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelResponse: 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.queryIncentivizedPacketsForChannelResponse({ value: QueryIncentivizedPacketsForChannelResponse.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:sendQueryIncentivizedPacketsForChannelResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgPayPacketFee: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalTimeoutFeesResponse({ value, fee, memo }: sendQueryTotalTimeoutFeesResponseParams): Promise { + async sendQueryIncentivizedPacketRequest({ value, fee, memo }: sendQueryIncentivizedPacketRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalTimeoutFeesResponse: 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.queryTotalTimeoutFeesResponse({ value: QueryTotalTimeoutFeesResponse.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:sendQueryTotalTimeoutFeesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryIncentivizedPacketRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryCounterpartyPayeeResponse({ value, fee, memo }: sendQueryCounterpartyPayeeResponseParams): Promise { + async sendQueryIncentivizedPacketResponse({ value, fee, memo }: sendQueryIncentivizedPacketResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryCounterpartyPayeeResponse: 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.queryCounterpartyPayeeResponse({ value: QueryCounterpartyPayeeResponse.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:sendQueryCounterpartyPayeeResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryIncentivizedPacketResponse: Could not broadcast Tx: '+ e.message) } }, - async sendIncentivizedAcknowledgement({ value, fee, memo }: sendIncentivizedAcknowledgementParams): Promise { + async sendQueryCounterpartyPayeeRequest({ value, fee, memo }: sendQueryCounterpartyPayeeRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendIncentivizedAcknowledgement: 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.incentivizedAcknowledgement({ value: IncentivizedAcknowledgement.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:sendIncentivizedAcknowledgement: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryCounterpartyPayeeRequest: Could not broadcast Tx: '+ e.message) } }, - async sendIdentifiedPacketFees({ value, fee, memo }: sendIdentifiedPacketFeesParams): Promise { + async sendQueryFeeEnabledChannelsRequest({ value, fee, memo }: sendQueryFeeEnabledChannelsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendIdentifiedPacketFees: 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.identifiedPacketFees({ value: IdentifiedPacketFees.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:sendIdentifiedPacketFees: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryFeeEnabledChannelsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalRecvFeesResponse({ value, fee, memo }: sendQueryTotalRecvFeesResponseParams): Promise { + async sendQueryFeeEnabledChannelRequest({ value, fee, memo }: sendQueryFeeEnabledChannelRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalRecvFeesResponse: 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.queryTotalRecvFeesResponse({ value: QueryTotalRecvFeesResponse.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:sendQueryTotalRecvFeesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryFeeEnabledChannelRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryCounterpartyPayeeRequest({ value, fee, memo }: sendQueryCounterpartyPayeeRequestParams): Promise { + async sendQueryFeeEnabledChannelResponse({ value, fee, memo }: sendQueryFeeEnabledChannelResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryCounterpartyPayeeRequest: 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.queryCounterpartyPayeeRequest({ value: QueryCounterpartyPayeeRequest.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:sendQueryCounterpartyPayeeRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryFeeEnabledChannelResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRegisterCounterpartyPayee({ value, fee, memo }: sendMsgRegisterCounterpartyPayeeParams): Promise { + async sendIdentifiedPacketFees({ value, fee, memo }: sendIdentifiedPacketFeesParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRegisterCounterpartyPayee: 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.msgRegisterCounterpartyPayee({ value: MsgRegisterCounterpartyPayee.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:sendMsgRegisterCounterpartyPayee: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendIdentifiedPacketFees: Could not broadcast Tx: '+ e.message) } }, - msgRegisterPayee({ value }: msgRegisterPayeeParams): EncodeObject { + queryIncentivizedPacketsForChannelRequest({ value }: queryIncentivizedPacketsForChannelRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterPayee", value: MsgRegisterPayee.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest", value: QueryIncentivizedPacketsForChannelRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRegisterPayee: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIncentivizedPacketsForChannelRequest: Could not create message: ' + e.message) } }, - msgRegisterPayeeResponse({ value }: msgRegisterPayeeResponseParams): EncodeObject { + queryPayeeRequest({ value }: queryPayeeRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterPayeeResponse", value: MsgRegisterPayeeResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryPayeeRequest", value: QueryPayeeRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRegisterPayeeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPayeeRequest: Could not create message: ' + e.message) } }, - packetFee({ value }: packetFeeParams): EncodeObject { + queryCounterpartyPayeeResponse({ value }: queryCounterpartyPayeeResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.PacketFee", value: PacketFee.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryCounterpartyPayeeResponse", value: QueryCounterpartyPayeeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PacketFee: Could not create message: ' + e.message) + throw new Error('TxClient:QueryCounterpartyPayeeResponse: Could not create message: ' + e.message) } }, - queryTotalRecvFeesRequest({ value }: queryTotalRecvFeesRequestParams): EncodeObject { + msgPayPacketFeeAsyncResponse({ value }: msgPayPacketFeeAsyncResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalRecvFeesRequest", value: QueryTotalRecvFeesRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse", value: MsgPayPacketFeeAsyncResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalRecvFeesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgPayPacketFeeAsyncResponse: Could not create message: ' + e.message) } }, - queryTotalAckFeesRequest({ value }: queryTotalAckFeesRequestParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalAckFeesRequest", value: QueryTotalAckFeesRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalAckFeesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - queryFeeEnabledChannelsResponse({ value }: queryFeeEnabledChannelsResponseParams): EncodeObject { + packetFee({ value }: packetFeeParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse", value: QueryFeeEnabledChannelsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.PacketFee", value: PacketFee.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryFeeEnabledChannelsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:PacketFee: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryIncentivizedPacketsResponse({ value }: queryIncentivizedPacketsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsResponse", value: QueryIncentivizedPacketsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIncentivizedPacketsResponse: Could not create message: ' + e.message) } }, - msgPayPacketFee({ value }: msgPayPacketFeeParams): EncodeObject { + queryIncentivizedPacketsForChannelResponse({ value }: queryIncentivizedPacketsForChannelResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFee", value: MsgPayPacketFee.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse", value: QueryIncentivizedPacketsForChannelResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgPayPacketFee: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIncentivizedPacketsForChannelResponse: Could not create message: ' + e.message) } }, - msgPayPacketFeeAsyncResponse({ value }: msgPayPacketFeeAsyncResponseParams): EncodeObject { + queryTotalAckFeesRequest({ value }: queryTotalAckFeesRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse", value: MsgPayPacketFeeAsyncResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalAckFeesRequest", value: QueryTotalAckFeesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgPayPacketFeeAsyncResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalAckFeesRequest: Could not create message: ' + e.message) + } + }, + + queryTotalTimeoutFeesResponse({ value }: queryTotalTimeoutFeesResponseParams): EncodeObject { + try { + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse", value: QueryTotalTimeoutFeesResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryTotalTimeoutFeesResponse: Could not create message: ' + e.message) } }, @@ -1097,67 +1105,67 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - metadata({ value }: metadataParams): EncodeObject { + msgPayPacketFeeAsync({ value }: msgPayPacketFeeAsyncParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.Metadata", value: Metadata.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeAsync", value: MsgPayPacketFeeAsync.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Metadata: Could not create message: ' + e.message) + throw new Error('TxClient:MsgPayPacketFeeAsync: Could not create message: ' + e.message) } }, - queryTotalAckFeesResponse({ value }: queryTotalAckFeesResponseParams): EncodeObject { + msgRegisterCounterpartyPayeeResponse({ value }: msgRegisterCounterpartyPayeeResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalAckFeesResponse", value: QueryTotalAckFeesResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse", value: MsgRegisterCounterpartyPayeeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalAckFeesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRegisterCounterpartyPayeeResponse: Could not create message: ' + e.message) } }, - queryTotalTimeoutFeesRequest({ value }: queryTotalTimeoutFeesRequestParams): EncodeObject { + incentivizedAcknowledgement({ value }: incentivizedAcknowledgementParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest", value: QueryTotalTimeoutFeesRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.IncentivizedAcknowledgement", value: IncentivizedAcknowledgement.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalTimeoutFeesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:IncentivizedAcknowledgement: Could not create message: ' + e.message) } }, - queryPayeeRequest({ value }: queryPayeeRequestParams): EncodeObject { + metadata({ value }: metadataParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryPayeeRequest", value: QueryPayeeRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.Metadata", value: Metadata.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPayeeRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Metadata: Could not create message: ' + e.message) } }, - queryFeeEnabledChannelsRequest({ value }: queryFeeEnabledChannelsRequestParams): EncodeObject { + msgRegisterPayee({ value }: msgRegisterPayeeParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest", value: QueryFeeEnabledChannelsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterPayee", value: MsgRegisterPayee.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryFeeEnabledChannelsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRegisterPayee: Could not create message: ' + e.message) } }, - queryFeeEnabledChannelRequest({ value }: queryFeeEnabledChannelRequestParams): EncodeObject { + fee({ value }: feeParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelRequest", value: QueryFeeEnabledChannelRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.Fee", value: Fee.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryFeeEnabledChannelRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Fee: Could not create message: ' + e.message) } }, - queryIncentivizedPacketResponse({ value }: queryIncentivizedPacketResponseParams): EncodeObject { + queryTotalRecvFeesRequest({ value }: queryTotalRecvFeesRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketResponse", value: QueryIncentivizedPacketResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalRecvFeesRequest", value: QueryTotalRecvFeesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIncentivizedPacketResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalRecvFeesRequest: Could not create message: ' + e.message) } }, - queryPayeeResponse({ value }: queryPayeeResponseParams): EncodeObject { + feeEnabledChannel({ value }: feeEnabledChannelParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryPayeeResponse", value: QueryPayeeResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.FeeEnabledChannel", value: FeeEnabledChannel.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPayeeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:FeeEnabledChannel: Could not create message: ' + e.message) } }, @@ -1169,19 +1177,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgRegisterCounterpartyPayeeResponse({ value }: msgRegisterCounterpartyPayeeResponseParams): EncodeObject { - try { - return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse", value: MsgRegisterCounterpartyPayeeResponse.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgRegisterCounterpartyPayeeResponse: Could not create message: ' + e.message) - } - }, - - forwardRelayerAddress({ value }: forwardRelayerAddressParams): EncodeObject { + msgRegisterCounterpartyPayee({ value }: msgRegisterCounterpartyPayeeParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.ForwardRelayerAddress", value: ForwardRelayerAddress.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", value: MsgRegisterCounterpartyPayee.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ForwardRelayerAddress: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRegisterCounterpartyPayee: Could not create message: ' + e.message) } }, @@ -1193,139 +1193,139 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryIncentivizedPacketsRequest({ value }: queryIncentivizedPacketsRequestParams): EncodeObject { + queryTotalRecvFeesResponse({ value }: queryTotalRecvFeesResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsRequest", value: QueryIncentivizedPacketsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalRecvFeesResponse", value: QueryTotalRecvFeesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIncentivizedPacketsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalRecvFeesResponse: Could not create message: ' + e.message) } }, - queryIncentivizedPacketsResponse({ value }: queryIncentivizedPacketsResponseParams): EncodeObject { + queryTotalAckFeesResponse({ value }: queryTotalAckFeesResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsResponse", value: QueryIncentivizedPacketsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalAckFeesResponse", value: QueryTotalAckFeesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIncentivizedPacketsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalAckFeesResponse: Could not create message: ' + e.message) } }, - queryIncentivizedPacketRequest({ value }: queryIncentivizedPacketRequestParams): EncodeObject { + queryTotalTimeoutFeesRequest({ value }: queryTotalTimeoutFeesRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketRequest", value: QueryIncentivizedPacketRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest", value: QueryTotalTimeoutFeesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIncentivizedPacketRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalTimeoutFeesRequest: Could not create message: ' + e.message) } }, - queryFeeEnabledChannelResponse({ value }: queryFeeEnabledChannelResponseParams): EncodeObject { + queryFeeEnabledChannelsResponse({ value }: queryFeeEnabledChannelsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelResponse", value: QueryFeeEnabledChannelResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse", value: QueryFeeEnabledChannelsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryFeeEnabledChannelResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryFeeEnabledChannelsResponse: Could not create message: ' + e.message) } }, - feeEnabledChannel({ value }: feeEnabledChannelParams): EncodeObject { + forwardRelayerAddress({ value }: forwardRelayerAddressParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.FeeEnabledChannel", value: FeeEnabledChannel.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.ForwardRelayerAddress", value: ForwardRelayerAddress.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:FeeEnabledChannel: Could not create message: ' + e.message) + throw new Error('TxClient:ForwardRelayerAddress: Could not create message: ' + e.message) } }, - msgPayPacketFeeResponse({ value }: msgPayPacketFeeResponseParams): EncodeObject { + msgRegisterPayeeResponse({ value }: msgRegisterPayeeResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeResponse", value: MsgPayPacketFeeResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterPayeeResponse", value: MsgRegisterPayeeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgPayPacketFeeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRegisterPayeeResponse: Could not create message: ' + e.message) } }, - msgPayPacketFeeAsync({ value }: msgPayPacketFeeAsyncParams): EncodeObject { + msgPayPacketFeeResponse({ value }: msgPayPacketFeeResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeAsync", value: MsgPayPacketFeeAsync.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeResponse", value: MsgPayPacketFeeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgPayPacketFeeAsync: Could not create message: ' + e.message) + throw new Error('TxClient:MsgPayPacketFeeResponse: Could not create message: ' + e.message) } }, - fee({ value }: feeParams): EncodeObject { + queryIncentivizedPacketsRequest({ value }: queryIncentivizedPacketsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.Fee", value: Fee.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsRequest", value: QueryIncentivizedPacketsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Fee: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIncentivizedPacketsRequest: Could not create message: ' + e.message) } }, - queryIncentivizedPacketsForChannelRequest({ value }: queryIncentivizedPacketsForChannelRequestParams): EncodeObject { + queryPayeeResponse({ value }: queryPayeeResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest", value: QueryIncentivizedPacketsForChannelRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryPayeeResponse", value: QueryPayeeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIncentivizedPacketsForChannelRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPayeeResponse: Could not create message: ' + e.message) } }, - queryIncentivizedPacketsForChannelResponse({ value }: queryIncentivizedPacketsForChannelResponseParams): EncodeObject { + msgPayPacketFee({ value }: msgPayPacketFeeParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse", value: QueryIncentivizedPacketsForChannelResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFee", value: MsgPayPacketFee.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIncentivizedPacketsForChannelResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgPayPacketFee: Could not create message: ' + e.message) } }, - queryTotalTimeoutFeesResponse({ value }: queryTotalTimeoutFeesResponseParams): EncodeObject { + queryIncentivizedPacketRequest({ value }: queryIncentivizedPacketRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse", value: QueryTotalTimeoutFeesResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketRequest", value: QueryIncentivizedPacketRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalTimeoutFeesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIncentivizedPacketRequest: Could not create message: ' + e.message) } }, - queryCounterpartyPayeeResponse({ value }: queryCounterpartyPayeeResponseParams): EncodeObject { + queryIncentivizedPacketResponse({ value }: queryIncentivizedPacketResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryCounterpartyPayeeResponse", value: QueryCounterpartyPayeeResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketResponse", value: QueryIncentivizedPacketResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryCounterpartyPayeeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIncentivizedPacketResponse: Could not create message: ' + e.message) } }, - incentivizedAcknowledgement({ value }: incentivizedAcknowledgementParams): EncodeObject { + queryCounterpartyPayeeRequest({ value }: queryCounterpartyPayeeRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.IncentivizedAcknowledgement", value: IncentivizedAcknowledgement.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryCounterpartyPayeeRequest", value: QueryCounterpartyPayeeRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:IncentivizedAcknowledgement: Could not create message: ' + e.message) + throw new Error('TxClient:QueryCounterpartyPayeeRequest: Could not create message: ' + e.message) } }, - identifiedPacketFees({ value }: identifiedPacketFeesParams): EncodeObject { + queryFeeEnabledChannelsRequest({ value }: queryFeeEnabledChannelsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.IdentifiedPacketFees", value: IdentifiedPacketFees.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest", value: QueryFeeEnabledChannelsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:IdentifiedPacketFees: Could not create message: ' + e.message) + throw new Error('TxClient:QueryFeeEnabledChannelsRequest: Could not create message: ' + e.message) } }, - queryTotalRecvFeesResponse({ value }: queryTotalRecvFeesResponseParams): EncodeObject { + queryFeeEnabledChannelRequest({ value }: queryFeeEnabledChannelRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalRecvFeesResponse", value: QueryTotalRecvFeesResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelRequest", value: QueryFeeEnabledChannelRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalRecvFeesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryFeeEnabledChannelRequest: Could not create message: ' + e.message) } }, - queryCounterpartyPayeeRequest({ value }: queryCounterpartyPayeeRequestParams): EncodeObject { + queryFeeEnabledChannelResponse({ value }: queryFeeEnabledChannelResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryCounterpartyPayeeRequest", value: QueryCounterpartyPayeeRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelResponse", value: QueryFeeEnabledChannelResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryCounterpartyPayeeRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryFeeEnabledChannelResponse: Could not create message: ' + e.message) } }, - msgRegisterCounterpartyPayee({ value }: msgRegisterCounterpartyPayeeParams): EncodeObject { + identifiedPacketFees({ value }: identifiedPacketFeesParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", value: MsgRegisterCounterpartyPayee.fromPartial( value ) } + return { typeUrl: "/ibc.applications.fee.v1.IdentifiedPacketFees", value: IdentifiedPacketFees.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRegisterCounterpartyPayee: Could not create message: ' + e.message) + throw new Error('TxClient:IdentifiedPacketFees: 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 bfe79f6f7..b6993faa6 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 { MsgRegisterPayee } from "./types/ibc/applications/fee/v1/tx"; -import { MsgRegisterPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { QueryIncentivizedPacketsForChannelRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryPayeeRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/query"; +import { MsgPayPacketFeeAsyncResponse } from "./types/ibc/applications/fee/v1/tx"; +import { GenesisState } from "./types/ibc/applications/fee/v1/genesis"; import { PacketFee } from "./types/ibc/applications/fee/v1/fee"; -import { QueryTotalRecvFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketsResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketsForChannelResponse } 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 { GenesisState } from "./types/ibc/applications/fee/v1/genesis"; -import { MsgPayPacketFee } from "./types/ibc/applications/fee/v1/tx"; -import { MsgPayPacketFeeAsyncResponse } from "./types/ibc/applications/fee/v1/tx"; +import { QueryTotalTimeoutFeesResponse } from "./types/ibc/applications/fee/v1/query"; import { RegisteredPayee } 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 { IncentivizedAcknowledgement } from "./types/ibc/applications/fee/v1/ack"; import { Metadata } from "./types/ibc/applications/fee/v1/metadata"; +import { MsgRegisterPayee } from "./types/ibc/applications/fee/v1/tx"; +import { Fee } from "./types/ibc/applications/fee/v1/fee"; +import { QueryTotalRecvFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { FeeEnabledChannel } from "./types/ibc/applications/fee/v1/genesis"; +import { RegisteredCounterpartyPayee } from "./types/ibc/applications/fee/v1/genesis"; +import { MsgRegisterCounterpartyPayee } from "./types/ibc/applications/fee/v1/tx"; +import { PacketFees } from "./types/ibc/applications/fee/v1/fee"; +import { QueryTotalRecvFeesResponse } from "./types/ibc/applications/fee/v1/query"; import { QueryTotalAckFeesResponse } from "./types/ibc/applications/fee/v1/query"; import { QueryTotalTimeoutFeesRequest } 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 { QueryFeeEnabledChannelRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryIncentivizedPacketResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryPayeeResponse } from "./types/ibc/applications/fee/v1/query"; -import { RegisteredCounterpartyPayee } from "./types/ibc/applications/fee/v1/genesis"; -import { MsgRegisterCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { QueryFeeEnabledChannelsResponse } from "./types/ibc/applications/fee/v1/query"; import { ForwardRelayerAddress } from "./types/ibc/applications/fee/v1/genesis"; -import { PacketFees } from "./types/ibc/applications/fee/v1/fee"; +import { MsgRegisterPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { MsgPayPacketFeeResponse } from "./types/ibc/applications/fee/v1/tx"; import { QueryIncentivizedPacketsRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryIncentivizedPacketsResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryPayeeResponse } from "./types/ibc/applications/fee/v1/query"; +import { MsgPayPacketFee } from "./types/ibc/applications/fee/v1/tx"; import { QueryIncentivizedPacketRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryCounterpartyPayeeRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelsRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelRequest } from "./types/ibc/applications/fee/v1/query"; import { QueryFeeEnabledChannelResponse } from "./types/ibc/applications/fee/v1/query"; -import { FeeEnabledChannel } from "./types/ibc/applications/fee/v1/genesis"; -import { MsgPayPacketFeeResponse } from "./types/ibc/applications/fee/v1/tx"; -import { MsgPayPacketFeeAsync } from "./types/ibc/applications/fee/v1/tx"; -import { Fee } from "./types/ibc/applications/fee/v1/fee"; -import { QueryIncentivizedPacketsForChannelRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryIncentivizedPacketsForChannelResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalTimeoutFeesResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/query"; -import { IncentivizedAcknowledgement } from "./types/ibc/applications/fee/v1/ack"; import { IdentifiedPacketFees } from "./types/ibc/applications/fee/v1/fee"; -import { QueryTotalRecvFeesResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryCounterpartyPayeeRequest } from "./types/ibc/applications/fee/v1/query"; -import { MsgRegisterCounterpartyPayee } from "./types/ibc/applications/fee/v1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/ibc.applications.fee.v1.MsgRegisterPayee", MsgRegisterPayee], - ["/ibc.applications.fee.v1.MsgRegisterPayeeResponse", MsgRegisterPayeeResponse], + ["/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest", QueryIncentivizedPacketsForChannelRequest], + ["/ibc.applications.fee.v1.QueryPayeeRequest", QueryPayeeRequest], + ["/ibc.applications.fee.v1.QueryCounterpartyPayeeResponse", QueryCounterpartyPayeeResponse], + ["/ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse", MsgPayPacketFeeAsyncResponse], + ["/ibc.applications.fee.v1.GenesisState", GenesisState], ["/ibc.applications.fee.v1.PacketFee", PacketFee], - ["/ibc.applications.fee.v1.QueryTotalRecvFeesRequest", QueryTotalRecvFeesRequest], + ["/ibc.applications.fee.v1.QueryIncentivizedPacketsResponse", QueryIncentivizedPacketsResponse], + ["/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse", QueryIncentivizedPacketsForChannelResponse], ["/ibc.applications.fee.v1.QueryTotalAckFeesRequest", QueryTotalAckFeesRequest], - ["/ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse", QueryFeeEnabledChannelsResponse], - ["/ibc.applications.fee.v1.GenesisState", GenesisState], - ["/ibc.applications.fee.v1.MsgPayPacketFee", MsgPayPacketFee], - ["/ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse", MsgPayPacketFeeAsyncResponse], + ["/ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse", QueryTotalTimeoutFeesResponse], ["/ibc.applications.fee.v1.RegisteredPayee", RegisteredPayee], + ["/ibc.applications.fee.v1.MsgPayPacketFeeAsync", MsgPayPacketFeeAsync], + ["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse", MsgRegisterCounterpartyPayeeResponse], + ["/ibc.applications.fee.v1.IncentivizedAcknowledgement", IncentivizedAcknowledgement], ["/ibc.applications.fee.v1.Metadata", Metadata], + ["/ibc.applications.fee.v1.MsgRegisterPayee", MsgRegisterPayee], + ["/ibc.applications.fee.v1.Fee", Fee], + ["/ibc.applications.fee.v1.QueryTotalRecvFeesRequest", QueryTotalRecvFeesRequest], + ["/ibc.applications.fee.v1.FeeEnabledChannel", FeeEnabledChannel], + ["/ibc.applications.fee.v1.RegisteredCounterpartyPayee", RegisteredCounterpartyPayee], + ["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", MsgRegisterCounterpartyPayee], + ["/ibc.applications.fee.v1.PacketFees", PacketFees], + ["/ibc.applications.fee.v1.QueryTotalRecvFeesResponse", QueryTotalRecvFeesResponse], ["/ibc.applications.fee.v1.QueryTotalAckFeesResponse", QueryTotalAckFeesResponse], ["/ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest", QueryTotalTimeoutFeesRequest], - ["/ibc.applications.fee.v1.QueryPayeeRequest", QueryPayeeRequest], - ["/ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest", QueryFeeEnabledChannelsRequest], - ["/ibc.applications.fee.v1.QueryFeeEnabledChannelRequest", QueryFeeEnabledChannelRequest], - ["/ibc.applications.fee.v1.QueryIncentivizedPacketResponse", QueryIncentivizedPacketResponse], - ["/ibc.applications.fee.v1.QueryPayeeResponse", QueryPayeeResponse], - ["/ibc.applications.fee.v1.RegisteredCounterpartyPayee", RegisteredCounterpartyPayee], - ["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse", MsgRegisterCounterpartyPayeeResponse], + ["/ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse", QueryFeeEnabledChannelsResponse], ["/ibc.applications.fee.v1.ForwardRelayerAddress", ForwardRelayerAddress], - ["/ibc.applications.fee.v1.PacketFees", PacketFees], + ["/ibc.applications.fee.v1.MsgRegisterPayeeResponse", MsgRegisterPayeeResponse], + ["/ibc.applications.fee.v1.MsgPayPacketFeeResponse", MsgPayPacketFeeResponse], ["/ibc.applications.fee.v1.QueryIncentivizedPacketsRequest", QueryIncentivizedPacketsRequest], - ["/ibc.applications.fee.v1.QueryIncentivizedPacketsResponse", QueryIncentivizedPacketsResponse], + ["/ibc.applications.fee.v1.QueryPayeeResponse", QueryPayeeResponse], + ["/ibc.applications.fee.v1.MsgPayPacketFee", MsgPayPacketFee], ["/ibc.applications.fee.v1.QueryIncentivizedPacketRequest", QueryIncentivizedPacketRequest], + ["/ibc.applications.fee.v1.QueryIncentivizedPacketResponse", QueryIncentivizedPacketResponse], + ["/ibc.applications.fee.v1.QueryCounterpartyPayeeRequest", QueryCounterpartyPayeeRequest], + ["/ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest", QueryFeeEnabledChannelsRequest], + ["/ibc.applications.fee.v1.QueryFeeEnabledChannelRequest", QueryFeeEnabledChannelRequest], ["/ibc.applications.fee.v1.QueryFeeEnabledChannelResponse", QueryFeeEnabledChannelResponse], - ["/ibc.applications.fee.v1.FeeEnabledChannel", FeeEnabledChannel], - ["/ibc.applications.fee.v1.MsgPayPacketFeeResponse", MsgPayPacketFeeResponse], - ["/ibc.applications.fee.v1.MsgPayPacketFeeAsync", MsgPayPacketFeeAsync], - ["/ibc.applications.fee.v1.Fee", Fee], - ["/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest", QueryIncentivizedPacketsForChannelRequest], - ["/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse", QueryIncentivizedPacketsForChannelResponse], - ["/ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse", QueryTotalTimeoutFeesResponse], - ["/ibc.applications.fee.v1.QueryCounterpartyPayeeResponse", QueryCounterpartyPayeeResponse], - ["/ibc.applications.fee.v1.IncentivizedAcknowledgement", IncentivizedAcknowledgement], ["/ibc.applications.fee.v1.IdentifiedPacketFees", IdentifiedPacketFees], - ["/ibc.applications.fee.v1.QueryTotalRecvFeesResponse", QueryTotalRecvFeesResponse], - ["/ibc.applications.fee.v1.QueryCounterpartyPayeeRequest", QueryCounterpartyPayeeRequest], - ["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", MsgRegisterCounterpartyPayee], ]; 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 f81524749..237c40ad5 100755 --- a/ts-client/ibc.applications.interchain_accounts.controller.v1/module.ts +++ b/ts-client/ibc.applications.interchain_accounts.controller.v1/module.ts @@ -7,19 +7,19 @@ import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; import { Params } from "./types/ibc/applications/interchain_accounts/controller/v1/controller"; +import { MsgRegisterInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { QueryInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { MsgSendTxResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; import { QueryInterchainAccountRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { MsgSendTx } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { QueryParamsRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; import { QueryParamsResponse } 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 { QueryInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { QueryParamsRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { MsgSendTxResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { MsgSendTx } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -export { Params, MsgUpdateParams, MsgUpdateParamsResponse, QueryInterchainAccountRequest, MsgSendTx, QueryParamsResponse, MsgRegisterInterchainAccountResponse, MsgRegisterInterchainAccount, QueryInterchainAccountResponse, QueryParamsRequest, MsgSendTxResponse }; +export { Params, MsgRegisterInterchainAccountResponse, QueryInterchainAccountResponse, MsgUpdateParams, MsgSendTxResponse, QueryInterchainAccountRequest, QueryParamsRequest, QueryParamsResponse, MsgRegisterInterchainAccount, MsgSendTx, MsgUpdateParamsResponse }; type sendParamsParams = { value: Params, @@ -27,62 +27,62 @@ type sendParamsParams = { memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendMsgRegisterInterchainAccountResponseParams = { + value: MsgRegisterInterchainAccountResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendQueryInterchainAccountResponseParams = { + value: QueryInterchainAccountResponse, fee?: StdFee, memo?: string }; -type sendQueryInterchainAccountRequestParams = { - value: QueryInterchainAccountRequest, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendMsgSendTxParams = { - value: MsgSendTx, +type sendMsgSendTxResponseParams = { + value: MsgSendTxResponse, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendQueryInterchainAccountRequestParams = { + value: QueryInterchainAccountRequest, fee?: StdFee, memo?: string }; -type sendMsgRegisterInterchainAccountResponseParams = { - value: MsgRegisterInterchainAccountResponse, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendMsgRegisterInterchainAccountParams = { - value: MsgRegisterInterchainAccount, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryInterchainAccountResponseParams = { - value: QueryInterchainAccountResponse, +type sendMsgRegisterInterchainAccountParams = { + value: MsgRegisterInterchainAccount, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendMsgSendTxParams = { + value: MsgSendTx, fee?: StdFee, memo?: string }; -type sendMsgSendTxResponseParams = { - value: MsgSendTxResponse, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; @@ -92,44 +92,44 @@ type paramsParams = { value: Params, }; +type msgRegisterInterchainAccountResponseParams = { + value: MsgRegisterInterchainAccountResponse, +}; + +type queryInterchainAccountResponseParams = { + value: QueryInterchainAccountResponse, +}; + type msgUpdateParamsParams = { value: MsgUpdateParams, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type msgSendTxResponseParams = { + value: MsgSendTxResponse, }; type queryInterchainAccountRequestParams = { value: QueryInterchainAccountRequest, }; -type msgSendTxParams = { - value: MsgSendTx, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; type queryParamsResponseParams = { value: QueryParamsResponse, }; -type msgRegisterInterchainAccountResponseParams = { - value: MsgRegisterInterchainAccountResponse, -}; - type msgRegisterInterchainAccountParams = { value: MsgRegisterInterchainAccount, }; -type queryInterchainAccountResponseParams = { - value: QueryInterchainAccountResponse, -}; - -type queryParamsRequestParams = { - value: QueryParamsRequest, +type msgSendTxParams = { + value: MsgSendTx, }; -type msgSendTxResponseParams = { - value: MsgSendTxResponse, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; @@ -176,143 +176,143 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendMsgRegisterInterchainAccountResponse({ value, fee, memo }: sendMsgRegisterInterchainAccountResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.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:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRegisterInterchainAccountResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendQueryInterchainAccountResponse({ value, fee, memo }: sendQueryInterchainAccountResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: 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.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.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:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryInterchainAccountResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryInterchainAccountRequest({ value, fee, memo }: sendQueryInterchainAccountRequestParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryInterchainAccountRequest: 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.queryInterchainAccountRequest({ value: QueryInterchainAccountRequest.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:sendQueryInterchainAccountRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSendTx({ value, fee, memo }: sendMsgSendTxParams): Promise { + async sendMsgSendTxResponse({ value, fee, memo }: sendMsgSendTxResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSendTx: 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.msgSendTx({ value: MsgSendTx.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:sendMsgSendTx: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSendTxResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendQueryInterchainAccountRequest({ value, fee, memo }: sendQueryInterchainAccountRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: 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.queryParamsResponse({ value: QueryParamsResponse.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:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryInterchainAccountRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRegisterInterchainAccountResponse({ value, fee, memo }: sendMsgRegisterInterchainAccountResponseParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRegisterInterchainAccountResponse: 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.msgRegisterInterchainAccountResponse({ value: MsgRegisterInterchainAccountResponse.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:sendMsgRegisterInterchainAccountResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRegisterInterchainAccount({ value, fee, memo }: sendMsgRegisterInterchainAccountParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRegisterInterchainAccount: 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.msgRegisterInterchainAccount({ value: MsgRegisterInterchainAccount.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:sendMsgRegisterInterchainAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryInterchainAccountResponse({ value, fee, memo }: sendQueryInterchainAccountResponseParams): Promise { + async sendMsgRegisterInterchainAccount({ value, fee, memo }: sendMsgRegisterInterchainAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryInterchainAccountResponse: 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.queryInterchainAccountResponse({ value: QueryInterchainAccountResponse.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:sendQueryInterchainAccountResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRegisterInterchainAccount: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendMsgSendTx({ value, fee, memo }: sendMsgSendTxParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: 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.queryParamsRequest({ value: QueryParamsRequest.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:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSendTx: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSendTxResponse({ value, fee, memo }: sendMsgSendTxResponseParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSendTxResponse: 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.msgSendTxResponse({ value: MsgSendTxResponse.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:sendMsgSendTxResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, @@ -325,6 +325,22 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, + msgRegisterInterchainAccountResponse({ value }: msgRegisterInterchainAccountResponseParams): EncodeObject { + try { + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse", value: MsgRegisterInterchainAccountResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:MsgRegisterInterchainAccountResponse: Could not create message: ' + e.message) + } + }, + + queryInterchainAccountResponse({ value }: queryInterchainAccountResponseParams): EncodeObject { + try { + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse", value: QueryInterchainAccountResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryInterchainAccountResponse: Could not create message: ' + e.message) + } + }, + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } @@ -333,11 +349,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + msgSendTxResponse({ value }: msgSendTxResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse", value: MsgSendTxResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSendTxResponse: Could not create message: ' + e.message) } }, @@ -349,11 +365,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgSendTx({ value }: msgSendTxParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx", value: MsgSendTx.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSendTx: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, @@ -365,14 +381,6 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgRegisterInterchainAccountResponse({ value }: msgRegisterInterchainAccountResponseParams): EncodeObject { - try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse", value: MsgRegisterInterchainAccountResponse.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgRegisterInterchainAccountResponse: Could not create message: ' + e.message) - } - }, - msgRegisterInterchainAccount({ value }: msgRegisterInterchainAccountParams): EncodeObject { try { return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount", value: MsgRegisterInterchainAccount.fromPartial( value ) } @@ -381,27 +389,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryInterchainAccountResponse({ value }: queryInterchainAccountResponseParams): EncodeObject { - try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse", value: QueryInterchainAccountResponse.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:QueryInterchainAccountResponse: Could not create message: ' + e.message) - } - }, - - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + msgSendTx({ value }: msgSendTxParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx", value: MsgSendTx.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSendTx: Could not create message: ' + e.message) } }, - msgSendTxResponse({ value }: msgSendTxResponseParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse", value: MsgSendTxResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSendTxResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: 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 0f25693ed..fc360647b 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 { Params } from "./types/ibc/applications/interchain_accounts/controller/v1/controller"; +import { MsgRegisterInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { QueryInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { MsgSendTxResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; import { QueryInterchainAccountRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { MsgSendTx } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { QueryParamsRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; import { QueryParamsResponse } 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 { QueryInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { QueryParamsRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { MsgSendTxResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { MsgSendTx } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ ["/ibc.applications.interchain_accounts.controller.v1.Params", Params], + ["/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse", MsgRegisterInterchainAccountResponse], + ["/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse", QueryInterchainAccountResponse], ["/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams", MsgUpdateParams], - ["/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse", MsgSendTxResponse], ["/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest", QueryInterchainAccountRequest], - ["/ibc.applications.interchain_accounts.controller.v1.MsgSendTx", MsgSendTx], + ["/ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest", QueryParamsRequest], ["/ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse", QueryParamsResponse], - ["/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse", MsgRegisterInterchainAccountResponse], ["/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount", MsgRegisterInterchainAccount], - ["/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse", QueryInterchainAccountResponse], - ["/ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest", QueryParamsRequest], - ["/ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse", MsgSendTxResponse], + ["/ibc.applications.interchain_accounts.controller.v1.MsgSendTx", MsgSendTx], + ["/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ]; 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 b9ee90048..505aa024d 100755 --- a/ts-client/ibc.applications.interchain_accounts.host.v1/module.ts +++ b/ts-client/ibc.applications.interchain_accounts.host.v1/module.ts @@ -6,17 +6,17 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/host/v1/tx"; -import { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/host/v1/query"; import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/host/v1/tx"; -import { QueryParamsRequest } from "./types/ibc/applications/interchain_accounts/host/v1/query"; +import { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/host/v1/query"; +import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/host/v1/tx"; import { Params } from "./types/ibc/applications/interchain_accounts/host/v1/host"; +import { QueryParamsRequest } from "./types/ibc/applications/interchain_accounts/host/v1/query"; -export { MsgUpdateParamsResponse, QueryParamsResponse, MsgUpdateParams, QueryParamsRequest, Params }; +export { MsgUpdateParams, QueryParamsResponse, MsgUpdateParamsResponse, Params, QueryParamsRequest }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; @@ -27,45 +27,45 @@ type sendQueryParamsResponseParams = { memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +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 msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; type queryParamsResponseParams = { value: QueryParamsResponse, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, -}; - -type queryParamsRequestParams = { - value: QueryParamsRequest, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; type paramsParams = { value: Params, }; +type queryParamsRequestParams = { + value: QueryParamsRequest, +}; + export const registry = new Registry(msgTypes); @@ -96,17 +96,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - 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) } }, @@ -124,54 +124,54 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - 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 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) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.host.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.host.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) } }, @@ -183,27 +183,27 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.host.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.host.v1.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) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.interchain_accounts.host.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.host.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.host.v1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/ibc.applications.interchain_accounts.host.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) } }, 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 f02a6af07..189710c60 100755 --- a/ts-client/ibc.applications.interchain_accounts.host.v1/registry.ts +++ b/ts-client/ibc.applications.interchain_accounts.host.v1/registry.ts @@ -1,16 +1,16 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/host/v1/tx"; -import { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/host/v1/query"; import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/host/v1/tx"; -import { QueryParamsRequest } from "./types/ibc/applications/interchain_accounts/host/v1/query"; +import { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/host/v1/query"; +import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/host/v1/tx"; import { Params } from "./types/ibc/applications/interchain_accounts/host/v1/host"; +import { QueryParamsRequest } from "./types/ibc/applications/interchain_accounts/host/v1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/ibc.applications.interchain_accounts.host.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/ibc.applications.interchain_accounts.host.v1.QueryParamsResponse", QueryParamsResponse], ["/ibc.applications.interchain_accounts.host.v1.MsgUpdateParams", MsgUpdateParams], - ["/ibc.applications.interchain_accounts.host.v1.QueryParamsRequest", QueryParamsRequest], + ["/ibc.applications.interchain_accounts.host.v1.QueryParamsResponse", QueryParamsResponse], + ["/ibc.applications.interchain_accounts.host.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ["/ibc.applications.interchain_accounts.host.v1.Params", Params], + ["/ibc.applications.interchain_accounts.host.v1.QueryParamsRequest", QueryParamsRequest], ]; diff --git a/ts-client/ibc.applications.transfer.v1/module.ts b/ts-client/ibc.applications.transfer.v1/module.ts index ef73d508c..ca5b20b6f 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 { QueryDenomTraceRequest } 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 { QueryDenomHashResponse } from "./types/ibc/applications/transfer/v1/query"; -import { QueryEscrowAddressRequest } from "./types/ibc/applications/transfer/v1/query"; -import { QueryEscrowAddressResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryDenomTraceResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryDenomTracesRequest } from "./types/ibc/applications/transfer/v1/query"; -import { DenomTrace } from "./types/ibc/applications/transfer/v1/transfer"; +import { QueryDenomHashResponse } 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 { QueryDenomHashRequest } from "./types/ibc/applications/transfer/v1/query"; -import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz"; +import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx"; +import { QueryParamsRequest } from "./types/ibc/applications/transfer/v1/query"; +import { Allocation } from "./types/ibc/applications/transfer/v1/authz"; +import { QueryEscrowAddressResponse } from "./types/ibc/applications/transfer/v1/query"; +import { GenesisState } from "./types/ibc/applications/transfer/v1/genesis"; import { MsgTransferResponse } from "./types/ibc/applications/transfer/v1/tx"; import { MsgUpdateParamsResponse } from "./types/ibc/applications/transfer/v1/tx"; -import { Allocation } from "./types/ibc/applications/transfer/v1/authz"; -import { QueryParamsRequest } from "./types/ibc/applications/transfer/v1/query"; +import { QueryDenomTraceRequest } from "./types/ibc/applications/transfer/v1/query"; +import { QueryDenomTracesResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryParamsResponse } from "./types/ibc/applications/transfer/v1/query"; -import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx"; +import { QueryDenomHashRequest } from "./types/ibc/applications/transfer/v1/query"; +import { QueryEscrowAddressRequest } from "./types/ibc/applications/transfer/v1/query"; +import { DenomTrace } from "./types/ibc/applications/transfer/v1/transfer"; +import { QueryTotalEscrowForDenomResponse } from "./types/ibc/applications/transfer/v1/query"; +import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz"; import { MsgUpdateParams } from "./types/ibc/applications/transfer/v1/tx"; -import { QueryDenomTracesResponse } from "./types/ibc/applications/transfer/v1/query"; -import { QueryTotalEscrowForDenomRequest } from "./types/ibc/applications/transfer/v1/query"; - -export { QueryDenomTraceRequest, QueryTotalEscrowForDenomResponse, GenesisState, QueryDenomHashResponse, QueryEscrowAddressRequest, QueryEscrowAddressResponse, QueryDenomTraceResponse, QueryDenomTracesRequest, DenomTrace, Params, QueryDenomHashRequest, TransferAuthorization, MsgTransferResponse, MsgUpdateParamsResponse, Allocation, QueryParamsRequest, QueryParamsResponse, MsgTransfer, MsgUpdateParams, QueryDenomTracesResponse, QueryTotalEscrowForDenomRequest }; -type sendQueryDenomTraceRequestParams = { - value: QueryDenomTraceRequest, - fee?: StdFee, - memo?: string -}; +export { QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomHashResponse, QueryTotalEscrowForDenomRequest, Params, MsgTransfer, QueryParamsRequest, Allocation, QueryEscrowAddressResponse, GenesisState, MsgTransferResponse, MsgUpdateParamsResponse, QueryDenomTraceRequest, QueryDenomTracesResponse, QueryParamsResponse, QueryDenomHashRequest, QueryEscrowAddressRequest, DenomTrace, QueryTotalEscrowForDenomResponse, TransferAuthorization, MsgUpdateParams }; -type sendQueryTotalEscrowForDenomResponseParams = { - value: QueryTotalEscrowForDenomResponse, +type sendQueryDenomTraceResponseParams = { + value: QueryDenomTraceResponse, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryDenomTracesRequestParams = { + value: QueryDenomTracesRequest, fee?: StdFee, memo?: string }; @@ -55,50 +49,44 @@ type sendQueryDenomHashResponseParams = { memo?: string }; -type sendQueryEscrowAddressRequestParams = { - value: QueryEscrowAddressRequest, - fee?: StdFee, - memo?: string -}; - -type sendQueryEscrowAddressResponseParams = { - value: QueryEscrowAddressResponse, +type sendQueryTotalEscrowForDenomRequestParams = { + value: QueryTotalEscrowForDenomRequest, fee?: StdFee, memo?: string }; -type sendQueryDenomTraceResponseParams = { - value: QueryDenomTraceResponse, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendQueryDenomTracesRequestParams = { - value: QueryDenomTracesRequest, +type sendMsgTransferParams = { + value: MsgTransfer, fee?: StdFee, memo?: string }; -type sendDenomTraceParams = { - value: DenomTrace, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendAllocationParams = { + value: Allocation, fee?: StdFee, memo?: string }; -type sendQueryDenomHashRequestParams = { - value: QueryDenomHashRequest, +type sendQueryEscrowAddressResponseParams = { + value: QueryEscrowAddressResponse, fee?: StdFee, memo?: string }; -type sendTransferAuthorizationParams = { - value: TransferAuthorization, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; @@ -115,14 +103,14 @@ type sendMsgUpdateParamsResponseParams = { memo?: string }; -type sendAllocationParams = { - value: Allocation, +type sendQueryDenomTraceRequestParams = { + value: QueryDenomTraceRequest, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendQueryDenomTracesResponseParams = { + value: QueryDenomTracesResponse, fee?: StdFee, memo?: string }; @@ -133,77 +121,81 @@ type sendQueryParamsResponseParams = { memo?: string }; -type sendMsgTransferParams = { - value: MsgTransfer, +type sendQueryDenomHashRequestParams = { + value: QueryDenomHashRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendQueryEscrowAddressRequestParams = { + value: QueryEscrowAddressRequest, fee?: StdFee, memo?: string }; -type sendQueryDenomTracesResponseParams = { - value: QueryDenomTracesResponse, +type sendDenomTraceParams = { + value: DenomTrace, fee?: StdFee, memo?: string }; -type sendQueryTotalEscrowForDenomRequestParams = { - value: QueryTotalEscrowForDenomRequest, +type sendQueryTotalEscrowForDenomResponseParams = { + value: QueryTotalEscrowForDenomResponse, fee?: StdFee, memo?: string }; +type sendTransferAuthorizationParams = { + value: TransferAuthorization, + fee?: StdFee, + memo?: string +}; -type queryDenomTraceRequestParams = { - value: QueryDenomTraceRequest, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, + fee?: StdFee, + memo?: string }; -type queryTotalEscrowForDenomResponseParams = { - value: QueryTotalEscrowForDenomResponse, + +type queryDenomTraceResponseParams = { + value: QueryDenomTraceResponse, }; -type genesisStateParams = { - value: GenesisState, +type queryDenomTracesRequestParams = { + value: QueryDenomTracesRequest, }; type queryDenomHashResponseParams = { value: QueryDenomHashResponse, }; -type queryEscrowAddressRequestParams = { - value: QueryEscrowAddressRequest, -}; - -type queryEscrowAddressResponseParams = { - value: QueryEscrowAddressResponse, +type queryTotalEscrowForDenomRequestParams = { + value: QueryTotalEscrowForDenomRequest, }; -type queryDenomTraceResponseParams = { - value: QueryDenomTraceResponse, +type paramsParams = { + value: Params, }; -type queryDenomTracesRequestParams = { - value: QueryDenomTracesRequest, +type msgTransferParams = { + value: MsgTransfer, }; -type denomTraceParams = { - value: DenomTrace, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; -type paramsParams = { - value: Params, +type allocationParams = { + value: Allocation, }; -type queryDenomHashRequestParams = { - value: QueryDenomHashRequest, +type queryEscrowAddressResponseParams = { + value: QueryEscrowAddressResponse, }; -type transferAuthorizationParams = { - value: TransferAuthorization, +type genesisStateParams = { + value: GenesisState, }; type msgTransferResponseParams = { @@ -214,32 +206,40 @@ type msgUpdateParamsResponseParams = { value: MsgUpdateParamsResponse, }; -type allocationParams = { - value: Allocation, +type queryDenomTraceRequestParams = { + value: QueryDenomTraceRequest, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type queryDenomTracesResponseParams = { + value: QueryDenomTracesResponse, }; type queryParamsResponseParams = { value: QueryParamsResponse, }; -type msgTransferParams = { - value: MsgTransfer, +type queryDenomHashRequestParams = { + value: QueryDenomHashRequest, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryEscrowAddressRequestParams = { + value: QueryEscrowAddressRequest, }; -type queryDenomTracesResponseParams = { - value: QueryDenomTracesResponse, +type denomTraceParams = { + value: DenomTrace, }; -type queryTotalEscrowForDenomRequestParams = { - value: QueryTotalEscrowForDenomRequest, +type queryTotalEscrowForDenomResponseParams = { + value: QueryTotalEscrowForDenomResponse, +}; + +type transferAuthorizationParams = { + value: TransferAuthorization, +}; + +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; @@ -272,45 +272,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendQueryDenomTraceRequest({ value, fee, memo }: sendQueryDenomTraceRequestParams): Promise { - if (!signer) { - 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.queryDenomTraceRequest({ value: QueryDenomTraceRequest.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) - } - }, - - async sendQueryTotalEscrowForDenomResponse({ value, fee, memo }: sendQueryTotalEscrowForDenomResponseParams): Promise { + async sendQueryDenomTraceResponse({ value, fee, memo }: sendQueryDenomTraceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalEscrowForDenomResponse: 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.queryTotalEscrowForDenomResponse({ value: QueryTotalEscrowForDenomResponse.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:sendQueryTotalEscrowForDenomResponse: 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 sendQueryDenomTracesRequest({ value, fee, memo }: sendQueryDenomTracesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.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:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomTracesRequest: Could not broadcast Tx: '+ e.message) } }, @@ -328,115 +314,101 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryEscrowAddressRequest({ value, fee, memo }: sendQueryEscrowAddressRequestParams): Promise { - if (!signer) { - 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.queryEscrowAddressRequest({ value: QueryEscrowAddressRequest.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) - } - }, - - async sendQueryEscrowAddressResponse({ value, fee, memo }: sendQueryEscrowAddressResponseParams): Promise { + async sendQueryTotalEscrowForDenomRequest({ value, fee, memo }: sendQueryTotalEscrowForDenomRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryEscrowAddressResponse: 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.queryEscrowAddressResponse({ value: QueryEscrowAddressResponse.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:sendQueryEscrowAddressResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalEscrowForDenomRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomTraceResponse({ value, fee, memo }: sendQueryDenomTraceResponseParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomTraceResponse: 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.queryDenomTraceResponse({ value: QueryDenomTraceResponse.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:sendQueryDenomTraceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomTracesRequest({ value, fee, memo }: sendQueryDenomTracesRequestParams): Promise { + async sendMsgTransfer({ value, fee, memo }: sendMsgTransferParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomTracesRequest: 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.queryDenomTracesRequest({ value: QueryDenomTracesRequest.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:sendQueryDenomTracesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgTransfer: Could not broadcast Tx: '+ e.message) } }, - async sendDenomTrace({ value, fee, memo }: sendDenomTraceParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendDenomTrace: 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.denomTrace({ value: DenomTrace.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:sendDenomTrace: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendAllocation({ value, fee, memo }: sendAllocationParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: 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.params({ value: Params.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:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAllocation: 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 sendTransferAuthorization({ value, fee, memo }: sendTransferAuthorizationParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendTransferAuthorization: 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.transferAuthorization({ value: TransferAuthorization.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:sendTransferAuthorization: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, @@ -468,31 +440,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendAllocation({ value, fee, memo }: sendAllocationParams): Promise { + async sendQueryDenomTraceRequest({ value, fee, memo }: sendQueryDenomTraceRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendAllocation: 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.allocation({ value: Allocation.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:sendAllocation: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomTraceRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendQueryDenomTracesResponse({ value, fee, memo }: sendQueryDenomTracesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: 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.queryParamsRequest({ value: QueryParamsRequest.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:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomTracesResponse: Could not broadcast Tx: '+ e.message) } }, @@ -510,156 +482,168 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgTransfer({ value, fee, memo }: sendMsgTransferParams): Promise { + async sendQueryDenomHashRequest({ value, fee, memo }: sendQueryDenomHashRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgTransfer: 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.msgTransfer({ value: MsgTransfer.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:sendMsgTransfer: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryDenomHashRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendQueryEscrowAddressRequest({ value, fee, memo }: sendQueryEscrowAddressRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.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:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryEscrowAddressRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryDenomTracesResponse({ value, fee, memo }: sendQueryDenomTracesResponseParams): Promise { + async sendDenomTrace({ value, fee, memo }: sendDenomTraceParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryDenomTracesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendDenomTrace: Unable to 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.denomTrace({ value: DenomTrace.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:sendDenomTrace: Could not broadcast Tx: '+ e.message) } }, - async sendQueryTotalEscrowForDenomRequest({ value, fee, memo }: sendQueryTotalEscrowForDenomRequestParams): Promise { + async sendQueryTotalEscrowForDenomResponse({ value, fee, memo }: sendQueryTotalEscrowForDenomResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryTotalEscrowForDenomRequest: 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.queryTotalEscrowForDenomRequest({ value: QueryTotalEscrowForDenomRequest.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:sendQueryTotalEscrowForDenomRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryTotalEscrowForDenomResponse: Could not broadcast Tx: '+ e.message) } }, - - queryDenomTraceRequest({ value }: queryDenomTraceRequestParams): EncodeObject { - try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", value: QueryDenomTraceRequest.fromPartial( value ) } + async sendTransferAuthorization({ value, fee, memo }: sendTransferAuthorizationParams): Promise { + if (!signer) { + 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.transferAuthorization({ value: TransferAuthorization.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:QueryDenomTraceRequest: Could not create message: ' + e.message) + throw new Error('TxClient:sendTransferAuthorization: Could not broadcast Tx: '+ e.message) } }, - queryTotalEscrowForDenomResponse({ value }: queryTotalEscrowForDenomResponseParams): EncodeObject { - try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse", value: QueryTotalEscrowForDenomResponse.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:QueryTotalEscrowForDenomResponse: Could not create message: ' + e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ 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) } }, - queryDenomHashResponse({ value }: queryDenomHashResponseParams): EncodeObject { + queryDenomTracesRequest({ value }: queryDenomTracesRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", value: QueryDenomHashResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", value: QueryDenomTracesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomHashResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomTracesRequest: Could not create message: ' + e.message) } }, - queryEscrowAddressRequest({ value }: queryEscrowAddressRequestParams): EncodeObject { + queryDenomHashResponse({ value }: queryDenomHashResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", value: QueryEscrowAddressRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", value: QueryDenomHashResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryEscrowAddressRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomHashResponse: Could not create message: ' + e.message) } }, - queryEscrowAddressResponse({ value }: queryEscrowAddressResponseParams): EncodeObject { + queryTotalEscrowForDenomRequest({ value }: queryTotalEscrowForDenomRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", value: QueryEscrowAddressResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest", value: QueryTotalEscrowForDenomRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryEscrowAddressResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalEscrowForDenomRequest: Could not create message: ' + e.message) } }, - queryDenomTraceResponse({ value }: queryDenomTraceResponseParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceResponse", value: QueryDenomTraceResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomTraceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - queryDenomTracesRequest({ value }: queryDenomTracesRequestParams): EncodeObject { + msgTransfer({ value }: msgTransferParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesRequest", value: QueryDenomTracesRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", value: MsgTransfer.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomTracesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgTransfer: Could not create message: ' + e.message) } }, - denomTrace({ value }: denomTraceParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.DenomTrace", value: DenomTrace.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:DenomTrace: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + allocation({ value }: allocationParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.Allocation", value: Allocation.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:Allocation: Could not create message: ' + e.message) } }, - queryDenomHashRequest({ value }: queryDenomHashRequestParams): EncodeObject { + queryEscrowAddressResponse({ value }: queryEscrowAddressResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", value: QueryDenomHashRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", value: QueryEscrowAddressResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomHashRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryEscrowAddressResponse: Could not create message: ' + e.message) } }, - transferAuthorization({ value }: transferAuthorizationParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.TransferAuthorization", value: TransferAuthorization.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:TransferAuthorization: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, @@ -679,19 +663,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - allocation({ value }: allocationParams): EncodeObject { + queryDenomTraceRequest({ value }: queryDenomTraceRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.Allocation", value: Allocation.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTraceRequest", value: QueryDenomTraceRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Allocation: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomTraceRequest: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + queryDenomTracesResponse({ value }: queryDenomTracesResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", value: QueryDenomTracesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomTracesResponse: Could not create message: ' + e.message) } }, @@ -703,35 +687,51 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgTransfer({ value }: msgTransferParams): EncodeObject { + queryDenomHashRequest({ value }: queryDenomHashRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", value: MsgTransfer.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", value: QueryDenomHashRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgTransfer: Could not create message: ' + e.message) + throw new Error('TxClient:QueryDenomHashRequest: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + queryEscrowAddressRequest({ value }: queryEscrowAddressRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", value: QueryEscrowAddressRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryEscrowAddressRequest: Could not create message: ' + e.message) } }, - queryDenomTracesResponse({ value }: queryDenomTracesResponseParams): EncodeObject { + denomTrace({ value }: denomTraceParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", value: QueryDenomTracesResponse.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.DenomTrace", value: DenomTrace.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryDenomTracesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:DenomTrace: Could not create message: ' + e.message) } }, - queryTotalEscrowForDenomRequest({ value }: queryTotalEscrowForDenomRequestParams): EncodeObject { + queryTotalEscrowForDenomResponse({ value }: queryTotalEscrowForDenomResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest", value: QueryTotalEscrowForDenomRequest.fromPartial( value ) } + return { typeUrl: "/ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse", value: QueryTotalEscrowForDenomResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryTotalEscrowForDenomRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryTotalEscrowForDenomResponse: Could not create message: ' + e.message) + } + }, + + transferAuthorization({ value }: transferAuthorizationParams): EncodeObject { + try { + return { typeUrl: "/ibc.applications.transfer.v1.TransferAuthorization", value: TransferAuthorization.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:TransferAuthorization: Could not create message: ' + e.message) + } + }, + + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + try { + return { typeUrl: "/ibc.applications.transfer.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/ibc.applications.transfer.v1/registry.ts b/ts-client/ibc.applications.transfer.v1/registry.ts index cfb2c1675..47dc1e9f8 100755 --- a/ts-client/ibc.applications.transfer.v1/registry.ts +++ b/ts-client/ibc.applications.transfer.v1/registry.ts @@ -1,48 +1,48 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { QueryDenomTraceRequest } 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 { QueryDenomHashResponse } from "./types/ibc/applications/transfer/v1/query"; -import { QueryEscrowAddressRequest } from "./types/ibc/applications/transfer/v1/query"; -import { QueryEscrowAddressResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryDenomTraceResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryDenomTracesRequest } from "./types/ibc/applications/transfer/v1/query"; -import { DenomTrace } from "./types/ibc/applications/transfer/v1/transfer"; +import { QueryDenomHashResponse } 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 { QueryDenomHashRequest } from "./types/ibc/applications/transfer/v1/query"; -import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz"; +import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx"; +import { QueryParamsRequest } from "./types/ibc/applications/transfer/v1/query"; +import { Allocation } from "./types/ibc/applications/transfer/v1/authz"; +import { QueryEscrowAddressResponse } from "./types/ibc/applications/transfer/v1/query"; +import { GenesisState } from "./types/ibc/applications/transfer/v1/genesis"; import { MsgTransferResponse } from "./types/ibc/applications/transfer/v1/tx"; import { MsgUpdateParamsResponse } from "./types/ibc/applications/transfer/v1/tx"; -import { Allocation } from "./types/ibc/applications/transfer/v1/authz"; -import { QueryParamsRequest } from "./types/ibc/applications/transfer/v1/query"; +import { QueryDenomTraceRequest } from "./types/ibc/applications/transfer/v1/query"; +import { QueryDenomTracesResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryParamsResponse } from "./types/ibc/applications/transfer/v1/query"; -import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx"; +import { QueryDenomHashRequest } from "./types/ibc/applications/transfer/v1/query"; +import { QueryEscrowAddressRequest } from "./types/ibc/applications/transfer/v1/query"; +import { DenomTrace } from "./types/ibc/applications/transfer/v1/transfer"; +import { QueryTotalEscrowForDenomResponse } from "./types/ibc/applications/transfer/v1/query"; +import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz"; import { MsgUpdateParams } from "./types/ibc/applications/transfer/v1/tx"; -import { QueryDenomTracesResponse } from "./types/ibc/applications/transfer/v1/query"; -import { QueryTotalEscrowForDenomRequest } from "./types/ibc/applications/transfer/v1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/ibc.applications.transfer.v1.QueryDenomTraceRequest", QueryDenomTraceRequest], - ["/ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse", QueryTotalEscrowForDenomResponse], - ["/ibc.applications.transfer.v1.GenesisState", GenesisState], - ["/ibc.applications.transfer.v1.QueryDenomHashResponse", QueryDenomHashResponse], - ["/ibc.applications.transfer.v1.QueryEscrowAddressRequest", QueryEscrowAddressRequest], - ["/ibc.applications.transfer.v1.QueryEscrowAddressResponse", QueryEscrowAddressResponse], ["/ibc.applications.transfer.v1.QueryDenomTraceResponse", QueryDenomTraceResponse], ["/ibc.applications.transfer.v1.QueryDenomTracesRequest", QueryDenomTracesRequest], - ["/ibc.applications.transfer.v1.DenomTrace", DenomTrace], + ["/ibc.applications.transfer.v1.QueryDenomHashResponse", QueryDenomHashResponse], + ["/ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest", QueryTotalEscrowForDenomRequest], ["/ibc.applications.transfer.v1.Params", Params], - ["/ibc.applications.transfer.v1.QueryDenomHashRequest", QueryDenomHashRequest], - ["/ibc.applications.transfer.v1.TransferAuthorization", TransferAuthorization], + ["/ibc.applications.transfer.v1.MsgTransfer", MsgTransfer], + ["/ibc.applications.transfer.v1.QueryParamsRequest", QueryParamsRequest], + ["/ibc.applications.transfer.v1.Allocation", Allocation], + ["/ibc.applications.transfer.v1.QueryEscrowAddressResponse", QueryEscrowAddressResponse], + ["/ibc.applications.transfer.v1.GenesisState", GenesisState], ["/ibc.applications.transfer.v1.MsgTransferResponse", MsgTransferResponse], ["/ibc.applications.transfer.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/ibc.applications.transfer.v1.Allocation", Allocation], - ["/ibc.applications.transfer.v1.QueryParamsRequest", QueryParamsRequest], + ["/ibc.applications.transfer.v1.QueryDenomTraceRequest", QueryDenomTraceRequest], + ["/ibc.applications.transfer.v1.QueryDenomTracesResponse", QueryDenomTracesResponse], ["/ibc.applications.transfer.v1.QueryParamsResponse", QueryParamsResponse], - ["/ibc.applications.transfer.v1.MsgTransfer", MsgTransfer], + ["/ibc.applications.transfer.v1.QueryDenomHashRequest", QueryDenomHashRequest], + ["/ibc.applications.transfer.v1.QueryEscrowAddressRequest", QueryEscrowAddressRequest], + ["/ibc.applications.transfer.v1.DenomTrace", DenomTrace], + ["/ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse", QueryTotalEscrowForDenomResponse], + ["/ibc.applications.transfer.v1.TransferAuthorization", TransferAuthorization], ["/ibc.applications.transfer.v1.MsgUpdateParams", MsgUpdateParams], - ["/ibc.applications.transfer.v1.QueryDenomTracesResponse", QueryDenomTracesResponse], - ["/ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest", QueryTotalEscrowForDenomRequest], ]; diff --git a/ts-client/ibc.core.channel.v1/module.ts b/ts-client/ibc.core.channel.v1/module.ts index bf5cdde1f..1542639e7 100755 --- a/ts-client/ibc.core.channel.v1/module.ts +++ b/ts-client/ibc.core.channel.v1/module.ts @@ -6,70 +6,70 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgAcknowledgementResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryUnreceivedPacketsRequest } from "./types/ibc/core/channel/v1/query"; import { QueryChannelClientStateResponse } from "./types/ibc/core/channel/v1/query"; import { QueryConnectionChannelsRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedAcksRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelCloseInitResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryPacketCommitmentRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketReceiptResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelOpenAckResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenConfirmResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelClientStateRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUnreceivedPacketsResponse } from "./types/ibc/core/channel/v1/query"; -import { Timeout } from "./types/ibc/core/channel/v1/channel"; -import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelsRequest } from "./types/ibc/core/channel/v1/query"; import { MsgChannelOpenInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryNextSequenceReceiveResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketCommitmentResponse } from "./types/ibc/core/channel/v1/query"; +import { PacketSequence } from "./types/ibc/core/channel/v1/genesis"; +import { PacketId } from "./types/ibc/core/channel/v1/channel"; +import { QueryChannelConsensusStateResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; import { QueryPacketCommitmentsRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelOpenConfirm } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenTryResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelClientStateRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryConnectionChannelsResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgTimeoutResponse } 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 { Channel } from "./types/ibc/core/channel/v1/channel"; -import { QueryNextSequenceSendRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; -import { PacketId } from "./types/ibc/core/channel/v1/channel"; -import { MsgRecvPacketResponse } from "./types/ibc/core/channel/v1/tx"; import { Counterparty } from "./types/ibc/core/channel/v1/channel"; -import { QueryChannelConsensusStateRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; import { MsgTimeout } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; -import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeoutOnCloseResponse } from "./types/ibc/core/channel/v1/tx"; -import { PacketSequence } from "./types/ibc/core/channel/v1/genesis"; +import { IdentifiedChannel } from "./types/ibc/core/channel/v1/channel"; +import { QueryNextSequenceReceiveRequest } from "./types/ibc/core/channel/v1/query"; +import { PacketState } from "./types/ibc/core/channel/v1/channel"; +import { MsgAcknowledgementResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketAcknowledgementsResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedPacketsResponse } from "./types/ibc/core/channel/v1/query"; import { MsgChannelCloseConfirmResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeoutResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; +import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenConfirmResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryNextSequenceSendResponse } from "./types/ibc/core/channel/v1/query"; import { GenesisState } from "./types/ibc/core/channel/v1/genesis"; -import { QueryUnreceivedAcksRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; -import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelCloseInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelsRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketCommitmentsResponse } 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 { QueryChannelResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketCommitmentResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketAcknowledgementRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketReceiptRequest } 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 { Acknowledgement } from "./types/ibc/core/channel/v1/channel"; +import { MsgChannelOpenTryResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryNextSequenceSendRequest } from "./types/ibc/core/channel/v1/query"; import { Packet } from "./types/ibc/core/channel/v1/channel"; -import { IdentifiedChannel } from "./types/ibc/core/channel/v1/channel"; -import { QueryConnectionChannelsResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketReceiptResponse } from "./types/ibc/core/channel/v1/query"; -import { PacketState } from "./types/ibc/core/channel/v1/channel"; +import { MsgTimeoutOnCloseResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryChannelsResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketReceiptRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryNextSequenceReceiveRequest } from "./types/ibc/core/channel/v1/query"; -import { Acknowledgement } from "./types/ibc/core/channel/v1/channel"; -import { QueryPacketAcknowledgementsRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketAcknowledgementsResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryChannelConsensusStateResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryNextSequenceReceiveResponse } from "./types/ibc/core/channel/v1/query"; +import { Timeout } from "./types/ibc/core/channel/v1/channel"; +import { MsgRecvPacketResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelConsensusStateRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementResponse } from "./types/ibc/core/channel/v1/query"; -export { MsgAcknowledgementResponse, QueryChannelClientStateResponse, QueryConnectionChannelsRequest, QueryPacketCommitmentRequest, MsgChannelOpenAckResponse, MsgChannelOpenConfirmResponse, QueryChannelClientStateRequest, QueryUnreceivedPacketsResponse, Timeout, MsgChannelOpenAck, MsgChannelOpenInitResponse, QueryChannelRequest, QueryNextSequenceReceiveResponse, MsgChannelOpenInit, QueryPacketCommitmentsRequest, MsgChannelOpenTry, MsgChannelOpenConfirm, MsgChannelOpenTryResponse, Channel, QueryNextSequenceSendRequest, MsgChannelCloseInit, PacketId, MsgRecvPacketResponse, Counterparty, QueryChannelConsensusStateRequest, MsgTimeout, MsgTimeoutOnClose, MsgAcknowledgement, MsgTimeoutOnCloseResponse, PacketSequence, MsgChannelCloseConfirmResponse, MsgTimeoutResponse, GenesisState, QueryUnreceivedAcksRequest, MsgChannelCloseConfirm, MsgRecvPacket, MsgChannelCloseInitResponse, QueryChannelsRequest, QueryPacketCommitmentsResponse, QueryPacketAcknowledgementResponse, QueryUnreceivedPacketsRequest, QueryChannelResponse, QueryPacketCommitmentResponse, QueryPacketAcknowledgementRequest, QueryUnreceivedAcksResponse, QueryNextSequenceSendResponse, Packet, IdentifiedChannel, QueryConnectionChannelsResponse, QueryPacketReceiptResponse, PacketState, QueryChannelsResponse, QueryPacketReceiptRequest, QueryNextSequenceReceiveRequest, Acknowledgement, QueryPacketAcknowledgementsRequest, QueryPacketAcknowledgementsResponse, QueryChannelConsensusStateResponse }; +export { QueryUnreceivedPacketsRequest, QueryChannelClientStateResponse, QueryConnectionChannelsRequest, QueryUnreceivedAcksRequest, MsgChannelCloseInitResponse, QueryPacketCommitmentRequest, QueryPacketAcknowledgementRequest, MsgChannelCloseInit, QueryPacketReceiptResponse, MsgTimeoutOnClose, MsgChannelOpenAckResponse, QueryChannelsRequest, MsgChannelOpenInitResponse, QueryChannelResponse, QueryPacketCommitmentResponse, PacketSequence, PacketId, QueryChannelConsensusStateResponse, MsgRecvPacket, QueryPacketCommitmentsRequest, MsgChannelOpenConfirm, MsgChannelCloseConfirm, QueryChannelClientStateRequest, QueryConnectionChannelsResponse, MsgTimeoutResponse, QueryPacketCommitmentsResponse, QueryPacketAcknowledgementsRequest, Channel, Counterparty, MsgChannelOpenInit, MsgChannelOpenTry, MsgTimeout, IdentifiedChannel, QueryNextSequenceReceiveRequest, PacketState, MsgAcknowledgementResponse, QueryPacketAcknowledgementsResponse, QueryUnreceivedPacketsResponse, MsgChannelCloseConfirmResponse, QueryChannelRequest, MsgChannelOpenAck, MsgAcknowledgement, MsgChannelOpenConfirmResponse, QueryNextSequenceSendResponse, GenesisState, QueryPacketReceiptRequest, QueryUnreceivedAcksResponse, Acknowledgement, MsgChannelOpenTryResponse, QueryNextSequenceSendRequest, Packet, MsgTimeoutOnCloseResponse, QueryChannelsResponse, QueryNextSequenceReceiveResponse, Timeout, MsgRecvPacketResponse, QueryChannelConsensusStateRequest, QueryPacketAcknowledgementResponse }; -type sendMsgAcknowledgementResponseParams = { - value: MsgAcknowledgementResponse, +type sendQueryUnreceivedPacketsRequestParams = { + value: QueryUnreceivedPacketsRequest, fee?: StdFee, memo?: string }; @@ -86,339 +86,339 @@ type sendQueryConnectionChannelsRequestParams = { memo?: string }; -type sendQueryPacketCommitmentRequestParams = { - value: QueryPacketCommitmentRequest, +type sendQueryUnreceivedAcksRequestParams = { + value: QueryUnreceivedAcksRequest, fee?: StdFee, memo?: string }; -type sendMsgChannelOpenAckResponseParams = { - value: MsgChannelOpenAckResponse, +type sendMsgChannelCloseInitResponseParams = { + value: MsgChannelCloseInitResponse, fee?: StdFee, memo?: string }; -type sendMsgChannelOpenConfirmResponseParams = { - value: MsgChannelOpenConfirmResponse, +type sendQueryPacketCommitmentRequestParams = { + value: QueryPacketCommitmentRequest, fee?: StdFee, memo?: string }; -type sendQueryChannelClientStateRequestParams = { - value: QueryChannelClientStateRequest, +type sendQueryPacketAcknowledgementRequestParams = { + value: QueryPacketAcknowledgementRequest, fee?: StdFee, memo?: string }; -type sendQueryUnreceivedPacketsResponseParams = { - value: QueryUnreceivedPacketsResponse, +type sendMsgChannelCloseInitParams = { + value: MsgChannelCloseInit, fee?: StdFee, memo?: string }; -type sendTimeoutParams = { - value: Timeout, +type sendQueryPacketReceiptResponseParams = { + value: QueryPacketReceiptResponse, fee?: StdFee, memo?: string }; -type sendMsgChannelOpenAckParams = { - value: MsgChannelOpenAck, +type sendMsgTimeoutOnCloseParams = { + value: MsgTimeoutOnClose, fee?: StdFee, memo?: string }; -type sendMsgChannelOpenInitResponseParams = { - value: MsgChannelOpenInitResponse, +type sendMsgChannelOpenAckResponseParams = { + value: MsgChannelOpenAckResponse, fee?: StdFee, memo?: string }; -type sendQueryChannelRequestParams = { - value: QueryChannelRequest, +type sendQueryChannelsRequestParams = { + value: QueryChannelsRequest, fee?: StdFee, memo?: string }; -type sendQueryNextSequenceReceiveResponseParams = { - value: QueryNextSequenceReceiveResponse, +type sendMsgChannelOpenInitResponseParams = { + value: MsgChannelOpenInitResponse, fee?: StdFee, memo?: string }; -type sendMsgChannelOpenInitParams = { - value: MsgChannelOpenInit, +type sendQueryChannelResponseParams = { + value: QueryChannelResponse, fee?: StdFee, memo?: string }; -type sendQueryPacketCommitmentsRequestParams = { - value: QueryPacketCommitmentsRequest, +type sendQueryPacketCommitmentResponseParams = { + value: QueryPacketCommitmentResponse, fee?: StdFee, memo?: string }; -type sendMsgChannelOpenTryParams = { - value: MsgChannelOpenTry, +type sendPacketSequenceParams = { + value: PacketSequence, fee?: StdFee, memo?: string }; -type sendMsgChannelOpenConfirmParams = { - value: MsgChannelOpenConfirm, +type sendPacketIdParams = { + value: PacketId, fee?: StdFee, memo?: string }; -type sendMsgChannelOpenTryResponseParams = { - value: MsgChannelOpenTryResponse, +type sendQueryChannelConsensusStateResponseParams = { + value: QueryChannelConsensusStateResponse, fee?: StdFee, memo?: string }; -type sendChannelParams = { - value: Channel, +type sendMsgRecvPacketParams = { + value: MsgRecvPacket, fee?: StdFee, memo?: string }; -type sendQueryNextSequenceSendRequestParams = { - value: QueryNextSequenceSendRequest, +type sendQueryPacketCommitmentsRequestParams = { + value: QueryPacketCommitmentsRequest, fee?: StdFee, memo?: string }; -type sendMsgChannelCloseInitParams = { - value: MsgChannelCloseInit, +type sendMsgChannelOpenConfirmParams = { + value: MsgChannelOpenConfirm, fee?: StdFee, memo?: string }; -type sendPacketIdParams = { - value: PacketId, +type sendMsgChannelCloseConfirmParams = { + value: MsgChannelCloseConfirm, fee?: StdFee, memo?: string }; -type sendMsgRecvPacketResponseParams = { - value: MsgRecvPacketResponse, +type sendQueryChannelClientStateRequestParams = { + value: QueryChannelClientStateRequest, fee?: StdFee, memo?: string }; -type sendCounterpartyParams = { - value: Counterparty, +type sendQueryConnectionChannelsResponseParams = { + value: QueryConnectionChannelsResponse, fee?: StdFee, memo?: string }; -type sendQueryChannelConsensusStateRequestParams = { - value: QueryChannelConsensusStateRequest, +type sendMsgTimeoutResponseParams = { + value: MsgTimeoutResponse, fee?: StdFee, memo?: string }; -type sendMsgTimeoutParams = { - value: MsgTimeout, +type sendQueryPacketCommitmentsResponseParams = { + value: QueryPacketCommitmentsResponse, fee?: StdFee, memo?: string }; -type sendMsgTimeoutOnCloseParams = { - value: MsgTimeoutOnClose, +type sendQueryPacketAcknowledgementsRequestParams = { + value: QueryPacketAcknowledgementsRequest, fee?: StdFee, memo?: string }; -type sendMsgAcknowledgementParams = { - value: MsgAcknowledgement, +type sendChannelParams = { + value: Channel, fee?: StdFee, memo?: string }; -type sendMsgTimeoutOnCloseResponseParams = { - value: MsgTimeoutOnCloseResponse, +type sendCounterpartyParams = { + value: Counterparty, fee?: StdFee, memo?: string }; -type sendPacketSequenceParams = { - value: PacketSequence, +type sendMsgChannelOpenInitParams = { + value: MsgChannelOpenInit, fee?: StdFee, memo?: string }; -type sendMsgChannelCloseConfirmResponseParams = { - value: MsgChannelCloseConfirmResponse, +type sendMsgChannelOpenTryParams = { + value: MsgChannelOpenTry, fee?: StdFee, memo?: string }; -type sendMsgTimeoutResponseParams = { - value: MsgTimeoutResponse, +type sendMsgTimeoutParams = { + value: MsgTimeout, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendIdentifiedChannelParams = { + value: IdentifiedChannel, fee?: StdFee, memo?: string }; -type sendQueryUnreceivedAcksRequestParams = { - value: QueryUnreceivedAcksRequest, +type sendQueryNextSequenceReceiveRequestParams = { + value: QueryNextSequenceReceiveRequest, fee?: StdFee, memo?: string }; -type sendMsgChannelCloseConfirmParams = { - value: MsgChannelCloseConfirm, +type sendPacketStateParams = { + value: PacketState, fee?: StdFee, memo?: string }; -type sendMsgRecvPacketParams = { - value: MsgRecvPacket, +type sendMsgAcknowledgementResponseParams = { + value: MsgAcknowledgementResponse, fee?: StdFee, memo?: string }; -type sendMsgChannelCloseInitResponseParams = { - value: MsgChannelCloseInitResponse, +type sendQueryPacketAcknowledgementsResponseParams = { + value: QueryPacketAcknowledgementsResponse, fee?: StdFee, memo?: string }; -type sendQueryChannelsRequestParams = { - value: QueryChannelsRequest, +type sendQueryUnreceivedPacketsResponseParams = { + value: QueryUnreceivedPacketsResponse, fee?: StdFee, memo?: string }; -type sendQueryPacketCommitmentsResponseParams = { - value: QueryPacketCommitmentsResponse, +type sendMsgChannelCloseConfirmResponseParams = { + value: MsgChannelCloseConfirmResponse, fee?: StdFee, memo?: string }; -type sendQueryPacketAcknowledgementResponseParams = { - value: QueryPacketAcknowledgementResponse, +type sendQueryChannelRequestParams = { + value: QueryChannelRequest, fee?: StdFee, memo?: string }; -type sendQueryUnreceivedPacketsRequestParams = { - value: QueryUnreceivedPacketsRequest, +type sendMsgChannelOpenAckParams = { + value: MsgChannelOpenAck, fee?: StdFee, memo?: string }; -type sendQueryChannelResponseParams = { - value: QueryChannelResponse, +type sendMsgAcknowledgementParams = { + value: MsgAcknowledgement, fee?: StdFee, memo?: string }; -type sendQueryPacketCommitmentResponseParams = { - value: QueryPacketCommitmentResponse, +type sendMsgChannelOpenConfirmResponseParams = { + value: MsgChannelOpenConfirmResponse, fee?: StdFee, memo?: string }; -type sendQueryPacketAcknowledgementRequestParams = { - value: QueryPacketAcknowledgementRequest, +type sendQueryNextSequenceSendResponseParams = { + value: QueryNextSequenceSendResponse, fee?: StdFee, memo?: string }; -type sendQueryUnreceivedAcksResponseParams = { - value: QueryUnreceivedAcksResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendQueryNextSequenceSendResponseParams = { - value: QueryNextSequenceSendResponse, +type sendQueryPacketReceiptRequestParams = { + value: QueryPacketReceiptRequest, fee?: StdFee, memo?: string }; -type sendPacketParams = { - value: Packet, +type sendQueryUnreceivedAcksResponseParams = { + value: QueryUnreceivedAcksResponse, fee?: StdFee, memo?: string }; -type sendIdentifiedChannelParams = { - value: IdentifiedChannel, +type sendAcknowledgementParams = { + value: Acknowledgement, fee?: StdFee, memo?: string }; -type sendQueryConnectionChannelsResponseParams = { - value: QueryConnectionChannelsResponse, +type sendMsgChannelOpenTryResponseParams = { + value: MsgChannelOpenTryResponse, fee?: StdFee, memo?: string }; -type sendQueryPacketReceiptResponseParams = { - value: QueryPacketReceiptResponse, +type sendQueryNextSequenceSendRequestParams = { + value: QueryNextSequenceSendRequest, fee?: StdFee, memo?: string }; -type sendPacketStateParams = { - value: PacketState, +type sendPacketParams = { + value: Packet, fee?: StdFee, memo?: string }; -type sendQueryChannelsResponseParams = { - value: QueryChannelsResponse, +type sendMsgTimeoutOnCloseResponseParams = { + value: MsgTimeoutOnCloseResponse, fee?: StdFee, memo?: string }; -type sendQueryPacketReceiptRequestParams = { - value: QueryPacketReceiptRequest, +type sendQueryChannelsResponseParams = { + value: QueryChannelsResponse, fee?: StdFee, memo?: string }; -type sendQueryNextSequenceReceiveRequestParams = { - value: QueryNextSequenceReceiveRequest, +type sendQueryNextSequenceReceiveResponseParams = { + value: QueryNextSequenceReceiveResponse, fee?: StdFee, memo?: string }; -type sendAcknowledgementParams = { - value: Acknowledgement, +type sendTimeoutParams = { + value: Timeout, fee?: StdFee, memo?: string }; -type sendQueryPacketAcknowledgementsRequestParams = { - value: QueryPacketAcknowledgementsRequest, +type sendMsgRecvPacketResponseParams = { + value: MsgRecvPacketResponse, fee?: StdFee, memo?: string }; -type sendQueryPacketAcknowledgementsResponseParams = { - value: QueryPacketAcknowledgementsResponse, +type sendQueryChannelConsensusStateRequestParams = { + value: QueryChannelConsensusStateRequest, fee?: StdFee, memo?: string }; -type sendQueryChannelConsensusStateResponseParams = { - value: QueryChannelConsensusStateResponse, +type sendQueryPacketAcknowledgementResponseParams = { + value: QueryPacketAcknowledgementResponse, fee?: StdFee, memo?: string }; -type msgAcknowledgementResponseParams = { - value: MsgAcknowledgementResponse, +type queryUnreceivedPacketsRequestParams = { + value: QueryUnreceivedPacketsRequest, }; type queryChannelClientStateResponseParams = { @@ -429,224 +429,224 @@ type queryConnectionChannelsRequestParams = { value: QueryConnectionChannelsRequest, }; +type queryUnreceivedAcksRequestParams = { + value: QueryUnreceivedAcksRequest, +}; + +type msgChannelCloseInitResponseParams = { + value: MsgChannelCloseInitResponse, +}; + type queryPacketCommitmentRequestParams = { value: QueryPacketCommitmentRequest, }; -type msgChannelOpenAckResponseParams = { - value: MsgChannelOpenAckResponse, +type queryPacketAcknowledgementRequestParams = { + value: QueryPacketAcknowledgementRequest, }; -type msgChannelOpenConfirmResponseParams = { - value: MsgChannelOpenConfirmResponse, +type msgChannelCloseInitParams = { + value: MsgChannelCloseInit, }; -type queryChannelClientStateRequestParams = { - value: QueryChannelClientStateRequest, +type queryPacketReceiptResponseParams = { + value: QueryPacketReceiptResponse, }; -type queryUnreceivedPacketsResponseParams = { - value: QueryUnreceivedPacketsResponse, +type msgTimeoutOnCloseParams = { + value: MsgTimeoutOnClose, }; -type timeoutParams = { - value: Timeout, +type msgChannelOpenAckResponseParams = { + value: MsgChannelOpenAckResponse, }; -type msgChannelOpenAckParams = { - value: MsgChannelOpenAck, +type queryChannelsRequestParams = { + value: QueryChannelsRequest, }; type msgChannelOpenInitResponseParams = { value: MsgChannelOpenInitResponse, }; -type queryChannelRequestParams = { - value: QueryChannelRequest, +type queryChannelResponseParams = { + value: QueryChannelResponse, }; -type queryNextSequenceReceiveResponseParams = { - value: QueryNextSequenceReceiveResponse, +type queryPacketCommitmentResponseParams = { + value: QueryPacketCommitmentResponse, }; -type msgChannelOpenInitParams = { - value: MsgChannelOpenInit, +type packetSequenceParams = { + value: PacketSequence, }; -type queryPacketCommitmentsRequestParams = { - value: QueryPacketCommitmentsRequest, +type packetIdParams = { + value: PacketId, }; -type msgChannelOpenTryParams = { - value: MsgChannelOpenTry, +type queryChannelConsensusStateResponseParams = { + value: QueryChannelConsensusStateResponse, }; -type msgChannelOpenConfirmParams = { - value: MsgChannelOpenConfirm, +type msgRecvPacketParams = { + value: MsgRecvPacket, }; -type msgChannelOpenTryResponseParams = { - value: MsgChannelOpenTryResponse, +type queryPacketCommitmentsRequestParams = { + value: QueryPacketCommitmentsRequest, }; -type channelParams = { - value: Channel, +type msgChannelOpenConfirmParams = { + value: MsgChannelOpenConfirm, }; -type queryNextSequenceSendRequestParams = { - value: QueryNextSequenceSendRequest, +type msgChannelCloseConfirmParams = { + value: MsgChannelCloseConfirm, }; -type msgChannelCloseInitParams = { - value: MsgChannelCloseInit, +type queryChannelClientStateRequestParams = { + value: QueryChannelClientStateRequest, }; -type packetIdParams = { - value: PacketId, +type queryConnectionChannelsResponseParams = { + value: QueryConnectionChannelsResponse, }; -type msgRecvPacketResponseParams = { - value: MsgRecvPacketResponse, +type msgTimeoutResponseParams = { + value: MsgTimeoutResponse, }; -type counterpartyParams = { - value: Counterparty, +type queryPacketCommitmentsResponseParams = { + value: QueryPacketCommitmentsResponse, }; -type queryChannelConsensusStateRequestParams = { - value: QueryChannelConsensusStateRequest, +type queryPacketAcknowledgementsRequestParams = { + value: QueryPacketAcknowledgementsRequest, }; -type msgTimeoutParams = { - value: MsgTimeout, +type channelParams = { + value: Channel, }; -type msgTimeoutOnCloseParams = { - value: MsgTimeoutOnClose, +type counterpartyParams = { + value: Counterparty, }; -type msgAcknowledgementParams = { - value: MsgAcknowledgement, +type msgChannelOpenInitParams = { + value: MsgChannelOpenInit, }; -type msgTimeoutOnCloseResponseParams = { - value: MsgTimeoutOnCloseResponse, +type msgChannelOpenTryParams = { + value: MsgChannelOpenTry, }; -type packetSequenceParams = { - value: PacketSequence, +type msgTimeoutParams = { + value: MsgTimeout, }; -type msgChannelCloseConfirmResponseParams = { - value: MsgChannelCloseConfirmResponse, +type identifiedChannelParams = { + value: IdentifiedChannel, }; -type msgTimeoutResponseParams = { - value: MsgTimeoutResponse, +type queryNextSequenceReceiveRequestParams = { + value: QueryNextSequenceReceiveRequest, }; -type genesisStateParams = { - value: GenesisState, +type packetStateParams = { + value: PacketState, }; -type queryUnreceivedAcksRequestParams = { - value: QueryUnreceivedAcksRequest, +type msgAcknowledgementResponseParams = { + value: MsgAcknowledgementResponse, }; -type msgChannelCloseConfirmParams = { - value: MsgChannelCloseConfirm, +type queryPacketAcknowledgementsResponseParams = { + value: QueryPacketAcknowledgementsResponse, }; -type msgRecvPacketParams = { - value: MsgRecvPacket, +type queryUnreceivedPacketsResponseParams = { + value: QueryUnreceivedPacketsResponse, }; -type msgChannelCloseInitResponseParams = { - value: MsgChannelCloseInitResponse, +type msgChannelCloseConfirmResponseParams = { + value: MsgChannelCloseConfirmResponse, }; -type queryChannelsRequestParams = { - value: QueryChannelsRequest, +type queryChannelRequestParams = { + value: QueryChannelRequest, }; -type queryPacketCommitmentsResponseParams = { - value: QueryPacketCommitmentsResponse, +type msgChannelOpenAckParams = { + value: MsgChannelOpenAck, }; -type queryPacketAcknowledgementResponseParams = { - value: QueryPacketAcknowledgementResponse, +type msgAcknowledgementParams = { + value: MsgAcknowledgement, }; -type queryUnreceivedPacketsRequestParams = { - value: QueryUnreceivedPacketsRequest, +type msgChannelOpenConfirmResponseParams = { + value: MsgChannelOpenConfirmResponse, }; -type queryChannelResponseParams = { - value: QueryChannelResponse, +type queryNextSequenceSendResponseParams = { + value: QueryNextSequenceSendResponse, }; -type queryPacketCommitmentResponseParams = { - value: QueryPacketCommitmentResponse, +type genesisStateParams = { + value: GenesisState, }; -type queryPacketAcknowledgementRequestParams = { - value: QueryPacketAcknowledgementRequest, +type queryPacketReceiptRequestParams = { + value: QueryPacketReceiptRequest, }; type queryUnreceivedAcksResponseParams = { value: QueryUnreceivedAcksResponse, }; -type queryNextSequenceSendResponseParams = { - value: QueryNextSequenceSendResponse, -}; - -type packetParams = { - value: Packet, +type acknowledgementParams = { + value: Acknowledgement, }; -type identifiedChannelParams = { - value: IdentifiedChannel, +type msgChannelOpenTryResponseParams = { + value: MsgChannelOpenTryResponse, }; -type queryConnectionChannelsResponseParams = { - value: QueryConnectionChannelsResponse, +type queryNextSequenceSendRequestParams = { + value: QueryNextSequenceSendRequest, }; -type queryPacketReceiptResponseParams = { - value: QueryPacketReceiptResponse, +type packetParams = { + value: Packet, }; -type packetStateParams = { - value: PacketState, +type msgTimeoutOnCloseResponseParams = { + value: MsgTimeoutOnCloseResponse, }; type queryChannelsResponseParams = { value: QueryChannelsResponse, }; -type queryPacketReceiptRequestParams = { - value: QueryPacketReceiptRequest, -}; - -type queryNextSequenceReceiveRequestParams = { - value: QueryNextSequenceReceiveRequest, +type queryNextSequenceReceiveResponseParams = { + value: QueryNextSequenceReceiveResponse, }; -type acknowledgementParams = { - value: Acknowledgement, +type timeoutParams = { + value: Timeout, }; -type queryPacketAcknowledgementsRequestParams = { - value: QueryPacketAcknowledgementsRequest, +type msgRecvPacketResponseParams = { + value: MsgRecvPacketResponse, }; -type queryPacketAcknowledgementsResponseParams = { - value: QueryPacketAcknowledgementsResponse, +type queryChannelConsensusStateRequestParams = { + value: QueryChannelConsensusStateRequest, }; -type queryChannelConsensusStateResponseParams = { - value: QueryChannelConsensusStateResponse, +type queryPacketAcknowledgementResponseParams = { + value: QueryPacketAcknowledgementResponse, }; @@ -679,17 +679,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgAcknowledgementResponse({ value, fee, memo }: sendMsgAcknowledgementResponseParams): Promise { + async sendQueryUnreceivedPacketsRequest({ value, fee, memo }: sendQueryUnreceivedPacketsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAcknowledgementResponse: 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.msgAcknowledgementResponse({ value: MsgAcknowledgementResponse.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:sendMsgAcknowledgementResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUnreceivedPacketsRequest: Could not broadcast Tx: '+ e.message) } }, @@ -721,782 +721,782 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryPacketCommitmentRequest({ value, fee, memo }: sendQueryPacketCommitmentRequestParams): Promise { + async sendQueryUnreceivedAcksRequest({ value, fee, memo }: sendQueryUnreceivedAcksRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketCommitmentRequest: 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.queryPacketCommitmentRequest({ value: QueryPacketCommitmentRequest.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:sendQueryPacketCommitmentRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUnreceivedAcksRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelOpenAckResponse({ value, fee, memo }: sendMsgChannelOpenAckResponseParams): Promise { + async sendMsgChannelCloseInitResponse({ value, fee, memo }: sendMsgChannelCloseInitResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenAckResponse: 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.msgChannelOpenAckResponse({ value: MsgChannelOpenAckResponse.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:sendMsgChannelOpenAckResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelCloseInitResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelOpenConfirmResponse({ value, fee, memo }: sendMsgChannelOpenConfirmResponseParams): Promise { + async sendQueryPacketCommitmentRequest({ value, fee, memo }: sendQueryPacketCommitmentRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenConfirmResponse: Unable to sign Tx. Signer is not present.') + 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.msgChannelOpenConfirmResponse({ value: MsgChannelOpenConfirmResponse.fromPartial(value) }) + 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:sendMsgChannelOpenConfirmResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketCommitmentRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelClientStateRequest({ value, fee, memo }: sendQueryChannelClientStateRequestParams): Promise { + async sendQueryPacketAcknowledgementRequest({ value, fee, memo }: sendQueryPacketAcknowledgementRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelClientStateRequest: 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.queryChannelClientStateRequest({ value: QueryChannelClientStateRequest.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:sendQueryChannelClientStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketAcknowledgementRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUnreceivedPacketsResponse({ value, fee, memo }: sendQueryUnreceivedPacketsResponseParams): Promise { + async sendMsgChannelCloseInit({ value, fee, memo }: sendMsgChannelCloseInitParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUnreceivedPacketsResponse: 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.queryUnreceivedPacketsResponse({ value: QueryUnreceivedPacketsResponse.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:sendQueryUnreceivedPacketsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelCloseInit: Could not broadcast Tx: '+ e.message) } }, - async sendTimeout({ value, fee, memo }: sendTimeoutParams): Promise { + async sendQueryPacketReceiptResponse({ value, fee, memo }: sendQueryPacketReceiptResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendTimeout: 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.timeout({ value: Timeout.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:sendTimeout: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketReceiptResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelOpenAck({ value, fee, memo }: sendMsgChannelOpenAckParams): Promise { + async sendMsgTimeoutOnClose({ value, fee, memo }: sendMsgTimeoutOnCloseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenAck: 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.msgChannelOpenAck({ value: MsgChannelOpenAck.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:sendMsgChannelOpenAck: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgTimeoutOnClose: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelOpenInitResponse({ value, fee, memo }: sendMsgChannelOpenInitResponseParams): Promise { + async sendMsgChannelOpenAckResponse({ value, fee, memo }: sendMsgChannelOpenAckResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenInitResponse: 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.msgChannelOpenInitResponse({ value: MsgChannelOpenInitResponse.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:sendMsgChannelOpenInitResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelOpenAckResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelRequest({ value, fee, memo }: sendQueryChannelRequestParams): Promise { + async sendQueryChannelsRequest({ value, fee, memo }: sendQueryChannelsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelRequest: 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.queryChannelRequest({ value: QueryChannelRequest.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:sendQueryChannelRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryNextSequenceReceiveResponse({ value, fee, memo }: sendQueryNextSequenceReceiveResponseParams): Promise { + async sendMsgChannelOpenInitResponse({ value, fee, memo }: sendMsgChannelOpenInitResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryNextSequenceReceiveResponse: 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.queryNextSequenceReceiveResponse({ value: QueryNextSequenceReceiveResponse.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:sendQueryNextSequenceReceiveResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelOpenInitResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelOpenInit({ value, fee, memo }: sendMsgChannelOpenInitParams): Promise { + async sendQueryChannelResponse({ value, fee, memo }: sendQueryChannelResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenInit: 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.msgChannelOpenInit({ value: MsgChannelOpenInit.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:sendMsgChannelOpenInit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketCommitmentsRequest({ value, fee, memo }: sendQueryPacketCommitmentsRequestParams): Promise { + async sendQueryPacketCommitmentResponse({ value, fee, memo }: sendQueryPacketCommitmentResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketCommitmentsRequest: 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.queryPacketCommitmentsRequest({ value: QueryPacketCommitmentsRequest.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:sendQueryPacketCommitmentsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketCommitmentResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelOpenTry({ value, fee, memo }: sendMsgChannelOpenTryParams): Promise { + async sendPacketSequence({ value, fee, memo }: sendPacketSequenceParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenTry: 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.msgChannelOpenTry({ value: MsgChannelOpenTry.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:sendMsgChannelOpenTry: 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 sendPacketId({ value, fee, memo }: sendPacketIdParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenConfirm: 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.msgChannelOpenConfirm({ value: MsgChannelOpenConfirm.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:sendMsgChannelOpenConfirm: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPacketId: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelOpenTryResponse({ value, fee, memo }: sendMsgChannelOpenTryResponseParams): Promise { + async sendQueryChannelConsensusStateResponse({ value, fee, memo }: sendQueryChannelConsensusStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenTryResponse: 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.msgChannelOpenTryResponse({ value: MsgChannelOpenTryResponse.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:sendMsgChannelOpenTryResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelConsensusStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendChannel({ value, fee, memo }: sendChannelParams): Promise { + async sendMsgRecvPacket({ value, fee, memo }: sendMsgRecvPacketParams): Promise { if (!signer) { - throw new Error('TxClient:sendChannel: 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.channel({ value: Channel.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:sendChannel: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRecvPacket: Could not broadcast Tx: '+ e.message) } }, - async sendQueryNextSequenceSendRequest({ value, fee, memo }: sendQueryNextSequenceSendRequestParams): Promise { + async sendQueryPacketCommitmentsRequest({ value, fee, memo }: sendQueryPacketCommitmentsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryNextSequenceSendRequest: 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.queryNextSequenceSendRequest({ value: QueryNextSequenceSendRequest.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:sendQueryNextSequenceSendRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketCommitmentsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelCloseInit({ value, fee, memo }: sendMsgChannelCloseInitParams): Promise { + async sendMsgChannelOpenConfirm({ value, fee, memo }: sendMsgChannelOpenConfirmParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelCloseInit: 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.msgChannelCloseInit({ value: MsgChannelCloseInit.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:sendMsgChannelCloseInit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelOpenConfirm: Could not broadcast Tx: '+ e.message) } }, - async sendPacketId({ value, fee, memo }: sendPacketIdParams): Promise { + async sendMsgChannelCloseConfirm({ value, fee, memo }: sendMsgChannelCloseConfirmParams): Promise { if (!signer) { - throw new Error('TxClient:sendPacketId: 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.packetId({ value: PacketId.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:sendPacketId: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelCloseConfirm: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRecvPacketResponse({ value, fee, memo }: sendMsgRecvPacketResponseParams): Promise { + async sendQueryChannelClientStateRequest({ value, fee, memo }: sendQueryChannelClientStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRecvPacketResponse: 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.msgRecvPacketResponse({ value: MsgRecvPacketResponse.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:sendMsgRecvPacketResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelClientStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendCounterparty({ value, fee, memo }: sendCounterpartyParams): Promise { + async sendQueryConnectionChannelsResponse({ value, fee, memo }: sendQueryConnectionChannelsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendCounterparty: 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.counterparty({ value: Counterparty.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:sendCounterparty: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionChannelsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelConsensusStateRequest({ value, fee, memo }: sendQueryChannelConsensusStateRequestParams): Promise { + async sendMsgTimeoutResponse({ value, fee, memo }: sendMsgTimeoutResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelConsensusStateRequest: 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.queryChannelConsensusStateRequest({ value: QueryChannelConsensusStateRequest.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:sendQueryChannelConsensusStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgTimeoutResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgTimeout({ value, fee, memo }: sendMsgTimeoutParams): Promise { + async sendQueryPacketCommitmentsResponse({ value, fee, memo }: sendQueryPacketCommitmentsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgTimeout: 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.msgTimeout({ value: MsgTimeout.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:sendMsgTimeout: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketCommitmentsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgTimeoutOnClose({ value, fee, memo }: sendMsgTimeoutOnCloseParams): Promise { + async sendQueryPacketAcknowledgementsRequest({ value, fee, memo }: sendQueryPacketAcknowledgementsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgTimeoutOnClose: 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.msgTimeoutOnClose({ value: MsgTimeoutOnClose.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:sendMsgTimeoutOnClose: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketAcknowledgementsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAcknowledgement({ value, fee, memo }: sendMsgAcknowledgementParams): Promise { + async sendChannel({ value, fee, memo }: sendChannelParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAcknowledgement: 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.msgAcknowledgement({ value: MsgAcknowledgement.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:sendMsgAcknowledgement: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendChannel: Could not broadcast Tx: '+ e.message) } }, - async sendMsgTimeoutOnCloseResponse({ value, fee, memo }: sendMsgTimeoutOnCloseResponseParams): Promise { + async sendCounterparty({ value, fee, memo }: sendCounterpartyParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgTimeoutOnCloseResponse: 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.msgTimeoutOnCloseResponse({ value: MsgTimeoutOnCloseResponse.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:sendMsgTimeoutOnCloseResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCounterparty: Could not broadcast Tx: '+ e.message) } }, - async sendPacketSequence({ value, fee, memo }: sendPacketSequenceParams): Promise { + async sendMsgChannelOpenInit({ value, fee, memo }: sendMsgChannelOpenInitParams): Promise { if (!signer) { - throw new Error('TxClient:sendPacketSequence: 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.packetSequence({ value: PacketSequence.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:sendPacketSequence: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelOpenInit: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelCloseConfirmResponse({ value, fee, memo }: sendMsgChannelCloseConfirmResponseParams): Promise { + async sendMsgChannelOpenTry({ value, fee, memo }: sendMsgChannelOpenTryParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelCloseConfirmResponse: 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.msgChannelCloseConfirmResponse({ value: MsgChannelCloseConfirmResponse.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:sendMsgChannelCloseConfirmResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelOpenTry: Could not broadcast Tx: '+ e.message) } }, - async sendMsgTimeoutResponse({ value, fee, memo }: sendMsgTimeoutResponseParams): Promise { + async sendMsgTimeout({ value, fee, memo }: sendMsgTimeoutParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgTimeoutResponse: 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.msgTimeoutResponse({ value: MsgTimeoutResponse.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:sendMsgTimeoutResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgTimeout: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendIdentifiedChannel({ value, fee, memo }: sendIdentifiedChannelParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendIdentifiedChannel: Unable to 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.identifiedChannel({ value: IdentifiedChannel.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:sendIdentifiedChannel: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUnreceivedAcksRequest({ value, fee, memo }: sendQueryUnreceivedAcksRequestParams): Promise { + async sendQueryNextSequenceReceiveRequest({ value, fee, memo }: sendQueryNextSequenceReceiveRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUnreceivedAcksRequest: 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.queryUnreceivedAcksRequest({ value: QueryUnreceivedAcksRequest.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:sendQueryUnreceivedAcksRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryNextSequenceReceiveRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelCloseConfirm({ value, fee, memo }: sendMsgChannelCloseConfirmParams): Promise { + async sendPacketState({ value, fee, memo }: sendPacketStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelCloseConfirm: 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.msgChannelCloseConfirm({ value: MsgChannelCloseConfirm.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:sendMsgChannelCloseConfirm: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPacketState: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRecvPacket({ value, fee, memo }: sendMsgRecvPacketParams): Promise { + async sendMsgAcknowledgementResponse({ value, fee, memo }: sendMsgAcknowledgementResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRecvPacket: 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.msgRecvPacket({ value: MsgRecvPacket.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:sendMsgRecvPacket: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAcknowledgementResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgChannelCloseInitResponse({ value, fee, memo }: sendMsgChannelCloseInitResponseParams): Promise { + async sendQueryPacketAcknowledgementsResponse({ value, fee, memo }: sendQueryPacketAcknowledgementsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgChannelCloseInitResponse: 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.msgChannelCloseInitResponse({ value: MsgChannelCloseInitResponse.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:sendMsgChannelCloseInitResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketAcknowledgementsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelsRequest({ value, fee, memo }: sendQueryChannelsRequestParams): Promise { + async sendQueryUnreceivedPacketsResponse({ value, fee, memo }: sendQueryUnreceivedPacketsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelsRequest: 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.queryChannelsRequest({ value: QueryChannelsRequest.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:sendQueryChannelsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUnreceivedPacketsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketCommitmentsResponse({ value, fee, memo }: sendQueryPacketCommitmentsResponseParams): Promise { + async sendMsgChannelCloseConfirmResponse({ value, fee, memo }: sendMsgChannelCloseConfirmResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketCommitmentsResponse: 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.queryPacketCommitmentsResponse({ value: QueryPacketCommitmentsResponse.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:sendQueryPacketCommitmentsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelCloseConfirmResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketAcknowledgementResponse({ value, fee, memo }: sendQueryPacketAcknowledgementResponseParams): Promise { + async sendQueryChannelRequest({ value, fee, memo }: sendQueryChannelRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketAcknowledgementResponse: 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.queryPacketAcknowledgementResponse({ value: QueryPacketAcknowledgementResponse.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:sendQueryPacketAcknowledgementResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUnreceivedPacketsRequest({ value, fee, memo }: sendQueryUnreceivedPacketsRequestParams): Promise { + async sendMsgChannelOpenAck({ value, fee, memo }: sendMsgChannelOpenAckParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUnreceivedPacketsRequest: 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.queryUnreceivedPacketsRequest({ value: QueryUnreceivedPacketsRequest.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:sendQueryUnreceivedPacketsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelOpenAck: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelResponse({ value, fee, memo }: sendQueryChannelResponseParams): Promise { + async sendMsgAcknowledgement({ value, fee, memo }: sendMsgAcknowledgementParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelResponse: 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.queryChannelResponse({ value: QueryChannelResponse.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:sendQueryChannelResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAcknowledgement: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketCommitmentResponse({ value, fee, memo }: sendQueryPacketCommitmentResponseParams): Promise { + async sendMsgChannelOpenConfirmResponse({ value, fee, memo }: sendMsgChannelOpenConfirmResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketCommitmentResponse: 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.queryPacketCommitmentResponse({ value: QueryPacketCommitmentResponse.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:sendQueryPacketCommitmentResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgChannelOpenConfirmResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketAcknowledgementRequest({ value, fee, memo }: sendQueryPacketAcknowledgementRequestParams): Promise { + async sendQueryNextSequenceSendResponse({ value, fee, memo }: sendQueryNextSequenceSendResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketAcknowledgementRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryNextSequenceSendResponse: Unable to 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.queryNextSequenceSendResponse({ value: QueryNextSequenceSendResponse.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:sendQueryNextSequenceSendResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUnreceivedAcksResponse({ value, fee, memo }: sendQueryUnreceivedAcksResponseParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUnreceivedAcksResponse: 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.queryUnreceivedAcksResponse({ value: QueryUnreceivedAcksResponse.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:sendQueryUnreceivedAcksResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryNextSequenceSendResponse({ value, fee, memo }: sendQueryNextSequenceSendResponseParams): Promise { + async sendQueryPacketReceiptRequest({ value, fee, memo }: sendQueryPacketReceiptRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryNextSequenceSendResponse: 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.queryNextSequenceSendResponse({ value: QueryNextSequenceSendResponse.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:sendQueryNextSequenceSendResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketReceiptRequest: Could not broadcast Tx: '+ e.message) } }, - async sendPacket({ value, fee, memo }: sendPacketParams): Promise { + async sendQueryUnreceivedAcksResponse({ value, fee, memo }: sendQueryUnreceivedAcksResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendPacket: 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.packet({ value: Packet.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:sendPacket: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUnreceivedAcksResponse: Could not broadcast Tx: '+ e.message) } }, - async sendIdentifiedChannel({ value, fee, memo }: sendIdentifiedChannelParams): Promise { + async sendAcknowledgement({ value, fee, memo }: sendAcknowledgementParams): Promise { if (!signer) { - throw new Error('TxClient:sendIdentifiedChannel: 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.identifiedChannel({ value: IdentifiedChannel.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:sendIdentifiedChannel: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAcknowledgement: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionChannelsResponse({ value, fee, memo }: sendQueryConnectionChannelsResponseParams): Promise { + async sendMsgChannelOpenTryResponse({ value, fee, memo }: sendMsgChannelOpenTryResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionChannelsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgChannelOpenTryResponse: Unable to 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.msgChannelOpenTryResponse({ value: MsgChannelOpenTryResponse.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:sendMsgChannelOpenTryResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketReceiptResponse({ value, fee, memo }: sendQueryPacketReceiptResponseParams): Promise { + async sendQueryNextSequenceSendRequest({ value, fee, memo }: sendQueryNextSequenceSendRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketReceiptResponse: 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.queryPacketReceiptResponse({ value: QueryPacketReceiptResponse.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:sendQueryPacketReceiptResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryNextSequenceSendRequest: Could not broadcast Tx: '+ e.message) } }, - async sendPacketState({ value, fee, memo }: sendPacketStateParams): Promise { + async sendPacket({ value, fee, memo }: sendPacketParams): Promise { if (!signer) { - throw new Error('TxClient:sendPacketState: 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.packetState({ value: PacketState.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:sendPacketState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendPacket: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelsResponse({ value, fee, memo }: sendQueryChannelsResponseParams): Promise { + async sendMsgTimeoutOnCloseResponse({ value, fee, memo }: sendMsgTimeoutOnCloseResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelsResponse: 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.queryChannelsResponse({ value: QueryChannelsResponse.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:sendQueryChannelsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgTimeoutOnCloseResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketReceiptRequest({ value, fee, memo }: sendQueryPacketReceiptRequestParams): Promise { + async sendQueryChannelsResponse({ value, fee, memo }: sendQueryChannelsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketReceiptRequest: 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.queryPacketReceiptRequest({ value: QueryPacketReceiptRequest.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:sendQueryPacketReceiptRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryNextSequenceReceiveRequest({ value, fee, memo }: sendQueryNextSequenceReceiveRequestParams): Promise { + async sendQueryNextSequenceReceiveResponse({ value, fee, memo }: sendQueryNextSequenceReceiveResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryNextSequenceReceiveRequest: 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.queryNextSequenceReceiveRequest({ value: QueryNextSequenceReceiveRequest.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:sendQueryNextSequenceReceiveRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryNextSequenceReceiveResponse: Could not broadcast Tx: '+ e.message) } }, - async sendAcknowledgement({ value, fee, memo }: sendAcknowledgementParams): Promise { + async sendTimeout({ value, fee, memo }: sendTimeoutParams): Promise { if (!signer) { - throw new Error('TxClient:sendAcknowledgement: 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.acknowledgement({ value: Acknowledgement.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:sendAcknowledgement: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendTimeout: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketAcknowledgementsRequest({ value, fee, memo }: sendQueryPacketAcknowledgementsRequestParams): Promise { + async sendMsgRecvPacketResponse({ value, fee, memo }: sendMsgRecvPacketResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketAcknowledgementsRequest: 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.queryPacketAcknowledgementsRequest({ value: QueryPacketAcknowledgementsRequest.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:sendQueryPacketAcknowledgementsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRecvPacketResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryPacketAcknowledgementsResponse({ value, fee, memo }: sendQueryPacketAcknowledgementsResponseParams): Promise { + async sendQueryChannelConsensusStateRequest({ value, fee, memo }: sendQueryChannelConsensusStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryPacketAcknowledgementsResponse: 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.queryPacketAcknowledgementsResponse({ value: QueryPacketAcknowledgementsResponse.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:sendQueryPacketAcknowledgementsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryChannelConsensusStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryChannelConsensusStateResponse({ value, fee, memo }: sendQueryChannelConsensusStateResponseParams): Promise { + async sendQueryPacketAcknowledgementResponse({ value, fee, memo }: sendQueryPacketAcknowledgementResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryChannelConsensusStateResponse: 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.queryChannelConsensusStateResponse({ value: QueryChannelConsensusStateResponse.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:sendQueryChannelConsensusStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryPacketAcknowledgementResponse: Could not broadcast Tx: '+ e.message) } }, - msgAcknowledgementResponse({ value }: msgAcknowledgementResponseParams): EncodeObject { + queryUnreceivedPacketsRequest({ value }: queryUnreceivedPacketsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgAcknowledgementResponse", value: MsgAcknowledgementResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedPacketsRequest", value: QueryUnreceivedPacketsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAcknowledgementResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUnreceivedPacketsRequest: Could not create message: ' + e.message) } }, @@ -1516,6 +1516,22 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, + queryUnreceivedAcksRequest({ value }: queryUnreceivedAcksRequestParams): EncodeObject { + try { + return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedAcksRequest", value: QueryUnreceivedAcksRequest.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryUnreceivedAcksRequest: Could not create message: ' + e.message) + } + }, + + msgChannelCloseInitResponse({ value }: msgChannelCloseInitResponseParams): EncodeObject { + try { + return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInitResponse", value: MsgChannelCloseInitResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:MsgChannelCloseInitResponse: Could not create message: ' + e.message) + } + }, + queryPacketCommitmentRequest({ value }: queryPacketCommitmentRequestParams): EncodeObject { try { return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentRequest", value: QueryPacketCommitmentRequest.fromPartial( value ) } @@ -1524,51 +1540,51 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgChannelOpenAckResponse({ value }: msgChannelOpenAckResponseParams): EncodeObject { + queryPacketAcknowledgementRequest({ value }: queryPacketAcknowledgementRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAckResponse", value: MsgChannelOpenAckResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementRequest", value: QueryPacketAcknowledgementRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelOpenAckResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketAcknowledgementRequest: Could not create message: ' + e.message) } }, - msgChannelOpenConfirmResponse({ value }: msgChannelOpenConfirmResponseParams): EncodeObject { + msgChannelCloseInit({ value }: msgChannelCloseInitParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirmResponse", value: MsgChannelOpenConfirmResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInit", value: MsgChannelCloseInit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelOpenConfirmResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelCloseInit: Could not create message: ' + e.message) } }, - queryChannelClientStateRequest({ value }: queryChannelClientStateRequestParams): EncodeObject { + queryPacketReceiptResponse({ value }: queryPacketReceiptResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelClientStateRequest", value: QueryChannelClientStateRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketReceiptResponse", value: QueryPacketReceiptResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelClientStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketReceiptResponse: Could not create message: ' + e.message) } }, - queryUnreceivedPacketsResponse({ value }: queryUnreceivedPacketsResponseParams): EncodeObject { + msgTimeoutOnClose({ value }: msgTimeoutOnCloseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedPacketsResponse", value: QueryUnreceivedPacketsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnClose", value: MsgTimeoutOnClose.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUnreceivedPacketsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgTimeoutOnClose: Could not create message: ' + e.message) } }, - timeout({ value }: timeoutParams): EncodeObject { + msgChannelOpenAckResponse({ value }: msgChannelOpenAckResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.Timeout", value: Timeout.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAckResponse", value: MsgChannelOpenAckResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Timeout: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelOpenAckResponse: Could not create message: ' + e.message) } }, - msgChannelOpenAck({ value }: msgChannelOpenAckParams): EncodeObject { + queryChannelsRequest({ value }: queryChannelsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAck", value: MsgChannelOpenAck.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelsRequest", value: QueryChannelsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelOpenAck: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelsRequest: Could not create message: ' + e.message) } }, @@ -1580,267 +1596,267 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryChannelRequest({ value }: queryChannelRequestParams): EncodeObject { + queryChannelResponse({ value }: queryChannelResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelRequest", value: QueryChannelRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelResponse", value: QueryChannelResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelResponse: Could not create message: ' + e.message) } }, - queryNextSequenceReceiveResponse({ value }: queryNextSequenceReceiveResponseParams): EncodeObject { + queryPacketCommitmentResponse({ value }: queryPacketCommitmentResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceReceiveResponse", value: QueryNextSequenceReceiveResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentResponse", value: QueryPacketCommitmentResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryNextSequenceReceiveResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketCommitmentResponse: 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) } }, - queryPacketCommitmentsRequest({ value }: queryPacketCommitmentsRequestParams): EncodeObject { + packetId({ value }: packetIdParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentsRequest", value: QueryPacketCommitmentsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.PacketId", value: PacketId.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketCommitmentsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:PacketId: Could not create message: ' + e.message) } }, - msgChannelOpenTry({ value }: msgChannelOpenTryParams): EncodeObject { + queryChannelConsensusStateResponse({ value }: queryChannelConsensusStateResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTry", value: MsgChannelOpenTry.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelConsensusStateResponse", value: QueryChannelConsensusStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelOpenTry: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelConsensusStateResponse: Could not create message: ' + e.message) } }, - msgChannelOpenConfirm({ value }: msgChannelOpenConfirmParams): EncodeObject { + msgRecvPacket({ value }: msgRecvPacketParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirm", value: MsgChannelOpenConfirm.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgRecvPacket", value: MsgRecvPacket.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelOpenConfirm: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRecvPacket: Could not create message: ' + e.message) } }, - msgChannelOpenTryResponse({ value }: msgChannelOpenTryResponseParams): EncodeObject { + queryPacketCommitmentsRequest({ value }: queryPacketCommitmentsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTryResponse", value: MsgChannelOpenTryResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentsRequest", value: QueryPacketCommitmentsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelOpenTryResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketCommitmentsRequest: Could not create message: ' + e.message) } }, - channel({ value }: channelParams): EncodeObject { + msgChannelOpenConfirm({ value }: msgChannelOpenConfirmParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.Channel", value: Channel.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirm", value: MsgChannelOpenConfirm.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Channel: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelOpenConfirm: Could not create message: ' + e.message) } }, - queryNextSequenceSendRequest({ value }: queryNextSequenceSendRequestParams): EncodeObject { + msgChannelCloseConfirm({ value }: msgChannelCloseConfirmParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceSendRequest", value: QueryNextSequenceSendRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirm", value: MsgChannelCloseConfirm.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryNextSequenceSendRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelCloseConfirm: Could not create message: ' + e.message) } }, - msgChannelCloseInit({ value }: msgChannelCloseInitParams): EncodeObject { + queryChannelClientStateRequest({ value }: queryChannelClientStateRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInit", value: MsgChannelCloseInit.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelClientStateRequest", value: QueryChannelClientStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelCloseInit: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelClientStateRequest: Could not create message: ' + e.message) } }, - packetId({ value }: packetIdParams): EncodeObject { + queryConnectionChannelsResponse({ value }: queryConnectionChannelsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.PacketId", value: PacketId.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryConnectionChannelsResponse", value: QueryConnectionChannelsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PacketId: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionChannelsResponse: Could not create message: ' + e.message) } }, - msgRecvPacketResponse({ value }: msgRecvPacketResponseParams): EncodeObject { + msgTimeoutResponse({ value }: msgTimeoutResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgRecvPacketResponse", value: MsgRecvPacketResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutResponse", value: MsgTimeoutResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRecvPacketResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgTimeoutResponse: Could not create message: ' + e.message) } }, - counterparty({ value }: counterpartyParams): EncodeObject { + queryPacketCommitmentsResponse({ value }: queryPacketCommitmentsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.Counterparty", value: Counterparty.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentsResponse", value: QueryPacketCommitmentsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Counterparty: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketCommitmentsResponse: Could not create message: ' + e.message) } }, - queryChannelConsensusStateRequest({ value }: queryChannelConsensusStateRequestParams): EncodeObject { + queryPacketAcknowledgementsRequest({ value }: queryPacketAcknowledgementsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelConsensusStateRequest", value: QueryChannelConsensusStateRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest", value: QueryPacketAcknowledgementsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelConsensusStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketAcknowledgementsRequest: Could not create message: ' + e.message) } }, - msgTimeout({ value }: msgTimeoutParams): EncodeObject { + channel({ value }: channelParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgTimeout", value: MsgTimeout.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.Channel", value: Channel.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgTimeout: Could not create message: ' + e.message) + throw new Error('TxClient:Channel: Could not create message: ' + e.message) } }, - msgTimeoutOnClose({ value }: msgTimeoutOnCloseParams): EncodeObject { + counterparty({ value }: counterpartyParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnClose", value: MsgTimeoutOnClose.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.Counterparty", value: Counterparty.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgTimeoutOnClose: Could not create message: ' + e.message) + throw new Error('TxClient:Counterparty: Could not create message: ' + e.message) } }, - msgAcknowledgement({ value }: msgAcknowledgementParams): EncodeObject { + msgChannelOpenInit({ value }: msgChannelOpenInitParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgAcknowledgement", value: MsgAcknowledgement.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInit", value: MsgChannelOpenInit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAcknowledgement: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelOpenInit: Could not create message: ' + e.message) } }, - msgTimeoutOnCloseResponse({ value }: msgTimeoutOnCloseResponseParams): EncodeObject { + msgChannelOpenTry({ value }: msgChannelOpenTryParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnCloseResponse", value: MsgTimeoutOnCloseResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTry", value: MsgChannelOpenTry.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgTimeoutOnCloseResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelOpenTry: Could not create message: ' + e.message) } }, - packetSequence({ value }: packetSequenceParams): EncodeObject { + msgTimeout({ value }: msgTimeoutParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.PacketSequence", value: PacketSequence.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgTimeout", value: MsgTimeout.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PacketSequence: Could not create message: ' + e.message) + throw new Error('TxClient:MsgTimeout: Could not create message: ' + e.message) } }, - msgChannelCloseConfirmResponse({ value }: msgChannelCloseConfirmResponseParams): EncodeObject { + identifiedChannel({ value }: identifiedChannelParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirmResponse", value: MsgChannelCloseConfirmResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.IdentifiedChannel", value: IdentifiedChannel.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelCloseConfirmResponse: Could not create message: ' + e.message) + throw new Error('TxClient:IdentifiedChannel: Could not create message: ' + e.message) } }, - msgTimeoutResponse({ value }: msgTimeoutResponseParams): EncodeObject { + queryNextSequenceReceiveRequest({ value }: queryNextSequenceReceiveRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutResponse", value: MsgTimeoutResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceReceiveRequest", value: QueryNextSequenceReceiveRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgTimeoutResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryNextSequenceReceiveRequest: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + packetState({ value }: packetStateParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.PacketState", value: PacketState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:PacketState: Could not create message: ' + e.message) } }, - queryUnreceivedAcksRequest({ value }: queryUnreceivedAcksRequestParams): EncodeObject { + msgAcknowledgementResponse({ value }: msgAcknowledgementResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedAcksRequest", value: QueryUnreceivedAcksRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgAcknowledgementResponse", value: MsgAcknowledgementResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUnreceivedAcksRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAcknowledgementResponse: Could not create message: ' + e.message) } }, - msgChannelCloseConfirm({ value }: msgChannelCloseConfirmParams): EncodeObject { + queryPacketAcknowledgementsResponse({ value }: queryPacketAcknowledgementsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirm", value: MsgChannelCloseConfirm.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse", value: QueryPacketAcknowledgementsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelCloseConfirm: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketAcknowledgementsResponse: Could not create message: ' + e.message) } }, - msgRecvPacket({ value }: msgRecvPacketParams): EncodeObject { + queryUnreceivedPacketsResponse({ value }: queryUnreceivedPacketsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgRecvPacket", value: MsgRecvPacket.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedPacketsResponse", value: QueryUnreceivedPacketsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRecvPacket: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUnreceivedPacketsResponse: Could not create message: ' + e.message) } }, - msgChannelCloseInitResponse({ value }: msgChannelCloseInitResponseParams): EncodeObject { + msgChannelCloseConfirmResponse({ value }: msgChannelCloseConfirmResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInitResponse", value: MsgChannelCloseInitResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirmResponse", value: MsgChannelCloseConfirmResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgChannelCloseInitResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelCloseConfirmResponse: Could not create message: ' + e.message) } }, - queryChannelsRequest({ value }: queryChannelsRequestParams): EncodeObject { + queryChannelRequest({ value }: queryChannelRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelsRequest", value: QueryChannelsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelRequest", value: QueryChannelRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelRequest: Could not create message: ' + e.message) } }, - queryPacketCommitmentsResponse({ value }: queryPacketCommitmentsResponseParams): EncodeObject { + msgChannelOpenAck({ value }: msgChannelOpenAckParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentsResponse", value: QueryPacketCommitmentsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAck", value: MsgChannelOpenAck.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketCommitmentsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelOpenAck: Could not create message: ' + e.message) } }, - queryPacketAcknowledgementResponse({ value }: queryPacketAcknowledgementResponseParams): EncodeObject { + msgAcknowledgement({ value }: msgAcknowledgementParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementResponse", value: QueryPacketAcknowledgementResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgAcknowledgement", value: MsgAcknowledgement.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketAcknowledgementResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAcknowledgement: Could not create message: ' + e.message) } }, - queryUnreceivedPacketsRequest({ value }: queryUnreceivedPacketsRequestParams): EncodeObject { + msgChannelOpenConfirmResponse({ value }: msgChannelOpenConfirmResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedPacketsRequest", value: QueryUnreceivedPacketsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirmResponse", value: MsgChannelOpenConfirmResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUnreceivedPacketsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelOpenConfirmResponse: Could not create message: ' + e.message) } }, - queryChannelResponse({ value }: queryChannelResponseParams): EncodeObject { + queryNextSequenceSendResponse({ value }: queryNextSequenceSendResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelResponse", value: QueryChannelResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceSendResponse", value: QueryNextSequenceSendResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryNextSequenceSendResponse: Could not create message: ' + e.message) } }, - queryPacketCommitmentResponse({ value }: queryPacketCommitmentResponseParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentResponse", value: QueryPacketCommitmentResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketCommitmentResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - queryPacketAcknowledgementRequest({ value }: queryPacketAcknowledgementRequestParams): EncodeObject { + queryPacketReceiptRequest({ value }: queryPacketReceiptRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementRequest", value: QueryPacketAcknowledgementRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketReceiptRequest", value: QueryPacketReceiptRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketAcknowledgementRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketReceiptRequest: Could not create message: ' + e.message) } }, @@ -1852,51 +1868,43 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryNextSequenceSendResponse({ value }: queryNextSequenceSendResponseParams): EncodeObject { - try { - return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceSendResponse", value: QueryNextSequenceSendResponse.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:QueryNextSequenceSendResponse: Could not create message: ' + e.message) - } - }, - - packet({ value }: packetParams): EncodeObject { + acknowledgement({ value }: acknowledgementParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.Packet", value: Packet.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.Acknowledgement", value: Acknowledgement.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Packet: Could not create message: ' + e.message) + throw new Error('TxClient:Acknowledgement: Could not create message: ' + e.message) } }, - identifiedChannel({ value }: identifiedChannelParams): EncodeObject { + msgChannelOpenTryResponse({ value }: msgChannelOpenTryResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.IdentifiedChannel", value: IdentifiedChannel.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTryResponse", value: MsgChannelOpenTryResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:IdentifiedChannel: Could not create message: ' + e.message) + throw new Error('TxClient:MsgChannelOpenTryResponse: Could not create message: ' + e.message) } }, - queryConnectionChannelsResponse({ value }: queryConnectionChannelsResponseParams): EncodeObject { + queryNextSequenceSendRequest({ value }: queryNextSequenceSendRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryConnectionChannelsResponse", value: QueryConnectionChannelsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceSendRequest", value: QueryNextSequenceSendRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionChannelsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryNextSequenceSendRequest: Could not create message: ' + e.message) } }, - queryPacketReceiptResponse({ value }: queryPacketReceiptResponseParams): EncodeObject { + packet({ value }: packetParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketReceiptResponse", value: QueryPacketReceiptResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.Packet", value: Packet.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketReceiptResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Packet: Could not create message: ' + e.message) } }, - packetState({ value }: packetStateParams): EncodeObject { + msgTimeoutOnCloseResponse({ value }: msgTimeoutOnCloseResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.PacketState", value: PacketState.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnCloseResponse", value: MsgTimeoutOnCloseResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:PacketState: Could not create message: ' + e.message) + throw new Error('TxClient:MsgTimeoutOnCloseResponse: Could not create message: ' + e.message) } }, @@ -1908,51 +1916,43 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryPacketReceiptRequest({ value }: queryPacketReceiptRequestParams): EncodeObject { - try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketReceiptRequest", value: QueryPacketReceiptRequest.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:QueryPacketReceiptRequest: Could not create message: ' + e.message) - } - }, - - queryNextSequenceReceiveRequest({ value }: queryNextSequenceReceiveRequestParams): EncodeObject { + queryNextSequenceReceiveResponse({ value }: queryNextSequenceReceiveResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceReceiveRequest", value: QueryNextSequenceReceiveRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceReceiveResponse", value: QueryNextSequenceReceiveResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryNextSequenceReceiveRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryNextSequenceReceiveResponse: Could not create message: ' + e.message) } }, - acknowledgement({ value }: acknowledgementParams): EncodeObject { + timeout({ value }: timeoutParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.Acknowledgement", value: Acknowledgement.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.Timeout", value: Timeout.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Acknowledgement: Could not create message: ' + e.message) + throw new Error('TxClient:Timeout: Could not create message: ' + e.message) } }, - queryPacketAcknowledgementsRequest({ value }: queryPacketAcknowledgementsRequestParams): EncodeObject { + msgRecvPacketResponse({ value }: msgRecvPacketResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest", value: QueryPacketAcknowledgementsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.MsgRecvPacketResponse", value: MsgRecvPacketResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketAcknowledgementsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRecvPacketResponse: Could not create message: ' + e.message) } }, - queryPacketAcknowledgementsResponse({ value }: queryPacketAcknowledgementsResponseParams): EncodeObject { + queryChannelConsensusStateRequest({ value }: queryChannelConsensusStateRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse", value: QueryPacketAcknowledgementsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryChannelConsensusStateRequest", value: QueryChannelConsensusStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryPacketAcknowledgementsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryChannelConsensusStateRequest: Could not create message: ' + e.message) } }, - queryChannelConsensusStateResponse({ value }: queryChannelConsensusStateResponseParams): EncodeObject { + queryPacketAcknowledgementResponse({ value }: queryPacketAcknowledgementResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelConsensusStateResponse", value: QueryChannelConsensusStateResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementResponse", value: QueryPacketAcknowledgementResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryChannelConsensusStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryPacketAcknowledgementResponse: 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 3ab1e0a34..5653197f8 100755 --- a/ts-client/ibc.core.channel.v1/registry.ts +++ b/ts-client/ibc.core.channel.v1/registry.ts @@ -1,122 +1,122 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgAcknowledgementResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryUnreceivedPacketsRequest } from "./types/ibc/core/channel/v1/query"; import { QueryChannelClientStateResponse } from "./types/ibc/core/channel/v1/query"; import { QueryConnectionChannelsRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedAcksRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelCloseInitResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryPacketCommitmentRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketReceiptResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelOpenAckResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenConfirmResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelClientStateRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUnreceivedPacketsResponse } from "./types/ibc/core/channel/v1/query"; -import { Timeout } from "./types/ibc/core/channel/v1/channel"; -import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelsRequest } from "./types/ibc/core/channel/v1/query"; import { MsgChannelOpenInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryNextSequenceReceiveResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketCommitmentResponse } from "./types/ibc/core/channel/v1/query"; +import { PacketSequence } from "./types/ibc/core/channel/v1/genesis"; +import { PacketId } from "./types/ibc/core/channel/v1/channel"; +import { QueryChannelConsensusStateResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; import { QueryPacketCommitmentsRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelOpenConfirm } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenTryResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelClientStateRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryConnectionChannelsResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgTimeoutResponse } 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 { Channel } from "./types/ibc/core/channel/v1/channel"; -import { QueryNextSequenceSendRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; -import { PacketId } from "./types/ibc/core/channel/v1/channel"; -import { MsgRecvPacketResponse } from "./types/ibc/core/channel/v1/tx"; import { Counterparty } from "./types/ibc/core/channel/v1/channel"; -import { QueryChannelConsensusStateRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; import { MsgTimeout } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; -import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeoutOnCloseResponse } from "./types/ibc/core/channel/v1/tx"; -import { PacketSequence } from "./types/ibc/core/channel/v1/genesis"; +import { IdentifiedChannel } from "./types/ibc/core/channel/v1/channel"; +import { QueryNextSequenceReceiveRequest } from "./types/ibc/core/channel/v1/query"; +import { PacketState } from "./types/ibc/core/channel/v1/channel"; +import { MsgAcknowledgementResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketAcknowledgementsResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedPacketsResponse } from "./types/ibc/core/channel/v1/query"; import { MsgChannelCloseConfirmResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeoutResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; +import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenConfirmResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryNextSequenceSendResponse } from "./types/ibc/core/channel/v1/query"; import { GenesisState } from "./types/ibc/core/channel/v1/genesis"; -import { QueryUnreceivedAcksRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; -import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelCloseInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelsRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketCommitmentsResponse } 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 { QueryChannelResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketCommitmentResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketAcknowledgementRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketReceiptRequest } 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 { Acknowledgement } from "./types/ibc/core/channel/v1/channel"; +import { MsgChannelOpenTryResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryNextSequenceSendRequest } from "./types/ibc/core/channel/v1/query"; import { Packet } from "./types/ibc/core/channel/v1/channel"; -import { IdentifiedChannel } from "./types/ibc/core/channel/v1/channel"; -import { QueryConnectionChannelsResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketReceiptResponse } from "./types/ibc/core/channel/v1/query"; -import { PacketState } from "./types/ibc/core/channel/v1/channel"; +import { MsgTimeoutOnCloseResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryChannelsResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketReceiptRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryNextSequenceReceiveRequest } from "./types/ibc/core/channel/v1/query"; -import { Acknowledgement } from "./types/ibc/core/channel/v1/channel"; -import { QueryPacketAcknowledgementsRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketAcknowledgementsResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryChannelConsensusStateResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryNextSequenceReceiveResponse } from "./types/ibc/core/channel/v1/query"; +import { Timeout } from "./types/ibc/core/channel/v1/channel"; +import { MsgRecvPacketResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelConsensusStateRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementResponse } from "./types/ibc/core/channel/v1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/ibc.core.channel.v1.MsgAcknowledgementResponse", MsgAcknowledgementResponse], + ["/ibc.core.channel.v1.QueryUnreceivedPacketsRequest", QueryUnreceivedPacketsRequest], ["/ibc.core.channel.v1.QueryChannelClientStateResponse", QueryChannelClientStateResponse], ["/ibc.core.channel.v1.QueryConnectionChannelsRequest", QueryConnectionChannelsRequest], + ["/ibc.core.channel.v1.QueryUnreceivedAcksRequest", QueryUnreceivedAcksRequest], + ["/ibc.core.channel.v1.MsgChannelCloseInitResponse", MsgChannelCloseInitResponse], ["/ibc.core.channel.v1.QueryPacketCommitmentRequest", QueryPacketCommitmentRequest], + ["/ibc.core.channel.v1.QueryPacketAcknowledgementRequest", QueryPacketAcknowledgementRequest], + ["/ibc.core.channel.v1.MsgChannelCloseInit", MsgChannelCloseInit], + ["/ibc.core.channel.v1.QueryPacketReceiptResponse", QueryPacketReceiptResponse], + ["/ibc.core.channel.v1.MsgTimeoutOnClose", MsgTimeoutOnClose], ["/ibc.core.channel.v1.MsgChannelOpenAckResponse", MsgChannelOpenAckResponse], - ["/ibc.core.channel.v1.MsgChannelOpenConfirmResponse", MsgChannelOpenConfirmResponse], - ["/ibc.core.channel.v1.QueryChannelClientStateRequest", QueryChannelClientStateRequest], - ["/ibc.core.channel.v1.QueryUnreceivedPacketsResponse", QueryUnreceivedPacketsResponse], - ["/ibc.core.channel.v1.Timeout", Timeout], - ["/ibc.core.channel.v1.MsgChannelOpenAck", MsgChannelOpenAck], + ["/ibc.core.channel.v1.QueryChannelsRequest", QueryChannelsRequest], ["/ibc.core.channel.v1.MsgChannelOpenInitResponse", MsgChannelOpenInitResponse], - ["/ibc.core.channel.v1.QueryChannelRequest", QueryChannelRequest], - ["/ibc.core.channel.v1.QueryNextSequenceReceiveResponse", QueryNextSequenceReceiveResponse], - ["/ibc.core.channel.v1.MsgChannelOpenInit", MsgChannelOpenInit], + ["/ibc.core.channel.v1.QueryChannelResponse", QueryChannelResponse], + ["/ibc.core.channel.v1.QueryPacketCommitmentResponse", QueryPacketCommitmentResponse], + ["/ibc.core.channel.v1.PacketSequence", PacketSequence], + ["/ibc.core.channel.v1.PacketId", PacketId], + ["/ibc.core.channel.v1.QueryChannelConsensusStateResponse", QueryChannelConsensusStateResponse], + ["/ibc.core.channel.v1.MsgRecvPacket", MsgRecvPacket], ["/ibc.core.channel.v1.QueryPacketCommitmentsRequest", QueryPacketCommitmentsRequest], - ["/ibc.core.channel.v1.MsgChannelOpenTry", MsgChannelOpenTry], ["/ibc.core.channel.v1.MsgChannelOpenConfirm", MsgChannelOpenConfirm], - ["/ibc.core.channel.v1.MsgChannelOpenTryResponse", MsgChannelOpenTryResponse], + ["/ibc.core.channel.v1.MsgChannelCloseConfirm", MsgChannelCloseConfirm], + ["/ibc.core.channel.v1.QueryChannelClientStateRequest", QueryChannelClientStateRequest], + ["/ibc.core.channel.v1.QueryConnectionChannelsResponse", QueryConnectionChannelsResponse], + ["/ibc.core.channel.v1.MsgTimeoutResponse", MsgTimeoutResponse], + ["/ibc.core.channel.v1.QueryPacketCommitmentsResponse", QueryPacketCommitmentsResponse], + ["/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest", QueryPacketAcknowledgementsRequest], ["/ibc.core.channel.v1.Channel", Channel], - ["/ibc.core.channel.v1.QueryNextSequenceSendRequest", QueryNextSequenceSendRequest], - ["/ibc.core.channel.v1.MsgChannelCloseInit", MsgChannelCloseInit], - ["/ibc.core.channel.v1.PacketId", PacketId], - ["/ibc.core.channel.v1.MsgRecvPacketResponse", MsgRecvPacketResponse], ["/ibc.core.channel.v1.Counterparty", Counterparty], - ["/ibc.core.channel.v1.QueryChannelConsensusStateRequest", QueryChannelConsensusStateRequest], + ["/ibc.core.channel.v1.MsgChannelOpenInit", MsgChannelOpenInit], + ["/ibc.core.channel.v1.MsgChannelOpenTry", MsgChannelOpenTry], ["/ibc.core.channel.v1.MsgTimeout", MsgTimeout], - ["/ibc.core.channel.v1.MsgTimeoutOnClose", MsgTimeoutOnClose], - ["/ibc.core.channel.v1.MsgAcknowledgement", MsgAcknowledgement], - ["/ibc.core.channel.v1.MsgTimeoutOnCloseResponse", MsgTimeoutOnCloseResponse], - ["/ibc.core.channel.v1.PacketSequence", PacketSequence], + ["/ibc.core.channel.v1.IdentifiedChannel", IdentifiedChannel], + ["/ibc.core.channel.v1.QueryNextSequenceReceiveRequest", QueryNextSequenceReceiveRequest], + ["/ibc.core.channel.v1.PacketState", PacketState], + ["/ibc.core.channel.v1.MsgAcknowledgementResponse", MsgAcknowledgementResponse], + ["/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse", QueryPacketAcknowledgementsResponse], + ["/ibc.core.channel.v1.QueryUnreceivedPacketsResponse", QueryUnreceivedPacketsResponse], ["/ibc.core.channel.v1.MsgChannelCloseConfirmResponse", MsgChannelCloseConfirmResponse], - ["/ibc.core.channel.v1.MsgTimeoutResponse", MsgTimeoutResponse], + ["/ibc.core.channel.v1.QueryChannelRequest", QueryChannelRequest], + ["/ibc.core.channel.v1.MsgChannelOpenAck", MsgChannelOpenAck], + ["/ibc.core.channel.v1.MsgAcknowledgement", MsgAcknowledgement], + ["/ibc.core.channel.v1.MsgChannelOpenConfirmResponse", MsgChannelOpenConfirmResponse], + ["/ibc.core.channel.v1.QueryNextSequenceSendResponse", QueryNextSequenceSendResponse], ["/ibc.core.channel.v1.GenesisState", GenesisState], - ["/ibc.core.channel.v1.QueryUnreceivedAcksRequest", QueryUnreceivedAcksRequest], - ["/ibc.core.channel.v1.MsgChannelCloseConfirm", MsgChannelCloseConfirm], - ["/ibc.core.channel.v1.MsgRecvPacket", MsgRecvPacket], - ["/ibc.core.channel.v1.MsgChannelCloseInitResponse", MsgChannelCloseInitResponse], - ["/ibc.core.channel.v1.QueryChannelsRequest", QueryChannelsRequest], - ["/ibc.core.channel.v1.QueryPacketCommitmentsResponse", QueryPacketCommitmentsResponse], - ["/ibc.core.channel.v1.QueryPacketAcknowledgementResponse", QueryPacketAcknowledgementResponse], - ["/ibc.core.channel.v1.QueryUnreceivedPacketsRequest", QueryUnreceivedPacketsRequest], - ["/ibc.core.channel.v1.QueryChannelResponse", QueryChannelResponse], - ["/ibc.core.channel.v1.QueryPacketCommitmentResponse", QueryPacketCommitmentResponse], - ["/ibc.core.channel.v1.QueryPacketAcknowledgementRequest", QueryPacketAcknowledgementRequest], + ["/ibc.core.channel.v1.QueryPacketReceiptRequest", QueryPacketReceiptRequest], ["/ibc.core.channel.v1.QueryUnreceivedAcksResponse", QueryUnreceivedAcksResponse], - ["/ibc.core.channel.v1.QueryNextSequenceSendResponse", QueryNextSequenceSendResponse], + ["/ibc.core.channel.v1.Acknowledgement", Acknowledgement], + ["/ibc.core.channel.v1.MsgChannelOpenTryResponse", MsgChannelOpenTryResponse], + ["/ibc.core.channel.v1.QueryNextSequenceSendRequest", QueryNextSequenceSendRequest], ["/ibc.core.channel.v1.Packet", Packet], - ["/ibc.core.channel.v1.IdentifiedChannel", IdentifiedChannel], - ["/ibc.core.channel.v1.QueryConnectionChannelsResponse", QueryConnectionChannelsResponse], - ["/ibc.core.channel.v1.QueryPacketReceiptResponse", QueryPacketReceiptResponse], - ["/ibc.core.channel.v1.PacketState", PacketState], + ["/ibc.core.channel.v1.MsgTimeoutOnCloseResponse", MsgTimeoutOnCloseResponse], ["/ibc.core.channel.v1.QueryChannelsResponse", QueryChannelsResponse], - ["/ibc.core.channel.v1.QueryPacketReceiptRequest", QueryPacketReceiptRequest], - ["/ibc.core.channel.v1.QueryNextSequenceReceiveRequest", QueryNextSequenceReceiveRequest], - ["/ibc.core.channel.v1.Acknowledgement", Acknowledgement], - ["/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest", QueryPacketAcknowledgementsRequest], - ["/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse", QueryPacketAcknowledgementsResponse], - ["/ibc.core.channel.v1.QueryChannelConsensusStateResponse", QueryChannelConsensusStateResponse], + ["/ibc.core.channel.v1.QueryNextSequenceReceiveResponse", QueryNextSequenceReceiveResponse], + ["/ibc.core.channel.v1.Timeout", Timeout], + ["/ibc.core.channel.v1.MsgRecvPacketResponse", MsgRecvPacketResponse], + ["/ibc.core.channel.v1.QueryChannelConsensusStateRequest", QueryChannelConsensusStateRequest], + ["/ibc.core.channel.v1.QueryPacketAcknowledgementResponse", QueryPacketAcknowledgementResponse], ]; diff --git a/ts-client/ibc.core.client.v1/module.ts b/ts-client/ibc.core.client.v1/module.ts index bd38456d3..7c978f36c 100755 --- a/ts-client/ibc.core.client.v1/module.ts +++ b/ts-client/ibc.core.client.v1/module.ts @@ -6,72 +6,60 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; -import { MsgUpgradeClientResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgUpdateParamsResponse } from "./types/ibc/core/client/v1/tx"; -import { ConsensusStateWithHeight } from "./types/ibc/core/client/v1/client"; +import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; +import { MsgRecoverClient } from "./types/ibc/core/client/v1/tx"; import { QueryClientStateRequest } from "./types/ibc/core/client/v1/query"; -import { QueryClientStatesRequest } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStateRequest } from "./types/ibc/core/client/v1/query"; import { QueryConsensusStateHeightsResponse } from "./types/ibc/core/client/v1/query"; import { QueryUpgradedClientStateResponse } from "./types/ibc/core/client/v1/query"; -import { GenesisState } from "./types/ibc/core/client/v1/genesis"; -import { GenesisMetadata } from "./types/ibc/core/client/v1/genesis"; -import { ClientConsensusStates } from "./types/ibc/core/client/v1/client"; import { QueryClientStatesResponse } from "./types/ibc/core/client/v1/query"; -import { QueryConsensusStateRequest } from "./types/ibc/core/client/v1/query"; -import { QueryClientStatusResponse } from "./types/ibc/core/client/v1/query"; -import { QueryUpgradedConsensusStateRequest } from "./types/ibc/core/client/v1/query"; import { QueryUpgradedConsensusStateResponse } from "./types/ibc/core/client/v1/query"; -import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; -import { MsgCreateClientResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgIBCSoftwareUpgradeResponse } from "./types/ibc/core/client/v1/tx"; -import { QueryConsensusStateResponse } from "./types/ibc/core/client/v1/query"; -import { QueryConsensusStatesRequest } from "./types/ibc/core/client/v1/query"; -import { QueryClientParamsRequest } from "./types/ibc/core/client/v1/query"; +import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; +import { MsgUpdateClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgUpdateParamsResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryClientStatusRequest } from "./types/ibc/core/client/v1/query"; +import { QueryUpgradedClientStateRequest } from "./types/ibc/core/client/v1/query"; +import { Height } from "./types/ibc/core/client/v1/client"; +import { MsgUpgradeClientResponse } from "./types/ibc/core/client/v1/tx"; import { MsgSubmitMisbehaviour } from "./types/ibc/core/client/v1/tx"; -import { MsgUpdateParams } from "./types/ibc/core/client/v1/tx"; -import { IdentifiedClientState } 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 { QueryConsensusStateHeightsRequest } from "./types/ibc/core/client/v1/query"; -import { QueryClientParamsResponse } from "./types/ibc/core/client/v1/query"; -import { Params } from "./types/ibc/core/client/v1/client"; +import { QueryClientStatusResponse } from "./types/ibc/core/client/v1/query"; import { MsgUpgradeClient } from "./types/ibc/core/client/v1/tx"; -import { Height } from "./types/ibc/core/client/v1/client"; -import { QueryUpgradedClientStateRequest } from "./types/ibc/core/client/v1/query"; import { IdentifiedGenesisMetadata } from "./types/ibc/core/client/v1/genesis"; -import { MsgIBCSoftwareUpgrade } from "./types/ibc/core/client/v1/tx"; +import { GenesisMetadata } from "./types/ibc/core/client/v1/genesis"; +import { MsgIBCSoftwareUpgradeResponse } from "./types/ibc/core/client/v1/tx"; +import { Params } from "./types/ibc/core/client/v1/client"; import { MsgRecoverClientResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryConsensusStatesRequest } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStateResponse } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStatesResponse } from "./types/ibc/core/client/v1/query"; +import { ConsensusStateWithHeight } from "./types/ibc/core/client/v1/client"; +import { QueryUpgradedConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { ClientConsensusStates } from "./types/ibc/core/client/v1/client"; import { UpgradeProposal } from "./types/ibc/core/client/v1/client"; -import { MsgSubmitMisbehaviourResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgCreateClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgIBCSoftwareUpgrade } from "./types/ibc/core/client/v1/tx"; +import { IdentifiedClientState } from "./types/ibc/core/client/v1/client"; +import { QueryClientParamsRequest } from "./types/ibc/core/client/v1/query"; +import { GenesisState } from "./types/ibc/core/client/v1/genesis"; import { QueryClientStateResponse } 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 { MsgRecoverClient } from "./types/ibc/core/client/v1/tx"; +import { MsgUpdateParams } from "./types/ibc/core/client/v1/tx"; +import { QueryClientParamsResponse } from "./types/ibc/core/client/v1/query"; import { ClientUpdateProposal } from "./types/ibc/core/client/v1/client"; -import { MsgUpdateClientResponse } from "./types/ibc/core/client/v1/tx"; - -export { MsgUpdateClient, MsgUpgradeClientResponse, MsgUpdateParamsResponse, ConsensusStateWithHeight, QueryClientStateRequest, QueryClientStatesRequest, QueryConsensusStateHeightsResponse, QueryUpgradedClientStateResponse, GenesisState, GenesisMetadata, ClientConsensusStates, QueryClientStatesResponse, QueryConsensusStateRequest, QueryClientStatusResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, MsgCreateClient, MsgCreateClientResponse, MsgIBCSoftwareUpgradeResponse, QueryConsensusStateResponse, QueryConsensusStatesRequest, QueryClientParamsRequest, MsgSubmitMisbehaviour, MsgUpdateParams, IdentifiedClientState, QueryConsensusStateHeightsRequest, QueryClientParamsResponse, Params, MsgUpgradeClient, Height, QueryUpgradedClientStateRequest, IdentifiedGenesisMetadata, MsgIBCSoftwareUpgrade, MsgRecoverClientResponse, UpgradeProposal, MsgSubmitMisbehaviourResponse, QueryClientStateResponse, QueryConsensusStatesResponse, QueryClientStatusRequest, MsgRecoverClient, ClientUpdateProposal, MsgUpdateClientResponse }; - -type sendMsgUpdateClientParams = { - value: MsgUpdateClient, - fee?: StdFee, - memo?: string -}; -type sendMsgUpgradeClientResponseParams = { - value: MsgUpgradeClientResponse, - fee?: StdFee, - memo?: string -}; +export { MsgCreateClient, MsgRecoverClient, QueryClientStateRequest, QueryConsensusStateRequest, QueryConsensusStateHeightsResponse, QueryUpgradedClientStateResponse, QueryClientStatesResponse, QueryUpgradedConsensusStateResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpdateParamsResponse, QueryClientStatusRequest, QueryUpgradedClientStateRequest, Height, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse, QueryClientStatesRequest, QueryConsensusStateHeightsRequest, QueryClientStatusResponse, MsgUpgradeClient, IdentifiedGenesisMetadata, GenesisMetadata, MsgIBCSoftwareUpgradeResponse, Params, MsgRecoverClientResponse, QueryConsensusStatesRequest, QueryConsensusStateResponse, QueryConsensusStatesResponse, ConsensusStateWithHeight, QueryUpgradedConsensusStateRequest, ClientConsensusStates, UpgradeProposal, MsgCreateClientResponse, MsgIBCSoftwareUpgrade, IdentifiedClientState, QueryClientParamsRequest, GenesisState, QueryClientStateResponse, MsgUpdateParams, QueryClientParamsResponse, ClientUpdateProposal }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendMsgCreateClientParams = { + value: MsgCreateClient, fee?: StdFee, memo?: string }; -type sendConsensusStateWithHeightParams = { - value: ConsensusStateWithHeight, +type sendMsgRecoverClientParams = { + value: MsgRecoverClient, fee?: StdFee, memo?: string }; @@ -82,8 +70,8 @@ type sendQueryClientStateRequestParams = { memo?: string }; -type sendQueryClientStatesRequestParams = { - value: QueryClientStatesRequest, +type sendQueryConsensusStateRequestParams = { + value: QueryConsensusStateRequest, fee?: StdFee, memo?: string }; @@ -100,158 +88,158 @@ type sendQueryUpgradedClientStateResponseParams = { memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryClientStatesResponseParams = { + value: QueryClientStatesResponse, fee?: StdFee, memo?: string }; -type sendGenesisMetadataParams = { - value: GenesisMetadata, +type sendQueryUpgradedConsensusStateResponseParams = { + value: QueryUpgradedConsensusStateResponse, fee?: StdFee, memo?: string }; -type sendClientConsensusStatesParams = { - value: ClientConsensusStates, +type sendMsgUpdateClientParams = { + value: MsgUpdateClient, fee?: StdFee, memo?: string }; -type sendQueryClientStatesResponseParams = { - value: QueryClientStatesResponse, +type sendMsgUpdateClientResponseParams = { + value: MsgUpdateClientResponse, fee?: StdFee, memo?: string }; -type sendQueryConsensusStateRequestParams = { - value: QueryConsensusStateRequest, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryClientStatusResponseParams = { - value: QueryClientStatusResponse, +type sendQueryClientStatusRequestParams = { + value: QueryClientStatusRequest, fee?: StdFee, memo?: string }; -type sendQueryUpgradedConsensusStateRequestParams = { - value: QueryUpgradedConsensusStateRequest, +type sendQueryUpgradedClientStateRequestParams = { + value: QueryUpgradedClientStateRequest, fee?: StdFee, memo?: string }; -type sendQueryUpgradedConsensusStateResponseParams = { - value: QueryUpgradedConsensusStateResponse, +type sendHeightParams = { + value: Height, fee?: StdFee, memo?: string }; -type sendMsgCreateClientParams = { - value: MsgCreateClient, +type sendMsgUpgradeClientResponseParams = { + value: MsgUpgradeClientResponse, fee?: StdFee, memo?: string }; -type sendMsgCreateClientResponseParams = { - value: MsgCreateClientResponse, +type sendMsgSubmitMisbehaviourParams = { + value: MsgSubmitMisbehaviour, fee?: StdFee, memo?: string }; -type sendMsgIBCSoftwareUpgradeResponseParams = { - value: MsgIBCSoftwareUpgradeResponse, +type sendMsgSubmitMisbehaviourResponseParams = { + value: MsgSubmitMisbehaviourResponse, fee?: StdFee, memo?: string }; -type sendQueryConsensusStateResponseParams = { - value: QueryConsensusStateResponse, +type sendQueryClientStatesRequestParams = { + value: QueryClientStatesRequest, fee?: StdFee, memo?: string }; -type sendQueryConsensusStatesRequestParams = { - value: QueryConsensusStatesRequest, +type sendQueryConsensusStateHeightsRequestParams = { + value: QueryConsensusStateHeightsRequest, fee?: StdFee, memo?: string }; -type sendQueryClientParamsRequestParams = { - value: QueryClientParamsRequest, +type sendQueryClientStatusResponseParams = { + value: QueryClientStatusResponse, fee?: StdFee, memo?: string }; -type sendMsgSubmitMisbehaviourParams = { - value: MsgSubmitMisbehaviour, +type sendMsgUpgradeClientParams = { + value: MsgUpgradeClient, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendIdentifiedGenesisMetadataParams = { + value: IdentifiedGenesisMetadata, fee?: StdFee, memo?: string }; -type sendIdentifiedClientStateParams = { - value: IdentifiedClientState, +type sendGenesisMetadataParams = { + value: GenesisMetadata, fee?: StdFee, memo?: string }; -type sendQueryConsensusStateHeightsRequestParams = { - value: QueryConsensusStateHeightsRequest, +type sendMsgIBCSoftwareUpgradeResponseParams = { + value: MsgIBCSoftwareUpgradeResponse, fee?: StdFee, memo?: string }; -type sendQueryClientParamsResponseParams = { - value: QueryClientParamsResponse, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendMsgRecoverClientResponseParams = { + value: MsgRecoverClientResponse, fee?: StdFee, memo?: string }; -type sendMsgUpgradeClientParams = { - value: MsgUpgradeClient, +type sendQueryConsensusStatesRequestParams = { + value: QueryConsensusStatesRequest, fee?: StdFee, memo?: string }; -type sendHeightParams = { - value: Height, +type sendQueryConsensusStateResponseParams = { + value: QueryConsensusStateResponse, fee?: StdFee, memo?: string }; -type sendQueryUpgradedClientStateRequestParams = { - value: QueryUpgradedClientStateRequest, +type sendQueryConsensusStatesResponseParams = { + value: QueryConsensusStatesResponse, fee?: StdFee, memo?: string }; -type sendIdentifiedGenesisMetadataParams = { - value: IdentifiedGenesisMetadata, +type sendConsensusStateWithHeightParams = { + value: ConsensusStateWithHeight, fee?: StdFee, memo?: string }; -type sendMsgIBCSoftwareUpgradeParams = { - value: MsgIBCSoftwareUpgrade, +type sendQueryUpgradedConsensusStateRequestParams = { + value: QueryUpgradedConsensusStateRequest, fee?: StdFee, memo?: string }; -type sendMsgRecoverClientResponseParams = { - value: MsgRecoverClientResponse, +type sendClientConsensusStatesParams = { + value: ClientConsensusStates, fee?: StdFee, memo?: string }; @@ -262,71 +250,75 @@ type sendUpgradeProposalParams = { memo?: string }; -type sendMsgSubmitMisbehaviourResponseParams = { - value: MsgSubmitMisbehaviourResponse, +type sendMsgCreateClientResponseParams = { + value: MsgCreateClientResponse, fee?: StdFee, memo?: string }; -type sendQueryClientStateResponseParams = { - value: QueryClientStateResponse, +type sendMsgIBCSoftwareUpgradeParams = { + value: MsgIBCSoftwareUpgrade, fee?: StdFee, memo?: string }; -type sendQueryConsensusStatesResponseParams = { - value: QueryConsensusStatesResponse, +type sendIdentifiedClientStateParams = { + value: IdentifiedClientState, fee?: StdFee, memo?: string }; -type sendQueryClientStatusRequestParams = { - value: QueryClientStatusRequest, +type sendQueryClientParamsRequestParams = { + value: QueryClientParamsRequest, fee?: StdFee, memo?: string }; -type sendMsgRecoverClientParams = { - value: MsgRecoverClient, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendClientUpdateProposalParams = { - value: ClientUpdateProposal, +type sendQueryClientStateResponseParams = { + value: QueryClientStateResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateClientResponseParams = { - value: MsgUpdateClientResponse, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; - -type msgUpdateClientParams = { - value: MsgUpdateClient, +type sendQueryClientParamsResponseParams = { + value: QueryClientParamsResponse, + fee?: StdFee, + memo?: string }; -type msgUpgradeClientResponseParams = { - value: MsgUpgradeClientResponse, +type sendClientUpdateProposalParams = { + value: ClientUpdateProposal, + fee?: StdFee, + memo?: string }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, + +type msgCreateClientParams = { + value: MsgCreateClient, }; -type consensusStateWithHeightParams = { - value: ConsensusStateWithHeight, +type msgRecoverClientParams = { + value: MsgRecoverClient, }; type queryClientStateRequestParams = { value: QueryClientStateRequest, }; -type queryClientStatesRequestParams = { - value: QueryClientStatesRequest, +type queryConsensusStateRequestParams = { + value: QueryConsensusStateRequest, }; type queryConsensusStateHeightsResponseParams = { @@ -337,140 +329,148 @@ type queryUpgradedClientStateResponseParams = { value: QueryUpgradedClientStateResponse, }; -type genesisStateParams = { - value: GenesisState, -}; - -type genesisMetadataParams = { - value: GenesisMetadata, +type queryClientStatesResponseParams = { + value: QueryClientStatesResponse, }; -type clientConsensusStatesParams = { - value: ClientConsensusStates, +type queryUpgradedConsensusStateResponseParams = { + value: QueryUpgradedConsensusStateResponse, }; -type queryClientStatesResponseParams = { - value: QueryClientStatesResponse, +type msgUpdateClientParams = { + value: MsgUpdateClient, }; -type queryConsensusStateRequestParams = { - value: QueryConsensusStateRequest, +type msgUpdateClientResponseParams = { + value: MsgUpdateClientResponse, }; -type queryClientStatusResponseParams = { - value: QueryClientStatusResponse, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type queryUpgradedConsensusStateRequestParams = { - value: QueryUpgradedConsensusStateRequest, +type queryClientStatusRequestParams = { + value: QueryClientStatusRequest, }; -type queryUpgradedConsensusStateResponseParams = { - value: QueryUpgradedConsensusStateResponse, +type queryUpgradedClientStateRequestParams = { + value: QueryUpgradedClientStateRequest, }; -type msgCreateClientParams = { - value: MsgCreateClient, +type heightParams = { + value: Height, }; -type msgCreateClientResponseParams = { - value: MsgCreateClientResponse, +type msgUpgradeClientResponseParams = { + value: MsgUpgradeClientResponse, }; -type msgIbcsoftwareUpgradeResponseParams = { - value: MsgIBCSoftwareUpgradeResponse, +type msgSubmitMisbehaviourParams = { + value: MsgSubmitMisbehaviour, }; -type queryConsensusStateResponseParams = { - value: QueryConsensusStateResponse, +type msgSubmitMisbehaviourResponseParams = { + value: MsgSubmitMisbehaviourResponse, }; -type queryConsensusStatesRequestParams = { - value: QueryConsensusStatesRequest, +type queryClientStatesRequestParams = { + value: QueryClientStatesRequest, }; -type queryClientParamsRequestParams = { - value: QueryClientParamsRequest, +type queryConsensusStateHeightsRequestParams = { + value: QueryConsensusStateHeightsRequest, }; -type msgSubmitMisbehaviourParams = { - value: MsgSubmitMisbehaviour, +type queryClientStatusResponseParams = { + value: QueryClientStatusResponse, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type msgUpgradeClientParams = { + value: MsgUpgradeClient, }; -type identifiedClientStateParams = { - value: IdentifiedClientState, +type identifiedGenesisMetadataParams = { + value: IdentifiedGenesisMetadata, }; -type queryConsensusStateHeightsRequestParams = { - value: QueryConsensusStateHeightsRequest, +type genesisMetadataParams = { + value: GenesisMetadata, }; -type queryClientParamsResponseParams = { - value: QueryClientParamsResponse, +type msgIbcsoftwareUpgradeResponseParams = { + value: MsgIBCSoftwareUpgradeResponse, }; type paramsParams = { value: Params, }; -type msgUpgradeClientParams = { - value: MsgUpgradeClient, +type msgRecoverClientResponseParams = { + value: MsgRecoverClientResponse, }; -type heightParams = { - value: Height, +type queryConsensusStatesRequestParams = { + value: QueryConsensusStatesRequest, }; -type queryUpgradedClientStateRequestParams = { - value: QueryUpgradedClientStateRequest, +type queryConsensusStateResponseParams = { + value: QueryConsensusStateResponse, }; -type identifiedGenesisMetadataParams = { - value: IdentifiedGenesisMetadata, +type queryConsensusStatesResponseParams = { + value: QueryConsensusStatesResponse, }; -type msgIbcsoftwareUpgradeParams = { - value: MsgIBCSoftwareUpgrade, +type consensusStateWithHeightParams = { + value: ConsensusStateWithHeight, }; -type msgRecoverClientResponseParams = { - value: MsgRecoverClientResponse, +type queryUpgradedConsensusStateRequestParams = { + value: QueryUpgradedConsensusStateRequest, +}; + +type clientConsensusStatesParams = { + value: ClientConsensusStates, }; type upgradeProposalParams = { value: UpgradeProposal, }; -type msgSubmitMisbehaviourResponseParams = { - value: MsgSubmitMisbehaviourResponse, +type msgCreateClientResponseParams = { + value: MsgCreateClientResponse, }; -type queryClientStateResponseParams = { - value: QueryClientStateResponse, +type msgIbcsoftwareUpgradeParams = { + value: MsgIBCSoftwareUpgrade, }; -type queryConsensusStatesResponseParams = { - value: QueryConsensusStatesResponse, +type identifiedClientStateParams = { + value: IdentifiedClientState, }; -type queryClientStatusRequestParams = { - value: QueryClientStatusRequest, +type queryClientParamsRequestParams = { + value: QueryClientParamsRequest, }; -type msgRecoverClientParams = { - value: MsgRecoverClient, +type genesisStateParams = { + value: GenesisState, }; -type clientUpdateProposalParams = { - value: ClientUpdateProposal, +type queryClientStateResponseParams = { + value: QueryClientStateResponse, }; -type msgUpdateClientResponseParams = { - value: MsgUpdateClientResponse, +type msgUpdateParamsParams = { + value: MsgUpdateParams, +}; + +type queryClientParamsResponseParams = { + value: QueryClientParamsResponse, +}; + +type clientUpdateProposalParams = { + value: ClientUpdateProposal, }; @@ -503,624 +503,608 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgUpdateClient({ value, fee, memo }: sendMsgUpdateClientParams): Promise { + async sendMsgCreateClient({ value, fee, memo }: sendMsgCreateClientParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateClient: 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.msgUpdateClient({ value: MsgUpdateClient.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:sendMsgUpdateClient: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateClient: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpgradeClientResponse({ value, fee, memo }: sendMsgUpgradeClientResponseParams): Promise { + async sendMsgRecoverClient({ value, fee, memo }: sendMsgRecoverClientParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpgradeClientResponse: 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.msgUpgradeClientResponse({ value: MsgUpgradeClientResponse.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:sendMsgUpgradeClientResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRecoverClient: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendQueryClientStateRequest({ value, fee, memo }: sendQueryClientStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: 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.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.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:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendConsensusStateWithHeight({ value, fee, memo }: sendConsensusStateWithHeightParams): Promise { + async sendQueryConsensusStateRequest({ value, fee, memo }: sendQueryConsensusStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendConsensusStateWithHeight: 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.consensusStateWithHeight({ value: ConsensusStateWithHeight.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:sendConsensusStateWithHeight: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConsensusStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientStateRequest({ value, fee, memo }: sendQueryClientStateRequestParams): Promise { + async sendQueryConsensusStateHeightsResponse({ value, fee, memo }: sendQueryConsensusStateHeightsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientStateRequest: 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.queryClientStateRequest({ value: QueryClientStateRequest.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:sendQueryClientStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConsensusStateHeightsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientStatesRequest({ value, fee, memo }: sendQueryClientStatesRequestParams): Promise { + async sendQueryUpgradedClientStateResponse({ value, fee, memo }: sendQueryUpgradedClientStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientStatesRequest: 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.queryClientStatesRequest({ value: QueryClientStatesRequest.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:sendQueryClientStatesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUpgradedClientStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConsensusStateHeightsResponse({ value, fee, memo }: sendQueryConsensusStateHeightsResponseParams): Promise { + async sendQueryClientStatesResponse({ value, fee, memo }: sendQueryClientStatesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStateHeightsResponse: 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.queryConsensusStateHeightsResponse({ value: QueryConsensusStateHeightsResponse.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:sendQueryConsensusStateHeightsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientStatesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUpgradedClientStateResponse({ value, fee, memo }: sendQueryUpgradedClientStateResponseParams): Promise { + async sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: sendQueryUpgradedConsensusStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedClientStateResponse: 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.queryUpgradedClientStateResponse({ value: QueryUpgradedClientStateResponse.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:sendQueryUpgradedClientStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendMsgUpdateClient({ value, fee, memo }: sendMsgUpdateClientParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.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:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateClient: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisMetadata({ value, fee, memo }: sendGenesisMetadataParams): Promise { + async sendMsgUpdateClientResponse({ value, fee, memo }: sendMsgUpdateClientResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisMetadata: 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.genesisMetadata({ value: GenesisMetadata.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:sendGenesisMetadata: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateClientResponse: Could not broadcast Tx: '+ e.message) } }, - async sendClientConsensusStates({ value, fee, memo }: sendClientConsensusStatesParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendClientConsensusStates: 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.clientConsensusStates({ value: ClientConsensusStates.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:sendClientConsensusStates: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientStatesResponse({ value, fee, memo }: sendQueryClientStatesResponseParams): Promise { + async sendQueryClientStatusRequest({ value, fee, memo }: sendQueryClientStatusRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientStatesResponse: 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.queryClientStatesResponse({ value: QueryClientStatesResponse.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:sendQueryClientStatesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientStatusRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConsensusStateRequest({ value, fee, memo }: sendQueryConsensusStateRequestParams): Promise { + async sendQueryUpgradedClientStateRequest({ value, fee, memo }: sendQueryUpgradedClientStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStateRequest: 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.queryConsensusStateRequest({ value: QueryConsensusStateRequest.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:sendQueryConsensusStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUpgradedClientStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientStatusResponse({ value, fee, memo }: sendQueryClientStatusResponseParams): Promise { + async sendHeight({ value, fee, memo }: sendHeightParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientStatusResponse: 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.queryClientStatusResponse({ value: QueryClientStatusResponse.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:sendQueryClientStatusResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendHeight: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUpgradedConsensusStateRequest({ value, fee, memo }: sendQueryUpgradedConsensusStateRequestParams): Promise { + async sendMsgUpgradeClientResponse({ value, fee, memo }: sendMsgUpgradeClientResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: 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.queryUpgradedConsensusStateRequest({ value: QueryUpgradedConsensusStateRequest.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:sendQueryUpgradedConsensusStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpgradeClientResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: sendQueryUpgradedConsensusStateResponseParams): Promise { + async sendMsgSubmitMisbehaviour({ value, fee, memo }: sendMsgSubmitMisbehaviourParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: Unable to sign Tx. Signer is not present.') + 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.queryUpgradedConsensusStateResponse({ value: QueryUpgradedConsensusStateResponse.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:sendQueryUpgradedConsensusStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitMisbehaviour: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateClient({ value, fee, memo }: sendMsgCreateClientParams): Promise { + async sendMsgSubmitMisbehaviourResponse({ value, fee, memo }: sendMsgSubmitMisbehaviourResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateClient: 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.msgCreateClient({ value: MsgCreateClient.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:sendMsgCreateClient: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSubmitMisbehaviourResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateClientResponse({ value, fee, memo }: sendMsgCreateClientResponseParams): Promise { + async sendQueryClientStatesRequest({ value, fee, memo }: sendQueryClientStatesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateClientResponse: 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.msgCreateClientResponse({ value: MsgCreateClientResponse.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:sendMsgCreateClientResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientStatesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgIBCSoftwareUpgradeResponse({ value, fee, memo }: sendMsgIBCSoftwareUpgradeResponseParams): Promise { + async sendQueryConsensusStateHeightsRequest({ value, fee, memo }: sendQueryConsensusStateHeightsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgIBCSoftwareUpgradeResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConsensusStateHeightsRequest: Unable to 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.queryConsensusStateHeightsRequest({ value: QueryConsensusStateHeightsRequest.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:sendQueryConsensusStateHeightsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConsensusStateResponse({ value, fee, memo }: sendQueryConsensusStateResponseParams): Promise { + async sendQueryClientStatusResponse({ value, fee, memo }: sendQueryClientStatusResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStateResponse: 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.queryConsensusStateResponse({ value: QueryConsensusStateResponse.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:sendQueryConsensusStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientStatusResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConsensusStatesRequest({ value, fee, memo }: sendQueryConsensusStatesRequestParams): Promise { + async sendMsgUpgradeClient({ value, fee, memo }: sendMsgUpgradeClientParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStatesRequest: 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.queryConsensusStatesRequest({ value: QueryConsensusStatesRequest.fromPartial(value) }) + 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:sendQueryConsensusStatesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpgradeClient: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientParamsRequest({ value, fee, memo }: sendQueryClientParamsRequestParams): Promise { + async sendIdentifiedGenesisMetadata({ value, fee, memo }: sendIdentifiedGenesisMetadataParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientParamsRequest: 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.queryClientParamsRequest({ value: QueryClientParamsRequest.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:sendQueryClientParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendIdentifiedGenesisMetadata: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitMisbehaviour({ value, fee, memo }: sendMsgSubmitMisbehaviourParams): Promise { + async sendGenesisMetadata({ value, fee, memo }: sendGenesisMetadataParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitMisbehaviour: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendGenesisMetadata: Unable to 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) }) + let msg = this.genesisMetadata({ value: GenesisMetadata.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) + throw new Error('TxClient:sendGenesisMetadata: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendMsgIBCSoftwareUpgradeResponse({ value, fee, memo }: sendMsgIBCSoftwareUpgradeResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.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:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgIBCSoftwareUpgradeResponse: Could not broadcast Tx: '+ e.message) } }, - async sendIdentifiedClientState({ value, fee, memo }: sendIdentifiedClientStateParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendIdentifiedClientState: 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.identifiedClientState({ value: IdentifiedClientState.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:sendIdentifiedClientState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConsensusStateHeightsRequest({ value, fee, memo }: sendQueryConsensusStateHeightsRequestParams): Promise { + async sendMsgRecoverClientResponse({ value, fee, memo }: sendMsgRecoverClientResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStateHeightsRequest: 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.queryConsensusStateHeightsRequest({ value: QueryConsensusStateHeightsRequest.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:sendQueryConsensusStateHeightsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRecoverClientResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientParamsResponse({ value, fee, memo }: sendQueryClientParamsResponseParams): Promise { + async sendQueryConsensusStatesRequest({ value, fee, memo }: sendQueryConsensusStatesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientParamsResponse: 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.queryClientParamsResponse({ value: QueryClientParamsResponse.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:sendQueryClientParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConsensusStatesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendQueryConsensusStateResponse({ value, fee, memo }: sendQueryConsensusStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: 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.params({ value: Params.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:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConsensusStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpgradeClient({ value, fee, memo }: sendMsgUpgradeClientParams): Promise { + async sendQueryConsensusStatesResponse({ value, fee, memo }: sendQueryConsensusStatesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpgradeClient: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryConsensusStatesResponse: Unable to 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.queryConsensusStatesResponse({ value: QueryConsensusStatesResponse.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:sendQueryConsensusStatesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendHeight({ value, fee, memo }: sendHeightParams): Promise { + async sendConsensusStateWithHeight({ value, fee, memo }: sendConsensusStateWithHeightParams): Promise { if (!signer) { - throw new Error('TxClient:sendHeight: 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.height({ value: Height.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:sendHeight: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendConsensusStateWithHeight: Could not broadcast Tx: '+ e.message) } }, - async sendQueryUpgradedClientStateRequest({ value, fee, memo }: sendQueryUpgradedClientStateRequestParams): Promise { + async sendQueryUpgradedConsensusStateRequest({ value, fee, memo }: sendQueryUpgradedConsensusStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedClientStateRequest: 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.queryUpgradedClientStateRequest({ value: QueryUpgradedClientStateRequest.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:sendQueryUpgradedClientStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: Could not broadcast Tx: '+ e.message) } }, - async sendIdentifiedGenesisMetadata({ value, fee, memo }: sendIdentifiedGenesisMetadataParams): Promise { + async sendClientConsensusStates({ value, fee, memo }: sendClientConsensusStatesParams): Promise { if (!signer) { - throw new Error('TxClient:sendIdentifiedGenesisMetadata: 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.identifiedGenesisMetadata({ value: IdentifiedGenesisMetadata.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:sendIdentifiedGenesisMetadata: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendClientConsensusStates: Could not broadcast Tx: '+ e.message) } }, - async sendMsgIBCSoftwareUpgrade({ value, fee, memo }: sendMsgIBCSoftwareUpgradeParams): Promise { + async sendUpgradeProposal({ value, fee, memo }: sendUpgradeProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgIBCSoftwareUpgrade: 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.msgIbcsoftwareUpgrade({ value: MsgIBCSoftwareUpgrade.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:sendMsgIBCSoftwareUpgrade: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendUpgradeProposal: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRecoverClientResponse({ value, fee, memo }: sendMsgRecoverClientResponseParams): Promise { + async sendMsgCreateClientResponse({ value, fee, memo }: sendMsgCreateClientResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRecoverClientResponse: 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.msgRecoverClientResponse({ value: MsgRecoverClientResponse.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:sendMsgRecoverClientResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateClientResponse: Could not broadcast Tx: '+ e.message) } }, - async sendUpgradeProposal({ value, fee, memo }: sendUpgradeProposalParams): Promise { + async sendMsgIBCSoftwareUpgrade({ value, fee, memo }: sendMsgIBCSoftwareUpgradeParams): Promise { if (!signer) { - throw new Error('TxClient:sendUpgradeProposal: 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.upgradeProposal({ value: UpgradeProposal.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:sendUpgradeProposal: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgIBCSoftwareUpgrade: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSubmitMisbehaviourResponse({ value, fee, memo }: sendMsgSubmitMisbehaviourResponseParams): Promise { + async sendIdentifiedClientState({ value, fee, memo }: sendIdentifiedClientStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSubmitMisbehaviourResponse: 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.msgSubmitMisbehaviourResponse({ value: MsgSubmitMisbehaviourResponse.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:sendMsgSubmitMisbehaviourResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendIdentifiedClientState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientStateResponse({ value, fee, memo }: sendQueryClientStateResponseParams): Promise { + async sendQueryClientParamsRequest({ value, fee, memo }: sendQueryClientParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientStateResponse: 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.queryClientStateResponse({ value: QueryClientStateResponse.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:sendQueryClientStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConsensusStatesResponse({ value, fee, memo }: sendQueryConsensusStatesResponseParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStatesResponse: 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.queryConsensusStatesResponse({ value: QueryConsensusStatesResponse.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:sendQueryConsensusStatesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientStatusRequest({ value, fee, memo }: sendQueryClientStatusRequestParams): Promise { + async sendQueryClientStateResponse({ value, fee, memo }: sendQueryClientStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientStatusRequest: 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.queryClientStatusRequest({ value: QueryClientStatusRequest.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:sendQueryClientStatusRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRecoverClient({ value, fee, memo }: sendMsgRecoverClientParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRecoverClient: 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.msgRecoverClient({ value: MsgRecoverClient.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:sendMsgRecoverClient: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendClientUpdateProposal({ value, fee, memo }: sendClientUpdateProposalParams): Promise { + async sendQueryClientParamsResponse({ value, fee, memo }: sendQueryClientParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendClientUpdateProposal: 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.clientUpdateProposal({ value: ClientUpdateProposal.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:sendClientUpdateProposal: 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 sendClientUpdateProposal({ value, fee, memo }: sendClientUpdateProposalParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateClientResponse: 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.msgUpdateClientResponse({ value: MsgUpdateClientResponse.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:sendMsgUpdateClientResponse: Could not broadcast Tx: '+ e.message) - } - }, - - - msgUpdateClient({ value }: msgUpdateClientParams): EncodeObject { - try { - return { typeUrl: "/ibc.core.client.v1.MsgUpdateClient", value: MsgUpdateClient.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgUpdateClient: Could not create message: ' + e.message) + throw new Error('TxClient:sendClientUpdateProposal: Could not broadcast Tx: '+ e.message) } }, - msgUpgradeClientResponse({ value }: msgUpgradeClientResponseParams): EncodeObject { - try { - return { typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", value: MsgUpgradeClientResponse.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgUpgradeClientResponse: Could not create message: ' + e.message) - } - }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + msgCreateClient({ value }: msgCreateClientParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgCreateClient", value: MsgCreateClient.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateClient: Could not create message: ' + e.message) } }, - consensusStateWithHeight({ value }: consensusStateWithHeightParams): EncodeObject { + msgRecoverClient({ value }: msgRecoverClientParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", value: ConsensusStateWithHeight.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgRecoverClient", value: MsgRecoverClient.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ConsensusStateWithHeight: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRecoverClient: Could not create message: ' + e.message) } }, @@ -1132,11 +1116,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryClientStatesRequest({ value }: queryClientStatesRequestParams): EncodeObject { + queryConsensusStateRequest({ value }: queryConsensusStateRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", value: QueryClientStatesRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", value: QueryConsensusStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientStatesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConsensusStateRequest: Could not create message: ' + e.message) } }, @@ -1156,211 +1140,211 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - genesisState({ value }: genesisStateParams): EncodeObject { + queryClientStatesResponse({ value }: queryClientStatesResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", value: QueryClientStatesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientStatesResponse: Could not create message: ' + e.message) } }, - genesisMetadata({ value }: genesisMetadataParams): EncodeObject { + queryUpgradedConsensusStateResponse({ value }: queryUpgradedConsensusStateResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.GenesisMetadata", value: GenesisMetadata.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", value: QueryUpgradedConsensusStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisMetadata: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUpgradedConsensusStateResponse: Could not create message: ' + e.message) } }, - clientConsensusStates({ value }: clientConsensusStatesParams): EncodeObject { + msgUpdateClient({ value }: msgUpdateClientParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.ClientConsensusStates", value: ClientConsensusStates.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgUpdateClient", value: MsgUpdateClient.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ClientConsensusStates: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateClient: Could not create message: ' + e.message) } }, - queryClientStatesResponse({ value }: queryClientStatesResponseParams): EncodeObject { + msgUpdateClientResponse({ value }: msgUpdateClientResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", value: QueryClientStatesResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", value: MsgUpdateClientResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientStatesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateClientResponse: Could not create message: ' + e.message) } }, - queryConsensusStateRequest({ value }: queryConsensusStateRequestParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", value: QueryConsensusStateRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConsensusStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - queryClientStatusResponse({ value }: queryClientStatusResponseParams): EncodeObject { + queryClientStatusRequest({ value }: queryClientStatusRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", value: QueryClientStatusResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", value: QueryClientStatusRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientStatusResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientStatusRequest: Could not create message: ' + e.message) } }, - queryUpgradedConsensusStateRequest({ value }: queryUpgradedConsensusStateRequestParams): EncodeObject { + queryUpgradedClientStateRequest({ value }: queryUpgradedClientStateRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", value: QueryUpgradedConsensusStateRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", value: QueryUpgradedClientStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUpgradedConsensusStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUpgradedClientStateRequest: Could not create message: ' + e.message) } }, - queryUpgradedConsensusStateResponse({ value }: queryUpgradedConsensusStateResponseParams): EncodeObject { + height({ value }: heightParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", value: QueryUpgradedConsensusStateResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.Height", value: Height.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUpgradedConsensusStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Height: Could not create message: ' + e.message) } }, - msgCreateClient({ value }: msgCreateClientParams): EncodeObject { + msgUpgradeClientResponse({ value }: msgUpgradeClientResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgCreateClient", value: MsgCreateClient.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", value: MsgUpgradeClientResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateClient: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpgradeClientResponse: Could not create message: ' + e.message) } }, - msgCreateClientResponse({ value }: msgCreateClientResponseParams): EncodeObject { + msgSubmitMisbehaviour({ value }: msgSubmitMisbehaviourParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", value: MsgCreateClientResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", value: MsgSubmitMisbehaviour.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateClientResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitMisbehaviour: Could not create message: ' + e.message) } }, - msgIbcsoftwareUpgradeResponse({ value }: msgIbcsoftwareUpgradeResponseParams): EncodeObject { + msgSubmitMisbehaviourResponse({ value }: msgSubmitMisbehaviourResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse", value: MsgIBCSoftwareUpgradeResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", value: MsgSubmitMisbehaviourResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgIBCSoftwareUpgradeResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSubmitMisbehaviourResponse: Could not create message: ' + e.message) } }, - queryConsensusStateResponse({ value }: queryConsensusStateResponseParams): EncodeObject { + queryClientStatesRequest({ value }: queryClientStatesRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", value: QueryConsensusStateResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", value: QueryClientStatesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConsensusStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientStatesRequest: Could not create message: ' + e.message) } }, - queryConsensusStatesRequest({ value }: queryConsensusStatesRequestParams): EncodeObject { + queryConsensusStateHeightsRequest({ value }: queryConsensusStateHeightsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", value: QueryConsensusStatesRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", value: QueryConsensusStateHeightsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConsensusStatesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConsensusStateHeightsRequest: Could not create message: ' + e.message) } }, - queryClientParamsRequest({ value }: queryClientParamsRequestParams): EncodeObject { + queryClientStatusResponse({ value }: queryClientStatusResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", value: QueryClientParamsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", value: QueryClientStatusResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientStatusResponse: Could not create message: ' + e.message) } }, - msgSubmitMisbehaviour({ value }: msgSubmitMisbehaviourParams): EncodeObject { + msgUpgradeClient({ value }: msgUpgradeClientParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", value: MsgSubmitMisbehaviour.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", value: MsgUpgradeClient.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitMisbehaviour: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpgradeClient: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + identifiedGenesisMetadata({ value }: identifiedGenesisMetadataParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", value: IdentifiedGenesisMetadata.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:IdentifiedGenesisMetadata: Could not create message: ' + e.message) } }, - identifiedClientState({ value }: identifiedClientStateParams): EncodeObject { + genesisMetadata({ value }: genesisMetadataParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.IdentifiedClientState", value: IdentifiedClientState.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.GenesisMetadata", value: GenesisMetadata.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:IdentifiedClientState: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisMetadata: Could not create message: ' + e.message) } }, - queryConsensusStateHeightsRequest({ value }: queryConsensusStateHeightsRequestParams): EncodeObject { + msgIbcsoftwareUpgradeResponse({ value }: msgIbcsoftwareUpgradeResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", value: QueryConsensusStateHeightsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse", value: MsgIBCSoftwareUpgradeResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConsensusStateHeightsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgIBCSoftwareUpgradeResponse: Could not create message: ' + e.message) } }, - queryClientParamsResponse({ value }: queryClientParamsResponseParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", value: QueryClientParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + msgRecoverClientResponse({ value }: msgRecoverClientResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgRecoverClientResponse", value: MsgRecoverClientResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRecoverClientResponse: Could not create message: ' + e.message) } }, - msgUpgradeClient({ value }: msgUpgradeClientParams): EncodeObject { + queryConsensusStatesRequest({ value }: queryConsensusStatesRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", value: MsgUpgradeClient.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", value: QueryConsensusStatesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpgradeClient: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConsensusStatesRequest: Could not create message: ' + e.message) } }, - height({ value }: heightParams): EncodeObject { + queryConsensusStateResponse({ value }: queryConsensusStateResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.Height", value: Height.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", value: QueryConsensusStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Height: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConsensusStateResponse: Could not create message: ' + e.message) } }, - queryUpgradedClientStateRequest({ value }: queryUpgradedClientStateRequestParams): EncodeObject { + queryConsensusStatesResponse({ value }: queryConsensusStatesResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", value: QueryUpgradedClientStateRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", value: QueryConsensusStatesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryUpgradedClientStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConsensusStatesResponse: Could not create message: ' + e.message) } }, - identifiedGenesisMetadata({ value }: identifiedGenesisMetadataParams): EncodeObject { + consensusStateWithHeight({ value }: consensusStateWithHeightParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", value: IdentifiedGenesisMetadata.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", value: ConsensusStateWithHeight.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:IdentifiedGenesisMetadata: Could not create message: ' + e.message) + throw new Error('TxClient:ConsensusStateWithHeight: Could not create message: ' + e.message) } }, - msgIbcsoftwareUpgrade({ value }: msgIbcsoftwareUpgradeParams): EncodeObject { + queryUpgradedConsensusStateRequest({ value }: queryUpgradedConsensusStateRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgIBCSoftwareUpgrade", value: MsgIBCSoftwareUpgrade.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", value: QueryUpgradedConsensusStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgIBCSoftwareUpgrade: Could not create message: ' + e.message) + throw new Error('TxClient:QueryUpgradedConsensusStateRequest: Could not create message: ' + e.message) } }, - msgRecoverClientResponse({ value }: msgRecoverClientResponseParams): EncodeObject { + clientConsensusStates({ value }: clientConsensusStatesParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgRecoverClientResponse", value: MsgRecoverClientResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.ClientConsensusStates", value: ClientConsensusStates.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRecoverClientResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ClientConsensusStates: Could not create message: ' + e.message) } }, @@ -1372,59 +1356,75 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgSubmitMisbehaviourResponse({ value }: msgSubmitMisbehaviourResponseParams): EncodeObject { + msgCreateClientResponse({ value }: msgCreateClientResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", value: MsgSubmitMisbehaviourResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", value: MsgCreateClientResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSubmitMisbehaviourResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateClientResponse: Could not create message: ' + e.message) } }, - queryClientStateResponse({ value }: queryClientStateResponseParams): EncodeObject { + msgIbcsoftwareUpgrade({ value }: msgIbcsoftwareUpgradeParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", value: QueryClientStateResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgIBCSoftwareUpgrade", value: MsgIBCSoftwareUpgrade.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgIBCSoftwareUpgrade: Could not create message: ' + e.message) } }, - queryConsensusStatesResponse({ value }: queryConsensusStatesResponseParams): EncodeObject { + identifiedClientState({ value }: identifiedClientStateParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", value: QueryConsensusStatesResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.IdentifiedClientState", value: IdentifiedClientState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConsensusStatesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:IdentifiedClientState: Could not create message: ' + e.message) } }, - queryClientStatusRequest({ value }: queryClientStatusRequestParams): EncodeObject { + queryClientParamsRequest({ value }: queryClientParamsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", value: QueryClientStatusRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", value: QueryClientParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientStatusRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientParamsRequest: Could not create message: ' + e.message) } }, - msgRecoverClient({ value }: msgRecoverClientParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgRecoverClient", value: MsgRecoverClient.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRecoverClient: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - clientUpdateProposal({ value }: clientUpdateProposalParams): EncodeObject { + queryClientStateResponse({ value }: queryClientStateResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", value: ClientUpdateProposal.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", value: QueryClientStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ClientUpdateProposal: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientStateResponse: Could not create message: ' + e.message) } }, - msgUpdateClientResponse({ value }: msgUpdateClientResponseParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", value: MsgUpdateClientResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.client.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateClientResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + } + }, + + queryClientParamsResponse({ value }: queryClientParamsResponseParams): EncodeObject { + try { + return { typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", value: QueryClientParamsResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryClientParamsResponse: Could not create message: ' + e.message) + } + }, + + clientUpdateProposal({ value }: clientUpdateProposalParams): EncodeObject { + try { + return { typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", value: ClientUpdateProposal.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:ClientUpdateProposal: 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 cda777042..59fd366ce 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 { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; -import { MsgUpgradeClientResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgUpdateParamsResponse } from "./types/ibc/core/client/v1/tx"; -import { ConsensusStateWithHeight } from "./types/ibc/core/client/v1/client"; +import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; +import { MsgRecoverClient } from "./types/ibc/core/client/v1/tx"; import { QueryClientStateRequest } from "./types/ibc/core/client/v1/query"; -import { QueryClientStatesRequest } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStateRequest } from "./types/ibc/core/client/v1/query"; import { QueryConsensusStateHeightsResponse } from "./types/ibc/core/client/v1/query"; import { QueryUpgradedClientStateResponse } from "./types/ibc/core/client/v1/query"; -import { GenesisState } from "./types/ibc/core/client/v1/genesis"; -import { GenesisMetadata } from "./types/ibc/core/client/v1/genesis"; -import { ClientConsensusStates } from "./types/ibc/core/client/v1/client"; import { QueryClientStatesResponse } from "./types/ibc/core/client/v1/query"; -import { QueryConsensusStateRequest } from "./types/ibc/core/client/v1/query"; -import { QueryClientStatusResponse } from "./types/ibc/core/client/v1/query"; -import { QueryUpgradedConsensusStateRequest } from "./types/ibc/core/client/v1/query"; import { QueryUpgradedConsensusStateResponse } from "./types/ibc/core/client/v1/query"; -import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; -import { MsgCreateClientResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgIBCSoftwareUpgradeResponse } from "./types/ibc/core/client/v1/tx"; -import { QueryConsensusStateResponse } from "./types/ibc/core/client/v1/query"; -import { QueryConsensusStatesRequest } from "./types/ibc/core/client/v1/query"; -import { QueryClientParamsRequest } from "./types/ibc/core/client/v1/query"; +import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; +import { MsgUpdateClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgUpdateParamsResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryClientStatusRequest } from "./types/ibc/core/client/v1/query"; +import { QueryUpgradedClientStateRequest } from "./types/ibc/core/client/v1/query"; +import { Height } from "./types/ibc/core/client/v1/client"; +import { MsgUpgradeClientResponse } from "./types/ibc/core/client/v1/tx"; import { MsgSubmitMisbehaviour } from "./types/ibc/core/client/v1/tx"; -import { MsgUpdateParams } from "./types/ibc/core/client/v1/tx"; -import { IdentifiedClientState } 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 { QueryConsensusStateHeightsRequest } from "./types/ibc/core/client/v1/query"; -import { QueryClientParamsResponse } from "./types/ibc/core/client/v1/query"; -import { Params } from "./types/ibc/core/client/v1/client"; +import { QueryClientStatusResponse } from "./types/ibc/core/client/v1/query"; import { MsgUpgradeClient } from "./types/ibc/core/client/v1/tx"; -import { Height } from "./types/ibc/core/client/v1/client"; -import { QueryUpgradedClientStateRequest } from "./types/ibc/core/client/v1/query"; import { IdentifiedGenesisMetadata } from "./types/ibc/core/client/v1/genesis"; -import { MsgIBCSoftwareUpgrade } from "./types/ibc/core/client/v1/tx"; +import { GenesisMetadata } from "./types/ibc/core/client/v1/genesis"; +import { MsgIBCSoftwareUpgradeResponse } from "./types/ibc/core/client/v1/tx"; +import { Params } from "./types/ibc/core/client/v1/client"; import { MsgRecoverClientResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryConsensusStatesRequest } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStateResponse } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStatesResponse } from "./types/ibc/core/client/v1/query"; +import { ConsensusStateWithHeight } from "./types/ibc/core/client/v1/client"; +import { QueryUpgradedConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { ClientConsensusStates } from "./types/ibc/core/client/v1/client"; import { UpgradeProposal } from "./types/ibc/core/client/v1/client"; -import { MsgSubmitMisbehaviourResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgCreateClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgIBCSoftwareUpgrade } from "./types/ibc/core/client/v1/tx"; +import { IdentifiedClientState } from "./types/ibc/core/client/v1/client"; +import { QueryClientParamsRequest } from "./types/ibc/core/client/v1/query"; +import { GenesisState } from "./types/ibc/core/client/v1/genesis"; import { QueryClientStateResponse } 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 { MsgRecoverClient } from "./types/ibc/core/client/v1/tx"; +import { MsgUpdateParams } from "./types/ibc/core/client/v1/tx"; +import { QueryClientParamsResponse } from "./types/ibc/core/client/v1/query"; import { ClientUpdateProposal } from "./types/ibc/core/client/v1/client"; -import { MsgUpdateClientResponse } from "./types/ibc/core/client/v1/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/ibc.core.client.v1.MsgUpdateClient", MsgUpdateClient], - ["/ibc.core.client.v1.MsgUpgradeClientResponse", MsgUpgradeClientResponse], - ["/ibc.core.client.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/ibc.core.client.v1.ConsensusStateWithHeight", ConsensusStateWithHeight], + ["/ibc.core.client.v1.MsgCreateClient", MsgCreateClient], + ["/ibc.core.client.v1.MsgRecoverClient", MsgRecoverClient], ["/ibc.core.client.v1.QueryClientStateRequest", QueryClientStateRequest], - ["/ibc.core.client.v1.QueryClientStatesRequest", QueryClientStatesRequest], + ["/ibc.core.client.v1.QueryConsensusStateRequest", QueryConsensusStateRequest], ["/ibc.core.client.v1.QueryConsensusStateHeightsResponse", QueryConsensusStateHeightsResponse], ["/ibc.core.client.v1.QueryUpgradedClientStateResponse", QueryUpgradedClientStateResponse], - ["/ibc.core.client.v1.GenesisState", GenesisState], - ["/ibc.core.client.v1.GenesisMetadata", GenesisMetadata], - ["/ibc.core.client.v1.ClientConsensusStates", ClientConsensusStates], ["/ibc.core.client.v1.QueryClientStatesResponse", QueryClientStatesResponse], - ["/ibc.core.client.v1.QueryConsensusStateRequest", QueryConsensusStateRequest], - ["/ibc.core.client.v1.QueryClientStatusResponse", QueryClientStatusResponse], - ["/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", QueryUpgradedConsensusStateRequest], ["/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", QueryUpgradedConsensusStateResponse], - ["/ibc.core.client.v1.MsgCreateClient", MsgCreateClient], - ["/ibc.core.client.v1.MsgCreateClientResponse", MsgCreateClientResponse], - ["/ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse", MsgIBCSoftwareUpgradeResponse], - ["/ibc.core.client.v1.QueryConsensusStateResponse", QueryConsensusStateResponse], - ["/ibc.core.client.v1.QueryConsensusStatesRequest", QueryConsensusStatesRequest], - ["/ibc.core.client.v1.QueryClientParamsRequest", QueryClientParamsRequest], + ["/ibc.core.client.v1.MsgUpdateClient", MsgUpdateClient], + ["/ibc.core.client.v1.MsgUpdateClientResponse", MsgUpdateClientResponse], + ["/ibc.core.client.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/ibc.core.client.v1.QueryClientStatusRequest", QueryClientStatusRequest], + ["/ibc.core.client.v1.QueryUpgradedClientStateRequest", QueryUpgradedClientStateRequest], + ["/ibc.core.client.v1.Height", Height], + ["/ibc.core.client.v1.MsgUpgradeClientResponse", MsgUpgradeClientResponse], ["/ibc.core.client.v1.MsgSubmitMisbehaviour", MsgSubmitMisbehaviour], - ["/ibc.core.client.v1.MsgUpdateParams", MsgUpdateParams], - ["/ibc.core.client.v1.IdentifiedClientState", IdentifiedClientState], + ["/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", MsgSubmitMisbehaviourResponse], + ["/ibc.core.client.v1.QueryClientStatesRequest", QueryClientStatesRequest], ["/ibc.core.client.v1.QueryConsensusStateHeightsRequest", QueryConsensusStateHeightsRequest], - ["/ibc.core.client.v1.QueryClientParamsResponse", QueryClientParamsResponse], - ["/ibc.core.client.v1.Params", Params], + ["/ibc.core.client.v1.QueryClientStatusResponse", QueryClientStatusResponse], ["/ibc.core.client.v1.MsgUpgradeClient", MsgUpgradeClient], - ["/ibc.core.client.v1.Height", Height], - ["/ibc.core.client.v1.QueryUpgradedClientStateRequest", QueryUpgradedClientStateRequest], ["/ibc.core.client.v1.IdentifiedGenesisMetadata", IdentifiedGenesisMetadata], - ["/ibc.core.client.v1.MsgIBCSoftwareUpgrade", MsgIBCSoftwareUpgrade], + ["/ibc.core.client.v1.GenesisMetadata", GenesisMetadata], + ["/ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse", MsgIBCSoftwareUpgradeResponse], + ["/ibc.core.client.v1.Params", Params], ["/ibc.core.client.v1.MsgRecoverClientResponse", MsgRecoverClientResponse], + ["/ibc.core.client.v1.QueryConsensusStatesRequest", QueryConsensusStatesRequest], + ["/ibc.core.client.v1.QueryConsensusStateResponse", QueryConsensusStateResponse], + ["/ibc.core.client.v1.QueryConsensusStatesResponse", QueryConsensusStatesResponse], + ["/ibc.core.client.v1.ConsensusStateWithHeight", ConsensusStateWithHeight], + ["/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", QueryUpgradedConsensusStateRequest], + ["/ibc.core.client.v1.ClientConsensusStates", ClientConsensusStates], ["/ibc.core.client.v1.UpgradeProposal", UpgradeProposal], - ["/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", MsgSubmitMisbehaviourResponse], + ["/ibc.core.client.v1.MsgCreateClientResponse", MsgCreateClientResponse], + ["/ibc.core.client.v1.MsgIBCSoftwareUpgrade", MsgIBCSoftwareUpgrade], + ["/ibc.core.client.v1.IdentifiedClientState", IdentifiedClientState], + ["/ibc.core.client.v1.QueryClientParamsRequest", QueryClientParamsRequest], + ["/ibc.core.client.v1.GenesisState", GenesisState], ["/ibc.core.client.v1.QueryClientStateResponse", QueryClientStateResponse], - ["/ibc.core.client.v1.QueryConsensusStatesResponse", QueryConsensusStatesResponse], - ["/ibc.core.client.v1.QueryClientStatusRequest", QueryClientStatusRequest], - ["/ibc.core.client.v1.MsgRecoverClient", MsgRecoverClient], + ["/ibc.core.client.v1.MsgUpdateParams", MsgUpdateParams], + ["/ibc.core.client.v1.QueryClientParamsResponse", QueryClientParamsResponse], ["/ibc.core.client.v1.ClientUpdateProposal", ClientUpdateProposal], - ["/ibc.core.client.v1.MsgUpdateClientResponse", MsgUpdateClientResponse], ]; diff --git a/ts-client/ibc.core.connection.v1/module.ts b/ts-client/ibc.core.connection.v1/module.ts index 8a7286c1c..f8a932cdd 100755 --- a/ts-client/ibc.core.connection.v1/module.ts +++ b/ts-client/ibc.core.connection.v1/module.ts @@ -6,66 +6,60 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { QueryConnectionConsensusStateRequest } from "./types/ibc/core/connection/v1/query"; -import { GenesisState } from "./types/ibc/core/connection/v1/genesis"; -import { MsgConnectionOpenTryResponse } from "./types/ibc/core/connection/v1/tx"; -import { QueryConnectionResponse } from "./types/ibc/core/connection/v1/query"; -import { MsgConnectionOpenInitResponse } from "./types/ibc/core/connection/v1/tx"; +import { QueryConnectionRequest } from "./types/ibc/core/connection/v1/query"; +import { QueryClientConnectionsRequest } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionParamsRequest } from "./types/ibc/core/connection/v1/query"; +import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; import { MsgConnectionOpenAckResponse } from "./types/ibc/core/connection/v1/tx"; +import { MsgUpdateParamsResponse } from "./types/ibc/core/connection/v1/tx"; import { QueryConnectionClientStateRequest } from "./types/ibc/core/connection/v1/query"; -import { ClientPaths } from "./types/ibc/core/connection/v1/connection"; -import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; +import { QueryConnectionParamsResponse } from "./types/ibc/core/connection/v1/query"; import { MsgConnectionOpenConfirm } from "./types/ibc/core/connection/v1/tx"; import { MsgConnectionOpenConfirmResponse } from "./types/ibc/core/connection/v1/tx"; +import { GenesisState } from "./types/ibc/core/connection/v1/genesis"; +import { ClientPaths } from "./types/ibc/core/connection/v1/connection"; +import { ConnectionPaths } 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 { MsgConnectionOpenTryResponse } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; import { QueryClientConnectionsResponse } from "./types/ibc/core/connection/v1/query"; +import { Counterparty } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionsRequest } from "./types/ibc/core/connection/v1/query"; import { QueryConnectionClientStateResponse } from "./types/ibc/core/connection/v1/query"; +import { MsgConnectionOpenInit } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenInitResponse } from "./types/ibc/core/connection/v1/tx"; import { IdentifiedConnection } 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 { QueryConnectionParamsResponse } from "./types/ibc/core/connection/v1/query"; -import { ConnectionPaths } from "./types/ibc/core/connection/v1/connection"; -import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; +import { Params } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionConsensusStateRequest } from "./types/ibc/core/connection/v1/query"; import { MsgUpdateParams } from "./types/ibc/core/connection/v1/tx"; import { Version } from "./types/ibc/core/connection/v1/connection"; -import { QueryConnectionsRequest } from "./types/ibc/core/connection/v1/query"; -import { Params } from "./types/ibc/core/connection/v1/connection"; -import { MsgUpdateParamsResponse } from "./types/ibc/core/connection/v1/tx"; -import { Counterparty } from "./types/ibc/core/connection/v1/connection"; import { ConnectionEnd } from "./types/ibc/core/connection/v1/connection"; -import { QueryConnectionRequest } 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 { QueryConnectionsResponse } from "./types/ibc/core/connection/v1/query"; -export { QueryConnectionConsensusStateRequest, GenesisState, MsgConnectionOpenTryResponse, QueryConnectionResponse, MsgConnectionOpenInitResponse, MsgConnectionOpenAckResponse, QueryConnectionClientStateRequest, ClientPaths, MsgConnectionOpenAck, MsgConnectionOpenConfirm, MsgConnectionOpenConfirmResponse, QueryConnectionConsensusStateResponse, MsgConnectionOpenInit, QueryClientConnectionsResponse, QueryConnectionClientStateResponse, IdentifiedConnection, QueryConnectionsResponse, QueryClientConnectionsRequest, QueryConnectionParamsResponse, ConnectionPaths, MsgConnectionOpenTry, MsgUpdateParams, Version, QueryConnectionsRequest, Params, MsgUpdateParamsResponse, Counterparty, ConnectionEnd, QueryConnectionRequest, QueryConnectionParamsRequest }; -type sendQueryConnectionConsensusStateRequestParams = { - value: QueryConnectionConsensusStateRequest, - fee?: StdFee, - memo?: string -}; +export { QueryConnectionRequest, QueryClientConnectionsRequest, QueryConnectionParamsRequest, MsgConnectionOpenTry, MsgConnectionOpenAckResponse, MsgUpdateParamsResponse, QueryConnectionClientStateRequest, QueryConnectionParamsResponse, MsgConnectionOpenConfirm, MsgConnectionOpenConfirmResponse, GenesisState, ClientPaths, ConnectionPaths, QueryConnectionConsensusStateResponse, MsgConnectionOpenTryResponse, MsgConnectionOpenAck, QueryClientConnectionsResponse, Counterparty, QueryConnectionsRequest, QueryConnectionClientStateResponse, MsgConnectionOpenInit, MsgConnectionOpenInitResponse, IdentifiedConnection, Params, QueryConnectionConsensusStateRequest, MsgUpdateParams, Version, ConnectionEnd, QueryConnectionResponse, QueryConnectionsResponse }; -type sendGenesisStateParams = { - value: GenesisState, +type sendQueryConnectionRequestParams = { + value: QueryConnectionRequest, fee?: StdFee, memo?: string }; -type sendMsgConnectionOpenTryResponseParams = { - value: MsgConnectionOpenTryResponse, +type sendQueryClientConnectionsRequestParams = { + value: QueryClientConnectionsRequest, fee?: StdFee, memo?: string }; -type sendQueryConnectionResponseParams = { - value: QueryConnectionResponse, +type sendQueryConnectionParamsRequestParams = { + value: QueryConnectionParamsRequest, fee?: StdFee, memo?: string }; -type sendMsgConnectionOpenInitResponseParams = { - value: MsgConnectionOpenInitResponse, +type sendMsgConnectionOpenTryParams = { + value: MsgConnectionOpenTry, fee?: StdFee, memo?: string }; @@ -76,20 +70,20 @@ type sendMsgConnectionOpenAckResponseParams = { memo?: string }; -type sendQueryConnectionClientStateRequestParams = { - value: QueryConnectionClientStateRequest, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendClientPathsParams = { - value: ClientPaths, +type sendQueryConnectionClientStateRequestParams = { + value: QueryConnectionClientStateRequest, fee?: StdFee, memo?: string }; -type sendMsgConnectionOpenAckParams = { - value: MsgConnectionOpenAck, +type sendQueryConnectionParamsResponseParams = { + value: QueryConnectionParamsResponse, fee?: StdFee, memo?: string }; @@ -106,80 +100,80 @@ type sendMsgConnectionOpenConfirmResponseParams = { memo?: string }; -type sendQueryConnectionConsensusStateResponseParams = { - value: QueryConnectionConsensusStateResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendMsgConnectionOpenInitParams = { - value: MsgConnectionOpenInit, +type sendClientPathsParams = { + value: ClientPaths, fee?: StdFee, memo?: string }; -type sendQueryClientConnectionsResponseParams = { - value: QueryClientConnectionsResponse, +type sendConnectionPathsParams = { + value: ConnectionPaths, fee?: StdFee, memo?: string }; -type sendQueryConnectionClientStateResponseParams = { - value: QueryConnectionClientStateResponse, +type sendQueryConnectionConsensusStateResponseParams = { + value: QueryConnectionConsensusStateResponse, fee?: StdFee, memo?: string }; -type sendIdentifiedConnectionParams = { - value: IdentifiedConnection, +type sendMsgConnectionOpenTryResponseParams = { + value: MsgConnectionOpenTryResponse, fee?: StdFee, memo?: string }; -type sendQueryConnectionsResponseParams = { - value: QueryConnectionsResponse, +type sendMsgConnectionOpenAckParams = { + value: MsgConnectionOpenAck, fee?: StdFee, memo?: string }; -type sendQueryClientConnectionsRequestParams = { - value: QueryClientConnectionsRequest, +type sendQueryClientConnectionsResponseParams = { + value: QueryClientConnectionsResponse, fee?: StdFee, memo?: string }; -type sendQueryConnectionParamsResponseParams = { - value: QueryConnectionParamsResponse, +type sendCounterpartyParams = { + value: Counterparty, fee?: StdFee, memo?: string }; -type sendConnectionPathsParams = { - value: ConnectionPaths, +type sendQueryConnectionsRequestParams = { + value: QueryConnectionsRequest, fee?: StdFee, memo?: string }; -type sendMsgConnectionOpenTryParams = { - value: MsgConnectionOpenTry, +type sendQueryConnectionClientStateResponseParams = { + value: QueryConnectionClientStateResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendMsgConnectionOpenInitParams = { + value: MsgConnectionOpenInit, fee?: StdFee, memo?: string }; -type sendVersionParams = { - value: Version, +type sendMsgConnectionOpenInitResponseParams = { + value: MsgConnectionOpenInitResponse, fee?: StdFee, memo?: string }; -type sendQueryConnectionsRequestParams = { - value: QueryConnectionsRequest, +type sendIdentifiedConnectionParams = { + value: IdentifiedConnection, fee?: StdFee, memo?: string }; @@ -190,14 +184,20 @@ type sendParamsParams = { memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendQueryConnectionConsensusStateRequestParams = { + value: QueryConnectionConsensusStateRequest, fee?: StdFee, memo?: string }; -type sendCounterpartyParams = { - value: Counterparty, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, + fee?: StdFee, + memo?: string +}; + +type sendVersionParams = { + value: Version, fee?: StdFee, memo?: string }; @@ -208,53 +208,49 @@ type sendConnectionEndParams = { memo?: string }; -type sendQueryConnectionRequestParams = { - value: QueryConnectionRequest, +type sendQueryConnectionResponseParams = { + value: QueryConnectionResponse, fee?: StdFee, memo?: string }; -type sendQueryConnectionParamsRequestParams = { - value: QueryConnectionParamsRequest, +type sendQueryConnectionsResponseParams = { + value: QueryConnectionsResponse, fee?: StdFee, memo?: string }; -type queryConnectionConsensusStateRequestParams = { - value: QueryConnectionConsensusStateRequest, -}; - -type genesisStateParams = { - value: GenesisState, +type queryConnectionRequestParams = { + value: QueryConnectionRequest, }; -type msgConnectionOpenTryResponseParams = { - value: MsgConnectionOpenTryResponse, +type queryClientConnectionsRequestParams = { + value: QueryClientConnectionsRequest, }; -type queryConnectionResponseParams = { - value: QueryConnectionResponse, +type queryConnectionParamsRequestParams = { + value: QueryConnectionParamsRequest, }; -type msgConnectionOpenInitResponseParams = { - value: MsgConnectionOpenInitResponse, +type msgConnectionOpenTryParams = { + value: MsgConnectionOpenTry, }; type msgConnectionOpenAckResponseParams = { value: MsgConnectionOpenAckResponse, }; -type queryConnectionClientStateRequestParams = { - value: QueryConnectionClientStateRequest, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type clientPathsParams = { - value: ClientPaths, +type queryConnectionClientStateRequestParams = { + value: QueryConnectionClientStateRequest, }; -type msgConnectionOpenAckParams = { - value: MsgConnectionOpenAck, +type queryConnectionParamsResponseParams = { + value: QueryConnectionParamsResponse, }; type msgConnectionOpenConfirmParams = { @@ -265,80 +261,84 @@ type msgConnectionOpenConfirmResponseParams = { value: MsgConnectionOpenConfirmResponse, }; -type queryConnectionConsensusStateResponseParams = { - value: QueryConnectionConsensusStateResponse, +type genesisStateParams = { + value: GenesisState, }; -type msgConnectionOpenInitParams = { - value: MsgConnectionOpenInit, +type clientPathsParams = { + value: ClientPaths, }; -type queryClientConnectionsResponseParams = { - value: QueryClientConnectionsResponse, +type connectionPathsParams = { + value: ConnectionPaths, }; -type queryConnectionClientStateResponseParams = { - value: QueryConnectionClientStateResponse, +type queryConnectionConsensusStateResponseParams = { + value: QueryConnectionConsensusStateResponse, }; -type identifiedConnectionParams = { - value: IdentifiedConnection, +type msgConnectionOpenTryResponseParams = { + value: MsgConnectionOpenTryResponse, }; -type queryConnectionsResponseParams = { - value: QueryConnectionsResponse, +type msgConnectionOpenAckParams = { + value: MsgConnectionOpenAck, }; -type queryClientConnectionsRequestParams = { - value: QueryClientConnectionsRequest, +type queryClientConnectionsResponseParams = { + value: QueryClientConnectionsResponse, }; -type queryConnectionParamsResponseParams = { - value: QueryConnectionParamsResponse, +type counterpartyParams = { + value: Counterparty, }; -type connectionPathsParams = { - value: ConnectionPaths, +type queryConnectionsRequestParams = { + value: QueryConnectionsRequest, }; -type msgConnectionOpenTryParams = { - value: MsgConnectionOpenTry, +type queryConnectionClientStateResponseParams = { + value: QueryConnectionClientStateResponse, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type msgConnectionOpenInitParams = { + value: MsgConnectionOpenInit, }; -type versionParams = { - value: Version, +type msgConnectionOpenInitResponseParams = { + value: MsgConnectionOpenInitResponse, }; -type queryConnectionsRequestParams = { - value: QueryConnectionsRequest, +type identifiedConnectionParams = { + value: IdentifiedConnection, }; type paramsParams = { value: Params, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type queryConnectionConsensusStateRequestParams = { + value: QueryConnectionConsensusStateRequest, }; -type counterpartyParams = { - value: Counterparty, +type msgUpdateParamsParams = { + value: MsgUpdateParams, +}; + +type versionParams = { + value: Version, }; type connectionEndParams = { value: ConnectionEnd, }; -type queryConnectionRequestParams = { - value: QueryConnectionRequest, +type queryConnectionResponseParams = { + value: QueryConnectionResponse, }; -type queryConnectionParamsRequestParams = { - value: QueryConnectionParamsRequest, +type queryConnectionsResponseParams = { + value: QueryConnectionsResponse, }; @@ -371,87 +371,87 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendQueryConnectionConsensusStateRequest({ value, fee, memo }: sendQueryConnectionConsensusStateRequestParams): Promise { + async sendQueryConnectionRequest({ value, fee, memo }: sendQueryConnectionRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionConsensusStateRequest: 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.queryConnectionConsensusStateRequest({ value: QueryConnectionConsensusStateRequest.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:sendQueryConnectionConsensusStateRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionRequest: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQueryClientConnectionsRequest({ value, fee, memo }: sendQueryClientConnectionsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryClientConnectionsRequest: Unable to 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.queryClientConnectionsRequest({ value: QueryClientConnectionsRequest.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:sendQueryClientConnectionsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenTryResponse({ value, fee, memo }: sendMsgConnectionOpenTryResponseParams): Promise { + async sendQueryConnectionParamsRequest({ value, fee, memo }: sendQueryConnectionParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenTryResponse: 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.msgConnectionOpenTryResponse({ value: MsgConnectionOpenTryResponse.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:sendMsgConnectionOpenTryResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionResponse({ value, fee, memo }: sendQueryConnectionResponseParams): Promise { + async sendMsgConnectionOpenTry({ value, fee, memo }: sendMsgConnectionOpenTryParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionResponse: 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.queryConnectionResponse({ value: QueryConnectionResponse.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:sendQueryConnectionResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenTry: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenInitResponse({ value, fee, memo }: sendMsgConnectionOpenInitResponseParams): Promise { + async sendMsgConnectionOpenAckResponse({ value, fee, memo }: sendMsgConnectionOpenAckResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenInitResponse: 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.msgConnectionOpenInitResponse({ value: MsgConnectionOpenInitResponse.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:sendMsgConnectionOpenInitResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenAckResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenAckResponse({ value, fee, memo }: sendMsgConnectionOpenAckResponseParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenAckResponse: 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.msgConnectionOpenAckResponse({ value: MsgConnectionOpenAckResponse.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:sendMsgConnectionOpenAckResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, @@ -469,283 +469,283 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendClientPaths({ value, fee, memo }: sendClientPathsParams): Promise { + async sendQueryConnectionParamsResponse({ value, fee, memo }: sendQueryConnectionParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendClientPaths: 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.clientPaths({ value: ClientPaths.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:sendClientPaths: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenAck({ value, fee, memo }: sendMsgConnectionOpenAckParams): Promise { + async sendMsgConnectionOpenConfirm({ value, fee, memo }: sendMsgConnectionOpenConfirmParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenAck: 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.msgConnectionOpenAck({ value: MsgConnectionOpenAck.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:sendMsgConnectionOpenAck: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenConfirm: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenConfirm({ value, fee, memo }: sendMsgConnectionOpenConfirmParams): Promise { + async sendMsgConnectionOpenConfirmResponse({ value, fee, memo }: sendMsgConnectionOpenConfirmResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenConfirm: 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.msgConnectionOpenConfirm({ value: MsgConnectionOpenConfirm.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:sendMsgConnectionOpenConfirm: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenConfirmResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenConfirmResponse({ value, fee, memo }: sendMsgConnectionOpenConfirmResponseParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenConfirmResponse: 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.msgConnectionOpenConfirmResponse({ value: MsgConnectionOpenConfirmResponse.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:sendMsgConnectionOpenConfirmResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionConsensusStateResponse({ value, fee, memo }: sendQueryConnectionConsensusStateResponseParams): Promise { + async sendClientPaths({ value, fee, memo }: sendClientPathsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionConsensusStateResponse: 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.queryConnectionConsensusStateResponse({ value: QueryConnectionConsensusStateResponse.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:sendQueryConnectionConsensusStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendClientPaths: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenInit({ value, fee, memo }: sendMsgConnectionOpenInitParams): Promise { + async sendConnectionPaths({ value, fee, memo }: sendConnectionPathsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenInit: 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.msgConnectionOpenInit({ value: MsgConnectionOpenInit.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:sendMsgConnectionOpenInit: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendConnectionPaths: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientConnectionsResponse({ value, fee, memo }: sendQueryClientConnectionsResponseParams): Promise { + async sendQueryConnectionConsensusStateResponse({ value, fee, memo }: sendQueryConnectionConsensusStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientConnectionsResponse: 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.queryClientConnectionsResponse({ value: QueryClientConnectionsResponse.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:sendQueryClientConnectionsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionConsensusStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionClientStateResponse({ value, fee, memo }: sendQueryConnectionClientStateResponseParams): Promise { + async sendMsgConnectionOpenTryResponse({ value, fee, memo }: sendMsgConnectionOpenTryResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionClientStateResponse: 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.queryConnectionClientStateResponse({ value: QueryConnectionClientStateResponse.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:sendQueryConnectionClientStateResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenTryResponse: Could not broadcast Tx: '+ e.message) } }, - async sendIdentifiedConnection({ value, fee, memo }: sendIdentifiedConnectionParams): Promise { + async sendMsgConnectionOpenAck({ value, fee, memo }: sendMsgConnectionOpenAckParams): Promise { if (!signer) { - throw new Error('TxClient:sendIdentifiedConnection: 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.identifiedConnection({ value: IdentifiedConnection.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:sendIdentifiedConnection: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenAck: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionsResponse({ value, fee, memo }: sendQueryConnectionsResponseParams): Promise { + async sendQueryClientConnectionsResponse({ value, fee, memo }: sendQueryClientConnectionsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionsResponse: 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.queryConnectionsResponse({ value: QueryConnectionsResponse.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:sendQueryConnectionsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryClientConnectionsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryClientConnectionsRequest({ value, fee, memo }: sendQueryClientConnectionsRequestParams): Promise { + async sendCounterparty({ value, fee, memo }: sendCounterpartyParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryClientConnectionsRequest: 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.queryClientConnectionsRequest({ value: QueryClientConnectionsRequest.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:sendQueryClientConnectionsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendCounterparty: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionParamsResponse({ value, fee, memo }: sendQueryConnectionParamsResponseParams): Promise { + async sendQueryConnectionsRequest({ value, fee, memo }: sendQueryConnectionsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionParamsResponse: 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.queryConnectionParamsResponse({ value: QueryConnectionParamsResponse.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:sendQueryConnectionParamsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendConnectionPaths({ value, fee, memo }: sendConnectionPathsParams): Promise { + async sendQueryConnectionClientStateResponse({ value, fee, memo }: sendQueryConnectionClientStateResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendConnectionPaths: 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.connectionPaths({ value: ConnectionPaths.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:sendConnectionPaths: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionClientStateResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgConnectionOpenTry({ value, fee, memo }: sendMsgConnectionOpenTryParams): Promise { + async sendMsgConnectionOpenInit({ value, fee, memo }: sendMsgConnectionOpenInitParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenTry: 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.msgConnectionOpenTry({ value: MsgConnectionOpenTry.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:sendMsgConnectionOpenTry: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenInit: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendMsgConnectionOpenInitResponse({ value, fee, memo }: sendMsgConnectionOpenInitResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.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:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgConnectionOpenInitResponse: Could not broadcast Tx: '+ e.message) } }, - async sendVersion({ value, fee, memo }: sendVersionParams): Promise { + async sendIdentifiedConnection({ value, fee, memo }: sendIdentifiedConnectionParams): Promise { if (!signer) { - throw new Error('TxClient:sendVersion: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendIdentifiedConnection: Unable to 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.identifiedConnection({ value: IdentifiedConnection.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:sendIdentifiedConnection: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionsRequest({ value, fee, memo }: sendQueryConnectionsRequestParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionsRequest: 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.queryConnectionsRequest({ value: QueryConnectionsRequest.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:sendQueryConnectionsRequest: 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 sendQueryConnectionConsensusStateRequest({ value, fee, memo }: sendQueryConnectionConsensusStateRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: 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.params({ value: Params.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:sendParams: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionConsensusStateRequest: 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 sendCounterparty({ value, fee, memo }: sendCounterpartyParams): Promise { + async sendVersion({ value, fee, memo }: sendVersionParams): Promise { if (!signer) { - throw new Error('TxClient:sendCounterparty: 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.counterparty({ value: Counterparty.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:sendCounterparty: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendVersion: Could not broadcast Tx: '+ e.message) } }, @@ -763,72 +763,64 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryConnectionRequest({ value, fee, memo }: sendQueryConnectionRequestParams): Promise { + async sendQueryConnectionResponse({ value, fee, memo }: sendQueryConnectionResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionRequest: 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.queryConnectionRequest({ value: QueryConnectionRequest.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:sendQueryConnectionRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryConnectionParamsRequest({ value, fee, memo }: sendQueryConnectionParamsRequestParams): Promise { + async sendQueryConnectionsResponse({ value, fee, memo }: sendQueryConnectionsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryConnectionParamsRequest: 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.queryConnectionParamsRequest({ value: QueryConnectionParamsRequest.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:sendQueryConnectionParamsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryConnectionsResponse: Could not broadcast Tx: '+ e.message) } }, - queryConnectionConsensusStateRequest({ value }: queryConnectionConsensusStateRequestParams): EncodeObject { - try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateRequest", value: QueryConnectionConsensusStateRequest.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:QueryConnectionConsensusStateRequest: Could not create message: ' + e.message) - } - }, - - genesisState({ value }: genesisStateParams): EncodeObject { + queryConnectionRequest({ value }: queryConnectionRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionRequest", value: QueryConnectionRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionRequest: Could not create message: ' + e.message) } }, - msgConnectionOpenTryResponse({ value }: msgConnectionOpenTryResponseParams): EncodeObject { + queryClientConnectionsRequest({ value }: queryClientConnectionsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTryResponse", value: MsgConnectionOpenTryResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsRequest", value: QueryClientConnectionsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgConnectionOpenTryResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientConnectionsRequest: Could not create message: ' + e.message) } }, - queryConnectionResponse({ value }: queryConnectionResponseParams): EncodeObject { + queryConnectionParamsRequest({ value }: queryConnectionParamsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionResponse", value: QueryConnectionResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsRequest", value: QueryConnectionParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionParamsRequest: Could not create message: ' + e.message) } }, - msgConnectionOpenInitResponse({ value }: msgConnectionOpenInitResponseParams): EncodeObject { + msgConnectionOpenTry({ value }: msgConnectionOpenTryParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInitResponse", value: MsgConnectionOpenInitResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTry", value: MsgConnectionOpenTry.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgConnectionOpenInitResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgConnectionOpenTry: Could not create message: ' + e.message) } }, @@ -840,27 +832,27 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryConnectionClientStateRequest({ value }: queryConnectionClientStateRequestParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateRequest", value: QueryConnectionClientStateRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionClientStateRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - clientPaths({ value }: clientPathsParams): EncodeObject { + queryConnectionClientStateRequest({ value }: queryConnectionClientStateRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.ClientPaths", value: ClientPaths.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateRequest", value: QueryConnectionClientStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ClientPaths: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionClientStateRequest: Could not create message: ' + e.message) } }, - msgConnectionOpenAck({ value }: msgConnectionOpenAckParams): EncodeObject { + queryConnectionParamsResponse({ value }: queryConnectionParamsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck", value: MsgConnectionOpenAck.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsResponse", value: QueryConnectionParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgConnectionOpenAck: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionParamsResponse: Could not create message: ' + e.message) } }, @@ -880,107 +872,107 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryConnectionConsensusStateResponse({ value }: queryConnectionConsensusStateResponseParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateResponse", value: QueryConnectionConsensusStateResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionConsensusStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: 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) } }, - queryClientConnectionsResponse({ value }: queryClientConnectionsResponseParams): EncodeObject { + connectionPaths({ value }: connectionPathsParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsResponse", value: QueryClientConnectionsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.ConnectionPaths", value: ConnectionPaths.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientConnectionsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:ConnectionPaths: Could not create message: ' + e.message) } }, - queryConnectionClientStateResponse({ value }: queryConnectionClientStateResponseParams): EncodeObject { + queryConnectionConsensusStateResponse({ value }: queryConnectionConsensusStateResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateResponse", value: QueryConnectionClientStateResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateResponse", value: QueryConnectionConsensusStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionClientStateResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionConsensusStateResponse: Could not create message: ' + e.message) } }, - identifiedConnection({ value }: identifiedConnectionParams): EncodeObject { + msgConnectionOpenTryResponse({ value }: msgConnectionOpenTryResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.IdentifiedConnection", value: IdentifiedConnection.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTryResponse", value: MsgConnectionOpenTryResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:IdentifiedConnection: Could not create message: ' + e.message) + throw new Error('TxClient:MsgConnectionOpenTryResponse: Could not create message: ' + e.message) } }, - queryConnectionsResponse({ value }: queryConnectionsResponseParams): EncodeObject { + msgConnectionOpenAck({ value }: msgConnectionOpenAckParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionsResponse", value: QueryConnectionsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck", value: MsgConnectionOpenAck.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgConnectionOpenAck: Could not create message: ' + e.message) } }, - queryClientConnectionsRequest({ value }: queryClientConnectionsRequestParams): EncodeObject { + queryClientConnectionsResponse({ value }: queryClientConnectionsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsRequest", value: QueryClientConnectionsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsResponse", value: QueryClientConnectionsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryClientConnectionsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryClientConnectionsResponse: Could not create message: ' + e.message) } }, - queryConnectionParamsResponse({ value }: queryConnectionParamsResponseParams): EncodeObject { + counterparty({ value }: counterpartyParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsResponse", value: QueryConnectionParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.Counterparty", value: Counterparty.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Counterparty: Could not create message: ' + e.message) } }, - connectionPaths({ value }: connectionPathsParams): EncodeObject { + queryConnectionsRequest({ value }: queryConnectionsRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.ConnectionPaths", value: ConnectionPaths.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionsRequest", value: QueryConnectionsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:ConnectionPaths: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionsRequest: Could not create message: ' + e.message) } }, - msgConnectionOpenTry({ value }: msgConnectionOpenTryParams): EncodeObject { + queryConnectionClientStateResponse({ value }: queryConnectionClientStateResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTry", value: MsgConnectionOpenTry.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateResponse", value: QueryConnectionClientStateResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgConnectionOpenTry: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionClientStateResponse: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + msgConnectionOpenInit({ value }: msgConnectionOpenInitParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit", value: MsgConnectionOpenInit.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:MsgConnectionOpenInit: Could not create message: ' + e.message) } }, - version({ value }: versionParams): EncodeObject { + msgConnectionOpenInitResponse({ value }: msgConnectionOpenInitResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.Version", value: Version.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInitResponse", value: MsgConnectionOpenInitResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Version: Could not create message: ' + e.message) + throw new Error('TxClient:MsgConnectionOpenInitResponse: Could not create message: ' + e.message) } }, - queryConnectionsRequest({ value }: queryConnectionsRequestParams): EncodeObject { + identifiedConnection({ value }: identifiedConnectionParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionsRequest", value: QueryConnectionsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.IdentifiedConnection", value: IdentifiedConnection.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:IdentifiedConnection: Could not create message: ' + e.message) } }, @@ -992,19 +984,27 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + queryConnectionConsensusStateRequest({ value }: queryConnectionConsensusStateRequestParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateRequest", value: QueryConnectionConsensusStateRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionConsensusStateRequest: Could not create message: ' + e.message) } }, - counterparty({ value }: counterpartyParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.Counterparty", value: Counterparty.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Counterparty: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + } + }, + + version({ value }: versionParams): EncodeObject { + try { + return { typeUrl: "/ibc.core.connection.v1.Version", value: Version.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:Version: Could not create message: ' + e.message) } }, @@ -1016,19 +1016,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryConnectionRequest({ value }: queryConnectionRequestParams): EncodeObject { + queryConnectionResponse({ value }: queryConnectionResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionRequest", value: QueryConnectionRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionResponse", value: QueryConnectionResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionResponse: Could not create message: ' + e.message) } }, - queryConnectionParamsRequest({ value }: queryConnectionParamsRequestParams): EncodeObject { + queryConnectionsResponse({ value }: queryConnectionsResponseParams): EncodeObject { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsRequest", value: QueryConnectionParamsRequest.fromPartial( value ) } + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionsResponse", value: QueryConnectionsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryConnectionParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryConnectionsResponse: 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 a70a0d8ef..7f0ca1f20 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 { QueryConnectionConsensusStateRequest } from "./types/ibc/core/connection/v1/query"; -import { GenesisState } from "./types/ibc/core/connection/v1/genesis"; -import { MsgConnectionOpenTryResponse } from "./types/ibc/core/connection/v1/tx"; -import { QueryConnectionResponse } from "./types/ibc/core/connection/v1/query"; -import { MsgConnectionOpenInitResponse } from "./types/ibc/core/connection/v1/tx"; +import { QueryConnectionRequest } from "./types/ibc/core/connection/v1/query"; +import { QueryClientConnectionsRequest } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionParamsRequest } from "./types/ibc/core/connection/v1/query"; +import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; import { MsgConnectionOpenAckResponse } from "./types/ibc/core/connection/v1/tx"; +import { MsgUpdateParamsResponse } from "./types/ibc/core/connection/v1/tx"; import { QueryConnectionClientStateRequest } from "./types/ibc/core/connection/v1/query"; -import { ClientPaths } from "./types/ibc/core/connection/v1/connection"; -import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; +import { QueryConnectionParamsResponse } from "./types/ibc/core/connection/v1/query"; import { MsgConnectionOpenConfirm } from "./types/ibc/core/connection/v1/tx"; import { MsgConnectionOpenConfirmResponse } from "./types/ibc/core/connection/v1/tx"; +import { GenesisState } from "./types/ibc/core/connection/v1/genesis"; +import { ClientPaths } from "./types/ibc/core/connection/v1/connection"; +import { ConnectionPaths } 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 { MsgConnectionOpenTryResponse } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; import { QueryClientConnectionsResponse } from "./types/ibc/core/connection/v1/query"; +import { Counterparty } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionsRequest } from "./types/ibc/core/connection/v1/query"; import { QueryConnectionClientStateResponse } from "./types/ibc/core/connection/v1/query"; +import { MsgConnectionOpenInit } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenInitResponse } from "./types/ibc/core/connection/v1/tx"; import { IdentifiedConnection } 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 { QueryConnectionParamsResponse } from "./types/ibc/core/connection/v1/query"; -import { ConnectionPaths } from "./types/ibc/core/connection/v1/connection"; -import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; +import { Params } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionConsensusStateRequest } from "./types/ibc/core/connection/v1/query"; import { MsgUpdateParams } from "./types/ibc/core/connection/v1/tx"; import { Version } from "./types/ibc/core/connection/v1/connection"; -import { QueryConnectionsRequest } from "./types/ibc/core/connection/v1/query"; -import { Params } from "./types/ibc/core/connection/v1/connection"; -import { MsgUpdateParamsResponse } from "./types/ibc/core/connection/v1/tx"; -import { Counterparty } from "./types/ibc/core/connection/v1/connection"; import { ConnectionEnd } from "./types/ibc/core/connection/v1/connection"; -import { QueryConnectionRequest } 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 { QueryConnectionsResponse } from "./types/ibc/core/connection/v1/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/ibc.core.connection.v1.QueryConnectionConsensusStateRequest", QueryConnectionConsensusStateRequest], - ["/ibc.core.connection.v1.GenesisState", GenesisState], - ["/ibc.core.connection.v1.MsgConnectionOpenTryResponse", MsgConnectionOpenTryResponse], - ["/ibc.core.connection.v1.QueryConnectionResponse", QueryConnectionResponse], - ["/ibc.core.connection.v1.MsgConnectionOpenInitResponse", MsgConnectionOpenInitResponse], + ["/ibc.core.connection.v1.QueryConnectionRequest", QueryConnectionRequest], + ["/ibc.core.connection.v1.QueryClientConnectionsRequest", QueryClientConnectionsRequest], + ["/ibc.core.connection.v1.QueryConnectionParamsRequest", QueryConnectionParamsRequest], + ["/ibc.core.connection.v1.MsgConnectionOpenTry", MsgConnectionOpenTry], ["/ibc.core.connection.v1.MsgConnectionOpenAckResponse", MsgConnectionOpenAckResponse], + ["/ibc.core.connection.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ["/ibc.core.connection.v1.QueryConnectionClientStateRequest", QueryConnectionClientStateRequest], - ["/ibc.core.connection.v1.ClientPaths", ClientPaths], - ["/ibc.core.connection.v1.MsgConnectionOpenAck", MsgConnectionOpenAck], + ["/ibc.core.connection.v1.QueryConnectionParamsResponse", QueryConnectionParamsResponse], ["/ibc.core.connection.v1.MsgConnectionOpenConfirm", MsgConnectionOpenConfirm], ["/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse", MsgConnectionOpenConfirmResponse], + ["/ibc.core.connection.v1.GenesisState", GenesisState], + ["/ibc.core.connection.v1.ClientPaths", ClientPaths], + ["/ibc.core.connection.v1.ConnectionPaths", ConnectionPaths], ["/ibc.core.connection.v1.QueryConnectionConsensusStateResponse", QueryConnectionConsensusStateResponse], - ["/ibc.core.connection.v1.MsgConnectionOpenInit", MsgConnectionOpenInit], + ["/ibc.core.connection.v1.MsgConnectionOpenTryResponse", MsgConnectionOpenTryResponse], + ["/ibc.core.connection.v1.MsgConnectionOpenAck", MsgConnectionOpenAck], ["/ibc.core.connection.v1.QueryClientConnectionsResponse", QueryClientConnectionsResponse], + ["/ibc.core.connection.v1.Counterparty", Counterparty], + ["/ibc.core.connection.v1.QueryConnectionsRequest", QueryConnectionsRequest], ["/ibc.core.connection.v1.QueryConnectionClientStateResponse", QueryConnectionClientStateResponse], + ["/ibc.core.connection.v1.MsgConnectionOpenInit", MsgConnectionOpenInit], + ["/ibc.core.connection.v1.MsgConnectionOpenInitResponse", MsgConnectionOpenInitResponse], ["/ibc.core.connection.v1.IdentifiedConnection", IdentifiedConnection], - ["/ibc.core.connection.v1.QueryConnectionsResponse", QueryConnectionsResponse], - ["/ibc.core.connection.v1.QueryClientConnectionsRequest", QueryClientConnectionsRequest], - ["/ibc.core.connection.v1.QueryConnectionParamsResponse", QueryConnectionParamsResponse], - ["/ibc.core.connection.v1.ConnectionPaths", ConnectionPaths], - ["/ibc.core.connection.v1.MsgConnectionOpenTry", MsgConnectionOpenTry], + ["/ibc.core.connection.v1.Params", Params], + ["/ibc.core.connection.v1.QueryConnectionConsensusStateRequest", QueryConnectionConsensusStateRequest], ["/ibc.core.connection.v1.MsgUpdateParams", MsgUpdateParams], ["/ibc.core.connection.v1.Version", Version], - ["/ibc.core.connection.v1.QueryConnectionsRequest", QueryConnectionsRequest], - ["/ibc.core.connection.v1.Params", Params], - ["/ibc.core.connection.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/ibc.core.connection.v1.Counterparty", Counterparty], ["/ibc.core.connection.v1.ConnectionEnd", ConnectionEnd], - ["/ibc.core.connection.v1.QueryConnectionRequest", QueryConnectionRequest], - ["/ibc.core.connection.v1.QueryConnectionParamsRequest", QueryConnectionParamsRequest], + ["/ibc.core.connection.v1.QueryConnectionResponse", QueryConnectionResponse], + ["/ibc.core.connection.v1.QueryConnectionsResponse", QueryConnectionsResponse], ]; diff --git a/ts-client/lib/cosmos.auth.v1beta1/module.d.ts b/ts-client/lib/cosmos.auth.v1beta1/module.d.ts index c55076d9c..5f4e5560f 100644 --- a/ts-client/lib/cosmos.auth.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.auth.v1beta1/module.d.ts @@ -2,46 +2,41 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { QueryModuleAccountByNameRequest } from "./types/cosmos/auth/v1beta1/query"; -import { AddressStringToBytesResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountAddressByIDRequest } from "./types/cosmos/auth/v1beta1/query"; +import { Params } from "./types/cosmos/auth/v1beta1/auth"; +import { QueryModuleAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryModuleAccountByNameResponse } from "./types/cosmos/auth/v1beta1/query"; import { GenesisState } from "./types/cosmos/auth/v1beta1/genesis"; -import { ModuleCredential } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryAccountResponse } from "./types/cosmos/auth/v1beta1/query"; -import { Params } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryModuleAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; import { AddressStringToBytesRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountInfoRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryModuleAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; +import { BaseAccount } from "./types/cosmos/auth/v1beta1/auth"; import { Bech32PrefixResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { AddressBytesToStringRequest } from "./types/cosmos/auth/v1beta1/query"; -import { Bech32PrefixRequest } from "./types/cosmos/auth/v1beta1/query"; -import { MsgUpdateParamsResponse } from "./types/cosmos/auth/v1beta1/tx"; import { AddressBytesToStringResponse } from "./types/cosmos/auth/v1beta1/query"; -import { BaseAccount } from "./types/cosmos/auth/v1beta1/auth"; +import { AddressStringToBytesResponse } from "./types/cosmos/auth/v1beta1/query"; import { QueryAccountAddressByIDResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountInfoResponse } from "./types/cosmos/auth/v1beta1/query"; import { MsgUpdateParams } from "./types/cosmos/auth/v1beta1/tx"; +import { QueryAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryModuleAccountByNameResponse } from "./types/cosmos/auth/v1beta1/query"; +import { Bech32PrefixRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountAddressByIDRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountInfoResponse } from "./types/cosmos/auth/v1beta1/query"; +import { ModuleCredential } from "./types/cosmos/auth/v1beta1/auth"; +import { MsgUpdateParamsResponse } from "./types/cosmos/auth/v1beta1/tx"; +import { QueryModuleAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryModuleAccountByNameRequest } from "./types/cosmos/auth/v1beta1/query"; +import { AddressBytesToStringRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountInfoRequest } from "./types/cosmos/auth/v1beta1/query"; import { ModuleAccount } from "./types/cosmos/auth/v1beta1/auth"; -export { QueryModuleAccountByNameRequest, AddressStringToBytesResponse, QueryAccountAddressByIDRequest, QueryParamsResponse, QueryModuleAccountByNameResponse, GenesisState, ModuleCredential, QueryAccountResponse, Params, QueryAccountsRequest, QueryAccountRequest, QueryParamsRequest, QueryModuleAccountsResponse, AddressStringToBytesRequest, QueryAccountInfoRequest, QueryModuleAccountsRequest, Bech32PrefixResponse, QueryAccountsResponse, AddressBytesToStringRequest, Bech32PrefixRequest, MsgUpdateParamsResponse, AddressBytesToStringResponse, BaseAccount, QueryAccountAddressByIDResponse, QueryAccountInfoResponse, MsgUpdateParams, ModuleAccount }; -type sendQueryModuleAccountByNameRequestParams = { - value: QueryModuleAccountByNameRequest; - fee?: StdFee; - memo?: string; -}; -type sendAddressStringToBytesResponseParams = { - value: AddressStringToBytesResponse; +import { QueryParamsRequest } from "./types/cosmos/auth/v1beta1/query"; +export { Params, QueryModuleAccountsRequest, QueryParamsResponse, GenesisState, QueryAccountsResponse, AddressStringToBytesRequest, BaseAccount, Bech32PrefixResponse, AddressBytesToStringResponse, AddressStringToBytesResponse, QueryAccountAddressByIDResponse, MsgUpdateParams, QueryAccountsRequest, QueryAccountRequest, QueryModuleAccountByNameResponse, Bech32PrefixRequest, QueryAccountAddressByIDRequest, QueryAccountInfoResponse, ModuleCredential, MsgUpdateParamsResponse, QueryModuleAccountsResponse, QueryAccountResponse, QueryModuleAccountByNameRequest, AddressBytesToStringRequest, QueryAccountInfoRequest, ModuleAccount, QueryParamsRequest }; +type sendParamsParams = { + value: Params; fee?: StdFee; memo?: string; }; -type sendQueryAccountAddressByIDRequestParams = { - value: QueryAccountAddressByIDRequest; +type sendQueryModuleAccountsRequestParams = { + value: QueryModuleAccountsRequest; fee?: StdFee; memo?: string; }; @@ -50,83 +45,83 @@ type sendQueryParamsResponseParams = { fee?: StdFee; memo?: string; }; -type sendQueryModuleAccountByNameResponseParams = { - value: QueryModuleAccountByNameResponse; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendQueryAccountsResponseParams = { + value: QueryAccountsResponse; fee?: StdFee; memo?: string; }; -type sendModuleCredentialParams = { - value: ModuleCredential; +type sendAddressStringToBytesRequestParams = { + value: AddressStringToBytesRequest; fee?: StdFee; memo?: string; }; -type sendQueryAccountResponseParams = { - value: QueryAccountResponse; +type sendBaseAccountParams = { + value: BaseAccount; fee?: StdFee; memo?: string; }; -type sendParamsParams = { - value: Params; +type sendBech32PrefixResponseParams = { + value: Bech32PrefixResponse; fee?: StdFee; memo?: string; }; -type sendQueryAccountsRequestParams = { - value: QueryAccountsRequest; +type sendAddressBytesToStringResponseParams = { + value: AddressBytesToStringResponse; fee?: StdFee; memo?: string; }; -type sendQueryAccountRequestParams = { - value: QueryAccountRequest; +type sendAddressStringToBytesResponseParams = { + value: AddressStringToBytesResponse; fee?: StdFee; memo?: string; }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest; +type sendQueryAccountAddressByIDResponseParams = { + value: QueryAccountAddressByIDResponse; fee?: StdFee; memo?: string; }; -type sendQueryModuleAccountsResponseParams = { - value: QueryModuleAccountsResponse; +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams; fee?: StdFee; memo?: string; }; -type sendAddressStringToBytesRequestParams = { - value: AddressStringToBytesRequest; +type sendQueryAccountsRequestParams = { + value: QueryAccountsRequest; fee?: StdFee; memo?: string; }; -type sendQueryAccountInfoRequestParams = { - value: QueryAccountInfoRequest; +type sendQueryAccountRequestParams = { + value: QueryAccountRequest; fee?: StdFee; memo?: string; }; -type sendQueryModuleAccountsRequestParams = { - value: QueryModuleAccountsRequest; +type sendQueryModuleAccountByNameResponseParams = { + value: QueryModuleAccountByNameResponse; fee?: StdFee; memo?: string; }; -type sendBech32PrefixResponseParams = { - value: Bech32PrefixResponse; +type sendBech32PrefixRequestParams = { + value: Bech32PrefixRequest; fee?: StdFee; memo?: string; }; -type sendQueryAccountsResponseParams = { - value: QueryAccountsResponse; +type sendQueryAccountAddressByIDRequestParams = { + value: QueryAccountAddressByIDRequest; fee?: StdFee; memo?: string; }; -type sendAddressBytesToStringRequestParams = { - value: AddressBytesToStringRequest; +type sendQueryAccountInfoResponseParams = { + value: QueryAccountInfoResponse; fee?: StdFee; memo?: string; }; -type sendBech32PrefixRequestParams = { - value: Bech32PrefixRequest; +type sendModuleCredentialParams = { + value: ModuleCredential; fee?: StdFee; memo?: string; }; @@ -135,28 +130,28 @@ type sendMsgUpdateParamsResponseParams = { fee?: StdFee; memo?: string; }; -type sendAddressBytesToStringResponseParams = { - value: AddressBytesToStringResponse; +type sendQueryModuleAccountsResponseParams = { + value: QueryModuleAccountsResponse; fee?: StdFee; memo?: string; }; -type sendBaseAccountParams = { - value: BaseAccount; +type sendQueryAccountResponseParams = { + value: QueryAccountResponse; fee?: StdFee; memo?: string; }; -type sendQueryAccountAddressByIDResponseParams = { - value: QueryAccountAddressByIDResponse; +type sendQueryModuleAccountByNameRequestParams = { + value: QueryModuleAccountByNameRequest; fee?: StdFee; memo?: string; }; -type sendQueryAccountInfoResponseParams = { - value: QueryAccountInfoResponse; +type sendAddressBytesToStringRequestParams = { + value: AddressBytesToStringRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams; +type sendQueryAccountInfoRequestParams = { + value: QueryAccountInfoRequest; fee?: StdFee; memo?: string; }; @@ -165,87 +160,92 @@ type sendModuleAccountParams = { fee?: StdFee; memo?: string; }; -type queryModuleAccountByNameRequestParams = { - value: QueryModuleAccountByNameRequest; +type sendQueryParamsRequestParams = { + value: QueryParamsRequest; + fee?: StdFee; + memo?: string; }; -type addressStringToBytesResponseParams = { - value: AddressStringToBytesResponse; +type paramsParams = { + value: Params; }; -type queryAccountAddressByIdrequestParams = { - value: QueryAccountAddressByIDRequest; +type queryModuleAccountsRequestParams = { + value: QueryModuleAccountsRequest; }; type queryParamsResponseParams = { value: QueryParamsResponse; }; -type queryModuleAccountByNameResponseParams = { - value: QueryModuleAccountByNameResponse; -}; type genesisStateParams = { value: GenesisState; }; -type moduleCredentialParams = { - value: ModuleCredential; -}; -type queryAccountResponseParams = { - value: QueryAccountResponse; -}; -type paramsParams = { - value: Params; +type queryAccountsResponseParams = { + value: QueryAccountsResponse; }; -type queryAccountsRequestParams = { - value: QueryAccountsRequest; +type addressStringToBytesRequestParams = { + value: AddressStringToBytesRequest; }; -type queryAccountRequestParams = { - value: QueryAccountRequest; +type baseAccountParams = { + value: BaseAccount; }; -type queryParamsRequestParams = { - value: QueryParamsRequest; +type bech32PrefixResponseParams = { + value: Bech32PrefixResponse; }; -type queryModuleAccountsResponseParams = { - value: QueryModuleAccountsResponse; +type addressBytesToStringResponseParams = { + value: AddressBytesToStringResponse; }; -type addressStringToBytesRequestParams = { - value: AddressStringToBytesRequest; +type addressStringToBytesResponseParams = { + value: AddressStringToBytesResponse; }; -type queryAccountInfoRequestParams = { - value: QueryAccountInfoRequest; +type queryAccountAddressByIdresponseParams = { + value: QueryAccountAddressByIDResponse; }; -type queryModuleAccountsRequestParams = { - value: QueryModuleAccountsRequest; +type msgUpdateParamsParams = { + value: MsgUpdateParams; }; -type bech32PrefixResponseParams = { - value: Bech32PrefixResponse; +type queryAccountsRequestParams = { + value: QueryAccountsRequest; }; -type queryAccountsResponseParams = { - value: QueryAccountsResponse; +type queryAccountRequestParams = { + value: QueryAccountRequest; }; -type addressBytesToStringRequestParams = { - value: AddressBytesToStringRequest; +type queryModuleAccountByNameResponseParams = { + value: QueryModuleAccountByNameResponse; }; type bech32PrefixRequestParams = { value: Bech32PrefixRequest; }; +type queryAccountAddressByIdrequestParams = { + value: QueryAccountAddressByIDRequest; +}; +type queryAccountInfoResponseParams = { + value: QueryAccountInfoResponse; +}; +type moduleCredentialParams = { + value: ModuleCredential; +}; type msgUpdateParamsResponseParams = { value: MsgUpdateParamsResponse; }; -type addressBytesToStringResponseParams = { - value: AddressBytesToStringResponse; +type queryModuleAccountsResponseParams = { + value: QueryModuleAccountsResponse; }; -type baseAccountParams = { - value: BaseAccount; +type queryAccountResponseParams = { + value: QueryAccountResponse; }; -type queryAccountAddressByIdresponseParams = { - value: QueryAccountAddressByIDResponse; +type queryModuleAccountByNameRequestParams = { + value: QueryModuleAccountByNameRequest; }; -type queryAccountInfoResponseParams = { - value: QueryAccountInfoResponse; +type addressBytesToStringRequestParams = { + value: AddressBytesToStringRequest; }; -type msgUpdateParamsParams = { - value: MsgUpdateParams; +type queryAccountInfoRequestParams = { + value: QueryAccountInfoRequest; }; type moduleAccountParams = { value: ModuleAccount; }; +type queryParamsRequestParams = { + value: QueryParamsRequest; +}; export declare const registry: Registry; interface TxClientOptions { addr: string; @@ -253,60 +253,60 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendQueryModuleAccountByNameRequest({ value, fee, memo }: sendQueryModuleAccountByNameRequestParams): Promise; - sendAddressStringToBytesResponse({ value, fee, memo }: sendAddressStringToBytesResponseParams): Promise; - sendQueryAccountAddressByIDRequest({ value, fee, memo }: sendQueryAccountAddressByIDRequestParams): Promise; + sendParams({ value, fee, memo }: sendParamsParams): Promise; + sendQueryModuleAccountsRequest({ value, fee, memo }: sendQueryModuleAccountsRequestParams): Promise; sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; - sendQueryModuleAccountByNameResponse({ value, fee, memo }: sendQueryModuleAccountByNameResponseParams): Promise; sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendModuleCredential({ value, fee, memo }: sendModuleCredentialParams): Promise; - sendQueryAccountResponse({ value, fee, memo }: sendQueryAccountResponseParams): Promise; - sendParams({ value, fee, memo }: sendParamsParams): Promise; - sendQueryAccountsRequest({ value, fee, memo }: sendQueryAccountsRequestParams): Promise; - sendQueryAccountRequest({ value, fee, memo }: sendQueryAccountRequestParams): Promise; - sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; - sendQueryModuleAccountsResponse({ value, fee, memo }: sendQueryModuleAccountsResponseParams): Promise; + sendQueryAccountsResponse({ value, fee, memo }: sendQueryAccountsResponseParams): Promise; sendAddressStringToBytesRequest({ value, fee, memo }: sendAddressStringToBytesRequestParams): Promise; - sendQueryAccountInfoRequest({ value, fee, memo }: sendQueryAccountInfoRequestParams): Promise; - sendQueryModuleAccountsRequest({ value, fee, memo }: sendQueryModuleAccountsRequestParams): Promise; + sendBaseAccount({ value, fee, memo }: sendBaseAccountParams): Promise; sendBech32PrefixResponse({ value, fee, memo }: sendBech32PrefixResponseParams): Promise; - sendQueryAccountsResponse({ value, fee, memo }: sendQueryAccountsResponseParams): Promise; - sendAddressBytesToStringRequest({ value, fee, memo }: sendAddressBytesToStringRequestParams): Promise; - sendBech32PrefixRequest({ value, fee, memo }: sendBech32PrefixRequestParams): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; sendAddressBytesToStringResponse({ value, fee, memo }: sendAddressBytesToStringResponseParams): Promise; - sendBaseAccount({ value, fee, memo }: sendBaseAccountParams): Promise; + sendAddressStringToBytesResponse({ value, fee, memo }: sendAddressStringToBytesResponseParams): Promise; sendQueryAccountAddressByIDResponse({ value, fee, memo }: sendQueryAccountAddressByIDResponseParams): Promise; - sendQueryAccountInfoResponse({ value, fee, memo }: sendQueryAccountInfoResponseParams): Promise; sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; + sendQueryAccountsRequest({ value, fee, memo }: sendQueryAccountsRequestParams): Promise; + sendQueryAccountRequest({ value, fee, memo }: sendQueryAccountRequestParams): Promise; + sendQueryModuleAccountByNameResponse({ value, fee, memo }: sendQueryModuleAccountByNameResponseParams): Promise; + sendBech32PrefixRequest({ value, fee, memo }: sendBech32PrefixRequestParams): Promise; + sendQueryAccountAddressByIDRequest({ value, fee, memo }: sendQueryAccountAddressByIDRequestParams): Promise; + sendQueryAccountInfoResponse({ value, fee, memo }: sendQueryAccountInfoResponseParams): Promise; + sendModuleCredential({ value, fee, memo }: sendModuleCredentialParams): Promise; + sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; + sendQueryModuleAccountsResponse({ value, fee, memo }: sendQueryModuleAccountsResponseParams): Promise; + sendQueryAccountResponse({ value, fee, memo }: sendQueryAccountResponseParams): Promise; + sendQueryModuleAccountByNameRequest({ value, fee, memo }: sendQueryModuleAccountByNameRequestParams): Promise; + sendAddressBytesToStringRequest({ value, fee, memo }: sendAddressBytesToStringRequestParams): Promise; + sendQueryAccountInfoRequest({ value, fee, memo }: sendQueryAccountInfoRequestParams): Promise; sendModuleAccount({ value, fee, memo }: sendModuleAccountParams): Promise; - queryModuleAccountByNameRequest({ value }: queryModuleAccountByNameRequestParams): EncodeObject; - addressStringToBytesResponse({ value }: addressStringToBytesResponseParams): EncodeObject; - queryAccountAddressByIdrequest({ value }: queryAccountAddressByIdrequestParams): EncodeObject; + sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; + params({ value }: paramsParams): EncodeObject; + queryModuleAccountsRequest({ value }: queryModuleAccountsRequestParams): EncodeObject; queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; - queryModuleAccountByNameResponse({ value }: queryModuleAccountByNameResponseParams): EncodeObject; genesisState({ value }: genesisStateParams): EncodeObject; - moduleCredential({ value }: moduleCredentialParams): EncodeObject; - queryAccountResponse({ value }: queryAccountResponseParams): EncodeObject; - params({ value }: paramsParams): EncodeObject; - queryAccountsRequest({ value }: queryAccountsRequestParams): EncodeObject; - queryAccountRequest({ value }: queryAccountRequestParams): EncodeObject; - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; - queryModuleAccountsResponse({ value }: queryModuleAccountsResponseParams): EncodeObject; + queryAccountsResponse({ value }: queryAccountsResponseParams): EncodeObject; addressStringToBytesRequest({ value }: addressStringToBytesRequestParams): EncodeObject; - queryAccountInfoRequest({ value }: queryAccountInfoRequestParams): EncodeObject; - queryModuleAccountsRequest({ value }: queryModuleAccountsRequestParams): EncodeObject; + baseAccount({ value }: baseAccountParams): EncodeObject; bech32PrefixResponse({ value }: bech32PrefixResponseParams): EncodeObject; - queryAccountsResponse({ value }: queryAccountsResponseParams): EncodeObject; - addressBytesToStringRequest({ value }: addressBytesToStringRequestParams): EncodeObject; - bech32PrefixRequest({ value }: bech32PrefixRequestParams): EncodeObject; - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; addressBytesToStringResponse({ value }: addressBytesToStringResponseParams): EncodeObject; - baseAccount({ value }: baseAccountParams): EncodeObject; + addressStringToBytesResponse({ value }: addressStringToBytesResponseParams): EncodeObject; queryAccountAddressByIdresponse({ value }: queryAccountAddressByIdresponseParams): EncodeObject; - queryAccountInfoResponse({ value }: queryAccountInfoResponseParams): EncodeObject; msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; + queryAccountsRequest({ value }: queryAccountsRequestParams): EncodeObject; + queryAccountRequest({ value }: queryAccountRequestParams): EncodeObject; + queryModuleAccountByNameResponse({ value }: queryModuleAccountByNameResponseParams): EncodeObject; + bech32PrefixRequest({ value }: bech32PrefixRequestParams): EncodeObject; + queryAccountAddressByIdrequest({ value }: queryAccountAddressByIdrequestParams): EncodeObject; + queryAccountInfoResponse({ value }: queryAccountInfoResponseParams): EncodeObject; + moduleCredential({ value }: moduleCredentialParams): EncodeObject; + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; + queryModuleAccountsResponse({ value }: queryModuleAccountsResponseParams): EncodeObject; + queryAccountResponse({ value }: queryAccountResponseParams): EncodeObject; + queryModuleAccountByNameRequest({ value }: queryModuleAccountByNameRequestParams): EncodeObject; + addressBytesToStringRequest({ value }: addressBytesToStringRequestParams): EncodeObject; + queryAccountInfoRequest({ value }: queryAccountInfoRequestParams): EncodeObject; moduleAccount({ value }: moduleAccountParams): EncodeObject; + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.auth.v1beta1/module.js b/ts-client/lib/cosmos.auth.v1beta1/module.js index 77dea36b2..97bb7250b 100644 --- a/ts-client/lib/cosmos.auth.v1beta1/module.js +++ b/ts-client/lib/cosmos.auth.v1beta1/module.js @@ -3,34 +3,34 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { QueryModuleAccountByNameRequest } from "./types/cosmos/auth/v1beta1/query"; -import { AddressStringToBytesResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountAddressByIDRequest } from "./types/cosmos/auth/v1beta1/query"; +import { Params } from "./types/cosmos/auth/v1beta1/auth"; +import { QueryModuleAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryModuleAccountByNameResponse } from "./types/cosmos/auth/v1beta1/query"; import { GenesisState } from "./types/cosmos/auth/v1beta1/genesis"; -import { ModuleCredential } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryAccountResponse } from "./types/cosmos/auth/v1beta1/query"; -import { Params } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryModuleAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; import { AddressStringToBytesRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountInfoRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryModuleAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; +import { BaseAccount } from "./types/cosmos/auth/v1beta1/auth"; import { Bech32PrefixResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { AddressBytesToStringRequest } from "./types/cosmos/auth/v1beta1/query"; -import { Bech32PrefixRequest } from "./types/cosmos/auth/v1beta1/query"; -import { MsgUpdateParamsResponse } from "./types/cosmos/auth/v1beta1/tx"; import { AddressBytesToStringResponse } from "./types/cosmos/auth/v1beta1/query"; -import { BaseAccount } from "./types/cosmos/auth/v1beta1/auth"; +import { AddressStringToBytesResponse } from "./types/cosmos/auth/v1beta1/query"; import { QueryAccountAddressByIDResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountInfoResponse } from "./types/cosmos/auth/v1beta1/query"; import { MsgUpdateParams } from "./types/cosmos/auth/v1beta1/tx"; +import { QueryAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryModuleAccountByNameResponse } from "./types/cosmos/auth/v1beta1/query"; +import { Bech32PrefixRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountAddressByIDRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountInfoResponse } from "./types/cosmos/auth/v1beta1/query"; +import { ModuleCredential } from "./types/cosmos/auth/v1beta1/auth"; +import { MsgUpdateParamsResponse } from "./types/cosmos/auth/v1beta1/tx"; +import { QueryModuleAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryModuleAccountByNameRequest } from "./types/cosmos/auth/v1beta1/query"; +import { AddressBytesToStringRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountInfoRequest } from "./types/cosmos/auth/v1beta1/query"; import { ModuleAccount } from "./types/cosmos/auth/v1beta1/auth"; -export { QueryModuleAccountByNameRequest, AddressStringToBytesResponse, QueryAccountAddressByIDRequest, QueryParamsResponse, QueryModuleAccountByNameResponse, GenesisState, ModuleCredential, QueryAccountResponse, Params, QueryAccountsRequest, QueryAccountRequest, QueryParamsRequest, QueryModuleAccountsResponse, AddressStringToBytesRequest, QueryAccountInfoRequest, QueryModuleAccountsRequest, Bech32PrefixResponse, QueryAccountsResponse, AddressBytesToStringRequest, Bech32PrefixRequest, MsgUpdateParamsResponse, AddressBytesToStringResponse, BaseAccount, QueryAccountAddressByIDResponse, QueryAccountInfoResponse, MsgUpdateParams, ModuleAccount }; +import { QueryParamsRequest } from "./types/cosmos/auth/v1beta1/query"; +export { Params, QueryModuleAccountsRequest, QueryParamsResponse, GenesisState, QueryAccountsResponse, AddressStringToBytesRequest, BaseAccount, Bech32PrefixResponse, AddressBytesToStringResponse, AddressStringToBytesResponse, QueryAccountAddressByIDResponse, MsgUpdateParams, QueryAccountsRequest, QueryAccountRequest, QueryModuleAccountByNameResponse, Bech32PrefixRequest, QueryAccountAddressByIDRequest, QueryAccountInfoResponse, ModuleCredential, MsgUpdateParamsResponse, QueryModuleAccountsResponse, QueryAccountResponse, QueryModuleAccountByNameRequest, AddressBytesToStringRequest, QueryAccountInfoRequest, ModuleAccount, QueryParamsRequest }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -46,46 +46,32 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendQueryModuleAccountByNameRequest({ value, fee, memo }) { - if (!signer) { - 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.queryModuleAccountByNameRequest({ value: QueryModuleAccountByNameRequest.fromPartial(value) }); - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); - } - catch (e) { - throw new Error('TxClient:sendQueryModuleAccountByNameRequest: Could not broadcast Tx: ' + e.message); - } - }, - async sendAddressStringToBytesResponse({ value, fee, memo }) { + async sendParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendAddressStringToBytesResponse: 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.addressStringToBytesResponse({ value: AddressStringToBytesResponse.fromPartial(value) }); + let msg = this.params({ value: Params.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendAddressStringToBytesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAccountAddressByIDRequest({ value, fee, memo }) { + async sendQueryModuleAccountsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAccountAddressByIDRequest: 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.queryAccountAddressByIdrequest({ value: QueryAccountAddressByIDRequest.fromPartial(value) }); + let msg = this.queryModuleAccountsRequest({ value: QueryModuleAccountsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAccountAddressByIDRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryModuleAccountsRequest: Could not broadcast Tx: ' + e.message); } }, async sendQueryParamsResponse({ value, fee, memo }) { @@ -102,228 +88,228 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryModuleAccountByNameResponse({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryModuleAccountByNameResponse: 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.queryModuleAccountByNameResponse({ value: QueryModuleAccountByNameResponse.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryModuleAccountByNameResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendQueryAccountsResponse({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAccountsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendModuleCredential({ value, fee, memo }) { + async sendAddressStringToBytesRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendModuleCredential: 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.moduleCredential({ value: ModuleCredential.fromPartial(value) }); + let msg = this.addressStringToBytesRequest({ value: AddressStringToBytesRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendModuleCredential: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendAddressStringToBytesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAccountResponse({ value, fee, memo }) { + async sendBaseAccount({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAccountResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendBaseAccount: Unable to 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.baseAccount({ value: BaseAccount.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAccountResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendBaseAccount: Could not broadcast Tx: ' + e.message); } }, - async sendParams({ value, fee, memo }) { + async sendBech32PrefixResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendParams: 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.params({ value: Params.fromPartial(value) }); + let msg = this.bech32PrefixResponse({ value: Bech32PrefixResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendBech32PrefixResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAccountsRequest({ value, fee, memo }) { + async sendAddressBytesToStringResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAccountsRequest: 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.queryAccountsRequest({ value: QueryAccountsRequest.fromPartial(value) }); + let msg = this.addressBytesToStringResponse({ value: AddressBytesToStringResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAccountsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendAddressBytesToStringResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAccountRequest({ value, fee, memo }) { + async sendAddressStringToBytesResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAccountRequest: 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.queryAccountRequest({ value: QueryAccountRequest.fromPartial(value) }); + let msg = this.addressStringToBytesResponse({ value: AddressStringToBytesResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAccountRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendAddressStringToBytesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsRequest({ value, fee, memo }) { + async sendQueryAccountAddressByIDResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: 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.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); + let msg = this.queryAccountAddressByIdresponse({ value: QueryAccountAddressByIDResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAccountAddressByIDResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryModuleAccountsResponse({ value, fee, memo }) { + async sendMsgUpdateParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryModuleAccountsResponse: 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.queryModuleAccountsResponse({ value: QueryModuleAccountsResponse.fromPartial(value) }); + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryModuleAccountsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); } }, - async sendAddressStringToBytesRequest({ value, fee, memo }) { + async sendQueryAccountsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendAddressStringToBytesRequest: 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.addressStringToBytesRequest({ value: AddressStringToBytesRequest.fromPartial(value) }); + let msg = this.queryAccountsRequest({ value: QueryAccountsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendAddressStringToBytesRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAccountsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAccountInfoRequest({ value, fee, memo }) { + async sendQueryAccountRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAccountInfoRequest: 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.queryAccountInfoRequest({ value: QueryAccountInfoRequest.fromPartial(value) }); + let msg = this.queryAccountRequest({ value: QueryAccountRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAccountInfoRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAccountRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryModuleAccountsRequest({ value, fee, memo }) { + async sendQueryModuleAccountByNameResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryModuleAccountsRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryModuleAccountByNameResponse: Unable to 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) }); + let msg = this.queryModuleAccountByNameResponse({ value: QueryModuleAccountByNameResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryModuleAccountsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryModuleAccountByNameResponse: Could not broadcast Tx: ' + e.message); } }, - async sendBech32PrefixResponse({ value, fee, memo }) { + async sendBech32PrefixRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendBech32PrefixResponse: 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.bech32PrefixResponse({ value: Bech32PrefixResponse.fromPartial(value) }); + let msg = this.bech32PrefixRequest({ value: Bech32PrefixRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendBech32PrefixResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendBech32PrefixRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAccountsResponse({ value, fee, memo }) { + async sendQueryAccountAddressByIDRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAccountsResponse: 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.queryAccountsResponse({ value: QueryAccountsResponse.fromPartial(value) }); + let msg = this.queryAccountAddressByIdrequest({ value: QueryAccountAddressByIDRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAccountsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAccountAddressByIDRequest: Could not broadcast Tx: ' + e.message); } }, - async sendAddressBytesToStringRequest({ value, fee, memo }) { + async sendQueryAccountInfoResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendAddressBytesToStringRequest: 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.addressBytesToStringRequest({ value: AddressBytesToStringRequest.fromPartial(value) }); + let msg = this.queryAccountInfoResponse({ value: QueryAccountInfoResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendAddressBytesToStringRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAccountInfoResponse: Could not broadcast Tx: ' + e.message); } }, - async sendBech32PrefixRequest({ value, fee, memo }) { + async sendModuleCredential({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendBech32PrefixRequest: 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.bech32PrefixRequest({ value: Bech32PrefixRequest.fromPartial(value) }); + let msg = this.moduleCredential({ value: ModuleCredential.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendBech32PrefixRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendModuleCredential: Could not broadcast Tx: ' + e.message); } }, async sendMsgUpdateParamsResponse({ value, fee, memo }) { @@ -340,74 +326,74 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendAddressBytesToStringResponse({ value, fee, memo }) { + async sendQueryModuleAccountsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendAddressBytesToStringResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryModuleAccountsResponse: Unable to 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.queryModuleAccountsResponse({ value: QueryModuleAccountsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendAddressBytesToStringResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryModuleAccountsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendBaseAccount({ value, fee, memo }) { + async sendQueryAccountResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendBaseAccount: 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.baseAccount({ value: BaseAccount.fromPartial(value) }); + let msg = this.queryAccountResponse({ value: QueryAccountResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendBaseAccount: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAccountResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAccountAddressByIDResponse({ value, fee, memo }) { + async sendQueryModuleAccountByNameRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAccountAddressByIDResponse: 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.queryAccountAddressByIdresponse({ value: QueryAccountAddressByIDResponse.fromPartial(value) }); + let msg = this.queryModuleAccountByNameRequest({ value: QueryModuleAccountByNameRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAccountAddressByIDResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryModuleAccountByNameRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAccountInfoResponse({ value, fee, memo }) { + async sendAddressBytesToStringRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAccountInfoResponse: 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.queryAccountInfoResponse({ value: QueryAccountInfoResponse.fromPartial(value) }); + let msg = this.addressBytesToStringRequest({ value: AddressBytesToStringRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAccountInfoResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendAddressBytesToStringRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParams({ value, fee, memo }) { + async sendQueryAccountInfoRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); + let msg = this.queryAccountInfoRequest({ value: QueryAccountInfoRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAccountInfoRequest: Could not broadcast Tx: ' + e.message); } }, async sendModuleAccount({ value, fee, memo }) { @@ -424,28 +410,34 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendModuleAccount: Could not broadcast Tx: ' + e.message); } }, - queryModuleAccountByNameRequest({ value }) { + async sendQueryParamsRequest({ value, fee, memo }) { + if (!signer) { + throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.'); + } try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", value: QueryModuleAccountByNameRequest.fromPartial(value) }; + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:QueryModuleAccountByNameRequest: Could not create message: ' + e.message); + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); } }, - addressStringToBytesResponse({ value }) { + params({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", value: AddressStringToBytesResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.Params", value: Params.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:AddressStringToBytesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Params: Could not create message: ' + e.message); } }, - queryAccountAddressByIdrequest({ value }) { + queryModuleAccountsRequest({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", value: QueryAccountAddressByIDRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", value: QueryModuleAccountsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAccountAddressByIDRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryModuleAccountsRequest: Could not create message: ' + e.message); } }, queryParamsResponse({ value }) { @@ -456,132 +448,132 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); } }, - queryModuleAccountByNameResponse({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", value: QueryModuleAccountByNameResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryModuleAccountByNameResponse: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - genesisState({ value }) { + queryAccountsResponse({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", value: QueryAccountsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAccountsResponse: Could not create message: ' + e.message); } }, - moduleCredential({ value }) { + addressStringToBytesRequest({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.ModuleCredential", value: ModuleCredential.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", value: AddressStringToBytesRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ModuleCredential: Could not create message: ' + e.message); + throw new Error('TxClient:AddressStringToBytesRequest: Could not create message: ' + e.message); } }, - queryAccountResponse({ value }) { + baseAccount({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", value: QueryAccountResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.BaseAccount", value: BaseAccount.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAccountResponse: Could not create message: ' + e.message); + throw new Error('TxClient:BaseAccount: Could not create message: ' + e.message); } }, - params({ value }) { + bech32PrefixResponse({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.Params", value: Params.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", value: Bech32PrefixResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Params: Could not create message: ' + e.message); + throw new Error('TxClient:Bech32PrefixResponse: Could not create message: ' + e.message); } }, - queryAccountsRequest({ value }) { + addressBytesToStringResponse({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", value: QueryAccountsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", value: AddressBytesToStringResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAccountsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:AddressBytesToStringResponse: Could not create message: ' + e.message); } }, - queryAccountRequest({ value }) { + addressStringToBytesResponse({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", value: QueryAccountRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesResponse", value: AddressStringToBytesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAccountRequest: Could not create message: ' + e.message); + throw new Error('TxClient:AddressStringToBytesResponse: Could not create message: ' + e.message); } }, - queryParamsRequest({ value }) { + queryAccountAddressByIdresponse({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", value: QueryAccountAddressByIDResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAccountAddressByIDResponse: Could not create message: ' + e.message); } }, - queryModuleAccountsResponse({ value }) { + msgUpdateParams({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", value: QueryModuleAccountsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryModuleAccountsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); } }, - addressStringToBytesRequest({ value }) { + queryAccountsRequest({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.AddressStringToBytesRequest", value: AddressStringToBytesRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsRequest", value: QueryAccountsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:AddressStringToBytesRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAccountsRequest: Could not create message: ' + e.message); } }, - queryAccountInfoRequest({ value }) { + queryAccountRequest({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoRequest", value: QueryAccountInfoRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountRequest", value: QueryAccountRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAccountInfoRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAccountRequest: Could not create message: ' + e.message); } }, - queryModuleAccountsRequest({ value }) { + queryModuleAccountByNameResponse({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsRequest", value: QueryModuleAccountsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", value: QueryModuleAccountByNameResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryModuleAccountsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryModuleAccountByNameResponse: Could not create message: ' + e.message); } }, - bech32PrefixResponse({ value }) { + bech32PrefixRequest({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixResponse", value: Bech32PrefixResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", value: Bech32PrefixRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Bech32PrefixResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Bech32PrefixRequest: Could not create message: ' + e.message); } }, - queryAccountsResponse({ value }) { + queryAccountAddressByIdrequest({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountsResponse", value: QueryAccountsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", value: QueryAccountAddressByIDRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAccountsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAccountAddressByIDRequest: Could not create message: ' + e.message); } }, - addressBytesToStringRequest({ value }) { + queryAccountInfoResponse({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", value: AddressBytesToStringRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoResponse", value: QueryAccountInfoResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:AddressBytesToStringRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAccountInfoResponse: Could not create message: ' + e.message); } }, - bech32PrefixRequest({ value }) { + moduleCredential({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.Bech32PrefixRequest", value: Bech32PrefixRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.ModuleCredential", value: ModuleCredential.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Bech32PrefixRequest: Could not create message: ' + e.message); + throw new Error('TxClient:ModuleCredential: Could not create message: ' + e.message); } }, msgUpdateParamsResponse({ value }) { @@ -592,44 +584,44 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); } }, - addressBytesToStringResponse({ value }) { + queryModuleAccountsResponse({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringResponse", value: AddressBytesToStringResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountsResponse", value: QueryModuleAccountsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:AddressBytesToStringResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryModuleAccountsResponse: Could not create message: ' + e.message); } }, - baseAccount({ value }) { + queryAccountResponse({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.BaseAccount", value: BaseAccount.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountResponse", value: QueryAccountResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:BaseAccount: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAccountResponse: Could not create message: ' + e.message); } }, - queryAccountAddressByIdresponse({ value }) { + queryModuleAccountByNameRequest({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", value: QueryAccountAddressByIDResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", value: QueryModuleAccountByNameRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAccountAddressByIDResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryModuleAccountByNameRequest: Could not create message: ' + e.message); } }, - queryAccountInfoResponse({ value }) { + addressBytesToStringRequest({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoResponse", value: QueryAccountInfoResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.AddressBytesToStringRequest", value: AddressBytesToStringRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAccountInfoResponse: Could not create message: ' + e.message); + throw new Error('TxClient:AddressBytesToStringRequest: Could not create message: ' + e.message); } }, - msgUpdateParams({ value }) { + queryAccountInfoRequest({ value }) { try { - return { typeUrl: "/cosmos.auth.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; + return { typeUrl: "/cosmos.auth.v1beta1.QueryAccountInfoRequest", value: QueryAccountInfoRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAccountInfoRequest: Could not create message: ' + e.message); } }, moduleAccount({ value }) { @@ -640,6 +632,14 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:ModuleAccount: Could not create message: ' + e.message); } }, + queryParamsRequest({ value }) { + try { + return { typeUrl: "/cosmos.auth.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; + } + catch (e) { + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); + } + }, }; }; export const queryClient = ({ addr: addr } = { addr: "http://localhost:1317" }) => { diff --git a/ts-client/lib/cosmos.auth.v1beta1/registry.js b/ts-client/lib/cosmos.auth.v1beta1/registry.js index 17f17a704..ba8303338 100644 --- a/ts-client/lib/cosmos.auth.v1beta1/registry.js +++ b/ts-client/lib/cosmos.auth.v1beta1/registry.js @@ -1,57 +1,57 @@ -import { QueryModuleAccountByNameRequest } from "./types/cosmos/auth/v1beta1/query"; -import { AddressStringToBytesResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountAddressByIDRequest } from "./types/cosmos/auth/v1beta1/query"; +import { Params } from "./types/cosmos/auth/v1beta1/auth"; +import { QueryModuleAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryModuleAccountByNameResponse } from "./types/cosmos/auth/v1beta1/query"; import { GenesisState } from "./types/cosmos/auth/v1beta1/genesis"; -import { ModuleCredential } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryAccountResponse } from "./types/cosmos/auth/v1beta1/query"; -import { Params } from "./types/cosmos/auth/v1beta1/auth"; -import { QueryAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryModuleAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; import { AddressStringToBytesRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountInfoRequest } from "./types/cosmos/auth/v1beta1/query"; -import { QueryModuleAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; +import { BaseAccount } from "./types/cosmos/auth/v1beta1/auth"; import { Bech32PrefixResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; -import { AddressBytesToStringRequest } from "./types/cosmos/auth/v1beta1/query"; -import { Bech32PrefixRequest } from "./types/cosmos/auth/v1beta1/query"; -import { MsgUpdateParamsResponse } from "./types/cosmos/auth/v1beta1/tx"; import { AddressBytesToStringResponse } from "./types/cosmos/auth/v1beta1/query"; -import { BaseAccount } from "./types/cosmos/auth/v1beta1/auth"; +import { AddressStringToBytesResponse } from "./types/cosmos/auth/v1beta1/query"; import { QueryAccountAddressByIDResponse } from "./types/cosmos/auth/v1beta1/query"; -import { QueryAccountInfoResponse } from "./types/cosmos/auth/v1beta1/query"; import { MsgUpdateParams } from "./types/cosmos/auth/v1beta1/tx"; +import { QueryAccountsRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryModuleAccountByNameResponse } from "./types/cosmos/auth/v1beta1/query"; +import { Bech32PrefixRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountAddressByIDRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountInfoResponse } from "./types/cosmos/auth/v1beta1/query"; +import { ModuleCredential } from "./types/cosmos/auth/v1beta1/auth"; +import { MsgUpdateParamsResponse } from "./types/cosmos/auth/v1beta1/tx"; +import { QueryModuleAccountsResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountResponse } from "./types/cosmos/auth/v1beta1/query"; +import { QueryModuleAccountByNameRequest } from "./types/cosmos/auth/v1beta1/query"; +import { AddressBytesToStringRequest } from "./types/cosmos/auth/v1beta1/query"; +import { QueryAccountInfoRequest } from "./types/cosmos/auth/v1beta1/query"; import { ModuleAccount } from "./types/cosmos/auth/v1beta1/auth"; +import { QueryParamsRequest } from "./types/cosmos/auth/v1beta1/query"; const msgTypes = [ - ["/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", QueryModuleAccountByNameRequest], - ["/cosmos.auth.v1beta1.AddressStringToBytesResponse", AddressStringToBytesResponse], - ["/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", QueryAccountAddressByIDRequest], + ["/cosmos.auth.v1beta1.Params", Params], + ["/cosmos.auth.v1beta1.QueryModuleAccountsRequest", QueryModuleAccountsRequest], ["/cosmos.auth.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", QueryModuleAccountByNameResponse], ["/cosmos.auth.v1beta1.GenesisState", GenesisState], - ["/cosmos.auth.v1beta1.ModuleCredential", ModuleCredential], - ["/cosmos.auth.v1beta1.QueryAccountResponse", QueryAccountResponse], - ["/cosmos.auth.v1beta1.Params", Params], - ["/cosmos.auth.v1beta1.QueryAccountsRequest", QueryAccountsRequest], - ["/cosmos.auth.v1beta1.QueryAccountRequest", QueryAccountRequest], - ["/cosmos.auth.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.auth.v1beta1.QueryModuleAccountsResponse", QueryModuleAccountsResponse], + ["/cosmos.auth.v1beta1.QueryAccountsResponse", QueryAccountsResponse], ["/cosmos.auth.v1beta1.AddressStringToBytesRequest", AddressStringToBytesRequest], - ["/cosmos.auth.v1beta1.QueryAccountInfoRequest", QueryAccountInfoRequest], - ["/cosmos.auth.v1beta1.QueryModuleAccountsRequest", QueryModuleAccountsRequest], + ["/cosmos.auth.v1beta1.BaseAccount", BaseAccount], ["/cosmos.auth.v1beta1.Bech32PrefixResponse", Bech32PrefixResponse], - ["/cosmos.auth.v1beta1.QueryAccountsResponse", QueryAccountsResponse], - ["/cosmos.auth.v1beta1.AddressBytesToStringRequest", AddressBytesToStringRequest], - ["/cosmos.auth.v1beta1.Bech32PrefixRequest", Bech32PrefixRequest], - ["/cosmos.auth.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ["/cosmos.auth.v1beta1.AddressBytesToStringResponse", AddressBytesToStringResponse], - ["/cosmos.auth.v1beta1.BaseAccount", BaseAccount], + ["/cosmos.auth.v1beta1.AddressStringToBytesResponse", AddressStringToBytesResponse], ["/cosmos.auth.v1beta1.QueryAccountAddressByIDResponse", QueryAccountAddressByIDResponse], - ["/cosmos.auth.v1beta1.QueryAccountInfoResponse", QueryAccountInfoResponse], ["/cosmos.auth.v1beta1.MsgUpdateParams", MsgUpdateParams], + ["/cosmos.auth.v1beta1.QueryAccountsRequest", QueryAccountsRequest], + ["/cosmos.auth.v1beta1.QueryAccountRequest", QueryAccountRequest], + ["/cosmos.auth.v1beta1.QueryModuleAccountByNameResponse", QueryModuleAccountByNameResponse], + ["/cosmos.auth.v1beta1.Bech32PrefixRequest", Bech32PrefixRequest], + ["/cosmos.auth.v1beta1.QueryAccountAddressByIDRequest", QueryAccountAddressByIDRequest], + ["/cosmos.auth.v1beta1.QueryAccountInfoResponse", QueryAccountInfoResponse], + ["/cosmos.auth.v1beta1.ModuleCredential", ModuleCredential], + ["/cosmos.auth.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.auth.v1beta1.QueryModuleAccountsResponse", QueryModuleAccountsResponse], + ["/cosmos.auth.v1beta1.QueryAccountResponse", QueryAccountResponse], + ["/cosmos.auth.v1beta1.QueryModuleAccountByNameRequest", QueryModuleAccountByNameRequest], + ["/cosmos.auth.v1beta1.AddressBytesToStringRequest", AddressBytesToStringRequest], + ["/cosmos.auth.v1beta1.QueryAccountInfoRequest", QueryAccountInfoRequest], ["/cosmos.auth.v1beta1.ModuleAccount", ModuleAccount], + ["/cosmos.auth.v1beta1.QueryParamsRequest", QueryParamsRequest], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.authz.v1beta1/module.d.ts b/ts-client/lib/cosmos.authz.v1beta1/module.d.ts index fd70fb0b0..25dc2c973 100644 --- a/ts-client/lib/cosmos.authz.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.authz.v1beta1/module.d.ts @@ -2,78 +2,78 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { Grant } from "./types/cosmos/authz/v1beta1/authz"; -import { QueryGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; -import { QueryGranterGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; -import { GenesisState } from "./types/cosmos/authz/v1beta1/genesis"; -import { GrantQueueItem } from "./types/cosmos/authz/v1beta1/authz"; +import { GenericAuthorization } from "./types/cosmos/authz/v1beta1/authz"; import { EventGrant } from "./types/cosmos/authz/v1beta1/event"; -import { EventRevoke } from "./types/cosmos/authz/v1beta1/event"; -import { GrantAuthorization } from "./types/cosmos/authz/v1beta1/authz"; +import { QueryGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranterGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { MsgExecResponse } from "./types/cosmos/authz/v1beta1/tx"; +import { QueryGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { QueryGranterGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranteeGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; -import { GenericAuthorization } from "./types/cosmos/authz/v1beta1/authz"; -import { MsgGrantResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgRevokeResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { QueryGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranteeGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { MsgRevokeResponse } from "./types/cosmos/authz/v1beta1/tx"; import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx"; +import { MsgGrantResponse } from "./types/cosmos/authz/v1beta1/tx"; +import { GrantAuthorization } from "./types/cosmos/authz/v1beta1/authz"; +import { GenesisState } from "./types/cosmos/authz/v1beta1/genesis"; +import { EventRevoke } from "./types/cosmos/authz/v1beta1/event"; import { MsgExec } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgExecResponse } from "./types/cosmos/authz/v1beta1/tx"; -export { Grant, QueryGrantsResponse, QueryGranterGrantsRequest, GenesisState, GrantQueueItem, EventGrant, EventRevoke, GrantAuthorization, QueryGranterGrantsResponse, QueryGranteeGrantsRequest, GenericAuthorization, MsgGrantResponse, MsgRevoke, MsgRevokeResponse, QueryGrantsRequest, QueryGranteeGrantsResponse, MsgGrant, MsgExec, MsgExecResponse }; -type sendGrantParams = { - value: Grant; +import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx"; +import { Grant } from "./types/cosmos/authz/v1beta1/authz"; +import { GrantQueueItem } from "./types/cosmos/authz/v1beta1/authz"; +export { GenericAuthorization, EventGrant, QueryGrantsRequest, QueryGranterGrantsResponse, MsgExecResponse, QueryGrantsResponse, QueryGranterGrantsRequest, QueryGranteeGrantsRequest, QueryGranteeGrantsResponse, MsgRevokeResponse, MsgGrant, MsgGrantResponse, GrantAuthorization, GenesisState, EventRevoke, MsgExec, MsgRevoke, Grant, GrantQueueItem }; +type sendGenericAuthorizationParams = { + value: GenericAuthorization; fee?: StdFee; memo?: string; }; -type sendQueryGrantsResponseParams = { - value: QueryGrantsResponse; +type sendEventGrantParams = { + value: EventGrant; fee?: StdFee; memo?: string; }; -type sendQueryGranterGrantsRequestParams = { - value: QueryGranterGrantsRequest; +type sendQueryGrantsRequestParams = { + value: QueryGrantsRequest; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendQueryGranterGrantsResponseParams = { + value: QueryGranterGrantsResponse; fee?: StdFee; memo?: string; }; -type sendGrantQueueItemParams = { - value: GrantQueueItem; +type sendMsgExecResponseParams = { + value: MsgExecResponse; fee?: StdFee; memo?: string; }; -type sendEventGrantParams = { - value: EventGrant; +type sendQueryGrantsResponseParams = { + value: QueryGrantsResponse; fee?: StdFee; memo?: string; }; -type sendEventRevokeParams = { - value: EventRevoke; +type sendQueryGranterGrantsRequestParams = { + value: QueryGranterGrantsRequest; fee?: StdFee; memo?: string; }; -type sendGrantAuthorizationParams = { - value: GrantAuthorization; +type sendQueryGranteeGrantsRequestParams = { + value: QueryGranteeGrantsRequest; fee?: StdFee; memo?: string; }; -type sendQueryGranterGrantsResponseParams = { - value: QueryGranterGrantsResponse; +type sendQueryGranteeGrantsResponseParams = { + value: QueryGranteeGrantsResponse; fee?: StdFee; memo?: string; }; -type sendQueryGranteeGrantsRequestParams = { - value: QueryGranteeGrantsRequest; +type sendMsgRevokeResponseParams = { + value: MsgRevokeResponse; fee?: StdFee; memo?: string; }; -type sendGenericAuthorizationParams = { - value: GenericAuthorization; +type sendMsgGrantParams = { + value: MsgGrant; fee?: StdFee; memo?: string; }; @@ -82,97 +82,97 @@ type sendMsgGrantResponseParams = { fee?: StdFee; memo?: string; }; -type sendMsgRevokeParams = { - value: MsgRevoke; +type sendGrantAuthorizationParams = { + value: GrantAuthorization; fee?: StdFee; memo?: string; }; -type sendMsgRevokeResponseParams = { - value: MsgRevokeResponse; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendQueryGrantsRequestParams = { - value: QueryGrantsRequest; +type sendEventRevokeParams = { + value: EventRevoke; fee?: StdFee; memo?: string; }; -type sendQueryGranteeGrantsResponseParams = { - value: QueryGranteeGrantsResponse; +type sendMsgExecParams = { + value: MsgExec; fee?: StdFee; memo?: string; }; -type sendMsgGrantParams = { - value: MsgGrant; +type sendMsgRevokeParams = { + value: MsgRevoke; fee?: StdFee; memo?: string; }; -type sendMsgExecParams = { - value: MsgExec; +type sendGrantParams = { + value: Grant; fee?: StdFee; memo?: string; }; -type sendMsgExecResponseParams = { - value: MsgExecResponse; +type sendGrantQueueItemParams = { + value: GrantQueueItem; fee?: StdFee; memo?: string; }; -type grantParams = { - value: Grant; -}; -type queryGrantsResponseParams = { - value: QueryGrantsResponse; -}; -type queryGranterGrantsRequestParams = { - value: QueryGranterGrantsRequest; -}; -type genesisStateParams = { - value: GenesisState; -}; -type grantQueueItemParams = { - value: GrantQueueItem; +type genericAuthorizationParams = { + value: GenericAuthorization; }; type eventGrantParams = { value: EventGrant; }; -type eventRevokeParams = { - value: EventRevoke; -}; -type grantAuthorizationParams = { - value: GrantAuthorization; +type queryGrantsRequestParams = { + value: QueryGrantsRequest; }; type queryGranterGrantsResponseParams = { value: QueryGranterGrantsResponse; }; -type queryGranteeGrantsRequestParams = { - value: QueryGranteeGrantsRequest; -}; -type genericAuthorizationParams = { - value: GenericAuthorization; -}; -type msgGrantResponseParams = { - value: MsgGrantResponse; +type msgExecResponseParams = { + value: MsgExecResponse; }; -type msgRevokeParams = { - value: MsgRevoke; +type queryGrantsResponseParams = { + value: QueryGrantsResponse; }; -type msgRevokeResponseParams = { - value: MsgRevokeResponse; +type queryGranterGrantsRequestParams = { + value: QueryGranterGrantsRequest; }; -type queryGrantsRequestParams = { - value: QueryGrantsRequest; +type queryGranteeGrantsRequestParams = { + value: QueryGranteeGrantsRequest; }; type queryGranteeGrantsResponseParams = { value: QueryGranteeGrantsResponse; }; +type msgRevokeResponseParams = { + value: MsgRevokeResponse; +}; type msgGrantParams = { value: MsgGrant; }; +type msgGrantResponseParams = { + value: MsgGrantResponse; +}; +type grantAuthorizationParams = { + value: GrantAuthorization; +}; +type genesisStateParams = { + value: GenesisState; +}; +type eventRevokeParams = { + value: EventRevoke; +}; type msgExecParams = { value: MsgExec; }; -type msgExecResponseParams = { - value: MsgExecResponse; +type msgRevokeParams = { + value: MsgRevoke; +}; +type grantParams = { + value: Grant; +}; +type grantQueueItemParams = { + value: GrantQueueItem; }; export declare const registry: Registry; interface TxClientOptions { @@ -181,44 +181,44 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendGrant({ value, fee, memo }: sendGrantParams): Promise; - sendQueryGrantsResponse({ value, fee, memo }: sendQueryGrantsResponseParams): Promise; - sendQueryGranterGrantsRequest({ value, fee, memo }: sendQueryGranterGrantsRequestParams): Promise; - sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendGrantQueueItem({ value, fee, memo }: sendGrantQueueItemParams): Promise; + sendGenericAuthorization({ value, fee, memo }: sendGenericAuthorizationParams): Promise; sendEventGrant({ value, fee, memo }: sendEventGrantParams): Promise; - sendEventRevoke({ value, fee, memo }: sendEventRevokeParams): Promise; - sendGrantAuthorization({ value, fee, memo }: sendGrantAuthorizationParams): Promise; + sendQueryGrantsRequest({ value, fee, memo }: sendQueryGrantsRequestParams): Promise; sendQueryGranterGrantsResponse({ value, fee, memo }: sendQueryGranterGrantsResponseParams): Promise; + sendMsgExecResponse({ value, fee, memo }: sendMsgExecResponseParams): Promise; + sendQueryGrantsResponse({ value, fee, memo }: sendQueryGrantsResponseParams): Promise; + sendQueryGranterGrantsRequest({ value, fee, memo }: sendQueryGranterGrantsRequestParams): Promise; sendQueryGranteeGrantsRequest({ value, fee, memo }: sendQueryGranteeGrantsRequestParams): Promise; - sendGenericAuthorization({ value, fee, memo }: sendGenericAuthorizationParams): Promise; - sendMsgGrantResponse({ value, fee, memo }: sendMsgGrantResponseParams): Promise; - sendMsgRevoke({ value, fee, memo }: sendMsgRevokeParams): Promise; - sendMsgRevokeResponse({ value, fee, memo }: sendMsgRevokeResponseParams): Promise; - sendQueryGrantsRequest({ value, fee, memo }: sendQueryGrantsRequestParams): Promise; sendQueryGranteeGrantsResponse({ value, fee, memo }: sendQueryGranteeGrantsResponseParams): Promise; + sendMsgRevokeResponse({ value, fee, memo }: sendMsgRevokeResponseParams): Promise; sendMsgGrant({ value, fee, memo }: sendMsgGrantParams): Promise; + sendMsgGrantResponse({ value, fee, memo }: sendMsgGrantResponseParams): Promise; + sendGrantAuthorization({ value, fee, memo }: sendGrantAuthorizationParams): Promise; + sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; + sendEventRevoke({ value, fee, memo }: sendEventRevokeParams): Promise; sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise; - sendMsgExecResponse({ value, fee, memo }: sendMsgExecResponseParams): Promise; - grant({ value }: grantParams): EncodeObject; - queryGrantsResponse({ value }: queryGrantsResponseParams): EncodeObject; - queryGranterGrantsRequest({ value }: queryGranterGrantsRequestParams): EncodeObject; - genesisState({ value }: genesisStateParams): EncodeObject; - grantQueueItem({ value }: grantQueueItemParams): EncodeObject; + sendMsgRevoke({ value, fee, memo }: sendMsgRevokeParams): Promise; + sendGrant({ value, fee, memo }: sendGrantParams): Promise; + sendGrantQueueItem({ value, fee, memo }: sendGrantQueueItemParams): Promise; + genericAuthorization({ value }: genericAuthorizationParams): EncodeObject; eventGrant({ value }: eventGrantParams): EncodeObject; - eventRevoke({ value }: eventRevokeParams): EncodeObject; - grantAuthorization({ value }: grantAuthorizationParams): EncodeObject; + queryGrantsRequest({ value }: queryGrantsRequestParams): EncodeObject; queryGranterGrantsResponse({ value }: queryGranterGrantsResponseParams): EncodeObject; + msgExecResponse({ value }: msgExecResponseParams): EncodeObject; + queryGrantsResponse({ value }: queryGrantsResponseParams): EncodeObject; + queryGranterGrantsRequest({ value }: queryGranterGrantsRequestParams): EncodeObject; queryGranteeGrantsRequest({ value }: queryGranteeGrantsRequestParams): EncodeObject; - genericAuthorization({ value }: genericAuthorizationParams): EncodeObject; - msgGrantResponse({ value }: msgGrantResponseParams): EncodeObject; - msgRevoke({ value }: msgRevokeParams): EncodeObject; - msgRevokeResponse({ value }: msgRevokeResponseParams): EncodeObject; - queryGrantsRequest({ value }: queryGrantsRequestParams): EncodeObject; queryGranteeGrantsResponse({ value }: queryGranteeGrantsResponseParams): EncodeObject; + msgRevokeResponse({ value }: msgRevokeResponseParams): EncodeObject; msgGrant({ value }: msgGrantParams): EncodeObject; + msgGrantResponse({ value }: msgGrantResponseParams): EncodeObject; + grantAuthorization({ value }: grantAuthorizationParams): EncodeObject; + genesisState({ value }: genesisStateParams): EncodeObject; + eventRevoke({ value }: eventRevokeParams): EncodeObject; msgExec({ value }: msgExecParams): EncodeObject; - msgExecResponse({ value }: msgExecResponseParams): EncodeObject; + msgRevoke({ value }: msgRevokeParams): EncodeObject; + grant({ value }: grantParams): EncodeObject; + grantQueueItem({ value }: grantQueueItemParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.authz.v1beta1/module.js b/ts-client/lib/cosmos.authz.v1beta1/module.js index bdfd0f75b..96754a398 100644 --- a/ts-client/lib/cosmos.authz.v1beta1/module.js +++ b/ts-client/lib/cosmos.authz.v1beta1/module.js @@ -3,26 +3,26 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { Grant } from "./types/cosmos/authz/v1beta1/authz"; -import { QueryGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; -import { QueryGranterGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; -import { GenesisState } from "./types/cosmos/authz/v1beta1/genesis"; -import { GrantQueueItem } from "./types/cosmos/authz/v1beta1/authz"; +import { GenericAuthorization } from "./types/cosmos/authz/v1beta1/authz"; import { EventGrant } from "./types/cosmos/authz/v1beta1/event"; -import { EventRevoke } from "./types/cosmos/authz/v1beta1/event"; -import { GrantAuthorization } from "./types/cosmos/authz/v1beta1/authz"; +import { QueryGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranterGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { MsgExecResponse } from "./types/cosmos/authz/v1beta1/tx"; +import { QueryGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { QueryGranterGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranteeGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; -import { GenericAuthorization } from "./types/cosmos/authz/v1beta1/authz"; -import { MsgGrantResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgRevokeResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { QueryGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranteeGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { MsgRevokeResponse } from "./types/cosmos/authz/v1beta1/tx"; import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx"; +import { MsgGrantResponse } from "./types/cosmos/authz/v1beta1/tx"; +import { GrantAuthorization } from "./types/cosmos/authz/v1beta1/authz"; +import { GenesisState } from "./types/cosmos/authz/v1beta1/genesis"; +import { EventRevoke } from "./types/cosmos/authz/v1beta1/event"; import { MsgExec } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgExecResponse } from "./types/cosmos/authz/v1beta1/tx"; -export { Grant, QueryGrantsResponse, QueryGranterGrantsRequest, GenesisState, GrantQueueItem, EventGrant, EventRevoke, GrantAuthorization, QueryGranterGrantsResponse, QueryGranteeGrantsRequest, GenericAuthorization, MsgGrantResponse, MsgRevoke, MsgRevokeResponse, QueryGrantsRequest, QueryGranteeGrantsResponse, MsgGrant, MsgExec, MsgExecResponse }; +import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx"; +import { Grant } from "./types/cosmos/authz/v1beta1/authz"; +import { GrantQueueItem } from "./types/cosmos/authz/v1beta1/authz"; +export { GenericAuthorization, EventGrant, QueryGrantsRequest, QueryGranterGrantsResponse, MsgExecResponse, QueryGrantsResponse, QueryGranterGrantsRequest, QueryGranteeGrantsRequest, QueryGranteeGrantsResponse, MsgRevokeResponse, MsgGrant, MsgGrantResponse, GrantAuthorization, GenesisState, EventRevoke, MsgExec, MsgRevoke, Grant, GrantQueueItem }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -38,158 +38,158 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendGrant({ value, fee, memo }) { + async sendGenericAuthorization({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGrant: 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.grant({ value: Grant.fromPartial(value) }); + let msg = this.genericAuthorization({ value: GenericAuthorization.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGrant: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenericAuthorization: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGrantsResponse({ value, fee, memo }) { + async sendEventGrant({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGrantsResponse: 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.queryGrantsResponse({ value: QueryGrantsResponse.fromPartial(value) }); + let msg = this.eventGrant({ value: EventGrant.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGrantsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendEventGrant: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGranterGrantsRequest({ value, fee, memo }) { + async sendQueryGrantsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGranterGrantsRequest: 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.queryGranterGrantsRequest({ value: QueryGranterGrantsRequest.fromPartial(value) }); + let msg = this.queryGrantsRequest({ value: QueryGrantsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGranterGrantsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGrantsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendQueryGranterGrantsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.fromPartial(value) }); + let msg = this.queryGranterGrantsResponse({ value: QueryGranterGrantsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGranterGrantsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGrantQueueItem({ value, fee, memo }) { + async sendMsgExecResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGrantQueueItem: 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.grantQueueItem({ value: GrantQueueItem.fromPartial(value) }); + let msg = this.msgExecResponse({ value: MsgExecResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGrantQueueItem: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgExecResponse: Could not broadcast Tx: ' + e.message); } }, - async sendEventGrant({ value, fee, memo }) { + async sendQueryGrantsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendEventGrant: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryGrantsResponse: Unable to 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.queryGrantsResponse({ value: QueryGrantsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendEventGrant: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGrantsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendEventRevoke({ value, fee, memo }) { + async sendQueryGranterGrantsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendEventRevoke: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryGranterGrantsRequest: Unable to 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.queryGranterGrantsRequest({ value: QueryGranterGrantsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendEventRevoke: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGranterGrantsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendGrantAuthorization({ value, fee, memo }) { + async sendQueryGranteeGrantsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGrantAuthorization: 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.grantAuthorization({ value: GrantAuthorization.fromPartial(value) }); + let msg = this.queryGranteeGrantsRequest({ value: QueryGranteeGrantsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGrantAuthorization: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGranteeGrantsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGranterGrantsResponse({ value, fee, memo }) { + async sendQueryGranteeGrantsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGranterGrantsResponse: 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.queryGranterGrantsResponse({ value: QueryGranterGrantsResponse.fromPartial(value) }); + let msg = this.queryGranteeGrantsResponse({ value: QueryGranteeGrantsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGranterGrantsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGranteeGrantsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGranteeGrantsRequest({ value, fee, memo }) { + async sendMsgRevokeResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGranteeGrantsRequest: 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.queryGranteeGrantsRequest({ value: QueryGranteeGrantsRequest.fromPartial(value) }); + let msg = this.msgRevokeResponse({ value: MsgRevokeResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGranteeGrantsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRevokeResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGenericAuthorization({ value, fee, memo }) { + async sendMsgGrant({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenericAuthorization: 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.genericAuthorization({ value: GenericAuthorization.fromPartial(value) }); + let msg = this.msgGrant({ value: MsgGrant.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenericAuthorization: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgGrant: Could not broadcast Tx: ' + e.message); } }, async sendMsgGrantResponse({ value, fee, memo }) { @@ -206,190 +206,190 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgGrantResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRevoke({ value, fee, memo }) { + async sendGrantAuthorization({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRevoke: 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.msgRevoke({ value: MsgRevoke.fromPartial(value) }); + let msg = this.grantAuthorization({ value: GrantAuthorization.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRevoke: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGrantAuthorization: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRevokeResponse({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRevokeResponse: 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.msgRevokeResponse({ value: MsgRevokeResponse.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRevokeResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGrantsRequest({ value, fee, memo }) { + async sendEventRevoke({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGrantsRequest: 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.queryGrantsRequest({ value: QueryGrantsRequest.fromPartial(value) }); + let msg = this.eventRevoke({ value: EventRevoke.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGrantsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendEventRevoke: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGranteeGrantsResponse({ value, fee, memo }) { + async sendMsgExec({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGranteeGrantsResponse: 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.queryGranteeGrantsResponse({ value: QueryGranteeGrantsResponse.fromPartial(value) }); + let msg = this.msgExec({ value: MsgExec.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGranteeGrantsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: ' + e.message); } }, - async sendMsgGrant({ value, fee, memo }) { + async sendMsgRevoke({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgGrant: 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.msgGrant({ value: MsgGrant.fromPartial(value) }); + let msg = this.msgRevoke({ value: MsgRevoke.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgGrant: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRevoke: Could not broadcast Tx: ' + e.message); } }, - async sendMsgExec({ value, fee, memo }) { + async sendGrant({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgExec: 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.msgExec({ value: MsgExec.fromPartial(value) }); + let msg = this.grant({ value: Grant.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGrant: Could not broadcast Tx: ' + e.message); } }, - async sendMsgExecResponse({ value, fee, memo }) { + async sendGrantQueueItem({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgExecResponse: 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.msgExecResponse({ value: MsgExecResponse.fromPartial(value) }); + let msg = this.grantQueueItem({ value: GrantQueueItem.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgExecResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGrantQueueItem: Could not broadcast Tx: ' + e.message); } }, - grant({ value }) { + genericAuthorization({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.Grant", value: Grant.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", value: GenericAuthorization.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Grant: Could not create message: ' + e.message); + throw new Error('TxClient:GenericAuthorization: Could not create message: ' + e.message); } }, - queryGrantsResponse({ value }) { + eventGrant({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", value: QueryGrantsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.EventGrant", value: EventGrant.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGrantsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:EventGrant: Could not create message: ' + e.message); } }, - queryGranterGrantsRequest({ value }) { + queryGrantsRequest({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", value: QueryGranterGrantsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", value: QueryGrantsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGranterGrantsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGrantsRequest: Could not create message: ' + e.message); } }, - genesisState({ value }) { + queryGranterGrantsResponse({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", value: QueryGranterGrantsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGranterGrantsResponse: Could not create message: ' + e.message); } }, - grantQueueItem({ value }) { + msgExecResponse({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", value: GrantQueueItem.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", value: MsgExecResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GrantQueueItem: Could not create message: ' + e.message); + throw new Error('TxClient:MsgExecResponse: Could not create message: ' + e.message); } }, - eventGrant({ value }) { + queryGrantsResponse({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.EventGrant", value: EventGrant.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.QueryGrantsResponse", value: QueryGrantsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:EventGrant: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGrantsResponse: Could not create message: ' + e.message); } }, - eventRevoke({ value }) { + queryGranterGrantsRequest({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.EventRevoke", value: EventRevoke.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsRequest", value: QueryGranterGrantsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:EventRevoke: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGranterGrantsRequest: Could not create message: ' + e.message); } }, - grantAuthorization({ value }) { + queryGranteeGrantsRequest({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", value: GrantAuthorization.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", value: QueryGranteeGrantsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GrantAuthorization: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGranteeGrantsRequest: Could not create message: ' + e.message); } }, - queryGranterGrantsResponse({ value }) { + queryGranteeGrantsResponse({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.QueryGranterGrantsResponse", value: QueryGranterGrantsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", value: QueryGranteeGrantsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGranterGrantsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGranteeGrantsResponse: Could not create message: ' + e.message); } }, - queryGranteeGrantsRequest({ value }) { + msgRevokeResponse({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", value: QueryGranteeGrantsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", value: MsgRevokeResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGranteeGrantsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRevokeResponse: Could not create message: ' + e.message); } }, - genericAuthorization({ value }) { + msgGrant({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.GenericAuthorization", value: GenericAuthorization.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.MsgGrant", value: MsgGrant.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenericAuthorization: Could not create message: ' + e.message); + throw new Error('TxClient:MsgGrant: Could not create message: ' + e.message); } }, msgGrantResponse({ value }) { @@ -400,60 +400,60 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgGrantResponse: Could not create message: ' + e.message); } }, - msgRevoke({ value }) { + grantAuthorization({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", value: MsgRevoke.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.GrantAuthorization", value: GrantAuthorization.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRevoke: Could not create message: ' + e.message); + throw new Error('TxClient:GrantAuthorization: Could not create message: ' + e.message); } }, - msgRevokeResponse({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgRevokeResponse", value: MsgRevokeResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRevokeResponse: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - queryGrantsRequest({ value }) { + eventRevoke({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.QueryGrantsRequest", value: QueryGrantsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.EventRevoke", value: EventRevoke.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGrantsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:EventRevoke: Could not create message: ' + e.message); } }, - queryGranteeGrantsResponse({ value }) { + msgExec({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", value: QueryGranteeGrantsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.MsgExec", value: MsgExec.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGranteeGrantsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgExec: Could not create message: ' + e.message); } }, - msgGrant({ value }) { + msgRevoke({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgGrant", value: MsgGrant.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.MsgRevoke", value: MsgRevoke.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgGrant: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRevoke: Could not create message: ' + e.message); } }, - msgExec({ value }) { + grant({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgExec", value: MsgExec.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.Grant", value: Grant.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgExec: Could not create message: ' + e.message); + throw new Error('TxClient:Grant: Could not create message: ' + e.message); } }, - msgExecResponse({ value }) { + grantQueueItem({ value }) { try { - return { typeUrl: "/cosmos.authz.v1beta1.MsgExecResponse", value: MsgExecResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.authz.v1beta1.GrantQueueItem", value: GrantQueueItem.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgExecResponse: Could not create message: ' + e.message); + throw new Error('TxClient:GrantQueueItem: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.authz.v1beta1/registry.js b/ts-client/lib/cosmos.authz.v1beta1/registry.js index 183ea1ec9..c64e66fc0 100644 --- a/ts-client/lib/cosmos.authz.v1beta1/registry.js +++ b/ts-client/lib/cosmos.authz.v1beta1/registry.js @@ -1,41 +1,41 @@ -import { Grant } from "./types/cosmos/authz/v1beta1/authz"; -import { QueryGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; -import { QueryGranterGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; -import { GenesisState } from "./types/cosmos/authz/v1beta1/genesis"; -import { GrantQueueItem } from "./types/cosmos/authz/v1beta1/authz"; +import { GenericAuthorization } from "./types/cosmos/authz/v1beta1/authz"; import { EventGrant } from "./types/cosmos/authz/v1beta1/event"; -import { EventRevoke } from "./types/cosmos/authz/v1beta1/event"; -import { GrantAuthorization } from "./types/cosmos/authz/v1beta1/authz"; +import { QueryGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranterGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { MsgExecResponse } from "./types/cosmos/authz/v1beta1/tx"; +import { QueryGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { QueryGranterGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranteeGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; -import { GenericAuthorization } from "./types/cosmos/authz/v1beta1/authz"; -import { MsgGrantResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgRevokeResponse } from "./types/cosmos/authz/v1beta1/tx"; -import { QueryGrantsRequest } from "./types/cosmos/authz/v1beta1/query"; import { QueryGranteeGrantsResponse } from "./types/cosmos/authz/v1beta1/query"; +import { MsgRevokeResponse } from "./types/cosmos/authz/v1beta1/tx"; import { MsgGrant } from "./types/cosmos/authz/v1beta1/tx"; +import { MsgGrantResponse } from "./types/cosmos/authz/v1beta1/tx"; +import { GrantAuthorization } from "./types/cosmos/authz/v1beta1/authz"; +import { GenesisState } from "./types/cosmos/authz/v1beta1/genesis"; +import { EventRevoke } from "./types/cosmos/authz/v1beta1/event"; import { MsgExec } from "./types/cosmos/authz/v1beta1/tx"; -import { MsgExecResponse } from "./types/cosmos/authz/v1beta1/tx"; +import { MsgRevoke } from "./types/cosmos/authz/v1beta1/tx"; +import { Grant } from "./types/cosmos/authz/v1beta1/authz"; +import { GrantQueueItem } from "./types/cosmos/authz/v1beta1/authz"; const msgTypes = [ - ["/cosmos.authz.v1beta1.Grant", Grant], - ["/cosmos.authz.v1beta1.QueryGrantsResponse", QueryGrantsResponse], - ["/cosmos.authz.v1beta1.QueryGranterGrantsRequest", QueryGranterGrantsRequest], - ["/cosmos.authz.v1beta1.GenesisState", GenesisState], - ["/cosmos.authz.v1beta1.GrantQueueItem", GrantQueueItem], + ["/cosmos.authz.v1beta1.GenericAuthorization", GenericAuthorization], ["/cosmos.authz.v1beta1.EventGrant", EventGrant], - ["/cosmos.authz.v1beta1.EventRevoke", EventRevoke], - ["/cosmos.authz.v1beta1.GrantAuthorization", GrantAuthorization], + ["/cosmos.authz.v1beta1.QueryGrantsRequest", QueryGrantsRequest], ["/cosmos.authz.v1beta1.QueryGranterGrantsResponse", QueryGranterGrantsResponse], + ["/cosmos.authz.v1beta1.MsgExecResponse", MsgExecResponse], + ["/cosmos.authz.v1beta1.QueryGrantsResponse", QueryGrantsResponse], + ["/cosmos.authz.v1beta1.QueryGranterGrantsRequest", QueryGranterGrantsRequest], ["/cosmos.authz.v1beta1.QueryGranteeGrantsRequest", QueryGranteeGrantsRequest], - ["/cosmos.authz.v1beta1.GenericAuthorization", GenericAuthorization], - ["/cosmos.authz.v1beta1.MsgGrantResponse", MsgGrantResponse], - ["/cosmos.authz.v1beta1.MsgRevoke", MsgRevoke], - ["/cosmos.authz.v1beta1.MsgRevokeResponse", MsgRevokeResponse], - ["/cosmos.authz.v1beta1.QueryGrantsRequest", QueryGrantsRequest], ["/cosmos.authz.v1beta1.QueryGranteeGrantsResponse", QueryGranteeGrantsResponse], + ["/cosmos.authz.v1beta1.MsgRevokeResponse", MsgRevokeResponse], ["/cosmos.authz.v1beta1.MsgGrant", MsgGrant], + ["/cosmos.authz.v1beta1.MsgGrantResponse", MsgGrantResponse], + ["/cosmos.authz.v1beta1.GrantAuthorization", GrantAuthorization], + ["/cosmos.authz.v1beta1.GenesisState", GenesisState], + ["/cosmos.authz.v1beta1.EventRevoke", EventRevoke], ["/cosmos.authz.v1beta1.MsgExec", MsgExec], - ["/cosmos.authz.v1beta1.MsgExecResponse", MsgExecResponse], + ["/cosmos.authz.v1beta1.MsgRevoke", MsgRevoke], + ["/cosmos.authz.v1beta1.Grant", Grant], + ["/cosmos.authz.v1beta1.GrantQueueItem", GrantQueueItem], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.bank.v1beta1/module.d.ts b/ts-client/lib/cosmos.bank.v1beta1/module.d.ts index b78d08257..948dbfa20 100644 --- a/ts-client/lib/cosmos.bank.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.bank.v1beta1/module.d.ts @@ -2,64 +2,69 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { QueryTotalSupplyResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomsMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomMetadataByQueryStringRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySpendableBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; import { MsgSendResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { DenomUnit } from "./types/cosmos/bank/v1beta1/bank"; import { SendEnabled } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryDenomMetadataByQueryStringResponse } from "./types/cosmos/bank/v1beta1/query"; +import { SendAuthorization } from "./types/cosmos/bank/v1beta1/authz"; +import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; import { Supply } from "./types/cosmos/bank/v1beta1/bank"; -import { QuerySpendableBalanceByDenomRequest } from "./types/cosmos/bank/v1beta1/query"; import { QueryDenomOwnersResponse } from "./types/cosmos/bank/v1beta1/query"; -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 { SendAuthorization } from "./types/cosmos/bank/v1beta1/authz"; -import { Output } from "./types/cosmos/bank/v1beta1/bank"; import { QueryAllBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomsMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; -import { Params } from "./types/cosmos/bank/v1beta1/bank"; -import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryBalanceRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QueryAllBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomOwnersByQueryResponse } from "./types/cosmos/bank/v1beta1/query"; import { QuerySupplyOfRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryParamsResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySupplyOfResponse } from "./types/cosmos/bank/v1beta1/query"; +import { MsgUpdateParams } from "./types/cosmos/bank/v1beta1/tx"; +import { Input } from "./types/cosmos/bank/v1beta1/bank"; +import { DenomUnit } from "./types/cosmos/bank/v1beta1/bank"; +import { QuerySpendableBalanceByDenomRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersRequest } from "./types/cosmos/bank/v1beta1/query"; import { MsgUpdateParamsResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryDenomsMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; -import { MsgSetSendEnabled } from "./types/cosmos/bank/v1beta1/tx"; import { QueryBalanceResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryTotalSupplyRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySupplyOfResponse } from "./types/cosmos/bank/v1beta1/query"; -import { Metadata } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryAllBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; import { QuerySpendableBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; -import { MsgUpdateParams } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryDenomMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; -import { Balance } from "./types/cosmos/bank/v1beta1/genesis"; -import { QuerySpendableBalanceByDenomResponse } from "./types/cosmos/bank/v1beta1/query"; import { QueryParamsRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; -import { MsgMultiSendResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryParamsResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomMetadataByQueryStringRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgSetSendEnabledResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { GenesisState } from "./types/cosmos/bank/v1beta1/genesis"; -import { QueryDenomOwnersRequest } from "./types/cosmos/bank/v1beta1/query"; import { DenomOwner } from "./types/cosmos/bank/v1beta1/query"; -import { Input } from "./types/cosmos/bank/v1beta1/bank"; -import { QueryDenomMetadataByQueryStringResponse } from "./types/cosmos/bank/v1beta1/query"; +import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; +import { MsgSetSendEnabled } from "./types/cosmos/bank/v1beta1/tx"; +import { Output } from "./types/cosmos/bank/v1beta1/bank"; +import { GenesisState } from "./types/cosmos/bank/v1beta1/genesis"; +import { Metadata } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryDenomMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryTotalSupplyResponse } from "./types/cosmos/bank/v1beta1/query"; import { QueryDenomOwnersByQueryRequest } from "./types/cosmos/bank/v1beta1/query"; +import { Balance } from "./types/cosmos/bank/v1beta1/genesis"; +import { Params } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryTotalSupplyRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersByQueryResponse } from "./types/cosmos/bank/v1beta1/query"; import { QuerySendEnabledResponse } from "./types/cosmos/bank/v1beta1/query"; -export { QueryTotalSupplyResponse, MsgSendResponse, DenomUnit, SendEnabled, Supply, QuerySpendableBalanceByDenomRequest, QueryDenomOwnersResponse, QuerySpendableBalancesRequest, QueryDenomMetadataResponse, QuerySendEnabledRequest, SendAuthorization, Output, QueryAllBalancesResponse, QueryDenomsMetadataRequest, Params, MsgSend, QueryBalanceRequest, QueryAllBalancesRequest, QueryDenomOwnersByQueryResponse, QuerySupplyOfRequest, MsgUpdateParamsResponse, QueryDenomsMetadataResponse, MsgSetSendEnabled, QueryBalanceResponse, QueryTotalSupplyRequest, QuerySupplyOfResponse, Metadata, QuerySpendableBalancesResponse, MsgUpdateParams, QueryDenomMetadataRequest, Balance, QuerySpendableBalanceByDenomResponse, QueryParamsRequest, MsgMultiSend, MsgMultiSendResponse, QueryParamsResponse, QueryDenomMetadataByQueryStringRequest, MsgSetSendEnabledResponse, GenesisState, QueryDenomOwnersRequest, DenomOwner, Input, QueryDenomMetadataByQueryStringResponse, QueryDenomOwnersByQueryRequest, QuerySendEnabledResponse }; -type sendQueryTotalSupplyResponseParams = { - value: QueryTotalSupplyResponse; +import { QuerySpendableBalanceByDenomResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomsMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; +import { MsgMultiSendResponse } from "./types/cosmos/bank/v1beta1/tx"; +import { QueryBalanceRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySendEnabledRequest } from "./types/cosmos/bank/v1beta1/query"; +import { MsgSetSendEnabledResponse } from "./types/cosmos/bank/v1beta1/tx"; +export { QueryDenomsMetadataRequest, QueryDenomMetadataByQueryStringRequest, QuerySpendableBalancesRequest, MsgSendResponse, SendEnabled, QueryDenomMetadataByQueryStringResponse, SendAuthorization, MsgMultiSend, Supply, QueryDenomOwnersResponse, QueryAllBalancesResponse, QuerySupplyOfRequest, QueryParamsResponse, QuerySupplyOfResponse, MsgUpdateParams, Input, DenomUnit, QuerySpendableBalanceByDenomRequest, QueryDenomOwnersRequest, MsgUpdateParamsResponse, QueryBalanceResponse, QueryAllBalancesRequest, QuerySpendableBalancesResponse, QueryParamsRequest, DenomOwner, MsgSend, MsgSetSendEnabled, Output, GenesisState, Metadata, QueryDenomMetadataResponse, QueryTotalSupplyResponse, QueryDenomOwnersByQueryRequest, Balance, Params, QueryTotalSupplyRequest, QueryDenomOwnersByQueryResponse, QuerySendEnabledResponse, QuerySpendableBalanceByDenomResponse, QueryDenomsMetadataResponse, QueryDenomMetadataRequest, MsgMultiSendResponse, QueryBalanceRequest, QuerySendEnabledRequest, MsgSetSendEnabledResponse }; +type sendQueryDenomsMetadataRequestParams = { + value: QueryDenomsMetadataRequest; fee?: StdFee; memo?: string; }; -type sendMsgSendResponseParams = { - value: MsgSendResponse; +type sendQueryDenomMetadataByQueryStringRequestParams = { + value: QueryDenomMetadataByQueryStringRequest; fee?: StdFee; memo?: string; }; -type sendDenomUnitParams = { - value: DenomUnit; +type sendQuerySpendableBalancesRequestParams = { + value: QuerySpendableBalancesRequest; + fee?: StdFee; + memo?: string; +}; +type sendMsgSendResponseParams = { + value: MsgSendResponse; fee?: StdFee; memo?: string; }; @@ -68,13 +73,23 @@ type sendSendEnabledParams = { fee?: StdFee; memo?: string; }; -type sendSupplyParams = { - value: Supply; +type sendQueryDenomMetadataByQueryStringResponseParams = { + value: QueryDenomMetadataByQueryStringResponse; fee?: StdFee; memo?: string; }; -type sendQuerySpendableBalanceByDenomRequestParams = { - value: QuerySpendableBalanceByDenomRequest; +type sendSendAuthorizationParams = { + value: SendAuthorization; + fee?: StdFee; + memo?: string; +}; +type sendMsgMultiSendParams = { + value: MsgMultiSend; + fee?: StdFee; + memo?: string; +}; +type sendSupplyParams = { + value: Supply; fee?: StdFee; memo?: string; }; @@ -83,53 +98,58 @@ type sendQueryDenomOwnersResponseParams = { fee?: StdFee; memo?: string; }; -type sendQuerySpendableBalancesRequestParams = { - value: QuerySpendableBalancesRequest; +type sendQueryAllBalancesResponseParams = { + value: QueryAllBalancesResponse; fee?: StdFee; memo?: string; }; -type sendQueryDenomMetadataResponseParams = { - value: QueryDenomMetadataResponse; +type sendQuerySupplyOfRequestParams = { + value: QuerySupplyOfRequest; fee?: StdFee; memo?: string; }; -type sendQuerySendEnabledRequestParams = { - value: QuerySendEnabledRequest; +type sendQueryParamsResponseParams = { + value: QueryParamsResponse; fee?: StdFee; memo?: string; }; -type sendSendAuthorizationParams = { - value: SendAuthorization; +type sendQuerySupplyOfResponseParams = { + value: QuerySupplyOfResponse; fee?: StdFee; memo?: string; }; -type sendOutputParams = { - value: Output; +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams; fee?: StdFee; memo?: string; }; -type sendQueryAllBalancesResponseParams = { - value: QueryAllBalancesResponse; +type sendInputParams = { + value: Input; fee?: StdFee; memo?: string; }; -type sendQueryDenomsMetadataRequestParams = { - value: QueryDenomsMetadataRequest; +type sendDenomUnitParams = { + value: DenomUnit; fee?: StdFee; memo?: string; }; -type sendParamsParams = { - value: Params; +type sendQuerySpendableBalanceByDenomRequestParams = { + value: QuerySpendableBalanceByDenomRequest; fee?: StdFee; memo?: string; }; -type sendMsgSendParams = { - value: MsgSend; +type sendQueryDenomOwnersRequestParams = { + value: QueryDenomOwnersRequest; fee?: StdFee; memo?: string; }; -type sendQueryBalanceRequestParams = { - value: QueryBalanceRequest; +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; + fee?: StdFee; + memo?: string; +}; +type sendQueryBalanceResponseParams = { + value: QueryBalanceResponse; fee?: StdFee; memo?: string; }; @@ -138,23 +158,23 @@ type sendQueryAllBalancesRequestParams = { fee?: StdFee; memo?: string; }; -type sendQueryDenomOwnersByQueryResponseParams = { - value: QueryDenomOwnersByQueryResponse; +type sendQuerySpendableBalancesResponseParams = { + value: QuerySpendableBalancesResponse; fee?: StdFee; memo?: string; }; -type sendQuerySupplyOfRequestParams = { - value: QuerySupplyOfRequest; +type sendQueryParamsRequestParams = { + value: QueryParamsRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type sendDenomOwnerParams = { + value: DenomOwner; fee?: StdFee; memo?: string; }; -type sendQueryDenomsMetadataResponseParams = { - value: QueryDenomsMetadataResponse; +type sendMsgSendParams = { + value: MsgSend; fee?: StdFee; memo?: string; }; @@ -163,18 +183,13 @@ type sendMsgSetSendEnabledParams = { fee?: StdFee; memo?: string; }; -type sendQueryBalanceResponseParams = { - value: QueryBalanceResponse; - fee?: StdFee; - memo?: string; -}; -type sendQueryTotalSupplyRequestParams = { - value: QueryTotalSupplyRequest; +type sendOutputParams = { + value: Output; fee?: StdFee; memo?: string; }; -type sendQuerySupplyOfResponseParams = { - value: QuerySupplyOfResponse; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; @@ -183,18 +198,18 @@ type sendMetadataParams = { fee?: StdFee; memo?: string; }; -type sendQuerySpendableBalancesResponseParams = { - value: QuerySpendableBalancesResponse; +type sendQueryDenomMetadataResponseParams = { + value: QueryDenomMetadataResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams; +type sendQueryTotalSupplyResponseParams = { + value: QueryTotalSupplyResponse; fee?: StdFee; memo?: string; }; -type sendQueryDenomMetadataRequestParams = { - value: QueryDenomMetadataRequest; +type sendQueryDenomOwnersByQueryRequestParams = { + value: QueryDenomOwnersByQueryRequest; fee?: StdFee; memo?: string; }; @@ -203,211 +218,196 @@ type sendBalanceParams = { fee?: StdFee; memo?: string; }; -type sendQuerySpendableBalanceByDenomResponseParams = { - value: QuerySpendableBalanceByDenomResponse; - fee?: StdFee; - memo?: string; -}; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest; +type sendParamsParams = { + value: Params; fee?: StdFee; memo?: string; }; -type sendMsgMultiSendParams = { - value: MsgMultiSend; +type sendQueryTotalSupplyRequestParams = { + value: QueryTotalSupplyRequest; fee?: StdFee; memo?: string; }; -type sendMsgMultiSendResponseParams = { - value: MsgMultiSendResponse; +type sendQueryDenomOwnersByQueryResponseParams = { + value: QueryDenomOwnersByQueryResponse; fee?: StdFee; memo?: string; }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse; +type sendQuerySendEnabledResponseParams = { + value: QuerySendEnabledResponse; fee?: StdFee; memo?: string; }; -type sendQueryDenomMetadataByQueryStringRequestParams = { - value: QueryDenomMetadataByQueryStringRequest; +type sendQuerySpendableBalanceByDenomResponseParams = { + value: QuerySpendableBalanceByDenomResponse; fee?: StdFee; memo?: string; }; -type sendMsgSetSendEnabledResponseParams = { - value: MsgSetSendEnabledResponse; +type sendQueryDenomsMetadataResponseParams = { + value: QueryDenomsMetadataResponse; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendQueryDenomMetadataRequestParams = { + value: QueryDenomMetadataRequest; fee?: StdFee; memo?: string; }; -type sendQueryDenomOwnersRequestParams = { - value: QueryDenomOwnersRequest; +type sendMsgMultiSendResponseParams = { + value: MsgMultiSendResponse; fee?: StdFee; memo?: string; }; -type sendDenomOwnerParams = { - value: DenomOwner; +type sendQueryBalanceRequestParams = { + value: QueryBalanceRequest; fee?: StdFee; memo?: string; }; -type sendInputParams = { - value: Input; +type sendQuerySendEnabledRequestParams = { + value: QuerySendEnabledRequest; fee?: StdFee; memo?: string; }; -type sendQueryDenomMetadataByQueryStringResponseParams = { - value: QueryDenomMetadataByQueryStringResponse; +type sendMsgSetSendEnabledResponseParams = { + value: MsgSetSendEnabledResponse; fee?: StdFee; memo?: string; }; -type sendQueryDenomOwnersByQueryRequestParams = { - value: QueryDenomOwnersByQueryRequest; - fee?: StdFee; - memo?: string; +type queryDenomsMetadataRequestParams = { + value: QueryDenomsMetadataRequest; }; -type sendQuerySendEnabledResponseParams = { - value: QuerySendEnabledResponse; - fee?: StdFee; - memo?: string; +type queryDenomMetadataByQueryStringRequestParams = { + value: QueryDenomMetadataByQueryStringRequest; }; -type queryTotalSupplyResponseParams = { - value: QueryTotalSupplyResponse; +type querySpendableBalancesRequestParams = { + value: QuerySpendableBalancesRequest; }; type msgSendResponseParams = { value: MsgSendResponse; }; -type denomUnitParams = { - value: DenomUnit; -}; type sendEnabledParams = { value: SendEnabled; }; -type supplyParams = { - value: Supply; -}; -type querySpendableBalanceByDenomRequestParams = { - value: QuerySpendableBalanceByDenomRequest; +type queryDenomMetadataByQueryStringResponseParams = { + value: QueryDenomMetadataByQueryStringResponse; +}; +type sendAuthorizationParams = { + value: SendAuthorization; +}; +type msgMultiSendParams = { + value: MsgMultiSend; +}; +type supplyParams = { + value: Supply; }; type queryDenomOwnersResponseParams = { value: QueryDenomOwnersResponse; }; -type querySpendableBalancesRequestParams = { - value: QuerySpendableBalancesRequest; +type queryAllBalancesResponseParams = { + value: QueryAllBalancesResponse; }; -type queryDenomMetadataResponseParams = { - value: QueryDenomMetadataResponse; +type querySupplyOfRequestParams = { + value: QuerySupplyOfRequest; }; -type querySendEnabledRequestParams = { - value: QuerySendEnabledRequest; +type queryParamsResponseParams = { + value: QueryParamsResponse; }; -type sendAuthorizationParams = { - value: SendAuthorization; +type querySupplyOfResponseParams = { + value: QuerySupplyOfResponse; }; -type outputParams = { - value: Output; +type msgUpdateParamsParams = { + value: MsgUpdateParams; }; -type queryAllBalancesResponseParams = { - value: QueryAllBalancesResponse; +type inputParams = { + value: Input; }; -type queryDenomsMetadataRequestParams = { - value: QueryDenomsMetadataRequest; +type denomUnitParams = { + value: DenomUnit; }; -type paramsParams = { - value: Params; +type querySpendableBalanceByDenomRequestParams = { + value: QuerySpendableBalanceByDenomRequest; }; -type msgSendParams = { - value: MsgSend; +type queryDenomOwnersRequestParams = { + value: QueryDenomOwnersRequest; }; -type queryBalanceRequestParams = { - value: QueryBalanceRequest; +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; +}; +type queryBalanceResponseParams = { + value: QueryBalanceResponse; }; type queryAllBalancesRequestParams = { value: QueryAllBalancesRequest; }; -type queryDenomOwnersByQueryResponseParams = { - value: QueryDenomOwnersByQueryResponse; +type querySpendableBalancesResponseParams = { + value: QuerySpendableBalancesResponse; }; -type querySupplyOfRequestParams = { - value: QuerySupplyOfRequest; +type queryParamsRequestParams = { + value: QueryParamsRequest; }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type denomOwnerParams = { + value: DenomOwner; }; -type queryDenomsMetadataResponseParams = { - value: QueryDenomsMetadataResponse; +type msgSendParams = { + value: MsgSend; }; type msgSetSendEnabledParams = { value: MsgSetSendEnabled; }; -type queryBalanceResponseParams = { - value: QueryBalanceResponse; -}; -type queryTotalSupplyRequestParams = { - value: QueryTotalSupplyRequest; +type outputParams = { + value: Output; }; -type querySupplyOfResponseParams = { - value: QuerySupplyOfResponse; +type genesisStateParams = { + value: GenesisState; }; type metadataParams = { value: Metadata; }; -type querySpendableBalancesResponseParams = { - value: QuerySpendableBalancesResponse; +type queryDenomMetadataResponseParams = { + value: QueryDenomMetadataResponse; }; -type msgUpdateParamsParams = { - value: MsgUpdateParams; +type queryTotalSupplyResponseParams = { + value: QueryTotalSupplyResponse; }; -type queryDenomMetadataRequestParams = { - value: QueryDenomMetadataRequest; +type queryDenomOwnersByQueryRequestParams = { + value: QueryDenomOwnersByQueryRequest; }; type balanceParams = { value: Balance; }; +type paramsParams = { + value: Params; +}; +type queryTotalSupplyRequestParams = { + value: QueryTotalSupplyRequest; +}; +type queryDenomOwnersByQueryResponseParams = { + value: QueryDenomOwnersByQueryResponse; +}; +type querySendEnabledResponseParams = { + value: QuerySendEnabledResponse; +}; type querySpendableBalanceByDenomResponseParams = { value: QuerySpendableBalanceByDenomResponse; }; -type queryParamsRequestParams = { - value: QueryParamsRequest; +type queryDenomsMetadataResponseParams = { + value: QueryDenomsMetadataResponse; }; -type msgMultiSendParams = { - value: MsgMultiSend; +type queryDenomMetadataRequestParams = { + value: QueryDenomMetadataRequest; }; type msgMultiSendResponseParams = { value: MsgMultiSendResponse; }; -type queryParamsResponseParams = { - value: QueryParamsResponse; +type queryBalanceRequestParams = { + value: QueryBalanceRequest; }; -type queryDenomMetadataByQueryStringRequestParams = { - value: QueryDenomMetadataByQueryStringRequest; +type querySendEnabledRequestParams = { + value: QuerySendEnabledRequest; }; type msgSetSendEnabledResponseParams = { value: MsgSetSendEnabledResponse; }; -type genesisStateParams = { - value: GenesisState; -}; -type queryDenomOwnersRequestParams = { - value: QueryDenomOwnersRequest; -}; -type denomOwnerParams = { - value: DenomOwner; -}; -type inputParams = { - value: Input; -}; -type queryDenomMetadataByQueryStringResponseParams = { - value: QueryDenomMetadataByQueryStringResponse; -}; -type queryDenomOwnersByQueryRequestParams = { - value: QueryDenomOwnersByQueryRequest; -}; -type querySendEnabledResponseParams = { - value: QuerySendEnabledResponse; -}; export declare const registry: Registry; interface TxClientOptions { addr: string; @@ -415,96 +415,96 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendQueryTotalSupplyResponse({ value, fee, memo }: sendQueryTotalSupplyResponseParams): Promise; + sendQueryDenomsMetadataRequest({ value, fee, memo }: sendQueryDenomsMetadataRequestParams): Promise; + sendQueryDenomMetadataByQueryStringRequest({ value, fee, memo }: sendQueryDenomMetadataByQueryStringRequestParams): Promise; + sendQuerySpendableBalancesRequest({ value, fee, memo }: sendQuerySpendableBalancesRequestParams): Promise; sendMsgSendResponse({ value, fee, memo }: sendMsgSendResponseParams): Promise; - sendDenomUnit({ value, fee, memo }: sendDenomUnitParams): Promise; sendSendEnabled({ value, fee, memo }: sendSendEnabledParams): Promise; + sendQueryDenomMetadataByQueryStringResponse({ value, fee, memo }: sendQueryDenomMetadataByQueryStringResponseParams): Promise; + sendSendAuthorization({ value, fee, memo }: sendSendAuthorizationParams): Promise; + sendMsgMultiSend({ value, fee, memo }: sendMsgMultiSendParams): Promise; sendSupply({ value, fee, memo }: sendSupplyParams): Promise; - sendQuerySpendableBalanceByDenomRequest({ value, fee, memo }: sendQuerySpendableBalanceByDenomRequestParams): Promise; sendQueryDenomOwnersResponse({ value, fee, memo }: sendQueryDenomOwnersResponseParams): Promise; - sendQuerySpendableBalancesRequest({ value, fee, memo }: sendQuerySpendableBalancesRequestParams): Promise; - sendQueryDenomMetadataResponse({ value, fee, memo }: sendQueryDenomMetadataResponseParams): Promise; - sendQuerySendEnabledRequest({ value, fee, memo }: sendQuerySendEnabledRequestParams): Promise; - sendSendAuthorization({ value, fee, memo }: sendSendAuthorizationParams): Promise; - sendOutput({ value, fee, memo }: sendOutputParams): Promise; sendQueryAllBalancesResponse({ value, fee, memo }: sendQueryAllBalancesResponseParams): Promise; - sendQueryDenomsMetadataRequest({ value, fee, memo }: sendQueryDenomsMetadataRequestParams): Promise; - sendParams({ value, fee, memo }: sendParamsParams): Promise; - sendMsgSend({ value, fee, memo }: sendMsgSendParams): Promise; - sendQueryBalanceRequest({ value, fee, memo }: sendQueryBalanceRequestParams): Promise; - sendQueryAllBalancesRequest({ value, fee, memo }: sendQueryAllBalancesRequestParams): Promise; - sendQueryDenomOwnersByQueryResponse({ value, fee, memo }: sendQueryDenomOwnersByQueryResponseParams): Promise; sendQuerySupplyOfRequest({ value, fee, memo }: sendQuerySupplyOfRequestParams): Promise; + sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; + sendQuerySupplyOfResponse({ value, fee, memo }: sendQuerySupplyOfResponseParams): Promise; + sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; + sendInput({ value, fee, memo }: sendInputParams): Promise; + sendDenomUnit({ value, fee, memo }: sendDenomUnitParams): Promise; + sendQuerySpendableBalanceByDenomRequest({ value, fee, memo }: sendQuerySpendableBalanceByDenomRequestParams): Promise; + sendQueryDenomOwnersRequest({ value, fee, memo }: sendQueryDenomOwnersRequestParams): Promise; sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; - sendQueryDenomsMetadataResponse({ value, fee, memo }: sendQueryDenomsMetadataResponseParams): Promise; - sendMsgSetSendEnabled({ value, fee, memo }: sendMsgSetSendEnabledParams): Promise; sendQueryBalanceResponse({ value, fee, memo }: sendQueryBalanceResponseParams): Promise; - sendQueryTotalSupplyRequest({ value, fee, memo }: sendQueryTotalSupplyRequestParams): Promise; - sendQuerySupplyOfResponse({ value, fee, memo }: sendQuerySupplyOfResponseParams): Promise; - sendMetadata({ value, fee, memo }: sendMetadataParams): Promise; + sendQueryAllBalancesRequest({ value, fee, memo }: sendQueryAllBalancesRequestParams): Promise; sendQuerySpendableBalancesResponse({ value, fee, memo }: sendQuerySpendableBalancesResponseParams): Promise; - sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; - sendQueryDenomMetadataRequest({ value, fee, memo }: sendQueryDenomMetadataRequestParams): Promise; - sendBalance({ value, fee, memo }: sendBalanceParams): Promise; - sendQuerySpendableBalanceByDenomResponse({ value, fee, memo }: sendQuerySpendableBalanceByDenomResponseParams): Promise; sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; - sendMsgMultiSend({ value, fee, memo }: sendMsgMultiSendParams): Promise; - sendMsgMultiSendResponse({ value, fee, memo }: sendMsgMultiSendResponseParams): Promise; - sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; - sendQueryDenomMetadataByQueryStringRequest({ value, fee, memo }: sendQueryDenomMetadataByQueryStringRequestParams): Promise; - sendMsgSetSendEnabledResponse({ value, fee, memo }: sendMsgSetSendEnabledResponseParams): Promise; - sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendQueryDenomOwnersRequest({ value, fee, memo }: sendQueryDenomOwnersRequestParams): Promise; sendDenomOwner({ value, fee, memo }: sendDenomOwnerParams): Promise; - sendInput({ value, fee, memo }: sendInputParams): Promise; - sendQueryDenomMetadataByQueryStringResponse({ value, fee, memo }: sendQueryDenomMetadataByQueryStringResponseParams): Promise; + sendMsgSend({ value, fee, memo }: sendMsgSendParams): Promise; + sendMsgSetSendEnabled({ value, fee, memo }: sendMsgSetSendEnabledParams): Promise; + sendOutput({ value, fee, memo }: sendOutputParams): Promise; + sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; + sendMetadata({ value, fee, memo }: sendMetadataParams): Promise; + sendQueryDenomMetadataResponse({ value, fee, memo }: sendQueryDenomMetadataResponseParams): Promise; + sendQueryTotalSupplyResponse({ value, fee, memo }: sendQueryTotalSupplyResponseParams): Promise; sendQueryDenomOwnersByQueryRequest({ value, fee, memo }: sendQueryDenomOwnersByQueryRequestParams): Promise; + sendBalance({ value, fee, memo }: sendBalanceParams): Promise; + sendParams({ value, fee, memo }: sendParamsParams): Promise; + sendQueryTotalSupplyRequest({ value, fee, memo }: sendQueryTotalSupplyRequestParams): Promise; + sendQueryDenomOwnersByQueryResponse({ value, fee, memo }: sendQueryDenomOwnersByQueryResponseParams): Promise; sendQuerySendEnabledResponse({ value, fee, memo }: sendQuerySendEnabledResponseParams): Promise; - queryTotalSupplyResponse({ value }: queryTotalSupplyResponseParams): EncodeObject; + sendQuerySpendableBalanceByDenomResponse({ value, fee, memo }: sendQuerySpendableBalanceByDenomResponseParams): Promise; + sendQueryDenomsMetadataResponse({ value, fee, memo }: sendQueryDenomsMetadataResponseParams): Promise; + sendQueryDenomMetadataRequest({ value, fee, memo }: sendQueryDenomMetadataRequestParams): Promise; + sendMsgMultiSendResponse({ value, fee, memo }: sendMsgMultiSendResponseParams): Promise; + sendQueryBalanceRequest({ value, fee, memo }: sendQueryBalanceRequestParams): Promise; + sendQuerySendEnabledRequest({ value, fee, memo }: sendQuerySendEnabledRequestParams): Promise; + sendMsgSetSendEnabledResponse({ value, fee, memo }: sendMsgSetSendEnabledResponseParams): Promise; + queryDenomsMetadataRequest({ value }: queryDenomsMetadataRequestParams): EncodeObject; + queryDenomMetadataByQueryStringRequest({ value }: queryDenomMetadataByQueryStringRequestParams): EncodeObject; + querySpendableBalancesRequest({ value }: querySpendableBalancesRequestParams): EncodeObject; msgSendResponse({ value }: msgSendResponseParams): EncodeObject; - denomUnit({ value }: denomUnitParams): EncodeObject; sendEnabled({ value }: sendEnabledParams): EncodeObject; + queryDenomMetadataByQueryStringResponse({ value }: queryDenomMetadataByQueryStringResponseParams): EncodeObject; + sendAuthorization({ value }: sendAuthorizationParams): EncodeObject; + msgMultiSend({ value }: msgMultiSendParams): EncodeObject; supply({ value }: supplyParams): EncodeObject; - querySpendableBalanceByDenomRequest({ value }: querySpendableBalanceByDenomRequestParams): EncodeObject; queryDenomOwnersResponse({ value }: queryDenomOwnersResponseParams): EncodeObject; - querySpendableBalancesRequest({ value }: querySpendableBalancesRequestParams): EncodeObject; - queryDenomMetadataResponse({ value }: queryDenomMetadataResponseParams): EncodeObject; - querySendEnabledRequest({ value }: querySendEnabledRequestParams): EncodeObject; - sendAuthorization({ value }: sendAuthorizationParams): EncodeObject; - output({ value }: outputParams): EncodeObject; queryAllBalancesResponse({ value }: queryAllBalancesResponseParams): EncodeObject; - queryDenomsMetadataRequest({ value }: queryDenomsMetadataRequestParams): EncodeObject; - params({ value }: paramsParams): EncodeObject; - msgSend({ value }: msgSendParams): EncodeObject; - queryBalanceRequest({ value }: queryBalanceRequestParams): EncodeObject; - queryAllBalancesRequest({ value }: queryAllBalancesRequestParams): EncodeObject; - queryDenomOwnersByQueryResponse({ value }: queryDenomOwnersByQueryResponseParams): EncodeObject; querySupplyOfRequest({ value }: querySupplyOfRequestParams): EncodeObject; + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; + querySupplyOfResponse({ value }: querySupplyOfResponseParams): EncodeObject; + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; + input({ value }: inputParams): EncodeObject; + denomUnit({ value }: denomUnitParams): EncodeObject; + querySpendableBalanceByDenomRequest({ value }: querySpendableBalanceByDenomRequestParams): EncodeObject; + queryDenomOwnersRequest({ value }: queryDenomOwnersRequestParams): EncodeObject; msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; - queryDenomsMetadataResponse({ value }: queryDenomsMetadataResponseParams): EncodeObject; - msgSetSendEnabled({ value }: msgSetSendEnabledParams): EncodeObject; queryBalanceResponse({ value }: queryBalanceResponseParams): EncodeObject; - queryTotalSupplyRequest({ value }: queryTotalSupplyRequestParams): EncodeObject; - querySupplyOfResponse({ value }: querySupplyOfResponseParams): EncodeObject; - metadata({ value }: metadataParams): EncodeObject; + queryAllBalancesRequest({ value }: queryAllBalancesRequestParams): EncodeObject; querySpendableBalancesResponse({ value }: querySpendableBalancesResponseParams): EncodeObject; - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; - queryDenomMetadataRequest({ value }: queryDenomMetadataRequestParams): EncodeObject; - balance({ value }: balanceParams): EncodeObject; - querySpendableBalanceByDenomResponse({ value }: querySpendableBalanceByDenomResponseParams): EncodeObject; queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; - msgMultiSend({ value }: msgMultiSendParams): EncodeObject; - msgMultiSendResponse({ value }: msgMultiSendResponseParams): EncodeObject; - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; - queryDenomMetadataByQueryStringRequest({ value }: queryDenomMetadataByQueryStringRequestParams): EncodeObject; - msgSetSendEnabledResponse({ value }: msgSetSendEnabledResponseParams): EncodeObject; - genesisState({ value }: genesisStateParams): EncodeObject; - queryDenomOwnersRequest({ value }: queryDenomOwnersRequestParams): EncodeObject; denomOwner({ value }: denomOwnerParams): EncodeObject; - input({ value }: inputParams): EncodeObject; - queryDenomMetadataByQueryStringResponse({ value }: queryDenomMetadataByQueryStringResponseParams): EncodeObject; + msgSend({ value }: msgSendParams): EncodeObject; + msgSetSendEnabled({ value }: msgSetSendEnabledParams): EncodeObject; + output({ value }: outputParams): EncodeObject; + genesisState({ value }: genesisStateParams): EncodeObject; + metadata({ value }: metadataParams): EncodeObject; + queryDenomMetadataResponse({ value }: queryDenomMetadataResponseParams): EncodeObject; + queryTotalSupplyResponse({ value }: queryTotalSupplyResponseParams): EncodeObject; queryDenomOwnersByQueryRequest({ value }: queryDenomOwnersByQueryRequestParams): EncodeObject; + balance({ value }: balanceParams): EncodeObject; + params({ value }: paramsParams): EncodeObject; + queryTotalSupplyRequest({ value }: queryTotalSupplyRequestParams): EncodeObject; + queryDenomOwnersByQueryResponse({ value }: queryDenomOwnersByQueryResponseParams): EncodeObject; querySendEnabledResponse({ value }: querySendEnabledResponseParams): EncodeObject; + querySpendableBalanceByDenomResponse({ value }: querySpendableBalanceByDenomResponseParams): EncodeObject; + queryDenomsMetadataResponse({ value }: queryDenomsMetadataResponseParams): EncodeObject; + queryDenomMetadataRequest({ value }: queryDenomMetadataRequestParams): EncodeObject; + msgMultiSendResponse({ value }: msgMultiSendResponseParams): EncodeObject; + queryBalanceRequest({ value }: queryBalanceRequestParams): EncodeObject; + querySendEnabledRequest({ value }: querySendEnabledRequestParams): EncodeObject; + msgSetSendEnabledResponse({ value }: msgSetSendEnabledResponseParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.bank.v1beta1/module.js b/ts-client/lib/cosmos.bank.v1beta1/module.js index f1cff137b..0785135e1 100644 --- a/ts-client/lib/cosmos.bank.v1beta1/module.js +++ b/ts-client/lib/cosmos.bank.v1beta1/module.js @@ -3,52 +3,52 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { QueryTotalSupplyResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomsMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomMetadataByQueryStringRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySpendableBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; import { MsgSendResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { DenomUnit } from "./types/cosmos/bank/v1beta1/bank"; import { SendEnabled } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryDenomMetadataByQueryStringResponse } from "./types/cosmos/bank/v1beta1/query"; +import { SendAuthorization } from "./types/cosmos/bank/v1beta1/authz"; +import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; import { Supply } from "./types/cosmos/bank/v1beta1/bank"; -import { QuerySpendableBalanceByDenomRequest } from "./types/cosmos/bank/v1beta1/query"; import { QueryDenomOwnersResponse } from "./types/cosmos/bank/v1beta1/query"; -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 { SendAuthorization } from "./types/cosmos/bank/v1beta1/authz"; -import { Output } from "./types/cosmos/bank/v1beta1/bank"; import { QueryAllBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomsMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; -import { Params } from "./types/cosmos/bank/v1beta1/bank"; -import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryBalanceRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QueryAllBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomOwnersByQueryResponse } from "./types/cosmos/bank/v1beta1/query"; import { QuerySupplyOfRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryParamsResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySupplyOfResponse } from "./types/cosmos/bank/v1beta1/query"; +import { MsgUpdateParams } from "./types/cosmos/bank/v1beta1/tx"; +import { Input } from "./types/cosmos/bank/v1beta1/bank"; +import { DenomUnit } from "./types/cosmos/bank/v1beta1/bank"; +import { QuerySpendableBalanceByDenomRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersRequest } from "./types/cosmos/bank/v1beta1/query"; import { MsgUpdateParamsResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryDenomsMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; -import { MsgSetSendEnabled } from "./types/cosmos/bank/v1beta1/tx"; import { QueryBalanceResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryTotalSupplyRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySupplyOfResponse } from "./types/cosmos/bank/v1beta1/query"; -import { Metadata } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryAllBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; import { QuerySpendableBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; -import { MsgUpdateParams } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryDenomMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; -import { Balance } from "./types/cosmos/bank/v1beta1/genesis"; -import { QuerySpendableBalanceByDenomResponse } from "./types/cosmos/bank/v1beta1/query"; import { QueryParamsRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; -import { MsgMultiSendResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryParamsResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomMetadataByQueryStringRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgSetSendEnabledResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { GenesisState } from "./types/cosmos/bank/v1beta1/genesis"; -import { QueryDenomOwnersRequest } from "./types/cosmos/bank/v1beta1/query"; import { DenomOwner } from "./types/cosmos/bank/v1beta1/query"; -import { Input } from "./types/cosmos/bank/v1beta1/bank"; -import { QueryDenomMetadataByQueryStringResponse } from "./types/cosmos/bank/v1beta1/query"; +import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; +import { MsgSetSendEnabled } from "./types/cosmos/bank/v1beta1/tx"; +import { Output } from "./types/cosmos/bank/v1beta1/bank"; +import { GenesisState } from "./types/cosmos/bank/v1beta1/genesis"; +import { Metadata } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryDenomMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryTotalSupplyResponse } from "./types/cosmos/bank/v1beta1/query"; import { QueryDenomOwnersByQueryRequest } from "./types/cosmos/bank/v1beta1/query"; +import { Balance } from "./types/cosmos/bank/v1beta1/genesis"; +import { Params } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryTotalSupplyRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersByQueryResponse } from "./types/cosmos/bank/v1beta1/query"; import { QuerySendEnabledResponse } from "./types/cosmos/bank/v1beta1/query"; -export { QueryTotalSupplyResponse, MsgSendResponse, DenomUnit, SendEnabled, Supply, QuerySpendableBalanceByDenomRequest, QueryDenomOwnersResponse, QuerySpendableBalancesRequest, QueryDenomMetadataResponse, QuerySendEnabledRequest, SendAuthorization, Output, QueryAllBalancesResponse, QueryDenomsMetadataRequest, Params, MsgSend, QueryBalanceRequest, QueryAllBalancesRequest, QueryDenomOwnersByQueryResponse, QuerySupplyOfRequest, MsgUpdateParamsResponse, QueryDenomsMetadataResponse, MsgSetSendEnabled, QueryBalanceResponse, QueryTotalSupplyRequest, QuerySupplyOfResponse, Metadata, QuerySpendableBalancesResponse, MsgUpdateParams, QueryDenomMetadataRequest, Balance, QuerySpendableBalanceByDenomResponse, QueryParamsRequest, MsgMultiSend, MsgMultiSendResponse, QueryParamsResponse, QueryDenomMetadataByQueryStringRequest, MsgSetSendEnabledResponse, GenesisState, QueryDenomOwnersRequest, DenomOwner, Input, QueryDenomMetadataByQueryStringResponse, QueryDenomOwnersByQueryRequest, QuerySendEnabledResponse }; +import { QuerySpendableBalanceByDenomResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomsMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; +import { MsgMultiSendResponse } from "./types/cosmos/bank/v1beta1/tx"; +import { QueryBalanceRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySendEnabledRequest } from "./types/cosmos/bank/v1beta1/query"; +import { MsgSetSendEnabledResponse } from "./types/cosmos/bank/v1beta1/tx"; +export { QueryDenomsMetadataRequest, QueryDenomMetadataByQueryStringRequest, QuerySpendableBalancesRequest, MsgSendResponse, SendEnabled, QueryDenomMetadataByQueryStringResponse, SendAuthorization, MsgMultiSend, Supply, QueryDenomOwnersResponse, QueryAllBalancesResponse, QuerySupplyOfRequest, QueryParamsResponse, QuerySupplyOfResponse, MsgUpdateParams, Input, DenomUnit, QuerySpendableBalanceByDenomRequest, QueryDenomOwnersRequest, MsgUpdateParamsResponse, QueryBalanceResponse, QueryAllBalancesRequest, QuerySpendableBalancesResponse, QueryParamsRequest, DenomOwner, MsgSend, MsgSetSendEnabled, Output, GenesisState, Metadata, QueryDenomMetadataResponse, QueryTotalSupplyResponse, QueryDenomOwnersByQueryRequest, Balance, Params, QueryTotalSupplyRequest, QueryDenomOwnersByQueryResponse, QuerySendEnabledResponse, QuerySpendableBalanceByDenomResponse, QueryDenomsMetadataResponse, QueryDenomMetadataRequest, MsgMultiSendResponse, QueryBalanceRequest, QuerySendEnabledRequest, MsgSetSendEnabledResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -64,994 +64,994 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendQueryTotalSupplyResponse({ value, fee, memo }) { + async sendQueryDenomsMetadataRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTotalSupplyResponse: 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.queryTotalSupplyResponse({ value: QueryTotalSupplyResponse.fromPartial(value) }); + let msg = this.queryDenomsMetadataRequest({ value: QueryDenomsMetadataRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTotalSupplyResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDenomsMetadataRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSendResponse({ value, fee, memo }) { + async sendQueryDenomMetadataByQueryStringRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSendResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryDenomMetadataByQueryStringRequest: Unable to 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.queryDenomMetadataByQueryStringRequest({ value: QueryDenomMetadataByQueryStringRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSendResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDenomMetadataByQueryStringRequest: Could not broadcast Tx: ' + e.message); } }, - async sendDenomUnit({ value, fee, memo }) { + async sendQuerySpendableBalancesRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDenomUnit: 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.denomUnit({ value: DenomUnit.fromPartial(value) }); + let msg = this.querySpendableBalancesRequest({ value: QuerySpendableBalancesRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDenomUnit: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySpendableBalancesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendSendEnabled({ value, fee, memo }) { + async sendMsgSendResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSendEnabled: 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.sendEnabled({ value: SendEnabled.fromPartial(value) }); + let msg = this.msgSendResponse({ value: MsgSendResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSendEnabled: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSendResponse: Could not broadcast Tx: ' + e.message); } }, - async sendSupply({ value, fee, memo }) { + async sendSendEnabled({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSupply: 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.supply({ value: Supply.fromPartial(value) }); + let msg = this.sendEnabled({ value: SendEnabled.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSupply: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSendEnabled: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySpendableBalanceByDenomRequest({ value, fee, memo }) { + async sendQueryDenomMetadataByQueryStringResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySpendableBalanceByDenomRequest: 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.querySpendableBalanceByDenomRequest({ value: QuerySpendableBalanceByDenomRequest.fromPartial(value) }); + let msg = this.queryDenomMetadataByQueryStringResponse({ value: QueryDenomMetadataByQueryStringResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySpendableBalanceByDenomRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDenomMetadataByQueryStringResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDenomOwnersResponse({ value, fee, memo }) { + async sendSendAuthorization({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDenomOwnersResponse: Unable to sign Tx. Signer is not present.'); + 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.queryDenomOwnersResponse({ value: QueryDenomOwnersResponse.fromPartial(value) }); + let msg = this.sendAuthorization({ value: SendAuthorization.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDenomOwnersResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSendAuthorization: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySpendableBalancesRequest({ value, fee, memo }) { + async sendMsgMultiSend({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySpendableBalancesRequest: 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.querySpendableBalancesRequest({ value: QuerySpendableBalancesRequest.fromPartial(value) }); + let msg = this.msgMultiSend({ value: MsgMultiSend.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySpendableBalancesRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgMultiSend: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDenomMetadataResponse({ value, fee, memo }) { + async sendSupply({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDenomMetadataResponse: 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.queryDenomMetadataResponse({ value: QueryDenomMetadataResponse.fromPartial(value) }); + let msg = this.supply({ value: Supply.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDenomMetadataResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSupply: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySendEnabledRequest({ value, fee, memo }) { + async sendQueryDenomOwnersResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySendEnabledRequest: 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.querySendEnabledRequest({ value: QuerySendEnabledRequest.fromPartial(value) }); + let msg = this.queryDenomOwnersResponse({ value: QueryDenomOwnersResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySendEnabledRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDenomOwnersResponse: Could not broadcast Tx: ' + e.message); } }, - async sendSendAuthorization({ value, fee, memo }) { + async sendQueryAllBalancesResponse({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendSendAuthorization: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAllBalancesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendOutput({ value, fee, memo }) { + async sendQuerySupplyOfRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendOutput: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySupplyOfRequest: Unable to 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.querySupplyOfRequest({ value: QuerySupplyOfRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendOutput: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySupplyOfRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAllBalancesResponse({ value, fee, memo }) { + async sendQueryParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAllBalancesResponse: 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.queryAllBalancesResponse({ value: QueryAllBalancesResponse.fromPartial(value) }); + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAllBalancesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDenomsMetadataRequest({ value, fee, memo }) { + async sendQuerySupplyOfResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDenomsMetadataRequest: 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.queryDenomsMetadataRequest({ value: QueryDenomsMetadataRequest.fromPartial(value) }); + let msg = this.querySupplyOfResponse({ value: QuerySupplyOfResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDenomsMetadataRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySupplyOfResponse: Could not broadcast Tx: ' + e.message); } }, - async sendParams({ value, fee, memo }) { + async sendMsgUpdateParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendParams: 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.params({ value: Params.fromPartial(value) }); + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSend({ value, fee, memo }) { + async sendInput({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSend: Unable to sign Tx. Signer is not present.'); + 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.msgSend({ value: MsgSend.fromPartial(value) }); + let msg = this.input({ value: Input.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSend: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendInput: Could not broadcast Tx: ' + e.message); } }, - async sendQueryBalanceRequest({ value, fee, memo }) { + async sendDenomUnit({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryBalanceRequest: 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.queryBalanceRequest({ value: QueryBalanceRequest.fromPartial(value) }); + let msg = this.denomUnit({ value: DenomUnit.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryBalanceRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDenomUnit: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAllBalancesRequest({ value, fee, memo }) { + async sendQuerySpendableBalanceByDenomRequest({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendQueryAllBalancesRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySpendableBalanceByDenomRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDenomOwnersByQueryResponse({ value, fee, memo }) { + async sendQueryDenomOwnersRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDenomOwnersByQueryResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryDenomOwnersRequest: Unable to 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.queryDenomOwnersRequest({ value: QueryDenomOwnersRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDenomOwnersByQueryResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDenomOwnersRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySupplyOfRequest({ value, fee, memo }) { + async sendMsgUpdateParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySupplyOfRequest: 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.querySupplyOfRequest({ value: QuerySupplyOfRequest.fromPartial(value) }); + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySupplyOfRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }) { + async sendQueryBalanceResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: 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.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); + let msg = this.queryBalanceResponse({ value: QueryBalanceResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryBalanceResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDenomsMetadataResponse({ value, fee, memo }) { + async sendQueryAllBalancesRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDenomsMetadataResponse: 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.queryDenomsMetadataResponse({ value: QueryDenomsMetadataResponse.fromPartial(value) }); + let msg = this.queryAllBalancesRequest({ value: QueryAllBalancesRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDenomsMetadataResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAllBalancesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSetSendEnabled({ value, fee, memo }) { + async sendQuerySpendableBalancesResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSetSendEnabled: 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.msgSetSendEnabled({ value: MsgSetSendEnabled.fromPartial(value) }); + let msg = this.querySpendableBalancesResponse({ value: QuerySpendableBalancesResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSetSendEnabled: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySpendableBalancesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryBalanceResponse({ value, fee, memo }) { + async sendQueryParamsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryBalanceResponse: 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.queryBalanceResponse({ value: QueryBalanceResponse.fromPartial(value) }); + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryBalanceResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryTotalSupplyRequest({ value, fee, memo }) { + async sendDenomOwner({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTotalSupplyRequest: 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.queryTotalSupplyRequest({ value: QueryTotalSupplyRequest.fromPartial(value) }); + let msg = this.denomOwner({ value: DenomOwner.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTotalSupplyRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDenomOwner: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySupplyOfResponse({ value, fee, memo }) { + async sendMsgSend({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySupplyOfResponse: 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.querySupplyOfResponse({ value: QuerySupplyOfResponse.fromPartial(value) }); + let msg = this.msgSend({ value: MsgSend.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySupplyOfResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSend: Could not broadcast Tx: ' + e.message); } }, - async sendMetadata({ value, fee, memo }) { + async sendMsgSetSendEnabled({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMetadata: 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.metadata({ value: Metadata.fromPartial(value) }); + let msg = this.msgSetSendEnabled({ value: MsgSetSendEnabled.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMetadata: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSetSendEnabled: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySpendableBalancesResponse({ value, fee, memo }) { + async sendOutput({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySpendableBalancesResponse: 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.querySpendableBalancesResponse({ value: QuerySpendableBalancesResponse.fromPartial(value) }); + let msg = this.output({ value: Output.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySpendableBalancesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendOutput: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParams({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDenomMetadataRequest({ value, fee, memo }) { + async sendMetadata({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDenomMetadataRequest: 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.queryDenomMetadataRequest({ value: QueryDenomMetadataRequest.fromPartial(value) }); + let msg = this.metadata({ value: Metadata.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDenomMetadataRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMetadata: Could not broadcast Tx: ' + e.message); } }, - async sendBalance({ value, fee, memo }) { + async sendQueryDenomMetadataResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendBalance: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryDenomMetadataResponse: Unable to 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.queryDenomMetadataResponse({ value: QueryDenomMetadataResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendBalance: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDenomMetadataResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySpendableBalanceByDenomResponse({ value, fee, memo }) { + async sendQueryTotalSupplyResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySpendableBalanceByDenomResponse: 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.querySpendableBalanceByDenomResponse({ value: QuerySpendableBalanceByDenomResponse.fromPartial(value) }); + let msg = this.queryTotalSupplyResponse({ value: QueryTotalSupplyResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySpendableBalanceByDenomResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTotalSupplyResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsRequest({ value, fee, memo }) { + async sendQueryDenomOwnersByQueryRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: 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.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); + let msg = this.queryDenomOwnersByQueryRequest({ value: QueryDenomOwnersByQueryRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDenomOwnersByQueryRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgMultiSend({ value, fee, memo }) { + async sendBalance({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgMultiSend: 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.msgMultiSend({ value: MsgMultiSend.fromPartial(value) }); + let msg = this.balance({ value: Balance.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgMultiSend: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendBalance: Could not broadcast Tx: ' + e.message); } }, - async sendMsgMultiSendResponse({ value, fee, memo }) { + async sendParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgMultiSendResponse: 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.msgMultiSendResponse({ value: MsgMultiSendResponse.fromPartial(value) }); + let msg = this.params({ value: Params.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgMultiSendResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsResponse({ value, fee, memo }) { + async sendQueryTotalSupplyRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: 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.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); + let msg = this.queryTotalSupplyRequest({ value: QueryTotalSupplyRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTotalSupplyRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDenomMetadataByQueryStringRequest({ value, fee, memo }) { + async sendQueryDenomOwnersByQueryResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDenomMetadataByQueryStringRequest: 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.queryDenomMetadataByQueryStringRequest({ value: QueryDenomMetadataByQueryStringRequest.fromPartial(value) }); + let msg = this.queryDenomOwnersByQueryResponse({ value: QueryDenomOwnersByQueryResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDenomMetadataByQueryStringRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDenomOwnersByQueryResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSetSendEnabledResponse({ value, fee, memo }) { + async sendQuerySendEnabledResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSetSendEnabledResponse: 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.msgSetSendEnabledResponse({ value: MsgSetSendEnabledResponse.fromPartial(value) }); + let msg = this.querySendEnabledResponse({ value: QuerySendEnabledResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSetSendEnabledResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySendEnabledResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendQuerySpendableBalanceByDenomResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySpendableBalanceByDenomResponse: Unable to 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.querySpendableBalanceByDenomResponse({ value: QuerySpendableBalanceByDenomResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySpendableBalanceByDenomResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDenomOwnersRequest({ value, fee, memo }) { + async sendQueryDenomsMetadataResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDenomOwnersRequest: 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.queryDenomOwnersRequest({ value: QueryDenomOwnersRequest.fromPartial(value) }); + let msg = this.queryDenomsMetadataResponse({ value: QueryDenomsMetadataResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDenomOwnersRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDenomsMetadataResponse: Could not broadcast Tx: ' + e.message); } }, - async sendDenomOwner({ value, fee, memo }) { + async sendQueryDenomMetadataRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDenomOwner: 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.denomOwner({ value: DenomOwner.fromPartial(value) }); + let msg = this.queryDenomMetadataRequest({ value: QueryDenomMetadataRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDenomOwner: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDenomMetadataRequest: Could not broadcast Tx: ' + e.message); } }, - async sendInput({ value, fee, memo }) { + async sendMsgMultiSendResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendInput: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgMultiSendResponse: Unable to 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.msgMultiSendResponse({ value: MsgMultiSendResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendInput: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgMultiSendResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDenomMetadataByQueryStringResponse({ value, fee, memo }) { + async sendQueryBalanceRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDenomMetadataByQueryStringResponse: 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.queryDenomMetadataByQueryStringResponse({ value: QueryDenomMetadataByQueryStringResponse.fromPartial(value) }); + let msg = this.queryBalanceRequest({ value: QueryBalanceRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDenomMetadataByQueryStringResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryBalanceRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDenomOwnersByQueryRequest({ value, fee, memo }) { + async sendQuerySendEnabledRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDenomOwnersByQueryRequest: 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.queryDenomOwnersByQueryRequest({ value: QueryDenomOwnersByQueryRequest.fromPartial(value) }); + let msg = this.querySendEnabledRequest({ value: QuerySendEnabledRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDenomOwnersByQueryRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySendEnabledRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySendEnabledResponse({ value, fee, memo }) { + async sendMsgSetSendEnabledResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySendEnabledResponse: 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.querySendEnabledResponse({ value: QuerySendEnabledResponse.fromPartial(value) }); + let msg = this.msgSetSendEnabledResponse({ value: MsgSetSendEnabledResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySendEnabledResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSetSendEnabledResponse: Could not broadcast Tx: ' + e.message); } }, - queryTotalSupplyResponse({ value }) { + queryDenomsMetadataRequest({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", value: QueryTotalSupplyResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", value: QueryDenomsMetadataRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTotalSupplyResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDenomsMetadataRequest: Could not create message: ' + e.message); } }, - msgSendResponse({ value }) { + queryDenomMetadataByQueryStringRequest({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", value: MsgSendResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest", value: QueryDenomMetadataByQueryStringRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSendResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDenomMetadataByQueryStringRequest: Could not create message: ' + e.message); } }, - denomUnit({ value }) { + querySpendableBalancesRequest({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.DenomUnit", value: DenomUnit.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", value: QuerySpendableBalancesRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DenomUnit: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySpendableBalancesRequest: Could not create message: ' + e.message); } }, - sendEnabled({ value }) { + msgSendResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.SendEnabled", value: SendEnabled.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse", value: MsgSendResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:SendEnabled: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSendResponse: Could not create message: ' + e.message); } }, - supply({ value }) { + sendEnabled({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.Supply", value: Supply.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.SendEnabled", value: SendEnabled.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Supply: Could not create message: ' + e.message); + throw new Error('TxClient:SendEnabled: Could not create message: ' + e.message); } }, - querySpendableBalanceByDenomRequest({ value }) { + queryDenomMetadataByQueryStringResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest", value: QuerySpendableBalanceByDenomRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse", value: QueryDenomMetadataByQueryStringResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySpendableBalanceByDenomRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDenomMetadataByQueryStringResponse: Could not create message: ' + e.message); } }, - queryDenomOwnersResponse({ value }) { + sendAuthorization({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", value: QueryDenomOwnersResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", value: SendAuthorization.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDenomOwnersResponse: Could not create message: ' + e.message); + throw new Error('TxClient:SendAuthorization: Could not create message: ' + e.message); } }, - querySpendableBalancesRequest({ value }) { + msgMultiSend({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", value: QuerySpendableBalancesRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", value: MsgMultiSend.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySpendableBalancesRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgMultiSend: Could not create message: ' + e.message); } }, - queryDenomMetadataResponse({ value }) { + supply({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", value: QueryDenomMetadataResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.Supply", value: Supply.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDenomMetadataResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Supply: Could not create message: ' + e.message); } }, - querySendEnabledRequest({ value }) { + queryDenomOwnersResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySendEnabledRequest", value: QuerySendEnabledRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersResponse", value: QueryDenomOwnersResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySendEnabledRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDenomOwnersResponse: Could not create message: ' + e.message); } }, - sendAuthorization({ value }) { + queryAllBalancesResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.SendAuthorization", value: SendAuthorization.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", value: QueryAllBalancesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:SendAuthorization: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAllBalancesResponse: Could not create message: ' + e.message); } }, - output({ value }) { + querySupplyOfRequest({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.Output", value: Output.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", value: QuerySupplyOfRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Output: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySupplyOfRequest: Could not create message: ' + e.message); } }, - queryAllBalancesResponse({ value }) { + queryParamsResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesResponse", value: QueryAllBalancesResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAllBalancesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); } }, - queryDenomsMetadataRequest({ value }) { + querySupplyOfResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", value: QueryDenomsMetadataRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", value: QuerySupplyOfResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDenomsMetadataRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySupplyOfResponse: Could not create message: ' + e.message); } }, - params({ value }) { + msgUpdateParams({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.Params", value: Params.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Params: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); } }, - msgSend({ value }) { + input({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgSend", value: MsgSend.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.Input", value: Input.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSend: Could not create message: ' + e.message); + throw new Error('TxClient:Input: Could not create message: ' + e.message); } }, - queryBalanceRequest({ value }) { + denomUnit({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", value: QueryBalanceRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.DenomUnit", value: DenomUnit.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryBalanceRequest: Could not create message: ' + e.message); + throw new Error('TxClient:DenomUnit: Could not create message: ' + e.message); } }, - queryAllBalancesRequest({ value }) { + querySpendableBalanceByDenomRequest({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", value: QueryAllBalancesRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest", value: QuerySpendableBalanceByDenomRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAllBalancesRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySpendableBalanceByDenomRequest: Could not create message: ' + e.message); } }, - queryDenomOwnersByQueryResponse({ value }) { + queryDenomOwnersRequest({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse", value: QueryDenomOwnersByQueryResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", value: QueryDenomOwnersRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDenomOwnersByQueryResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDenomOwnersRequest: Could not create message: ' + e.message); } }, - querySupplyOfRequest({ value }) { + msgUpdateParamsResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfRequest", value: QuerySupplyOfRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySupplyOfRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); } }, - msgUpdateParamsResponse({ value }) { + queryBalanceResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", value: QueryBalanceResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryBalanceResponse: Could not create message: ' + e.message); } }, - queryDenomsMetadataResponse({ value }) { + queryAllBalancesRequest({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", value: QueryDenomsMetadataResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryAllBalancesRequest", value: QueryAllBalancesRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDenomsMetadataResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAllBalancesRequest: Could not create message: ' + e.message); } }, - msgSetSendEnabled({ value }) { + querySpendableBalancesResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabled", value: MsgSetSendEnabled.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", value: QuerySpendableBalancesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSetSendEnabled: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySpendableBalancesResponse: Could not create message: ' + e.message); } }, - queryBalanceResponse({ value }) { + queryParamsRequest({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryBalanceResponse", value: QueryBalanceResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryBalanceResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); } }, - queryTotalSupplyRequest({ value }) { + denomOwner({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", value: QueryTotalSupplyRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.DenomOwner", value: DenomOwner.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTotalSupplyRequest: Could not create message: ' + e.message); + throw new Error('TxClient:DenomOwner: Could not create message: ' + e.message); } }, - querySupplyOfResponse({ value }) { + msgSend({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySupplyOfResponse", value: QuerySupplyOfResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.MsgSend", value: MsgSend.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySupplyOfResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSend: Could not create message: ' + e.message); } }, - metadata({ value }) { + msgSetSendEnabled({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.Metadata", value: Metadata.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabled", value: MsgSetSendEnabled.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Metadata: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSetSendEnabled: Could not create message: ' + e.message); } }, - querySpendableBalancesResponse({ value }) { + output({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", value: QuerySpendableBalancesResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.Output", value: Output.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySpendableBalancesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Output: Could not create message: ' + e.message); } }, - msgUpdateParams({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - queryDenomMetadataRequest({ value }) { + metadata({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", value: QueryDenomMetadataRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.Metadata", value: Metadata.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDenomMetadataRequest: Could not create message: ' + e.message); + throw new Error('TxClient:Metadata: Could not create message: ' + e.message); } }, - balance({ value }) { + queryDenomMetadataResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.Balance", value: Balance.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataResponse", value: QueryDenomMetadataResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Balance: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDenomMetadataResponse: Could not create message: ' + e.message); } }, - querySpendableBalanceByDenomResponse({ value }) { + queryTotalSupplyResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse", value: QuerySpendableBalanceByDenomResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyResponse", value: QueryTotalSupplyResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySpendableBalanceByDenomResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTotalSupplyResponse: Could not create message: ' + e.message); } }, - queryParamsRequest({ value }) { + queryDenomOwnersByQueryRequest({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest", value: QueryDenomOwnersByQueryRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDenomOwnersByQueryRequest: Could not create message: ' + e.message); } }, - msgMultiSend({ value }) { + balance({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend", value: MsgMultiSend.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.Balance", value: Balance.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgMultiSend: Could not create message: ' + e.message); + throw new Error('TxClient:Balance: Could not create message: ' + e.message); } }, - msgMultiSendResponse({ value }) { + params({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", value: MsgMultiSendResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.Params", value: Params.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgMultiSendResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Params: Could not create message: ' + e.message); } }, - queryParamsResponse({ value }) { + queryTotalSupplyRequest({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryTotalSupplyRequest", value: QueryTotalSupplyRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTotalSupplyRequest: Could not create message: ' + e.message); } }, - queryDenomMetadataByQueryStringRequest({ value }) { + queryDenomOwnersByQueryResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest", value: QueryDenomMetadataByQueryStringRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse", value: QueryDenomOwnersByQueryResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDenomMetadataByQueryStringRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDenomOwnersByQueryResponse: Could not create message: ' + e.message); } }, - msgSetSendEnabledResponse({ value }) { + querySendEnabledResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabledResponse", value: MsgSetSendEnabledResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QuerySendEnabledResponse", value: QuerySendEnabledResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSetSendEnabledResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySendEnabledResponse: Could not create message: ' + e.message); } }, - genesisState({ value }) { + querySpendableBalanceByDenomResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse", value: QuerySpendableBalanceByDenomResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySpendableBalanceByDenomResponse: Could not create message: ' + e.message); } }, - queryDenomOwnersRequest({ value }) { + queryDenomsMetadataResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersRequest", value: QueryDenomOwnersRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", value: QueryDenomsMetadataResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDenomOwnersRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDenomsMetadataResponse: Could not create message: ' + e.message); } }, - denomOwner({ value }) { + queryDenomMetadataRequest({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.DenomOwner", value: DenomOwner.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataRequest", value: QueryDenomMetadataRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DenomOwner: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDenomMetadataRequest: Could not create message: ' + e.message); } }, - input({ value }) { + msgMultiSendResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.Input", value: Input.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse", value: MsgMultiSendResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Input: Could not create message: ' + e.message); + throw new Error('TxClient:MsgMultiSendResponse: Could not create message: ' + e.message); } }, - queryDenomMetadataByQueryStringResponse({ value }) { + queryBalanceRequest({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse", value: QueryDenomMetadataByQueryStringResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QueryBalanceRequest", value: QueryBalanceRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDenomMetadataByQueryStringResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryBalanceRequest: Could not create message: ' + e.message); } }, - queryDenomOwnersByQueryRequest({ value }) { + querySendEnabledRequest({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest", value: QueryDenomOwnersByQueryRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.QuerySendEnabledRequest", value: QuerySendEnabledRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDenomOwnersByQueryRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySendEnabledRequest: Could not create message: ' + e.message); } }, - querySendEnabledResponse({ value }) { + msgSetSendEnabledResponse({ value }) { try { - return { typeUrl: "/cosmos.bank.v1beta1.QuerySendEnabledResponse", value: QuerySendEnabledResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabledResponse", value: MsgSetSendEnabledResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySendEnabledResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSetSendEnabledResponse: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.bank.v1beta1/registry.js b/ts-client/lib/cosmos.bank.v1beta1/registry.js index 027160909..935b5bd68 100644 --- a/ts-client/lib/cosmos.bank.v1beta1/registry.js +++ b/ts-client/lib/cosmos.bank.v1beta1/registry.js @@ -1,93 +1,93 @@ -import { QueryTotalSupplyResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomsMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomMetadataByQueryStringRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySpendableBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; import { MsgSendResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { DenomUnit } from "./types/cosmos/bank/v1beta1/bank"; import { SendEnabled } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryDenomMetadataByQueryStringResponse } from "./types/cosmos/bank/v1beta1/query"; +import { SendAuthorization } from "./types/cosmos/bank/v1beta1/authz"; +import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; import { Supply } from "./types/cosmos/bank/v1beta1/bank"; -import { QuerySpendableBalanceByDenomRequest } from "./types/cosmos/bank/v1beta1/query"; import { QueryDenomOwnersResponse } from "./types/cosmos/bank/v1beta1/query"; -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 { SendAuthorization } from "./types/cosmos/bank/v1beta1/authz"; -import { Output } from "./types/cosmos/bank/v1beta1/bank"; import { QueryAllBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomsMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; -import { Params } from "./types/cosmos/bank/v1beta1/bank"; -import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryBalanceRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QueryAllBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomOwnersByQueryResponse } from "./types/cosmos/bank/v1beta1/query"; import { QuerySupplyOfRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryParamsResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySupplyOfResponse } from "./types/cosmos/bank/v1beta1/query"; +import { MsgUpdateParams } from "./types/cosmos/bank/v1beta1/tx"; +import { Input } from "./types/cosmos/bank/v1beta1/bank"; +import { DenomUnit } from "./types/cosmos/bank/v1beta1/bank"; +import { QuerySpendableBalanceByDenomRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersRequest } from "./types/cosmos/bank/v1beta1/query"; import { MsgUpdateParamsResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryDenomsMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; -import { MsgSetSendEnabled } from "./types/cosmos/bank/v1beta1/tx"; import { QueryBalanceResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryTotalSupplyRequest } from "./types/cosmos/bank/v1beta1/query"; -import { QuerySupplyOfResponse } from "./types/cosmos/bank/v1beta1/query"; -import { Metadata } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryAllBalancesRequest } from "./types/cosmos/bank/v1beta1/query"; import { QuerySpendableBalancesResponse } from "./types/cosmos/bank/v1beta1/query"; -import { MsgUpdateParams } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryDenomMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; -import { Balance } from "./types/cosmos/bank/v1beta1/genesis"; -import { QuerySpendableBalanceByDenomResponse } from "./types/cosmos/bank/v1beta1/query"; import { QueryParamsRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgMultiSend } from "./types/cosmos/bank/v1beta1/tx"; -import { MsgMultiSendResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { QueryParamsResponse } from "./types/cosmos/bank/v1beta1/query"; -import { QueryDenomMetadataByQueryStringRequest } from "./types/cosmos/bank/v1beta1/query"; -import { MsgSetSendEnabledResponse } from "./types/cosmos/bank/v1beta1/tx"; -import { GenesisState } from "./types/cosmos/bank/v1beta1/genesis"; -import { QueryDenomOwnersRequest } from "./types/cosmos/bank/v1beta1/query"; import { DenomOwner } from "./types/cosmos/bank/v1beta1/query"; -import { Input } from "./types/cosmos/bank/v1beta1/bank"; -import { QueryDenomMetadataByQueryStringResponse } from "./types/cosmos/bank/v1beta1/query"; +import { MsgSend } from "./types/cosmos/bank/v1beta1/tx"; +import { MsgSetSendEnabled } from "./types/cosmos/bank/v1beta1/tx"; +import { Output } from "./types/cosmos/bank/v1beta1/bank"; +import { GenesisState } from "./types/cosmos/bank/v1beta1/genesis"; +import { Metadata } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryDenomMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryTotalSupplyResponse } from "./types/cosmos/bank/v1beta1/query"; import { QueryDenomOwnersByQueryRequest } from "./types/cosmos/bank/v1beta1/query"; +import { Balance } from "./types/cosmos/bank/v1beta1/genesis"; +import { Params } from "./types/cosmos/bank/v1beta1/bank"; +import { QueryTotalSupplyRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomOwnersByQueryResponse } from "./types/cosmos/bank/v1beta1/query"; import { QuerySendEnabledResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySpendableBalanceByDenomResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomsMetadataResponse } from "./types/cosmos/bank/v1beta1/query"; +import { QueryDenomMetadataRequest } from "./types/cosmos/bank/v1beta1/query"; +import { MsgMultiSendResponse } from "./types/cosmos/bank/v1beta1/tx"; +import { QueryBalanceRequest } from "./types/cosmos/bank/v1beta1/query"; +import { QuerySendEnabledRequest } from "./types/cosmos/bank/v1beta1/query"; +import { MsgSetSendEnabledResponse } from "./types/cosmos/bank/v1beta1/tx"; const msgTypes = [ - ["/cosmos.bank.v1beta1.QueryTotalSupplyResponse", QueryTotalSupplyResponse], + ["/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", QueryDenomsMetadataRequest], + ["/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest", QueryDenomMetadataByQueryStringRequest], + ["/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", QuerySpendableBalancesRequest], ["/cosmos.bank.v1beta1.MsgSendResponse", MsgSendResponse], - ["/cosmos.bank.v1beta1.DenomUnit", DenomUnit], ["/cosmos.bank.v1beta1.SendEnabled", SendEnabled], + ["/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse", QueryDenomMetadataByQueryStringResponse], + ["/cosmos.bank.v1beta1.SendAuthorization", SendAuthorization], + ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend], ["/cosmos.bank.v1beta1.Supply", Supply], - ["/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest", QuerySpendableBalanceByDenomRequest], ["/cosmos.bank.v1beta1.QueryDenomOwnersResponse", QueryDenomOwnersResponse], - ["/cosmos.bank.v1beta1.QuerySpendableBalancesRequest", QuerySpendableBalancesRequest], - ["/cosmos.bank.v1beta1.QueryDenomMetadataResponse", QueryDenomMetadataResponse], - ["/cosmos.bank.v1beta1.QuerySendEnabledRequest", QuerySendEnabledRequest], - ["/cosmos.bank.v1beta1.SendAuthorization", SendAuthorization], - ["/cosmos.bank.v1beta1.Output", Output], ["/cosmos.bank.v1beta1.QueryAllBalancesResponse", QueryAllBalancesResponse], - ["/cosmos.bank.v1beta1.QueryDenomsMetadataRequest", QueryDenomsMetadataRequest], - ["/cosmos.bank.v1beta1.Params", Params], - ["/cosmos.bank.v1beta1.MsgSend", MsgSend], - ["/cosmos.bank.v1beta1.QueryBalanceRequest", QueryBalanceRequest], - ["/cosmos.bank.v1beta1.QueryAllBalancesRequest", QueryAllBalancesRequest], - ["/cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse", QueryDenomOwnersByQueryResponse], ["/cosmos.bank.v1beta1.QuerySupplyOfRequest", QuerySupplyOfRequest], + ["/cosmos.bank.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.bank.v1beta1.QuerySupplyOfResponse", QuerySupplyOfResponse], + ["/cosmos.bank.v1beta1.MsgUpdateParams", MsgUpdateParams], + ["/cosmos.bank.v1beta1.Input", Input], + ["/cosmos.bank.v1beta1.DenomUnit", DenomUnit], + ["/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomRequest", QuerySpendableBalanceByDenomRequest], + ["/cosmos.bank.v1beta1.QueryDenomOwnersRequest", QueryDenomOwnersRequest], ["/cosmos.bank.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", QueryDenomsMetadataResponse], - ["/cosmos.bank.v1beta1.MsgSetSendEnabled", MsgSetSendEnabled], ["/cosmos.bank.v1beta1.QueryBalanceResponse", QueryBalanceResponse], - ["/cosmos.bank.v1beta1.QueryTotalSupplyRequest", QueryTotalSupplyRequest], - ["/cosmos.bank.v1beta1.QuerySupplyOfResponse", QuerySupplyOfResponse], - ["/cosmos.bank.v1beta1.Metadata", Metadata], + ["/cosmos.bank.v1beta1.QueryAllBalancesRequest", QueryAllBalancesRequest], ["/cosmos.bank.v1beta1.QuerySpendableBalancesResponse", QuerySpendableBalancesResponse], - ["/cosmos.bank.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/cosmos.bank.v1beta1.QueryDenomMetadataRequest", QueryDenomMetadataRequest], - ["/cosmos.bank.v1beta1.Balance", Balance], - ["/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse", QuerySpendableBalanceByDenomResponse], ["/cosmos.bank.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.bank.v1beta1.MsgMultiSend", MsgMultiSend], - ["/cosmos.bank.v1beta1.MsgMultiSendResponse", MsgMultiSendResponse], - ["/cosmos.bank.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringRequest", QueryDenomMetadataByQueryStringRequest], - ["/cosmos.bank.v1beta1.MsgSetSendEnabledResponse", MsgSetSendEnabledResponse], - ["/cosmos.bank.v1beta1.GenesisState", GenesisState], - ["/cosmos.bank.v1beta1.QueryDenomOwnersRequest", QueryDenomOwnersRequest], ["/cosmos.bank.v1beta1.DenomOwner", DenomOwner], - ["/cosmos.bank.v1beta1.Input", Input], - ["/cosmos.bank.v1beta1.QueryDenomMetadataByQueryStringResponse", QueryDenomMetadataByQueryStringResponse], + ["/cosmos.bank.v1beta1.MsgSend", MsgSend], + ["/cosmos.bank.v1beta1.MsgSetSendEnabled", MsgSetSendEnabled], + ["/cosmos.bank.v1beta1.Output", Output], + ["/cosmos.bank.v1beta1.GenesisState", GenesisState], + ["/cosmos.bank.v1beta1.Metadata", Metadata], + ["/cosmos.bank.v1beta1.QueryDenomMetadataResponse", QueryDenomMetadataResponse], + ["/cosmos.bank.v1beta1.QueryTotalSupplyResponse", QueryTotalSupplyResponse], ["/cosmos.bank.v1beta1.QueryDenomOwnersByQueryRequest", QueryDenomOwnersByQueryRequest], + ["/cosmos.bank.v1beta1.Balance", Balance], + ["/cosmos.bank.v1beta1.Params", Params], + ["/cosmos.bank.v1beta1.QueryTotalSupplyRequest", QueryTotalSupplyRequest], + ["/cosmos.bank.v1beta1.QueryDenomOwnersByQueryResponse", QueryDenomOwnersByQueryResponse], ["/cosmos.bank.v1beta1.QuerySendEnabledResponse", QuerySendEnabledResponse], + ["/cosmos.bank.v1beta1.QuerySpendableBalanceByDenomResponse", QuerySpendableBalanceByDenomResponse], + ["/cosmos.bank.v1beta1.QueryDenomsMetadataResponse", QueryDenomsMetadataResponse], + ["/cosmos.bank.v1beta1.QueryDenomMetadataRequest", QueryDenomMetadataRequest], + ["/cosmos.bank.v1beta1.MsgMultiSendResponse", MsgMultiSendResponse], + ["/cosmos.bank.v1beta1.QueryBalanceRequest", QueryBalanceRequest], + ["/cosmos.bank.v1beta1.QuerySendEnabledRequest", QuerySendEnabledRequest], + ["/cosmos.bank.v1beta1.MsgSetSendEnabledResponse", MsgSetSendEnabledResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.base.node.v1beta1/module.d.ts b/ts-client/lib/cosmos.base.node.v1beta1/module.d.ts index 45c4258ad..1c7783d7d 100644 --- a/ts-client/lib/cosmos.base.node.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.base.node.v1beta1/module.d.ts @@ -2,21 +2,11 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { ConfigRequest } from "./types/cosmos/base/node/v1beta1/query"; -import { ConfigResponse } from "./types/cosmos/base/node/v1beta1/query"; import { StatusRequest } from "./types/cosmos/base/node/v1beta1/query"; import { StatusResponse } from "./types/cosmos/base/node/v1beta1/query"; -export { ConfigRequest, ConfigResponse, StatusRequest, StatusResponse }; -type sendConfigRequestParams = { - value: ConfigRequest; - fee?: StdFee; - memo?: string; -}; -type sendConfigResponseParams = { - value: ConfigResponse; - fee?: StdFee; - memo?: string; -}; +import { ConfigRequest } from "./types/cosmos/base/node/v1beta1/query"; +import { ConfigResponse } from "./types/cosmos/base/node/v1beta1/query"; +export { StatusRequest, StatusResponse, ConfigRequest, ConfigResponse }; type sendStatusRequestParams = { value: StatusRequest; fee?: StdFee; @@ -27,11 +17,15 @@ type sendStatusResponseParams = { fee?: StdFee; memo?: string; }; -type configRequestParams = { +type sendConfigRequestParams = { value: ConfigRequest; + fee?: StdFee; + memo?: string; }; -type configResponseParams = { +type sendConfigResponseParams = { value: ConfigResponse; + fee?: StdFee; + memo?: string; }; type statusRequestParams = { value: StatusRequest; @@ -39,6 +33,12 @@ type statusRequestParams = { type statusResponseParams = { value: StatusResponse; }; +type configRequestParams = { + value: ConfigRequest; +}; +type configResponseParams = { + value: ConfigResponse; +}; export declare const registry: Registry; interface TxClientOptions { addr: string; @@ -46,14 +46,14 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendConfigRequest({ value, fee, memo }: sendConfigRequestParams): Promise; - sendConfigResponse({ value, fee, memo }: sendConfigResponseParams): Promise; sendStatusRequest({ value, fee, memo }: sendStatusRequestParams): Promise; sendStatusResponse({ value, fee, memo }: sendStatusResponseParams): Promise; - configRequest({ value }: configRequestParams): EncodeObject; - configResponse({ value }: configResponseParams): EncodeObject; + sendConfigRequest({ value, fee, memo }: sendConfigRequestParams): Promise; + sendConfigResponse({ value, fee, memo }: sendConfigResponseParams): Promise; statusRequest({ value }: statusRequestParams): EncodeObject; statusResponse({ value }: statusResponseParams): EncodeObject; + configRequest({ value }: configRequestParams): EncodeObject; + configResponse({ value }: configResponseParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.base.node.v1beta1/module.js b/ts-client/lib/cosmos.base.node.v1beta1/module.js index 9bd9111e5..c282d3e00 100644 --- a/ts-client/lib/cosmos.base.node.v1beta1/module.js +++ b/ts-client/lib/cosmos.base.node.v1beta1/module.js @@ -3,11 +3,11 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { ConfigRequest } from "./types/cosmos/base/node/v1beta1/query"; -import { ConfigResponse } from "./types/cosmos/base/node/v1beta1/query"; import { StatusRequest } from "./types/cosmos/base/node/v1beta1/query"; import { StatusResponse } from "./types/cosmos/base/node/v1beta1/query"; -export { ConfigRequest, ConfigResponse, StatusRequest, StatusResponse }; +import { ConfigRequest } from "./types/cosmos/base/node/v1beta1/query"; +import { ConfigResponse } from "./types/cosmos/base/node/v1beta1/query"; +export { StatusRequest, StatusResponse, ConfigRequest, ConfigResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -23,92 +23,92 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendConfigRequest({ value, fee, memo }) { + async sendStatusRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendConfigRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendStatusRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.configRequest({ value: ConfigRequest.fromPartial(value) }); + let msg = this.statusRequest({ value: StatusRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendConfigRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendStatusRequest: Could not broadcast Tx: ' + e.message); } }, - async sendConfigResponse({ value, fee, memo }) { + async sendStatusResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendConfigResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendStatusResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.configResponse({ value: ConfigResponse.fromPartial(value) }); + let msg = this.statusResponse({ value: StatusResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendConfigResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendStatusResponse: Could not broadcast Tx: ' + e.message); } }, - async sendStatusRequest({ value, fee, memo }) { + async sendConfigRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendStatusRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendConfigRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.statusRequest({ value: StatusRequest.fromPartial(value) }); + let msg = this.configRequest({ value: ConfigRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendStatusRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendConfigRequest: Could not broadcast Tx: ' + e.message); } }, - async sendStatusResponse({ value, fee, memo }) { + async sendConfigResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendStatusResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendConfigResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.statusResponse({ value: StatusResponse.fromPartial(value) }); + let msg = this.configResponse({ value: ConfigResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendStatusResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendConfigResponse: Could not broadcast Tx: ' + e.message); } }, - configRequest({ value }) { + statusRequest({ value }) { try { - return { typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", value: ConfigRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.base.node.v1beta1.StatusRequest", value: StatusRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ConfigRequest: Could not create message: ' + e.message); + throw new Error('TxClient:StatusRequest: Could not create message: ' + e.message); } }, - configResponse({ value }) { + statusResponse({ value }) { try { - return { typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", value: ConfigResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.base.node.v1beta1.StatusResponse", value: StatusResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ConfigResponse: Could not create message: ' + e.message); + throw new Error('TxClient:StatusResponse: Could not create message: ' + e.message); } }, - statusRequest({ value }) { + configRequest({ value }) { try { - return { typeUrl: "/cosmos.base.node.v1beta1.StatusRequest", value: StatusRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.base.node.v1beta1.ConfigRequest", value: ConfigRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:StatusRequest: Could not create message: ' + e.message); + throw new Error('TxClient:ConfigRequest: Could not create message: ' + e.message); } }, - statusResponse({ value }) { + configResponse({ value }) { try { - return { typeUrl: "/cosmos.base.node.v1beta1.StatusResponse", value: StatusResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.base.node.v1beta1.ConfigResponse", value: ConfigResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:StatusResponse: Could not create message: ' + e.message); + throw new Error('TxClient:ConfigResponse: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.base.node.v1beta1/registry.js b/ts-client/lib/cosmos.base.node.v1beta1/registry.js index 02a977068..7789d6ea3 100644 --- a/ts-client/lib/cosmos.base.node.v1beta1/registry.js +++ b/ts-client/lib/cosmos.base.node.v1beta1/registry.js @@ -1,11 +1,11 @@ -import { ConfigRequest } from "./types/cosmos/base/node/v1beta1/query"; -import { ConfigResponse } from "./types/cosmos/base/node/v1beta1/query"; import { StatusRequest } from "./types/cosmos/base/node/v1beta1/query"; import { StatusResponse } from "./types/cosmos/base/node/v1beta1/query"; +import { ConfigRequest } from "./types/cosmos/base/node/v1beta1/query"; +import { ConfigResponse } from "./types/cosmos/base/node/v1beta1/query"; const msgTypes = [ - ["/cosmos.base.node.v1beta1.ConfigRequest", ConfigRequest], - ["/cosmos.base.node.v1beta1.ConfigResponse", ConfigResponse], ["/cosmos.base.node.v1beta1.StatusRequest", StatusRequest], ["/cosmos.base.node.v1beta1.StatusResponse", StatusResponse], + ["/cosmos.base.node.v1beta1.ConfigRequest", ConfigRequest], + ["/cosmos.base.node.v1beta1.ConfigResponse", ConfigResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.base.tendermint.v1beta1/module.d.ts b/ts-client/lib/cosmos.base.tendermint.v1beta1/module.d.ts index 5cefa3681..c2bf9ea46 100644 --- a/ts-client/lib/cosmos.base.tendermint.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.base.tendermint.v1beta1/module.d.ts @@ -2,50 +2,35 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { GetNodeInfoRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ABCIQueryResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ABCIQueryRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetValidatorSetByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Validator } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetLatestBlockRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetSyncingRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Block } from "./types/cosmos/base/tendermint/v1beta1/types"; -import { GetValidatorSetByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetSyncingResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; import { Module } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetLatestValidatorSetRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetBlockByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetBlockByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetSyncingResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetValidatorSetByHeightResponse } 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"; -import { GetLatestBlockResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; import { ProofOps } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Validator } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { VersionInfo } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { ABCIQueryRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Block } from "./types/cosmos/base/tendermint/v1beta1/types"; import { Header } from "./types/cosmos/base/tendermint/v1beta1/types"; import { GetLatestValidatorSetResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetNodeInfoResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetLatestBlockRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { VersionInfo } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetBlockByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetBlockByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -export { GetNodeInfoRequest, ABCIQueryResponse, ABCIQueryRequest, GetValidatorSetByHeightRequest, Validator, GetSyncingRequest, Block, GetValidatorSetByHeightResponse, GetSyncingResponse, Module, GetLatestValidatorSetRequest, ProofOp, GetLatestBlockResponse, ProofOps, Header, GetLatestValidatorSetResponse, GetNodeInfoResponse, GetLatestBlockRequest, VersionInfo, GetBlockByHeightRequest, GetBlockByHeightResponse }; -type sendGetNodeInfoRequestParams = { - value: GetNodeInfoRequest; - fee?: StdFee; - memo?: string; -}; -type sendABCIQueryResponseParams = { - value: ABCIQueryResponse; - fee?: StdFee; - memo?: string; -}; -type sendABCIQueryRequestParams = { - value: ABCIQueryRequest; - fee?: StdFee; - memo?: string; -}; +import { GetLatestValidatorSetRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetLatestBlockResponse } 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"; +export { GetValidatorSetByHeightRequest, GetLatestBlockRequest, GetSyncingRequest, Module, GetBlockByHeightRequest, GetBlockByHeightResponse, GetSyncingResponse, GetValidatorSetByHeightResponse, GetNodeInfoResponse, ProofOp, ProofOps, Validator, VersionInfo, ABCIQueryRequest, Block, Header, GetLatestValidatorSetResponse, GetLatestValidatorSetRequest, GetLatestBlockResponse, GetNodeInfoRequest, ABCIQueryResponse }; type sendGetValidatorSetByHeightRequestParams = { value: GetValidatorSetByHeightRequest; fee?: StdFee; memo?: string; }; -type sendValidatorParams = { - value: Validator; +type sendGetLatestBlockRequestParams = { + value: GetLatestBlockRequest; fee?: StdFee; memo?: string; }; @@ -54,13 +39,18 @@ type sendGetSyncingRequestParams = { fee?: StdFee; memo?: string; }; -type sendBlockParams = { - value: Block; +type sendModuleParams = { + value: Module; fee?: StdFee; memo?: string; }; -type sendGetValidatorSetByHeightResponseParams = { - value: GetValidatorSetByHeightResponse; +type sendGetBlockByHeightRequestParams = { + value: GetBlockByHeightRequest; + fee?: StdFee; + memo?: string; +}; +type sendGetBlockByHeightResponseParams = { + value: GetBlockByHeightResponse; fee?: StdFee; memo?: string; }; @@ -69,13 +59,13 @@ type sendGetSyncingResponseParams = { fee?: StdFee; memo?: string; }; -type sendModuleParams = { - value: Module; +type sendGetValidatorSetByHeightResponseParams = { + value: GetValidatorSetByHeightResponse; fee?: StdFee; memo?: string; }; -type sendGetLatestValidatorSetRequestParams = { - value: GetLatestValidatorSetRequest; +type sendGetNodeInfoResponseParams = { + value: GetNodeInfoResponse; fee?: StdFee; memo?: string; }; @@ -84,113 +74,123 @@ type sendProofOpParams = { fee?: StdFee; memo?: string; }; -type sendGetLatestBlockResponseParams = { - value: GetLatestBlockResponse; +type sendProofOpsParams = { + value: ProofOps; fee?: StdFee; memo?: string; }; -type sendProofOpsParams = { - value: ProofOps; +type sendValidatorParams = { + value: Validator; fee?: StdFee; memo?: string; }; -type sendHeaderParams = { - value: Header; +type sendVersionInfoParams = { + value: VersionInfo; fee?: StdFee; memo?: string; }; -type sendGetLatestValidatorSetResponseParams = { - value: GetLatestValidatorSetResponse; +type sendABCIQueryRequestParams = { + value: ABCIQueryRequest; fee?: StdFee; memo?: string; }; -type sendGetNodeInfoResponseParams = { - value: GetNodeInfoResponse; +type sendBlockParams = { + value: Block; fee?: StdFee; memo?: string; }; -type sendGetLatestBlockRequestParams = { - value: GetLatestBlockRequest; +type sendHeaderParams = { + value: Header; fee?: StdFee; memo?: string; }; -type sendVersionInfoParams = { - value: VersionInfo; +type sendGetLatestValidatorSetResponseParams = { + value: GetLatestValidatorSetResponse; fee?: StdFee; memo?: string; }; -type sendGetBlockByHeightRequestParams = { - value: GetBlockByHeightRequest; +type sendGetLatestValidatorSetRequestParams = { + value: GetLatestValidatorSetRequest; fee?: StdFee; memo?: string; }; -type sendGetBlockByHeightResponseParams = { - value: GetBlockByHeightResponse; +type sendGetLatestBlockResponseParams = { + value: GetLatestBlockResponse; fee?: StdFee; memo?: string; }; -type getNodeInfoRequestParams = { +type sendGetNodeInfoRequestParams = { value: GetNodeInfoRequest; + fee?: StdFee; + memo?: string; }; -type abciqueryResponseParams = { +type sendABCIQueryResponseParams = { value: ABCIQueryResponse; -}; -type abciqueryRequestParams = { - value: ABCIQueryRequest; + fee?: StdFee; + memo?: string; }; type getValidatorSetByHeightRequestParams = { value: GetValidatorSetByHeightRequest; }; -type validatorParams = { - value: Validator; +type getLatestBlockRequestParams = { + value: GetLatestBlockRequest; }; type getSyncingRequestParams = { value: GetSyncingRequest; }; -type blockParams = { - value: Block; +type moduleParams = { + value: Module; }; -type getValidatorSetByHeightResponseParams = { - value: GetValidatorSetByHeightResponse; +type getBlockByHeightRequestParams = { + value: GetBlockByHeightRequest; +}; +type getBlockByHeightResponseParams = { + value: GetBlockByHeightResponse; }; type getSyncingResponseParams = { value: GetSyncingResponse; }; -type moduleParams = { - value: Module; +type getValidatorSetByHeightResponseParams = { + value: GetValidatorSetByHeightResponse; }; -type getLatestValidatorSetRequestParams = { - value: GetLatestValidatorSetRequest; +type getNodeInfoResponseParams = { + value: GetNodeInfoResponse; }; type proofOpParams = { value: ProofOp; }; -type getLatestBlockResponseParams = { - value: GetLatestBlockResponse; -}; type proofOpsParams = { value: ProofOps; }; +type validatorParams = { + value: Validator; +}; +type versionInfoParams = { + value: VersionInfo; +}; +type abciqueryRequestParams = { + value: ABCIQueryRequest; +}; +type blockParams = { + value: Block; +}; type headerParams = { value: Header; }; type getLatestValidatorSetResponseParams = { value: GetLatestValidatorSetResponse; }; -type getNodeInfoResponseParams = { - value: GetNodeInfoResponse; -}; -type getLatestBlockRequestParams = { - value: GetLatestBlockRequest; +type getLatestValidatorSetRequestParams = { + value: GetLatestValidatorSetRequest; }; -type versionInfoParams = { - value: VersionInfo; +type getLatestBlockResponseParams = { + value: GetLatestBlockResponse; }; -type getBlockByHeightRequestParams = { - value: GetBlockByHeightRequest; +type getNodeInfoRequestParams = { + value: GetNodeInfoRequest; }; -type getBlockByHeightResponseParams = { - value: GetBlockByHeightResponse; +type abciqueryResponseParams = { + value: ABCIQueryResponse; }; export declare const registry: Registry; interface TxClientOptions { @@ -199,48 +199,48 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendGetNodeInfoRequest({ value, fee, memo }: sendGetNodeInfoRequestParams): Promise; - sendABCIQueryResponse({ value, fee, memo }: sendABCIQueryResponseParams): Promise; - sendABCIQueryRequest({ value, fee, memo }: sendABCIQueryRequestParams): Promise; sendGetValidatorSetByHeightRequest({ value, fee, memo }: sendGetValidatorSetByHeightRequestParams): Promise; - sendValidator({ value, fee, memo }: sendValidatorParams): Promise; + sendGetLatestBlockRequest({ value, fee, memo }: sendGetLatestBlockRequestParams): Promise; sendGetSyncingRequest({ value, fee, memo }: sendGetSyncingRequestParams): Promise; - sendBlock({ value, fee, memo }: sendBlockParams): Promise; - sendGetValidatorSetByHeightResponse({ value, fee, memo }: sendGetValidatorSetByHeightResponseParams): Promise; - sendGetSyncingResponse({ value, fee, memo }: sendGetSyncingResponseParams): Promise; sendModule({ value, fee, memo }: sendModuleParams): Promise; - sendGetLatestValidatorSetRequest({ value, fee, memo }: sendGetLatestValidatorSetRequestParams): Promise; + sendGetBlockByHeightRequest({ value, fee, memo }: sendGetBlockByHeightRequestParams): Promise; + sendGetBlockByHeightResponse({ value, fee, memo }: sendGetBlockByHeightResponseParams): Promise; + sendGetSyncingResponse({ value, fee, memo }: sendGetSyncingResponseParams): Promise; + sendGetValidatorSetByHeightResponse({ value, fee, memo }: sendGetValidatorSetByHeightResponseParams): Promise; + sendGetNodeInfoResponse({ value, fee, memo }: sendGetNodeInfoResponseParams): Promise; sendProofOp({ value, fee, memo }: sendProofOpParams): Promise; - sendGetLatestBlockResponse({ value, fee, memo }: sendGetLatestBlockResponseParams): Promise; sendProofOps({ value, fee, memo }: sendProofOpsParams): Promise; + sendValidator({ value, fee, memo }: sendValidatorParams): Promise; + sendVersionInfo({ value, fee, memo }: sendVersionInfoParams): Promise; + sendABCIQueryRequest({ value, fee, memo }: sendABCIQueryRequestParams): Promise; + sendBlock({ value, fee, memo }: sendBlockParams): Promise; sendHeader({ value, fee, memo }: sendHeaderParams): Promise; sendGetLatestValidatorSetResponse({ value, fee, memo }: sendGetLatestValidatorSetResponseParams): Promise; - sendGetNodeInfoResponse({ value, fee, memo }: sendGetNodeInfoResponseParams): Promise; - sendGetLatestBlockRequest({ value, fee, memo }: sendGetLatestBlockRequestParams): Promise; - sendVersionInfo({ value, fee, memo }: sendVersionInfoParams): Promise; - sendGetBlockByHeightRequest({ value, fee, memo }: sendGetBlockByHeightRequestParams): Promise; - sendGetBlockByHeightResponse({ value, fee, memo }: sendGetBlockByHeightResponseParams): Promise; - getNodeInfoRequest({ value }: getNodeInfoRequestParams): EncodeObject; - abciqueryResponse({ value }: abciqueryResponseParams): EncodeObject; - abciqueryRequest({ value }: abciqueryRequestParams): EncodeObject; + sendGetLatestValidatorSetRequest({ value, fee, memo }: sendGetLatestValidatorSetRequestParams): Promise; + sendGetLatestBlockResponse({ value, fee, memo }: sendGetLatestBlockResponseParams): Promise; + sendGetNodeInfoRequest({ value, fee, memo }: sendGetNodeInfoRequestParams): Promise; + sendABCIQueryResponse({ value, fee, memo }: sendABCIQueryResponseParams): Promise; getValidatorSetByHeightRequest({ value }: getValidatorSetByHeightRequestParams): EncodeObject; - validator({ value }: validatorParams): EncodeObject; + getLatestBlockRequest({ value }: getLatestBlockRequestParams): EncodeObject; getSyncingRequest({ value }: getSyncingRequestParams): EncodeObject; - block({ value }: blockParams): EncodeObject; - getValidatorSetByHeightResponse({ value }: getValidatorSetByHeightResponseParams): EncodeObject; - getSyncingResponse({ value }: getSyncingResponseParams): EncodeObject; module({ value }: moduleParams): EncodeObject; - getLatestValidatorSetRequest({ value }: getLatestValidatorSetRequestParams): EncodeObject; + getBlockByHeightRequest({ value }: getBlockByHeightRequestParams): EncodeObject; + getBlockByHeightResponse({ value }: getBlockByHeightResponseParams): EncodeObject; + getSyncingResponse({ value }: getSyncingResponseParams): EncodeObject; + getValidatorSetByHeightResponse({ value }: getValidatorSetByHeightResponseParams): EncodeObject; + getNodeInfoResponse({ value }: getNodeInfoResponseParams): EncodeObject; proofOp({ value }: proofOpParams): EncodeObject; - getLatestBlockResponse({ value }: getLatestBlockResponseParams): EncodeObject; proofOps({ value }: proofOpsParams): EncodeObject; + validator({ value }: validatorParams): EncodeObject; + versionInfo({ value }: versionInfoParams): EncodeObject; + abciqueryRequest({ value }: abciqueryRequestParams): EncodeObject; + block({ value }: blockParams): EncodeObject; header({ value }: headerParams): EncodeObject; getLatestValidatorSetResponse({ value }: getLatestValidatorSetResponseParams): EncodeObject; - getNodeInfoResponse({ value }: getNodeInfoResponseParams): EncodeObject; - getLatestBlockRequest({ value }: getLatestBlockRequestParams): EncodeObject; - versionInfo({ value }: versionInfoParams): EncodeObject; - getBlockByHeightRequest({ value }: getBlockByHeightRequestParams): EncodeObject; - getBlockByHeightResponse({ value }: getBlockByHeightResponseParams): EncodeObject; + getLatestValidatorSetRequest({ value }: getLatestValidatorSetRequestParams): EncodeObject; + getLatestBlockResponse({ value }: getLatestBlockResponseParams): EncodeObject; + getNodeInfoRequest({ value }: getNodeInfoRequestParams): EncodeObject; + abciqueryResponse({ value }: abciqueryResponseParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.base.tendermint.v1beta1/module.js b/ts-client/lib/cosmos.base.tendermint.v1beta1/module.js index 8024897fd..08f98017d 100644 --- a/ts-client/lib/cosmos.base.tendermint.v1beta1/module.js +++ b/ts-client/lib/cosmos.base.tendermint.v1beta1/module.js @@ -3,28 +3,28 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { GetNodeInfoRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ABCIQueryResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ABCIQueryRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetValidatorSetByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Validator } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetLatestBlockRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetSyncingRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Block } from "./types/cosmos/base/tendermint/v1beta1/types"; -import { GetValidatorSetByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetSyncingResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; import { Module } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetLatestValidatorSetRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetBlockByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetBlockByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetSyncingResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetValidatorSetByHeightResponse } 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"; -import { GetLatestBlockResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; import { ProofOps } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Validator } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { VersionInfo } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { ABCIQueryRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Block } from "./types/cosmos/base/tendermint/v1beta1/types"; import { Header } from "./types/cosmos/base/tendermint/v1beta1/types"; import { GetLatestValidatorSetResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetNodeInfoResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetLatestBlockRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { VersionInfo } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetBlockByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetBlockByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -export { GetNodeInfoRequest, ABCIQueryResponse, ABCIQueryRequest, GetValidatorSetByHeightRequest, Validator, GetSyncingRequest, Block, GetValidatorSetByHeightResponse, GetSyncingResponse, Module, GetLatestValidatorSetRequest, ProofOp, GetLatestBlockResponse, ProofOps, Header, GetLatestValidatorSetResponse, GetNodeInfoResponse, GetLatestBlockRequest, VersionInfo, GetBlockByHeightRequest, GetBlockByHeightResponse }; +import { GetLatestValidatorSetRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetLatestBlockResponse } 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"; +export { GetValidatorSetByHeightRequest, GetLatestBlockRequest, GetSyncingRequest, Module, GetBlockByHeightRequest, GetBlockByHeightResponse, GetSyncingResponse, GetValidatorSetByHeightResponse, GetNodeInfoResponse, ProofOp, ProofOps, Validator, VersionInfo, ABCIQueryRequest, Block, Header, GetLatestValidatorSetResponse, GetLatestValidatorSetRequest, GetLatestBlockResponse, GetNodeInfoRequest, ABCIQueryResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -40,102 +40,102 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendGetNodeInfoRequest({ value, fee, memo }) { + async sendGetValidatorSetByHeightRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGetNodeInfoRequest: 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.getNodeInfoRequest({ value: GetNodeInfoRequest.fromPartial(value) }); + let msg = this.getValidatorSetByHeightRequest({ value: GetValidatorSetByHeightRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGetNodeInfoRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetValidatorSetByHeightRequest: Could not broadcast Tx: ' + e.message); } }, - async sendABCIQueryResponse({ value, fee, memo }) { + async sendGetLatestBlockRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendABCIQueryResponse: 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.abciqueryResponse({ value: ABCIQueryResponse.fromPartial(value) }); + let msg = this.getLatestBlockRequest({ value: GetLatestBlockRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendABCIQueryResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetLatestBlockRequest: Could not broadcast Tx: ' + e.message); } }, - async sendABCIQueryRequest({ value, fee, memo }) { + async sendGetSyncingRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendABCIQueryRequest: 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.abciqueryRequest({ value: ABCIQueryRequest.fromPartial(value) }); + let msg = this.getSyncingRequest({ value: GetSyncingRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendABCIQueryRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetSyncingRequest: Could not broadcast Tx: ' + e.message); } }, - async sendGetValidatorSetByHeightRequest({ value, fee, memo }) { + async sendModule({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGetValidatorSetByHeightRequest: 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.getValidatorSetByHeightRequest({ value: GetValidatorSetByHeightRequest.fromPartial(value) }); + let msg = this.module({ value: Module.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGetValidatorSetByHeightRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendModule: Could not broadcast Tx: ' + e.message); } }, - async sendValidator({ value, fee, memo }) { + async sendGetBlockByHeightRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidator: 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.validator({ value: Validator.fromPartial(value) }); + let msg = this.getBlockByHeightRequest({ value: GetBlockByHeightRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidator: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetBlockByHeightRequest: Could not broadcast Tx: ' + e.message); } }, - async sendGetSyncingRequest({ value, fee, memo }) { + async sendGetBlockByHeightResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGetSyncingRequest: 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.getSyncingRequest({ value: GetSyncingRequest.fromPartial(value) }); + let msg = this.getBlockByHeightResponse({ value: GetBlockByHeightResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGetSyncingRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetBlockByHeightResponse: Could not broadcast Tx: ' + e.message); } }, - async sendBlock({ value, fee, memo }) { + async sendGetSyncingResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendBlock: 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.block({ value: Block.fromPartial(value) }); + let msg = this.getSyncingResponse({ value: GetSyncingResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendBlock: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetSyncingResponse: Could not broadcast Tx: ' + e.message); } }, async sendGetValidatorSetByHeightResponse({ value, fee, memo }) { @@ -152,242 +152,242 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendGetValidatorSetByHeightResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGetSyncingResponse({ value, fee, memo }) { + async sendGetNodeInfoResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGetSyncingResponse: 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.getSyncingResponse({ value: GetSyncingResponse.fromPartial(value) }); + let msg = this.getNodeInfoResponse({ value: GetNodeInfoResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGetSyncingResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetNodeInfoResponse: Could not broadcast Tx: ' + e.message); } }, - async sendModule({ value, fee, memo }) { + async sendProofOp({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendModule: 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.module({ value: Module.fromPartial(value) }); + let msg = this.proofOp({ value: ProofOp.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendModule: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendProofOp: Could not broadcast Tx: ' + e.message); } }, - async sendGetLatestValidatorSetRequest({ value, fee, memo }) { + async sendProofOps({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGetLatestValidatorSetRequest: 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.getLatestValidatorSetRequest({ value: GetLatestValidatorSetRequest.fromPartial(value) }); + let msg = this.proofOps({ value: ProofOps.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGetLatestValidatorSetRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendProofOps: Could not broadcast Tx: ' + e.message); } }, - async sendProofOp({ value, fee, memo }) { + async sendValidator({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendProofOp: 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.proofOp({ value: ProofOp.fromPartial(value) }); + let msg = this.validator({ value: Validator.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendProofOp: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidator: Could not broadcast Tx: ' + e.message); } }, - async sendGetLatestBlockResponse({ value, fee, memo }) { + async sendVersionInfo({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendGetLatestBlockResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendVersionInfo: Could not broadcast Tx: ' + e.message); } }, - async sendProofOps({ value, fee, memo }) { + async sendABCIQueryRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendProofOps: 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.proofOps({ value: ProofOps.fromPartial(value) }); + let msg = this.abciqueryRequest({ value: ABCIQueryRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendProofOps: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendABCIQueryRequest: Could not broadcast Tx: ' + e.message); } }, - async sendHeader({ value, fee, memo }) { + async sendBlock({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendHeader: 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.header({ value: Header.fromPartial(value) }); + let msg = this.block({ value: Block.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendHeader: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendBlock: Could not broadcast Tx: ' + e.message); } }, - async sendGetLatestValidatorSetResponse({ value, fee, memo }) { + async sendHeader({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGetLatestValidatorSetResponse: 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.getLatestValidatorSetResponse({ value: GetLatestValidatorSetResponse.fromPartial(value) }); + let msg = this.header({ value: Header.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGetLatestValidatorSetResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendHeader: Could not broadcast Tx: ' + e.message); } }, - async sendGetNodeInfoResponse({ value, fee, memo }) { + async sendGetLatestValidatorSetResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGetNodeInfoResponse: 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.getNodeInfoResponse({ value: GetNodeInfoResponse.fromPartial(value) }); + let msg = this.getLatestValidatorSetResponse({ value: GetLatestValidatorSetResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGetNodeInfoResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetLatestValidatorSetResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGetLatestBlockRequest({ value, fee, memo }) { + async sendGetLatestValidatorSetRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGetLatestBlockRequest: 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.getLatestBlockRequest({ value: GetLatestBlockRequest.fromPartial(value) }); + let msg = this.getLatestValidatorSetRequest({ value: GetLatestValidatorSetRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGetLatestBlockRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetLatestValidatorSetRequest: Could not broadcast Tx: ' + e.message); } }, - async sendVersionInfo({ value, fee, memo }) { + async sendGetLatestBlockResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendVersionInfo: 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.versionInfo({ value: VersionInfo.fromPartial(value) }); + let msg = this.getLatestBlockResponse({ value: GetLatestBlockResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendVersionInfo: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetLatestBlockResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGetBlockByHeightRequest({ value, fee, memo }) { + async sendGetNodeInfoRequest({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendGetBlockByHeightRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetNodeInfoRequest: Could not broadcast Tx: ' + e.message); } }, - async sendGetBlockByHeightResponse({ value, fee, memo }) { + async sendABCIQueryResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGetBlockByHeightResponse: 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.getBlockByHeightResponse({ value: GetBlockByHeightResponse.fromPartial(value) }); + let msg = this.abciqueryResponse({ value: ABCIQueryResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGetBlockByHeightResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendABCIQueryResponse: Could not broadcast Tx: ' + e.message); } }, - getNodeInfoRequest({ value }) { + getValidatorSetByHeightRequest({ value }) { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest", value: GetNodeInfoRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest", value: GetValidatorSetByHeightRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GetNodeInfoRequest: Could not create message: ' + e.message); + throw new Error('TxClient:GetValidatorSetByHeightRequest: Could not create message: ' + e.message); } }, - abciqueryResponse({ value }) { + getLatestBlockRequest({ value }) { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryResponse", value: ABCIQueryResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest", value: GetLatestBlockRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ABCIQueryResponse: Could not create message: ' + e.message); + throw new Error('TxClient:GetLatestBlockRequest: Could not create message: ' + e.message); } }, - abciqueryRequest({ value }) { + getSyncingRequest({ value }) { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryRequest", value: ABCIQueryRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingRequest", value: GetSyncingRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ABCIQueryRequest: Could not create message: ' + e.message); + throw new Error('TxClient:GetSyncingRequest: Could not create message: ' + e.message); } }, - getValidatorSetByHeightRequest({ value }) { + module({ value }) { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest", value: GetValidatorSetByHeightRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.base.tendermint.v1beta1.Module", value: Module.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GetValidatorSetByHeightRequest: Could not create message: ' + e.message); + throw new Error('TxClient:Module: Could not create message: ' + e.message); } }, - validator({ value }) { + getBlockByHeightRequest({ value }) { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.Validator", value: Validator.fromPartial(value) }; + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest", value: GetBlockByHeightRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Validator: Could not create message: ' + e.message); + throw new Error('TxClient:GetBlockByHeightRequest: Could not create message: ' + e.message); } }, - getSyncingRequest({ value }) { + getBlockByHeightResponse({ value }) { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingRequest", value: GetSyncingRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse", value: GetBlockByHeightResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GetSyncingRequest: Could not create message: ' + e.message); + throw new Error('TxClient:GetBlockByHeightResponse: Could not create message: ' + e.message); } }, - block({ value }) { + getSyncingResponse({ value }) { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.Block", value: Block.fromPartial(value) }; + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingResponse", value: GetSyncingResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Block: Could not create message: ' + e.message); + throw new Error('TxClient:GetSyncingResponse: Could not create message: ' + e.message); } }, getValidatorSetByHeightResponse({ value }) { @@ -398,52 +398,60 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:GetValidatorSetByHeightResponse: Could not create message: ' + e.message); } }, - getSyncingResponse({ value }) { + getNodeInfoResponse({ value }) { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetSyncingResponse", value: GetSyncingResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse", value: GetNodeInfoResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GetSyncingResponse: Could not create message: ' + e.message); + throw new Error('TxClient:GetNodeInfoResponse: Could not create message: ' + e.message); } }, - module({ value }) { + proofOp({ value }) { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.Module", value: Module.fromPartial(value) }; + return { typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOp", value: ProofOp.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Module: Could not create message: ' + e.message); + throw new Error('TxClient:ProofOp: Could not create message: ' + e.message); } }, - getLatestValidatorSetRequest({ value }) { + proofOps({ value }) { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest", value: GetLatestValidatorSetRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOps", value: ProofOps.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GetLatestValidatorSetRequest: Could not create message: ' + e.message); + throw new Error('TxClient:ProofOps: Could not create message: ' + e.message); } }, - proofOp({ value }) { + validator({ value }) { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOp", value: ProofOp.fromPartial(value) }; + return { typeUrl: "/cosmos.base.tendermint.v1beta1.Validator", value: Validator.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ProofOp: Could not create message: ' + e.message); + throw new Error('TxClient:Validator: Could not create message: ' + e.message); } }, - getLatestBlockResponse({ value }) { + versionInfo({ value }) { 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) { - throw new Error('TxClient:GetLatestBlockResponse: Could not create message: ' + e.message); + throw new Error('TxClient:VersionInfo: Could not create message: ' + e.message); } }, - proofOps({ value }) { + abciqueryRequest({ value }) { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.ProofOps", value: ProofOps.fromPartial(value) }; + return { typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryRequest", value: ABCIQueryRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ProofOps: Could not create message: ' + e.message); + throw new Error('TxClient:ABCIQueryRequest: Could not create message: ' + e.message); + } + }, + block({ value }) { + try { + return { typeUrl: "/cosmos.base.tendermint.v1beta1.Block", value: Block.fromPartial(value) }; + } + catch (e) { + throw new Error('TxClient:Block: Could not create message: ' + e.message); } }, header({ value }) { @@ -462,44 +470,36 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:GetLatestValidatorSetResponse: Could not create message: ' + e.message); } }, - getNodeInfoResponse({ value }) { - try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse", value: GetNodeInfoResponse.fromPartial(value) }; - } - catch (e) { - throw new Error('TxClient:GetNodeInfoResponse: Could not create message: ' + e.message); - } - }, - getLatestBlockRequest({ value }) { + getLatestValidatorSetRequest({ value }) { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest", value: GetLatestBlockRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest", value: GetLatestValidatorSetRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GetLatestBlockRequest: Could not create message: ' + e.message); + throw new Error('TxClient:GetLatestValidatorSetRequest: Could not create message: ' + e.message); } }, - versionInfo({ value }) { + getLatestBlockResponse({ value }) { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.VersionInfo", value: VersionInfo.fromPartial(value) }; + return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse", value: GetLatestBlockResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:VersionInfo: Could not create message: ' + e.message); + throw new Error('TxClient:GetLatestBlockResponse: Could not create message: ' + e.message); } }, - getBlockByHeightRequest({ value }) { + getNodeInfoRequest({ value }) { 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) { - throw new Error('TxClient:GetBlockByHeightRequest: Could not create message: ' + e.message); + throw new Error('TxClient:GetNodeInfoRequest: Could not create message: ' + e.message); } }, - getBlockByHeightResponse({ value }) { + abciqueryResponse({ value }) { try { - return { typeUrl: "/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse", value: GetBlockByHeightResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.base.tendermint.v1beta1.ABCIQueryResponse", value: ABCIQueryResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GetBlockByHeightResponse: Could not create message: ' + e.message); + throw new Error('TxClient:ABCIQueryResponse: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.base.tendermint.v1beta1/registry.js b/ts-client/lib/cosmos.base.tendermint.v1beta1/registry.js index 06ed60b7f..09a82e2e3 100644 --- a/ts-client/lib/cosmos.base.tendermint.v1beta1/registry.js +++ b/ts-client/lib/cosmos.base.tendermint.v1beta1/registry.js @@ -1,45 +1,45 @@ -import { GetNodeInfoRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ABCIQueryResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { ABCIQueryRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetValidatorSetByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Validator } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetLatestBlockRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; import { GetSyncingRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { Block } from "./types/cosmos/base/tendermint/v1beta1/types"; -import { GetValidatorSetByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetSyncingResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; import { Module } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetLatestValidatorSetRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetBlockByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetBlockByHeightResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetSyncingResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { GetValidatorSetByHeightResponse } 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"; -import { GetLatestBlockResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; import { ProofOps } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Validator } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { VersionInfo } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { ABCIQueryRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { Block } from "./types/cosmos/base/tendermint/v1beta1/types"; import { Header } from "./types/cosmos/base/tendermint/v1beta1/types"; import { GetLatestValidatorSetResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetNodeInfoResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetLatestBlockRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { VersionInfo } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetBlockByHeightRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; -import { GetBlockByHeightResponse } 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 { GetNodeInfoRequest } from "./types/cosmos/base/tendermint/v1beta1/query"; +import { ABCIQueryResponse } from "./types/cosmos/base/tendermint/v1beta1/query"; const msgTypes = [ - ["/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest", GetNodeInfoRequest], - ["/cosmos.base.tendermint.v1beta1.ABCIQueryResponse", ABCIQueryResponse], - ["/cosmos.base.tendermint.v1beta1.ABCIQueryRequest", ABCIQueryRequest], ["/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightRequest", GetValidatorSetByHeightRequest], - ["/cosmos.base.tendermint.v1beta1.Validator", Validator], + ["/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest", GetLatestBlockRequest], ["/cosmos.base.tendermint.v1beta1.GetSyncingRequest", GetSyncingRequest], - ["/cosmos.base.tendermint.v1beta1.Block", Block], - ["/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse", GetValidatorSetByHeightResponse], - ["/cosmos.base.tendermint.v1beta1.GetSyncingResponse", GetSyncingResponse], ["/cosmos.base.tendermint.v1beta1.Module", Module], - ["/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest", GetLatestValidatorSetRequest], + ["/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest", GetBlockByHeightRequest], + ["/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse", GetBlockByHeightResponse], + ["/cosmos.base.tendermint.v1beta1.GetSyncingResponse", GetSyncingResponse], + ["/cosmos.base.tendermint.v1beta1.GetValidatorSetByHeightResponse", GetValidatorSetByHeightResponse], + ["/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse", GetNodeInfoResponse], ["/cosmos.base.tendermint.v1beta1.ProofOp", ProofOp], - ["/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse", GetLatestBlockResponse], ["/cosmos.base.tendermint.v1beta1.ProofOps", ProofOps], + ["/cosmos.base.tendermint.v1beta1.Validator", Validator], + ["/cosmos.base.tendermint.v1beta1.VersionInfo", VersionInfo], + ["/cosmos.base.tendermint.v1beta1.ABCIQueryRequest", ABCIQueryRequest], + ["/cosmos.base.tendermint.v1beta1.Block", Block], ["/cosmos.base.tendermint.v1beta1.Header", Header], ["/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetResponse", GetLatestValidatorSetResponse], - ["/cosmos.base.tendermint.v1beta1.GetNodeInfoResponse", GetNodeInfoResponse], - ["/cosmos.base.tendermint.v1beta1.GetLatestBlockRequest", GetLatestBlockRequest], - ["/cosmos.base.tendermint.v1beta1.VersionInfo", VersionInfo], - ["/cosmos.base.tendermint.v1beta1.GetBlockByHeightRequest", GetBlockByHeightRequest], - ["/cosmos.base.tendermint.v1beta1.GetBlockByHeightResponse", GetBlockByHeightResponse], + ["/cosmos.base.tendermint.v1beta1.GetLatestValidatorSetRequest", GetLatestValidatorSetRequest], + ["/cosmos.base.tendermint.v1beta1.GetLatestBlockResponse", GetLatestBlockResponse], + ["/cosmos.base.tendermint.v1beta1.GetNodeInfoRequest", GetNodeInfoRequest], + ["/cosmos.base.tendermint.v1beta1.ABCIQueryResponse", ABCIQueryResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.circuit.v1/module.d.ts b/ts-client/lib/cosmos.circuit.v1/module.d.ts index 60affef33..3487d04c3 100644 --- a/ts-client/lib/cosmos.circuit.v1/module.d.ts +++ b/ts-client/lib/cosmos.circuit.v1/module.d.ts @@ -2,39 +2,34 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; +import { MsgTripCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; +import { MsgResetCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { GenesisAccountPermissions } from "./types/cosmos/circuit/v1/types"; -import { GenesisState } from "./types/cosmos/circuit/v1/types"; -import { AccountResponse } from "./types/cosmos/circuit/v1/query"; -import { QueryAccountsRequest } from "./types/cosmos/circuit/v1/query"; import { AccountsResponse } from "./types/cosmos/circuit/v1/query"; -import { QueryAccountRequest } from "./types/cosmos/circuit/v1/query"; -import { QueryDisabledListRequest } from "./types/cosmos/circuit/v1/query"; -import { MsgAuthorizeCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; -import { MsgResetCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; import { DisabledListResponse } from "./types/cosmos/circuit/v1/query"; +import { MsgAuthorizeCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; +import { QueryAccountsRequest } from "./types/cosmos/circuit/v1/query"; +import { QueryDisabledListRequest } from "./types/cosmos/circuit/v1/query"; import { MsgAuthorizeCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { MsgTripCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; -import { MsgResetCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { Permissions } from "./types/cosmos/circuit/v1/types"; -import { MsgTripCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; -export { GenesisAccountPermissions, GenesisState, AccountResponse, QueryAccountsRequest, AccountsResponse, QueryAccountRequest, QueryDisabledListRequest, MsgAuthorizeCircuitBreakerResponse, MsgResetCircuitBreakerResponse, DisabledListResponse, MsgAuthorizeCircuitBreaker, MsgTripCircuitBreaker, MsgResetCircuitBreaker, Permissions, MsgTripCircuitBreakerResponse }; -type sendGenesisAccountPermissionsParams = { - value: GenesisAccountPermissions; - fee?: StdFee; - memo?: string; -}; -type sendGenesisStateParams = { - value: GenesisState; +import { GenesisState } from "./types/cosmos/circuit/v1/types"; +import { MsgResetCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; +import { QueryAccountRequest } from "./types/cosmos/circuit/v1/query"; +import { AccountResponse } from "./types/cosmos/circuit/v1/query"; +export { MsgTripCircuitBreakerResponse, MsgResetCircuitBreaker, GenesisAccountPermissions, AccountsResponse, DisabledListResponse, MsgAuthorizeCircuitBreakerResponse, QueryAccountsRequest, QueryDisabledListRequest, MsgAuthorizeCircuitBreaker, MsgTripCircuitBreaker, Permissions, GenesisState, MsgResetCircuitBreakerResponse, QueryAccountRequest, AccountResponse }; +type sendMsgTripCircuitBreakerResponseParams = { + value: MsgTripCircuitBreakerResponse; fee?: StdFee; memo?: string; }; -type sendAccountResponseParams = { - value: AccountResponse; +type sendMsgResetCircuitBreakerParams = { + value: MsgResetCircuitBreaker; fee?: StdFee; memo?: string; }; -type sendQueryAccountsRequestParams = { - value: QueryAccountsRequest; +type sendGenesisAccountPermissionsParams = { + value: GenesisAccountPermissions; fee?: StdFee; memo?: string; }; @@ -43,13 +38,8 @@ type sendAccountsResponseParams = { fee?: StdFee; memo?: string; }; -type sendQueryAccountRequestParams = { - value: QueryAccountRequest; - fee?: StdFee; - memo?: string; -}; -type sendQueryDisabledListRequestParams = { - value: QueryDisabledListRequest; +type sendDisabledListResponseParams = { + value: DisabledListResponse; fee?: StdFee; memo?: string; }; @@ -58,13 +48,13 @@ type sendMsgAuthorizeCircuitBreakerResponseParams = { fee?: StdFee; memo?: string; }; -type sendMsgResetCircuitBreakerResponseParams = { - value: MsgResetCircuitBreakerResponse; +type sendQueryAccountsRequestParams = { + value: QueryAccountsRequest; fee?: StdFee; memo?: string; }; -type sendDisabledListResponseParams = { - value: DisabledListResponse; +type sendQueryDisabledListRequestParams = { + value: QueryDisabledListRequest; fee?: StdFee; memo?: string; }; @@ -78,50 +68,54 @@ type sendMsgTripCircuitBreakerParams = { fee?: StdFee; memo?: string; }; -type sendMsgResetCircuitBreakerParams = { - value: MsgResetCircuitBreaker; - fee?: StdFee; - memo?: string; -}; type sendPermissionsParams = { value: Permissions; fee?: StdFee; memo?: string; }; -type sendMsgTripCircuitBreakerResponseParams = { - value: MsgTripCircuitBreakerResponse; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type genesisAccountPermissionsParams = { - value: GenesisAccountPermissions; +type sendMsgResetCircuitBreakerResponseParams = { + value: MsgResetCircuitBreakerResponse; + fee?: StdFee; + memo?: string; }; -type genesisStateParams = { - value: GenesisState; +type sendQueryAccountRequestParams = { + value: QueryAccountRequest; + fee?: StdFee; + memo?: string; }; -type accountResponseParams = { +type sendAccountResponseParams = { value: AccountResponse; + fee?: StdFee; + memo?: string; }; -type queryAccountsRequestParams = { - value: QueryAccountsRequest; +type msgTripCircuitBreakerResponseParams = { + value: MsgTripCircuitBreakerResponse; +}; +type msgResetCircuitBreakerParams = { + value: MsgResetCircuitBreaker; +}; +type genesisAccountPermissionsParams = { + value: GenesisAccountPermissions; }; type accountsResponseParams = { value: AccountsResponse; }; -type queryAccountRequestParams = { - value: QueryAccountRequest; -}; -type queryDisabledListRequestParams = { - value: QueryDisabledListRequest; +type disabledListResponseParams = { + value: DisabledListResponse; }; type msgAuthorizeCircuitBreakerResponseParams = { value: MsgAuthorizeCircuitBreakerResponse; }; -type msgResetCircuitBreakerResponseParams = { - value: MsgResetCircuitBreakerResponse; +type queryAccountsRequestParams = { + value: QueryAccountsRequest; }; -type disabledListResponseParams = { - value: DisabledListResponse; +type queryDisabledListRequestParams = { + value: QueryDisabledListRequest; }; type msgAuthorizeCircuitBreakerParams = { value: MsgAuthorizeCircuitBreaker; @@ -129,14 +123,20 @@ type msgAuthorizeCircuitBreakerParams = { type msgTripCircuitBreakerParams = { value: MsgTripCircuitBreaker; }; -type msgResetCircuitBreakerParams = { - value: MsgResetCircuitBreaker; -}; type permissionsParams = { value: Permissions; }; -type msgTripCircuitBreakerResponseParams = { - value: MsgTripCircuitBreakerResponse; +type genesisStateParams = { + value: GenesisState; +}; +type msgResetCircuitBreakerResponseParams = { + value: MsgResetCircuitBreakerResponse; +}; +type queryAccountRequestParams = { + value: QueryAccountRequest; +}; +type accountResponseParams = { + value: AccountResponse; }; export declare const registry: Registry; interface TxClientOptions { @@ -145,36 +145,36 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { + sendMsgTripCircuitBreakerResponse({ value, fee, memo }: sendMsgTripCircuitBreakerResponseParams): Promise; + sendMsgResetCircuitBreaker({ value, fee, memo }: sendMsgResetCircuitBreakerParams): Promise; sendGenesisAccountPermissions({ value, fee, memo }: sendGenesisAccountPermissionsParams): Promise; - sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendAccountResponse({ value, fee, memo }: sendAccountResponseParams): Promise; - sendQueryAccountsRequest({ value, fee, memo }: sendQueryAccountsRequestParams): Promise; sendAccountsResponse({ value, fee, memo }: sendAccountsResponseParams): Promise; - sendQueryAccountRequest({ value, fee, memo }: sendQueryAccountRequestParams): Promise; - sendQueryDisabledListRequest({ value, fee, memo }: sendQueryDisabledListRequestParams): Promise; - sendMsgAuthorizeCircuitBreakerResponse({ value, fee, memo }: sendMsgAuthorizeCircuitBreakerResponseParams): Promise; - sendMsgResetCircuitBreakerResponse({ value, fee, memo }: sendMsgResetCircuitBreakerResponseParams): Promise; sendDisabledListResponse({ value, fee, memo }: sendDisabledListResponseParams): Promise; + sendMsgAuthorizeCircuitBreakerResponse({ value, fee, memo }: sendMsgAuthorizeCircuitBreakerResponseParams): Promise; + sendQueryAccountsRequest({ value, fee, memo }: sendQueryAccountsRequestParams): Promise; + sendQueryDisabledListRequest({ value, fee, memo }: sendQueryDisabledListRequestParams): Promise; sendMsgAuthorizeCircuitBreaker({ value, fee, memo }: sendMsgAuthorizeCircuitBreakerParams): Promise; sendMsgTripCircuitBreaker({ value, fee, memo }: sendMsgTripCircuitBreakerParams): Promise; - sendMsgResetCircuitBreaker({ value, fee, memo }: sendMsgResetCircuitBreakerParams): Promise; sendPermissions({ value, fee, memo }: sendPermissionsParams): Promise; - sendMsgTripCircuitBreakerResponse({ value, fee, memo }: sendMsgTripCircuitBreakerResponseParams): Promise; + sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; + sendMsgResetCircuitBreakerResponse({ value, fee, memo }: sendMsgResetCircuitBreakerResponseParams): Promise; + sendQueryAccountRequest({ value, fee, memo }: sendQueryAccountRequestParams): Promise; + sendAccountResponse({ value, fee, memo }: sendAccountResponseParams): Promise; + msgTripCircuitBreakerResponse({ value }: msgTripCircuitBreakerResponseParams): EncodeObject; + msgResetCircuitBreaker({ value }: msgResetCircuitBreakerParams): EncodeObject; genesisAccountPermissions({ value }: genesisAccountPermissionsParams): EncodeObject; - genesisState({ value }: genesisStateParams): EncodeObject; - accountResponse({ value }: accountResponseParams): EncodeObject; - queryAccountsRequest({ value }: queryAccountsRequestParams): EncodeObject; accountsResponse({ value }: accountsResponseParams): EncodeObject; - queryAccountRequest({ value }: queryAccountRequestParams): EncodeObject; - queryDisabledListRequest({ value }: queryDisabledListRequestParams): EncodeObject; - msgAuthorizeCircuitBreakerResponse({ value }: msgAuthorizeCircuitBreakerResponseParams): EncodeObject; - msgResetCircuitBreakerResponse({ value }: msgResetCircuitBreakerResponseParams): EncodeObject; disabledListResponse({ value }: disabledListResponseParams): EncodeObject; + msgAuthorizeCircuitBreakerResponse({ value }: msgAuthorizeCircuitBreakerResponseParams): EncodeObject; + queryAccountsRequest({ value }: queryAccountsRequestParams): EncodeObject; + queryDisabledListRequest({ value }: queryDisabledListRequestParams): EncodeObject; msgAuthorizeCircuitBreaker({ value }: msgAuthorizeCircuitBreakerParams): EncodeObject; msgTripCircuitBreaker({ value }: msgTripCircuitBreakerParams): EncodeObject; - msgResetCircuitBreaker({ value }: msgResetCircuitBreakerParams): EncodeObject; permissions({ value }: permissionsParams): EncodeObject; - msgTripCircuitBreakerResponse({ value }: msgTripCircuitBreakerResponseParams): EncodeObject; + genesisState({ value }: genesisStateParams): EncodeObject; + msgResetCircuitBreakerResponse({ value }: msgResetCircuitBreakerResponseParams): EncodeObject; + queryAccountRequest({ value }: queryAccountRequestParams): EncodeObject; + accountResponse({ value }: accountResponseParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.circuit.v1/module.js b/ts-client/lib/cosmos.circuit.v1/module.js index da98e1666..b4449e43f 100644 --- a/ts-client/lib/cosmos.circuit.v1/module.js +++ b/ts-client/lib/cosmos.circuit.v1/module.js @@ -3,22 +3,22 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; +import { MsgTripCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; +import { MsgResetCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { GenesisAccountPermissions } from "./types/cosmos/circuit/v1/types"; -import { GenesisState } from "./types/cosmos/circuit/v1/types"; -import { AccountResponse } from "./types/cosmos/circuit/v1/query"; -import { QueryAccountsRequest } from "./types/cosmos/circuit/v1/query"; import { AccountsResponse } from "./types/cosmos/circuit/v1/query"; -import { QueryAccountRequest } from "./types/cosmos/circuit/v1/query"; -import { QueryDisabledListRequest } from "./types/cosmos/circuit/v1/query"; -import { MsgAuthorizeCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; -import { MsgResetCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; import { DisabledListResponse } from "./types/cosmos/circuit/v1/query"; +import { MsgAuthorizeCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; +import { QueryAccountsRequest } from "./types/cosmos/circuit/v1/query"; +import { QueryDisabledListRequest } from "./types/cosmos/circuit/v1/query"; import { MsgAuthorizeCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { MsgTripCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; -import { MsgResetCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { Permissions } from "./types/cosmos/circuit/v1/types"; -import { MsgTripCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; -export { GenesisAccountPermissions, GenesisState, AccountResponse, QueryAccountsRequest, AccountsResponse, QueryAccountRequest, QueryDisabledListRequest, MsgAuthorizeCircuitBreakerResponse, MsgResetCircuitBreakerResponse, DisabledListResponse, MsgAuthorizeCircuitBreaker, MsgTripCircuitBreaker, MsgResetCircuitBreaker, Permissions, MsgTripCircuitBreakerResponse }; +import { GenesisState } from "./types/cosmos/circuit/v1/types"; +import { MsgResetCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; +import { QueryAccountRequest } from "./types/cosmos/circuit/v1/query"; +import { AccountResponse } from "./types/cosmos/circuit/v1/query"; +export { MsgTripCircuitBreakerResponse, MsgResetCircuitBreaker, GenesisAccountPermissions, AccountsResponse, DisabledListResponse, MsgAuthorizeCircuitBreakerResponse, QueryAccountsRequest, QueryDisabledListRequest, MsgAuthorizeCircuitBreaker, MsgTripCircuitBreaker, Permissions, GenesisState, MsgResetCircuitBreakerResponse, QueryAccountRequest, AccountResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -34,60 +34,46 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendGenesisAccountPermissions({ value, fee, memo }) { - if (!signer) { - throw new Error('TxClient:sendGenesisAccountPermissions: Unable to sign Tx. Signer is not present.'); - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.genesisAccountPermissions({ value: GenesisAccountPermissions.fromPartial(value) }); - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); - } - catch (e) { - throw new Error('TxClient:sendGenesisAccountPermissions: Could not broadcast Tx: ' + e.message); - } - }, - async sendGenesisState({ value, fee, memo }) { + async sendMsgTripCircuitBreakerResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgTripCircuitBreakerResponse: Unable to 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.msgTripCircuitBreakerResponse({ value: MsgTripCircuitBreakerResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgTripCircuitBreakerResponse: Could not broadcast Tx: ' + e.message); } }, - async sendAccountResponse({ value, fee, memo }) { + async sendMsgResetCircuitBreaker({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendAccountResponse: 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.accountResponse({ value: AccountResponse.fromPartial(value) }); + let msg = this.msgResetCircuitBreaker({ value: MsgResetCircuitBreaker.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendAccountResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgResetCircuitBreaker: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAccountsRequest({ value, fee, memo }) { + async sendGenesisAccountPermissions({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAccountsRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendGenesisAccountPermissions: Unable to 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.genesisAccountPermissions({ value: GenesisAccountPermissions.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAccountsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisAccountPermissions: Could not broadcast Tx: ' + e.message); } }, async sendAccountsResponse({ value, fee, memo }) { @@ -104,32 +90,18 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendAccountsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAccountRequest({ value, fee, memo }) { - if (!signer) { - 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.queryAccountRequest({ value: QueryAccountRequest.fromPartial(value) }); - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); - } - catch (e) { - throw new Error('TxClient:sendQueryAccountRequest: Could not broadcast Tx: ' + e.message); - } - }, - async sendQueryDisabledListRequest({ value, fee, memo }) { + async sendDisabledListResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDisabledListRequest: 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.queryDisabledListRequest({ value: QueryDisabledListRequest.fromPartial(value) }); + let msg = this.disabledListResponse({ value: DisabledListResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDisabledListRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDisabledListResponse: Could not broadcast Tx: ' + e.message); } }, async sendMsgAuthorizeCircuitBreakerResponse({ value, fee, memo }) { @@ -146,32 +118,32 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgAuthorizeCircuitBreakerResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgResetCircuitBreakerResponse({ value, fee, memo }) { + async sendQueryAccountsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgResetCircuitBreakerResponse: 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.msgResetCircuitBreakerResponse({ value: MsgResetCircuitBreakerResponse.fromPartial(value) }); + let msg = this.queryAccountsRequest({ value: QueryAccountsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgResetCircuitBreakerResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAccountsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendDisabledListResponse({ value, fee, memo }) { + async sendQueryDisabledListRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDisabledListResponse: 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.disabledListResponse({ value: DisabledListResponse.fromPartial(value) }); + let msg = this.queryDisabledListRequest({ value: QueryDisabledListRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDisabledListResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDisabledListRequest: Could not broadcast Tx: ' + e.message); } }, async sendMsgAuthorizeCircuitBreaker({ value, fee, memo }) { @@ -202,102 +174,114 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgTripCircuitBreaker: Could not broadcast Tx: ' + e.message); } }, - async sendMsgResetCircuitBreaker({ value, fee, memo }) { + async sendPermissions({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgResetCircuitBreaker: 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.msgResetCircuitBreaker({ value: MsgResetCircuitBreaker.fromPartial(value) }); + let msg = this.permissions({ value: Permissions.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgResetCircuitBreaker: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendPermissions: Could not broadcast Tx: ' + e.message); } }, - async sendPermissions({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendPermissions: 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.permissions({ value: Permissions.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendPermissions: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendMsgTripCircuitBreakerResponse({ value, fee, memo }) { + async sendMsgResetCircuitBreakerResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgTripCircuitBreakerResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgResetCircuitBreakerResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgTripCircuitBreakerResponse({ value: MsgTripCircuitBreakerResponse.fromPartial(value) }); + let msg = this.msgResetCircuitBreakerResponse({ value: MsgResetCircuitBreakerResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgTripCircuitBreakerResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgResetCircuitBreakerResponse: Could not broadcast Tx: ' + e.message); } }, - genesisAccountPermissions({ value }) { + async sendQueryAccountRequest({ value, fee, memo }) { + if (!signer) { + throw new Error('TxClient:sendQueryAccountRequest: Unable to sign Tx. Signer is not present.'); + } try { - return { typeUrl: "/cosmos.circuit.v1.GenesisAccountPermissions", value: GenesisAccountPermissions.fromPartial(value) }; + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); + let msg = this.queryAccountRequest({ value: QueryAccountRequest.fromPartial(value) }); + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:GenesisAccountPermissions: Could not create message: ' + e.message); + throw new Error('TxClient:sendQueryAccountRequest: Could not broadcast Tx: ' + e.message); } }, - genesisState({ value }) { + async sendAccountResponse({ value, fee, memo }) { + if (!signer) { + throw new Error('TxClient:sendAccountResponse: Unable to sign Tx. Signer is not present.'); + } try { - return { typeUrl: "/cosmos.circuit.v1.GenesisState", value: GenesisState.fromPartial(value) }; + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); + let msg = this.accountResponse({ value: AccountResponse.fromPartial(value) }); + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:sendAccountResponse: Could not broadcast Tx: ' + e.message); } }, - accountResponse({ value }) { + msgTripCircuitBreakerResponse({ value }) { try { - return { typeUrl: "/cosmos.circuit.v1.AccountResponse", value: AccountResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.circuit.v1.MsgTripCircuitBreakerResponse", value: MsgTripCircuitBreakerResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:AccountResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgTripCircuitBreakerResponse: Could not create message: ' + e.message); } }, - queryAccountsRequest({ value }) { + msgResetCircuitBreaker({ value }) { try { - return { typeUrl: "/cosmos.circuit.v1.QueryAccountsRequest", value: QueryAccountsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.circuit.v1.MsgResetCircuitBreaker", value: MsgResetCircuitBreaker.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAccountsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgResetCircuitBreaker: Could not create message: ' + e.message); } }, - accountsResponse({ value }) { + genesisAccountPermissions({ value }) { try { - return { typeUrl: "/cosmos.circuit.v1.AccountsResponse", value: AccountsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.circuit.v1.GenesisAccountPermissions", value: GenesisAccountPermissions.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:AccountsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisAccountPermissions: Could not create message: ' + e.message); } }, - queryAccountRequest({ value }) { + accountsResponse({ value }) { try { - return { typeUrl: "/cosmos.circuit.v1.QueryAccountRequest", value: QueryAccountRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.circuit.v1.AccountsResponse", value: AccountsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAccountRequest: Could not create message: ' + e.message); + throw new Error('TxClient:AccountsResponse: Could not create message: ' + e.message); } }, - queryDisabledListRequest({ value }) { + disabledListResponse({ value }) { try { - return { typeUrl: "/cosmos.circuit.v1.QueryDisabledListRequest", value: QueryDisabledListRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.circuit.v1.DisabledListResponse", value: DisabledListResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDisabledListRequest: Could not create message: ' + e.message); + throw new Error('TxClient:DisabledListResponse: Could not create message: ' + e.message); } }, msgAuthorizeCircuitBreakerResponse({ value }) { @@ -308,20 +292,20 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgAuthorizeCircuitBreakerResponse: Could not create message: ' + e.message); } }, - msgResetCircuitBreakerResponse({ value }) { + queryAccountsRequest({ value }) { try { - return { typeUrl: "/cosmos.circuit.v1.MsgResetCircuitBreakerResponse", value: MsgResetCircuitBreakerResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.circuit.v1.QueryAccountsRequest", value: QueryAccountsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgResetCircuitBreakerResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAccountsRequest: Could not create message: ' + e.message); } }, - disabledListResponse({ value }) { + queryDisabledListRequest({ value }) { try { - return { typeUrl: "/cosmos.circuit.v1.DisabledListResponse", value: DisabledListResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.circuit.v1.QueryDisabledListRequest", value: QueryDisabledListRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DisabledListResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDisabledListRequest: Could not create message: ' + e.message); } }, msgAuthorizeCircuitBreaker({ value }) { @@ -340,28 +324,44 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgTripCircuitBreaker: Could not create message: ' + e.message); } }, - msgResetCircuitBreaker({ value }) { + permissions({ value }) { try { - return { typeUrl: "/cosmos.circuit.v1.MsgResetCircuitBreaker", value: MsgResetCircuitBreaker.fromPartial(value) }; + return { typeUrl: "/cosmos.circuit.v1.Permissions", value: Permissions.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgResetCircuitBreaker: Could not create message: ' + e.message); + throw new Error('TxClient:Permissions: Could not create message: ' + e.message); } }, - permissions({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/cosmos.circuit.v1.Permissions", value: Permissions.fromPartial(value) }; + return { typeUrl: "/cosmos.circuit.v1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Permissions: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - msgTripCircuitBreakerResponse({ value }) { + msgResetCircuitBreakerResponse({ value }) { try { - return { typeUrl: "/cosmos.circuit.v1.MsgTripCircuitBreakerResponse", value: MsgTripCircuitBreakerResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.circuit.v1.MsgResetCircuitBreakerResponse", value: MsgResetCircuitBreakerResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgTripCircuitBreakerResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgResetCircuitBreakerResponse: Could not create message: ' + e.message); + } + }, + queryAccountRequest({ value }) { + try { + return { typeUrl: "/cosmos.circuit.v1.QueryAccountRequest", value: QueryAccountRequest.fromPartial(value) }; + } + catch (e) { + throw new Error('TxClient:QueryAccountRequest: Could not create message: ' + e.message); + } + }, + accountResponse({ value }) { + try { + return { typeUrl: "/cosmos.circuit.v1.AccountResponse", value: AccountResponse.fromPartial(value) }; + } + catch (e) { + throw new Error('TxClient:AccountResponse: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.circuit.v1/registry.js b/ts-client/lib/cosmos.circuit.v1/registry.js index a41ab0d8c..228cf0656 100644 --- a/ts-client/lib/cosmos.circuit.v1/registry.js +++ b/ts-client/lib/cosmos.circuit.v1/registry.js @@ -1,33 +1,33 @@ +import { MsgTripCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; +import { MsgResetCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { GenesisAccountPermissions } from "./types/cosmos/circuit/v1/types"; -import { GenesisState } from "./types/cosmos/circuit/v1/types"; -import { AccountResponse } from "./types/cosmos/circuit/v1/query"; -import { QueryAccountsRequest } from "./types/cosmos/circuit/v1/query"; import { AccountsResponse } from "./types/cosmos/circuit/v1/query"; -import { QueryAccountRequest } from "./types/cosmos/circuit/v1/query"; -import { QueryDisabledListRequest } from "./types/cosmos/circuit/v1/query"; -import { MsgAuthorizeCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; -import { MsgResetCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; import { DisabledListResponse } from "./types/cosmos/circuit/v1/query"; +import { MsgAuthorizeCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; +import { QueryAccountsRequest } from "./types/cosmos/circuit/v1/query"; +import { QueryDisabledListRequest } from "./types/cosmos/circuit/v1/query"; import { MsgAuthorizeCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { MsgTripCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; -import { MsgResetCircuitBreaker } from "./types/cosmos/circuit/v1/tx"; import { Permissions } from "./types/cosmos/circuit/v1/types"; -import { MsgTripCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; +import { GenesisState } from "./types/cosmos/circuit/v1/types"; +import { MsgResetCircuitBreakerResponse } from "./types/cosmos/circuit/v1/tx"; +import { QueryAccountRequest } from "./types/cosmos/circuit/v1/query"; +import { AccountResponse } from "./types/cosmos/circuit/v1/query"; const msgTypes = [ + ["/cosmos.circuit.v1.MsgTripCircuitBreakerResponse", MsgTripCircuitBreakerResponse], + ["/cosmos.circuit.v1.MsgResetCircuitBreaker", MsgResetCircuitBreaker], ["/cosmos.circuit.v1.GenesisAccountPermissions", GenesisAccountPermissions], - ["/cosmos.circuit.v1.GenesisState", GenesisState], - ["/cosmos.circuit.v1.AccountResponse", AccountResponse], - ["/cosmos.circuit.v1.QueryAccountsRequest", QueryAccountsRequest], ["/cosmos.circuit.v1.AccountsResponse", AccountsResponse], - ["/cosmos.circuit.v1.QueryAccountRequest", QueryAccountRequest], - ["/cosmos.circuit.v1.QueryDisabledListRequest", QueryDisabledListRequest], - ["/cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse", MsgAuthorizeCircuitBreakerResponse], - ["/cosmos.circuit.v1.MsgResetCircuitBreakerResponse", MsgResetCircuitBreakerResponse], ["/cosmos.circuit.v1.DisabledListResponse", DisabledListResponse], + ["/cosmos.circuit.v1.MsgAuthorizeCircuitBreakerResponse", MsgAuthorizeCircuitBreakerResponse], + ["/cosmos.circuit.v1.QueryAccountsRequest", QueryAccountsRequest], + ["/cosmos.circuit.v1.QueryDisabledListRequest", QueryDisabledListRequest], ["/cosmos.circuit.v1.MsgAuthorizeCircuitBreaker", MsgAuthorizeCircuitBreaker], ["/cosmos.circuit.v1.MsgTripCircuitBreaker", MsgTripCircuitBreaker], - ["/cosmos.circuit.v1.MsgResetCircuitBreaker", MsgResetCircuitBreaker], ["/cosmos.circuit.v1.Permissions", Permissions], - ["/cosmos.circuit.v1.MsgTripCircuitBreakerResponse", MsgTripCircuitBreakerResponse], + ["/cosmos.circuit.v1.GenesisState", GenesisState], + ["/cosmos.circuit.v1.MsgResetCircuitBreakerResponse", MsgResetCircuitBreakerResponse], + ["/cosmos.circuit.v1.QueryAccountRequest", QueryAccountRequest], + ["/cosmos.circuit.v1.AccountResponse", AccountResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.consensus.v1/module.d.ts b/ts-client/lib/cosmos.consensus.v1/module.d.ts index a5fce9d6f..70aa85466 100644 --- a/ts-client/lib/cosmos.consensus.v1/module.d.ts +++ b/ts-client/lib/cosmos.consensus.v1/module.d.ts @@ -2,16 +2,11 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; 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 { MsgUpdateParams } from "./types/cosmos/consensus/v1/tx"; import { MsgUpdateParamsResponse } from "./types/cosmos/consensus/v1/tx"; -export { MsgUpdateParams, QueryParamsRequest, QueryParamsResponse, MsgUpdateParamsResponse }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams; - fee?: StdFee; - memo?: string; -}; +export { QueryParamsRequest, QueryParamsResponse, MsgUpdateParams, MsgUpdateParamsResponse }; type sendQueryParamsRequestParams = { value: QueryParamsRequest; fee?: StdFee; @@ -22,20 +17,25 @@ type sendQueryParamsResponseParams = { fee?: StdFee; memo?: string; }; +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams; + fee?: StdFee; + memo?: string; +}; type sendMsgUpdateParamsResponseParams = { value: MsgUpdateParamsResponse; fee?: StdFee; memo?: string; }; -type msgUpdateParamsParams = { - value: MsgUpdateParams; -}; type queryParamsRequestParams = { value: QueryParamsRequest; }; type queryParamsResponseParams = { value: QueryParamsResponse; }; +type msgUpdateParamsParams = { + value: MsgUpdateParams; +}; type msgUpdateParamsResponseParams = { value: MsgUpdateParamsResponse; }; @@ -46,13 +46,13 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; + sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; }; interface QueryClientOptions { diff --git a/ts-client/lib/cosmos.consensus.v1/module.js b/ts-client/lib/cosmos.consensus.v1/module.js index 222eeb656..7fe929c69 100644 --- a/ts-client/lib/cosmos.consensus.v1/module.js +++ b/ts-client/lib/cosmos.consensus.v1/module.js @@ -3,11 +3,11 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; 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 { MsgUpdateParams } from "./types/cosmos/consensus/v1/tx"; import { MsgUpdateParamsResponse } from "./types/cosmos/consensus/v1/tx"; -export { MsgUpdateParams, QueryParamsRequest, QueryParamsResponse, MsgUpdateParamsResponse }; +export { QueryParamsRequest, QueryParamsResponse, MsgUpdateParams, MsgUpdateParamsResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -23,46 +23,46 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendMsgUpdateParams({ value, fee, memo }) { + async sendQueryParamsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsRequest({ value, fee, memo }) { + async sendQueryParamsResponse({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsResponse({ value, fee, memo }) { + async sendMsgUpdateParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: 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.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); } }, async sendMsgUpdateParamsResponse({ value, fee, memo }) { @@ -79,14 +79,6 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, - msgUpdateParams({ value }) { - try { - return { typeUrl: "/cosmos.consensus.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; - } - catch (e) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); - } - }, queryParamsRequest({ value }) { try { return { typeUrl: "/cosmos.consensus.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; @@ -103,6 +95,14 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); } }, + msgUpdateParams({ value }) { + try { + return { typeUrl: "/cosmos.consensus.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; + } + catch (e) { + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); + } + }, msgUpdateParamsResponse({ value }) { try { return { typeUrl: "/cosmos.consensus.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; diff --git a/ts-client/lib/cosmos.consensus.v1/registry.js b/ts-client/lib/cosmos.consensus.v1/registry.js index 23a784f58..35fb3b5f2 100644 --- a/ts-client/lib/cosmos.consensus.v1/registry.js +++ b/ts-client/lib/cosmos.consensus.v1/registry.js @@ -1,11 +1,11 @@ -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 { MsgUpdateParams } from "./types/cosmos/consensus/v1/tx"; import { MsgUpdateParamsResponse } from "./types/cosmos/consensus/v1/tx"; const msgTypes = [ - ["/cosmos.consensus.v1.MsgUpdateParams", MsgUpdateParams], ["/cosmos.consensus.v1.QueryParamsRequest", QueryParamsRequest], ["/cosmos.consensus.v1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.consensus.v1.MsgUpdateParams", MsgUpdateParams], ["/cosmos.consensus.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.crisis.v1beta1/module.d.ts b/ts-client/lib/cosmos.crisis.v1beta1/module.d.ts index 9722e1259..192b57257 100644 --- a/ts-client/lib/cosmos.crisis.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.crisis.v1beta1/module.d.ts @@ -3,16 +3,21 @@ import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/pr import { IgniteClient } from "../client"; import { Api } from "./rest"; import { MsgVerifyInvariant } from "./types/cosmos/crisis/v1beta1/tx"; +import { GenesisState } from "./types/cosmos/crisis/v1beta1/genesis"; import { MsgVerifyInvariantResponse } from "./types/cosmos/crisis/v1beta1/tx"; import { MsgUpdateParams } from "./types/cosmos/crisis/v1beta1/tx"; import { MsgUpdateParamsResponse } from "./types/cosmos/crisis/v1beta1/tx"; -import { GenesisState } from "./types/cosmos/crisis/v1beta1/genesis"; -export { MsgVerifyInvariant, MsgVerifyInvariantResponse, MsgUpdateParams, MsgUpdateParamsResponse, GenesisState }; +export { MsgVerifyInvariant, GenesisState, MsgVerifyInvariantResponse, MsgUpdateParams, MsgUpdateParamsResponse }; type sendMsgVerifyInvariantParams = { value: MsgVerifyInvariant; fee?: StdFee; memo?: string; }; +type sendGenesisStateParams = { + value: GenesisState; + fee?: StdFee; + memo?: string; +}; type sendMsgVerifyInvariantResponseParams = { value: MsgVerifyInvariantResponse; fee?: StdFee; @@ -28,14 +33,12 @@ type sendMsgUpdateParamsResponseParams = { fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; - fee?: StdFee; - memo?: string; -}; type msgVerifyInvariantParams = { value: MsgVerifyInvariant; }; +type genesisStateParams = { + value: GenesisState; +}; type msgVerifyInvariantResponseParams = { value: MsgVerifyInvariantResponse; }; @@ -45,9 +48,6 @@ type msgUpdateParamsParams = { type msgUpdateParamsResponseParams = { value: MsgUpdateParamsResponse; }; -type genesisStateParams = { - value: GenesisState; -}; export declare const registry: Registry; interface TxClientOptions { addr: string; @@ -56,15 +56,15 @@ interface TxClientOptions { } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { sendMsgVerifyInvariant({ value, fee, memo }: sendMsgVerifyInvariantParams): Promise; + sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; sendMsgVerifyInvariantResponse({ value, fee, memo }: sendMsgVerifyInvariantResponseParams): Promise; sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; - sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; msgVerifyInvariant({ value }: msgVerifyInvariantParams): EncodeObject; + genesisState({ value }: genesisStateParams): EncodeObject; msgVerifyInvariantResponse({ value }: msgVerifyInvariantResponseParams): EncodeObject; msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; - genesisState({ value }: genesisStateParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.crisis.v1beta1/module.js b/ts-client/lib/cosmos.crisis.v1beta1/module.js index fad89a605..5ff3c90d1 100644 --- a/ts-client/lib/cosmos.crisis.v1beta1/module.js +++ b/ts-client/lib/cosmos.crisis.v1beta1/module.js @@ -4,11 +4,11 @@ import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; import { MsgVerifyInvariant } from "./types/cosmos/crisis/v1beta1/tx"; +import { GenesisState } from "./types/cosmos/crisis/v1beta1/genesis"; import { MsgVerifyInvariantResponse } from "./types/cosmos/crisis/v1beta1/tx"; import { MsgUpdateParams } from "./types/cosmos/crisis/v1beta1/tx"; import { MsgUpdateParamsResponse } from "./types/cosmos/crisis/v1beta1/tx"; -import { GenesisState } from "./types/cosmos/crisis/v1beta1/genesis"; -export { MsgVerifyInvariant, MsgVerifyInvariantResponse, MsgUpdateParams, MsgUpdateParamsResponse, GenesisState }; +export { MsgVerifyInvariant, GenesisState, MsgVerifyInvariantResponse, MsgUpdateParams, MsgUpdateParamsResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -38,6 +38,20 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgVerifyInvariant: Could not broadcast Tx: ' + e.message); } }, + async sendGenesisState({ value, fee, memo }) { + 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) { + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + } + }, async sendMsgVerifyInvariantResponse({ value, fee, memo }) { if (!signer) { throw new Error('TxClient:sendMsgVerifyInvariantResponse: Unable to sign Tx. Signer is not present.'); @@ -80,26 +94,20 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { - if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.'); - } + msgVerifyInvariant({ value }) { 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); + return { typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", value: MsgVerifyInvariant.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:MsgVerifyInvariant: Could not create message: ' + e.message); } }, - msgVerifyInvariant({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", value: MsgVerifyInvariant.fromPartial(value) }; + return { typeUrl: "/cosmos.crisis.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgVerifyInvariant: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, msgVerifyInvariantResponse({ value }) { @@ -126,14 +134,6 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); } }, - genesisState({ value }) { - try { - return { typeUrl: "/cosmos.crisis.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; - } - catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); - } - }, }; }; export const queryClient = ({ addr: addr } = { addr: "http://localhost:1317" }) => { diff --git a/ts-client/lib/cosmos.crisis.v1beta1/registry.js b/ts-client/lib/cosmos.crisis.v1beta1/registry.js index 7de39c3b2..4c89444a6 100644 --- a/ts-client/lib/cosmos.crisis.v1beta1/registry.js +++ b/ts-client/lib/cosmos.crisis.v1beta1/registry.js @@ -1,13 +1,13 @@ import { MsgVerifyInvariant } from "./types/cosmos/crisis/v1beta1/tx"; +import { GenesisState } from "./types/cosmos/crisis/v1beta1/genesis"; import { MsgVerifyInvariantResponse } from "./types/cosmos/crisis/v1beta1/tx"; import { MsgUpdateParams } from "./types/cosmos/crisis/v1beta1/tx"; import { MsgUpdateParamsResponse } from "./types/cosmos/crisis/v1beta1/tx"; -import { GenesisState } from "./types/cosmos/crisis/v1beta1/genesis"; const msgTypes = [ ["/cosmos.crisis.v1beta1.MsgVerifyInvariant", MsgVerifyInvariant], + ["/cosmos.crisis.v1beta1.GenesisState", GenesisState], ["/cosmos.crisis.v1beta1.MsgVerifyInvariantResponse", MsgVerifyInvariantResponse], ["/cosmos.crisis.v1beta1.MsgUpdateParams", MsgUpdateParams], ["/cosmos.crisis.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/cosmos.crisis.v1beta1.GenesisState", GenesisState], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.distribution.v1beta1/module.d.ts b/ts-client/lib/cosmos.distribution.v1beta1/module.d.ts index bece531c9..41080b79b 100644 --- a/ts-client/lib/cosmos.distribution.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.distribution.v1beta1/module.d.ts @@ -2,123 +2,123 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgCommunityPoolSpendResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgDepositValidatorRewardsPool } from "./types/cosmos/distribution/v1beta1/tx"; -import { DelegatorStartingInfo } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgSetWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorOutstandingRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegationRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorSlashEvent } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgFundCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorSlashesResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorAccumulatedCommission } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgUpdateParamsResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgDepositValidatorRewardsPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryDelegationTotalRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorWithdrawAddressRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryCommunityPoolRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; import { ValidatorSlashEvents } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryDelegationRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; import { CommunityPoolSpendProposal } from "./types/cosmos/distribution/v1beta1/distribution"; -import { CommunityPoolSpendProposalWithDeposit } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorDistributionInfoResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { DelegatorWithdrawInfo } from "./types/cosmos/distribution/v1beta1/genesis"; +import { QueryValidatorDistributionInfoRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryValidatorOutstandingRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryValidatorSlashesRequest } from "./types/cosmos/distribution/v1beta1/query"; import { Params } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgWithdrawDelegatorRewardResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryDelegationTotalRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorValidatorsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorOutstandingRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { MsgWithdrawValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; -import { FeePool } from "./types/cosmos/distribution/v1beta1/distribution"; +import { DelegationDelegatorReward } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorAccumulatedCommissionRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryParamsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryValidatorDistributionInfoRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegationRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorCurrentRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; import { QueryParamsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryValidatorCommissionRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorValidatorsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorOutstandingRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgDepositValidatorRewardsPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryCommunityPoolRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorAccumulatedCommission } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorHistoricalRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { GenesisState } from "./types/cosmos/distribution/v1beta1/genesis"; -import { ValidatorHistoricalRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { ValidatorCurrentRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { DelegatorStartingInfoRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { QueryDelegatorValidatorsResponse } from "./types/cosmos/distribution/v1beta1/query"; import { ValidatorOutstandingRewards } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorOutstandingRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { GenesisState } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgSetWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgCommunityPoolSpendResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorOutstandingRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegatorValidatorsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorSlashEvent } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorSlashEventRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { QueryValidatorCommissionRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { FeePool } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx"; +import { CommunityPoolSpendProposalWithDeposit } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgWithdrawValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgDepositValidatorRewardsPool } from "./types/cosmos/distribution/v1beta1/tx"; +import { DelegatorWithdrawInfo } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgFundCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { ValidatorHistoricalRewards } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorCurrentRewards } from "./types/cosmos/distribution/v1beta1/distribution"; -import { DelegationDelegatorReward } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryValidatorSlashesRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorSlashesResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgWithdrawDelegatorRewardResponse } from "./types/cosmos/distribution/v1beta1/tx"; import { QueryDelegatorWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { DelegatorStartingInfoRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -export { MsgWithdrawDelegatorReward, MsgCommunityPoolSpendResponse, MsgDepositValidatorRewardsPool, DelegatorStartingInfo, MsgSetWithdrawAddressResponse, MsgCommunityPoolSpend, QueryValidatorOutstandingRewardsResponse, QueryDelegationRewardsResponse, ValidatorSlashEvent, MsgFundCommunityPoolResponse, QueryValidatorSlashesResponse, ValidatorAccumulatedCommission, MsgUpdateParamsResponse, MsgDepositValidatorRewardsPoolResponse, QueryDelegationTotalRewardsResponse, QueryDelegatorWithdrawAddressRequest, QueryCommunityPoolRequest, ValidatorSlashEvents, CommunityPoolSpendProposal, CommunityPoolSpendProposalWithDeposit, MsgUpdateParams, QueryValidatorDistributionInfoResponse, DelegatorWithdrawInfo, Params, MsgWithdrawDelegatorRewardResponse, QueryDelegationTotalRewardsRequest, QueryDelegatorValidatorsRequest, ValidatorOutstandingRewardsRecord, MsgWithdrawValidatorCommissionResponse, MsgFundCommunityPool, FeePool, ValidatorAccumulatedCommissionRecord, MsgWithdrawValidatorCommission, QueryParamsRequest, QueryValidatorDistributionInfoRequest, QueryValidatorCommissionResponse, QueryDelegationRewardsRequest, QueryCommunityPoolResponse, ValidatorCurrentRewardsRecord, QueryParamsResponse, QueryValidatorCommissionRequest, QueryDelegatorValidatorsResponse, ValidatorHistoricalRewardsRecord, GenesisState, ValidatorHistoricalRewards, ValidatorOutstandingRewards, MsgSetWithdrawAddress, QueryValidatorOutstandingRewardsRequest, ValidatorSlashEventRecord, ValidatorCurrentRewards, DelegationDelegatorReward, QueryValidatorSlashesRequest, QueryDelegatorWithdrawAddressResponse, DelegatorStartingInfoRecord }; -type sendMsgWithdrawDelegatorRewardParams = { - value: MsgWithdrawDelegatorReward; +import { DelegatorStartingInfo } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryValidatorDistributionInfoResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationTotalRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationTotalRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegatorWithdrawAddressRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/query"; +export { MsgSetWithdrawAddress, ValidatorSlashEvents, QueryDelegationRewardsResponse, CommunityPoolSpendProposal, QueryValidatorDistributionInfoRequest, QueryValidatorOutstandingRewardsRequest, QueryValidatorSlashesRequest, Params, DelegationDelegatorReward, ValidatorAccumulatedCommissionRecord, QueryParamsResponse, ValidatorOutstandingRewardsRecord, MsgUpdateParams, MsgDepositValidatorRewardsPoolResponse, QueryCommunityPoolRequest, ValidatorAccumulatedCommission, ValidatorHistoricalRewardsRecord, ValidatorCurrentRewardsRecord, DelegatorStartingInfoRecord, QueryDelegatorValidatorsResponse, ValidatorOutstandingRewards, GenesisState, MsgSetWithdrawAddressResponse, MsgWithdrawDelegatorReward, MsgFundCommunityPool, MsgCommunityPoolSpendResponse, QueryValidatorOutstandingRewardsResponse, QueryDelegatorValidatorsRequest, ValidatorSlashEvent, ValidatorSlashEventRecord, QueryValidatorCommissionRequest, QueryDelegationRewardsRequest, FeePool, MsgCommunityPoolSpend, CommunityPoolSpendProposalWithDeposit, QueryValidatorCommissionResponse, MsgWithdrawValidatorCommissionResponse, MsgDepositValidatorRewardsPool, DelegatorWithdrawInfo, MsgWithdrawValidatorCommission, MsgFundCommunityPoolResponse, ValidatorHistoricalRewards, ValidatorCurrentRewards, QueryParamsRequest, MsgUpdateParamsResponse, QueryValidatorSlashesResponse, MsgWithdrawDelegatorRewardResponse, QueryDelegatorWithdrawAddressResponse, DelegatorStartingInfo, QueryValidatorDistributionInfoResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorWithdrawAddressRequest, QueryCommunityPoolResponse }; +type sendMsgSetWithdrawAddressParams = { + value: MsgSetWithdrawAddress; fee?: StdFee; memo?: string; }; -type sendMsgCommunityPoolSpendResponseParams = { - value: MsgCommunityPoolSpendResponse; +type sendValidatorSlashEventsParams = { + value: ValidatorSlashEvents; fee?: StdFee; memo?: string; }; -type sendMsgDepositValidatorRewardsPoolParams = { - value: MsgDepositValidatorRewardsPool; +type sendQueryDelegationRewardsResponseParams = { + value: QueryDelegationRewardsResponse; fee?: StdFee; memo?: string; }; -type sendDelegatorStartingInfoParams = { - value: DelegatorStartingInfo; +type sendCommunityPoolSpendProposalParams = { + value: CommunityPoolSpendProposal; fee?: StdFee; memo?: string; }; -type sendMsgSetWithdrawAddressResponseParams = { - value: MsgSetWithdrawAddressResponse; +type sendQueryValidatorDistributionInfoRequestParams = { + value: QueryValidatorDistributionInfoRequest; fee?: StdFee; memo?: string; }; -type sendMsgCommunityPoolSpendParams = { - value: MsgCommunityPoolSpend; +type sendQueryValidatorOutstandingRewardsRequestParams = { + value: QueryValidatorOutstandingRewardsRequest; fee?: StdFee; memo?: string; }; -type sendQueryValidatorOutstandingRewardsResponseParams = { - value: QueryValidatorOutstandingRewardsResponse; +type sendQueryValidatorSlashesRequestParams = { + value: QueryValidatorSlashesRequest; fee?: StdFee; memo?: string; }; -type sendQueryDelegationRewardsResponseParams = { - value: QueryDelegationRewardsResponse; +type sendParamsParams = { + value: Params; fee?: StdFee; memo?: string; }; -type sendValidatorSlashEventParams = { - value: ValidatorSlashEvent; +type sendDelegationDelegatorRewardParams = { + value: DelegationDelegatorReward; fee?: StdFee; memo?: string; }; -type sendMsgFundCommunityPoolResponseParams = { - value: MsgFundCommunityPoolResponse; +type sendValidatorAccumulatedCommissionRecordParams = { + value: ValidatorAccumulatedCommissionRecord; fee?: StdFee; memo?: string; }; -type sendQueryValidatorSlashesResponseParams = { - value: QueryValidatorSlashesResponse; +type sendQueryParamsResponseParams = { + value: QueryParamsResponse; fee?: StdFee; memo?: string; }; -type sendValidatorAccumulatedCommissionParams = { - value: ValidatorAccumulatedCommission; +type sendValidatorOutstandingRewardsRecordParams = { + value: ValidatorOutstandingRewardsRecord; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams; fee?: StdFee; memo?: string; }; @@ -127,108 +127,108 @@ type sendMsgDepositValidatorRewardsPoolResponseParams = { fee?: StdFee; memo?: string; }; -type sendQueryDelegationTotalRewardsResponseParams = { - value: QueryDelegationTotalRewardsResponse; +type sendQueryCommunityPoolRequestParams = { + value: QueryCommunityPoolRequest; fee?: StdFee; memo?: string; }; -type sendQueryDelegatorWithdrawAddressRequestParams = { - value: QueryDelegatorWithdrawAddressRequest; +type sendValidatorAccumulatedCommissionParams = { + value: ValidatorAccumulatedCommission; fee?: StdFee; memo?: string; }; -type sendQueryCommunityPoolRequestParams = { - value: QueryCommunityPoolRequest; +type sendValidatorHistoricalRewardsRecordParams = { + value: ValidatorHistoricalRewardsRecord; fee?: StdFee; memo?: string; }; -type sendValidatorSlashEventsParams = { - value: ValidatorSlashEvents; +type sendValidatorCurrentRewardsRecordParams = { + value: ValidatorCurrentRewardsRecord; fee?: StdFee; memo?: string; }; -type sendCommunityPoolSpendProposalParams = { - value: CommunityPoolSpendProposal; +type sendDelegatorStartingInfoRecordParams = { + value: DelegatorStartingInfoRecord; fee?: StdFee; memo?: string; }; -type sendCommunityPoolSpendProposalWithDepositParams = { - value: CommunityPoolSpendProposalWithDeposit; +type sendQueryDelegatorValidatorsResponseParams = { + value: QueryDelegatorValidatorsResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams; +type sendValidatorOutstandingRewardsParams = { + value: ValidatorOutstandingRewards; fee?: StdFee; memo?: string; }; -type sendQueryValidatorDistributionInfoResponseParams = { - value: QueryValidatorDistributionInfoResponse; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendDelegatorWithdrawInfoParams = { - value: DelegatorWithdrawInfo; +type sendMsgSetWithdrawAddressResponseParams = { + value: MsgSetWithdrawAddressResponse; fee?: StdFee; memo?: string; }; -type sendParamsParams = { - value: Params; +type sendMsgWithdrawDelegatorRewardParams = { + value: MsgWithdrawDelegatorReward; fee?: StdFee; memo?: string; }; -type sendMsgWithdrawDelegatorRewardResponseParams = { - value: MsgWithdrawDelegatorRewardResponse; +type sendMsgFundCommunityPoolParams = { + value: MsgFundCommunityPool; fee?: StdFee; memo?: string; }; -type sendQueryDelegationTotalRewardsRequestParams = { - value: QueryDelegationTotalRewardsRequest; +type sendMsgCommunityPoolSpendResponseParams = { + value: MsgCommunityPoolSpendResponse; fee?: StdFee; memo?: string; }; -type sendQueryDelegatorValidatorsRequestParams = { - value: QueryDelegatorValidatorsRequest; +type sendQueryValidatorOutstandingRewardsResponseParams = { + value: QueryValidatorOutstandingRewardsResponse; fee?: StdFee; memo?: string; }; -type sendValidatorOutstandingRewardsRecordParams = { - value: ValidatorOutstandingRewardsRecord; +type sendQueryDelegatorValidatorsRequestParams = { + value: QueryDelegatorValidatorsRequest; fee?: StdFee; memo?: string; }; -type sendMsgWithdrawValidatorCommissionResponseParams = { - value: MsgWithdrawValidatorCommissionResponse; +type sendValidatorSlashEventParams = { + value: ValidatorSlashEvent; fee?: StdFee; memo?: string; }; -type sendMsgFundCommunityPoolParams = { - value: MsgFundCommunityPool; +type sendValidatorSlashEventRecordParams = { + value: ValidatorSlashEventRecord; fee?: StdFee; memo?: string; }; -type sendFeePoolParams = { - value: FeePool; +type sendQueryValidatorCommissionRequestParams = { + value: QueryValidatorCommissionRequest; fee?: StdFee; memo?: string; }; -type sendValidatorAccumulatedCommissionRecordParams = { - value: ValidatorAccumulatedCommissionRecord; +type sendQueryDelegationRewardsRequestParams = { + value: QueryDelegationRewardsRequest; fee?: StdFee; memo?: string; }; -type sendMsgWithdrawValidatorCommissionParams = { - value: MsgWithdrawValidatorCommission; +type sendFeePoolParams = { + value: FeePool; fee?: StdFee; memo?: string; }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest; +type sendMsgCommunityPoolSpendParams = { + value: MsgCommunityPoolSpend; fee?: StdFee; memo?: string; }; -type sendQueryValidatorDistributionInfoRequestParams = { - value: QueryValidatorDistributionInfoRequest; +type sendCommunityPoolSpendProposalWithDepositParams = { + value: CommunityPoolSpendProposalWithDeposit; fee?: StdFee; memo?: string; }; @@ -237,257 +237,257 @@ type sendQueryValidatorCommissionResponseParams = { fee?: StdFee; memo?: string; }; -type sendQueryDelegationRewardsRequestParams = { - value: QueryDelegationRewardsRequest; +type sendMsgWithdrawValidatorCommissionResponseParams = { + value: MsgWithdrawValidatorCommissionResponse; fee?: StdFee; memo?: string; }; -type sendQueryCommunityPoolResponseParams = { - value: QueryCommunityPoolResponse; +type sendMsgDepositValidatorRewardsPoolParams = { + value: MsgDepositValidatorRewardsPool; fee?: StdFee; memo?: string; }; -type sendValidatorCurrentRewardsRecordParams = { - value: ValidatorCurrentRewardsRecord; +type sendDelegatorWithdrawInfoParams = { + value: DelegatorWithdrawInfo; fee?: StdFee; memo?: string; }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse; +type sendMsgWithdrawValidatorCommissionParams = { + value: MsgWithdrawValidatorCommission; fee?: StdFee; memo?: string; }; -type sendQueryValidatorCommissionRequestParams = { - value: QueryValidatorCommissionRequest; +type sendMsgFundCommunityPoolResponseParams = { + value: MsgFundCommunityPoolResponse; fee?: StdFee; memo?: string; }; -type sendQueryDelegatorValidatorsResponseParams = { - value: QueryDelegatorValidatorsResponse; +type sendValidatorHistoricalRewardsParams = { + value: ValidatorHistoricalRewards; fee?: StdFee; memo?: string; }; -type sendValidatorHistoricalRewardsRecordParams = { - value: ValidatorHistoricalRewardsRecord; +type sendValidatorCurrentRewardsParams = { + value: ValidatorCurrentRewards; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendQueryParamsRequestParams = { + value: QueryParamsRequest; fee?: StdFee; memo?: string; }; -type sendValidatorHistoricalRewardsParams = { - value: ValidatorHistoricalRewards; +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; fee?: StdFee; memo?: string; }; -type sendValidatorOutstandingRewardsParams = { - value: ValidatorOutstandingRewards; +type sendQueryValidatorSlashesResponseParams = { + value: QueryValidatorSlashesResponse; fee?: StdFee; memo?: string; }; -type sendMsgSetWithdrawAddressParams = { - value: MsgSetWithdrawAddress; +type sendMsgWithdrawDelegatorRewardResponseParams = { + value: MsgWithdrawDelegatorRewardResponse; fee?: StdFee; memo?: string; }; -type sendQueryValidatorOutstandingRewardsRequestParams = { - value: QueryValidatorOutstandingRewardsRequest; +type sendQueryDelegatorWithdrawAddressResponseParams = { + value: QueryDelegatorWithdrawAddressResponse; fee?: StdFee; memo?: string; }; -type sendValidatorSlashEventRecordParams = { - value: ValidatorSlashEventRecord; +type sendDelegatorStartingInfoParams = { + value: DelegatorStartingInfo; fee?: StdFee; memo?: string; }; -type sendValidatorCurrentRewardsParams = { - value: ValidatorCurrentRewards; +type sendQueryValidatorDistributionInfoResponseParams = { + value: QueryValidatorDistributionInfoResponse; fee?: StdFee; memo?: string; }; -type sendDelegationDelegatorRewardParams = { - value: DelegationDelegatorReward; +type sendQueryDelegationTotalRewardsRequestParams = { + value: QueryDelegationTotalRewardsRequest; fee?: StdFee; memo?: string; }; -type sendQueryValidatorSlashesRequestParams = { - value: QueryValidatorSlashesRequest; +type sendQueryDelegationTotalRewardsResponseParams = { + value: QueryDelegationTotalRewardsResponse; fee?: StdFee; memo?: string; }; -type sendQueryDelegatorWithdrawAddressResponseParams = { - value: QueryDelegatorWithdrawAddressResponse; +type sendQueryDelegatorWithdrawAddressRequestParams = { + value: QueryDelegatorWithdrawAddressRequest; fee?: StdFee; memo?: string; }; -type sendDelegatorStartingInfoRecordParams = { - value: DelegatorStartingInfoRecord; +type sendQueryCommunityPoolResponseParams = { + value: QueryCommunityPoolResponse; fee?: StdFee; memo?: string; }; -type msgWithdrawDelegatorRewardParams = { - value: MsgWithdrawDelegatorReward; +type msgSetWithdrawAddressParams = { + value: MsgSetWithdrawAddress; }; -type msgCommunityPoolSpendResponseParams = { - value: MsgCommunityPoolSpendResponse; +type validatorSlashEventsParams = { + value: ValidatorSlashEvents; }; -type msgDepositValidatorRewardsPoolParams = { - value: MsgDepositValidatorRewardsPool; +type queryDelegationRewardsResponseParams = { + value: QueryDelegationRewardsResponse; }; -type delegatorStartingInfoParams = { - value: DelegatorStartingInfo; +type communityPoolSpendProposalParams = { + value: CommunityPoolSpendProposal; }; -type msgSetWithdrawAddressResponseParams = { - value: MsgSetWithdrawAddressResponse; +type queryValidatorDistributionInfoRequestParams = { + value: QueryValidatorDistributionInfoRequest; }; -type msgCommunityPoolSpendParams = { - value: MsgCommunityPoolSpend; +type queryValidatorOutstandingRewardsRequestParams = { + value: QueryValidatorOutstandingRewardsRequest; }; -type queryValidatorOutstandingRewardsResponseParams = { - value: QueryValidatorOutstandingRewardsResponse; +type queryValidatorSlashesRequestParams = { + value: QueryValidatorSlashesRequest; }; -type queryDelegationRewardsResponseParams = { - value: QueryDelegationRewardsResponse; +type paramsParams = { + value: Params; }; -type validatorSlashEventParams = { - value: ValidatorSlashEvent; +type delegationDelegatorRewardParams = { + value: DelegationDelegatorReward; }; -type msgFundCommunityPoolResponseParams = { - value: MsgFundCommunityPoolResponse; +type validatorAccumulatedCommissionRecordParams = { + value: ValidatorAccumulatedCommissionRecord; }; -type queryValidatorSlashesResponseParams = { - value: QueryValidatorSlashesResponse; +type queryParamsResponseParams = { + value: QueryParamsResponse; }; -type validatorAccumulatedCommissionParams = { - value: ValidatorAccumulatedCommission; +type validatorOutstandingRewardsRecordParams = { + value: ValidatorOutstandingRewardsRecord; }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type msgUpdateParamsParams = { + value: MsgUpdateParams; }; type msgDepositValidatorRewardsPoolResponseParams = { value: MsgDepositValidatorRewardsPoolResponse; }; -type queryDelegationTotalRewardsResponseParams = { - value: QueryDelegationTotalRewardsResponse; -}; -type queryDelegatorWithdrawAddressRequestParams = { - value: QueryDelegatorWithdrawAddressRequest; -}; type queryCommunityPoolRequestParams = { value: QueryCommunityPoolRequest; }; -type validatorSlashEventsParams = { - value: ValidatorSlashEvents; +type validatorAccumulatedCommissionParams = { + value: ValidatorAccumulatedCommission; }; -type communityPoolSpendProposalParams = { - value: CommunityPoolSpendProposal; +type validatorHistoricalRewardsRecordParams = { + value: ValidatorHistoricalRewardsRecord; }; -type communityPoolSpendProposalWithDepositParams = { - value: CommunityPoolSpendProposalWithDeposit; +type validatorCurrentRewardsRecordParams = { + value: ValidatorCurrentRewardsRecord; }; -type msgUpdateParamsParams = { - value: MsgUpdateParams; +type delegatorStartingInfoRecordParams = { + value: DelegatorStartingInfoRecord; }; -type queryValidatorDistributionInfoResponseParams = { - value: QueryValidatorDistributionInfoResponse; +type queryDelegatorValidatorsResponseParams = { + value: QueryDelegatorValidatorsResponse; }; -type delegatorWithdrawInfoParams = { - value: DelegatorWithdrawInfo; +type validatorOutstandingRewardsParams = { + value: ValidatorOutstandingRewards; }; -type paramsParams = { - value: Params; +type genesisStateParams = { + value: GenesisState; }; -type msgWithdrawDelegatorRewardResponseParams = { - value: MsgWithdrawDelegatorRewardResponse; +type msgSetWithdrawAddressResponseParams = { + value: MsgSetWithdrawAddressResponse; }; -type queryDelegationTotalRewardsRequestParams = { - value: QueryDelegationTotalRewardsRequest; +type msgWithdrawDelegatorRewardParams = { + value: MsgWithdrawDelegatorReward; +}; +type msgFundCommunityPoolParams = { + value: MsgFundCommunityPool; +}; +type msgCommunityPoolSpendResponseParams = { + value: MsgCommunityPoolSpendResponse; +}; +type queryValidatorOutstandingRewardsResponseParams = { + value: QueryValidatorOutstandingRewardsResponse; }; type queryDelegatorValidatorsRequestParams = { value: QueryDelegatorValidatorsRequest; }; -type validatorOutstandingRewardsRecordParams = { - value: ValidatorOutstandingRewardsRecord; +type validatorSlashEventParams = { + value: ValidatorSlashEvent; }; -type msgWithdrawValidatorCommissionResponseParams = { - value: MsgWithdrawValidatorCommissionResponse; +type validatorSlashEventRecordParams = { + value: ValidatorSlashEventRecord; }; -type msgFundCommunityPoolParams = { - value: MsgFundCommunityPool; +type queryValidatorCommissionRequestParams = { + value: QueryValidatorCommissionRequest; +}; +type queryDelegationRewardsRequestParams = { + value: QueryDelegationRewardsRequest; }; type feePoolParams = { value: FeePool; }; -type validatorAccumulatedCommissionRecordParams = { - value: ValidatorAccumulatedCommissionRecord; -}; -type msgWithdrawValidatorCommissionParams = { - value: MsgWithdrawValidatorCommission; -}; -type queryParamsRequestParams = { - value: QueryParamsRequest; +type msgCommunityPoolSpendParams = { + value: MsgCommunityPoolSpend; }; -type queryValidatorDistributionInfoRequestParams = { - value: QueryValidatorDistributionInfoRequest; +type communityPoolSpendProposalWithDepositParams = { + value: CommunityPoolSpendProposalWithDeposit; }; type queryValidatorCommissionResponseParams = { value: QueryValidatorCommissionResponse; }; -type queryDelegationRewardsRequestParams = { - value: QueryDelegationRewardsRequest; +type msgWithdrawValidatorCommissionResponseParams = { + value: MsgWithdrawValidatorCommissionResponse; }; -type queryCommunityPoolResponseParams = { - value: QueryCommunityPoolResponse; +type msgDepositValidatorRewardsPoolParams = { + value: MsgDepositValidatorRewardsPool; }; -type validatorCurrentRewardsRecordParams = { - value: ValidatorCurrentRewardsRecord; +type delegatorWithdrawInfoParams = { + value: DelegatorWithdrawInfo; }; -type queryParamsResponseParams = { - value: QueryParamsResponse; +type msgWithdrawValidatorCommissionParams = { + value: MsgWithdrawValidatorCommission; }; -type queryValidatorCommissionRequestParams = { - value: QueryValidatorCommissionRequest; +type msgFundCommunityPoolResponseParams = { + value: MsgFundCommunityPoolResponse; }; -type queryDelegatorValidatorsResponseParams = { - value: QueryDelegatorValidatorsResponse; +type validatorHistoricalRewardsParams = { + value: ValidatorHistoricalRewards; }; -type validatorHistoricalRewardsRecordParams = { - value: ValidatorHistoricalRewardsRecord; +type validatorCurrentRewardsParams = { + value: ValidatorCurrentRewards; }; -type genesisStateParams = { - value: GenesisState; +type queryParamsRequestParams = { + value: QueryParamsRequest; }; -type validatorHistoricalRewardsParams = { - value: ValidatorHistoricalRewards; +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; }; -type validatorOutstandingRewardsParams = { - value: ValidatorOutstandingRewards; +type queryValidatorSlashesResponseParams = { + value: QueryValidatorSlashesResponse; }; -type msgSetWithdrawAddressParams = { - value: MsgSetWithdrawAddress; +type msgWithdrawDelegatorRewardResponseParams = { + value: MsgWithdrawDelegatorRewardResponse; }; -type queryValidatorOutstandingRewardsRequestParams = { - value: QueryValidatorOutstandingRewardsRequest; +type queryDelegatorWithdrawAddressResponseParams = { + value: QueryDelegatorWithdrawAddressResponse; }; -type validatorSlashEventRecordParams = { - value: ValidatorSlashEventRecord; +type delegatorStartingInfoParams = { + value: DelegatorStartingInfo; }; -type validatorCurrentRewardsParams = { - value: ValidatorCurrentRewards; +type queryValidatorDistributionInfoResponseParams = { + value: QueryValidatorDistributionInfoResponse; }; -type delegationDelegatorRewardParams = { - value: DelegationDelegatorReward; +type queryDelegationTotalRewardsRequestParams = { + value: QueryDelegationTotalRewardsRequest; }; -type queryValidatorSlashesRequestParams = { - value: QueryValidatorSlashesRequest; +type queryDelegationTotalRewardsResponseParams = { + value: QueryDelegationTotalRewardsResponse; }; -type queryDelegatorWithdrawAddressResponseParams = { - value: QueryDelegatorWithdrawAddressResponse; +type queryDelegatorWithdrawAddressRequestParams = { + value: QueryDelegatorWithdrawAddressRequest; }; -type delegatorStartingInfoRecordParams = { - value: DelegatorStartingInfoRecord; +type queryCommunityPoolResponseParams = { + value: QueryCommunityPoolResponse; }; export declare const registry: Registry; interface TxClientOptions { @@ -496,114 +496,114 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendMsgWithdrawDelegatorReward({ value, fee, memo }: sendMsgWithdrawDelegatorRewardParams): Promise; - sendMsgCommunityPoolSpendResponse({ value, fee, memo }: sendMsgCommunityPoolSpendResponseParams): Promise; - sendMsgDepositValidatorRewardsPool({ value, fee, memo }: sendMsgDepositValidatorRewardsPoolParams): Promise; - sendDelegatorStartingInfo({ value, fee, memo }: sendDelegatorStartingInfoParams): Promise; - sendMsgSetWithdrawAddressResponse({ value, fee, memo }: sendMsgSetWithdrawAddressResponseParams): Promise; - sendMsgCommunityPoolSpend({ value, fee, memo }: sendMsgCommunityPoolSpendParams): Promise; - sendQueryValidatorOutstandingRewardsResponse({ value, fee, memo }: sendQueryValidatorOutstandingRewardsResponseParams): Promise; - sendQueryDelegationRewardsResponse({ value, fee, memo }: sendQueryDelegationRewardsResponseParams): Promise; - sendValidatorSlashEvent({ value, fee, memo }: sendValidatorSlashEventParams): Promise; - sendMsgFundCommunityPoolResponse({ value, fee, memo }: sendMsgFundCommunityPoolResponseParams): Promise; - sendQueryValidatorSlashesResponse({ value, fee, memo }: sendQueryValidatorSlashesResponseParams): Promise; - sendValidatorAccumulatedCommission({ value, fee, memo }: sendValidatorAccumulatedCommissionParams): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; - sendMsgDepositValidatorRewardsPoolResponse({ value, fee, memo }: sendMsgDepositValidatorRewardsPoolResponseParams): Promise; - sendQueryDelegationTotalRewardsResponse({ value, fee, memo }: sendQueryDelegationTotalRewardsResponseParams): Promise; - sendQueryDelegatorWithdrawAddressRequest({ value, fee, memo }: sendQueryDelegatorWithdrawAddressRequestParams): Promise; - sendQueryCommunityPoolRequest({ value, fee, memo }: sendQueryCommunityPoolRequestParams): Promise; + sendMsgSetWithdrawAddress({ value, fee, memo }: sendMsgSetWithdrawAddressParams): Promise; sendValidatorSlashEvents({ value, fee, memo }: sendValidatorSlashEventsParams): Promise; + sendQueryDelegationRewardsResponse({ value, fee, memo }: sendQueryDelegationRewardsResponseParams): Promise; sendCommunityPoolSpendProposal({ value, fee, memo }: sendCommunityPoolSpendProposalParams): Promise; - sendCommunityPoolSpendProposalWithDeposit({ value, fee, memo }: sendCommunityPoolSpendProposalWithDepositParams): Promise; - sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; - sendQueryValidatorDistributionInfoResponse({ value, fee, memo }: sendQueryValidatorDistributionInfoResponseParams): Promise; - sendDelegatorWithdrawInfo({ value, fee, memo }: sendDelegatorWithdrawInfoParams): Promise; + sendQueryValidatorDistributionInfoRequest({ value, fee, memo }: sendQueryValidatorDistributionInfoRequestParams): Promise; + sendQueryValidatorOutstandingRewardsRequest({ value, fee, memo }: sendQueryValidatorOutstandingRewardsRequestParams): Promise; + sendQueryValidatorSlashesRequest({ value, fee, memo }: sendQueryValidatorSlashesRequestParams): Promise; sendParams({ value, fee, memo }: sendParamsParams): Promise; - sendMsgWithdrawDelegatorRewardResponse({ value, fee, memo }: sendMsgWithdrawDelegatorRewardResponseParams): Promise; - sendQueryDelegationTotalRewardsRequest({ value, fee, memo }: sendQueryDelegationTotalRewardsRequestParams): Promise; - sendQueryDelegatorValidatorsRequest({ value, fee, memo }: sendQueryDelegatorValidatorsRequestParams): Promise; - sendValidatorOutstandingRewardsRecord({ value, fee, memo }: sendValidatorOutstandingRewardsRecordParams): Promise; - sendMsgWithdrawValidatorCommissionResponse({ value, fee, memo }: sendMsgWithdrawValidatorCommissionResponseParams): Promise; - sendMsgFundCommunityPool({ value, fee, memo }: sendMsgFundCommunityPoolParams): Promise; - sendFeePool({ value, fee, memo }: sendFeePoolParams): Promise; + sendDelegationDelegatorReward({ value, fee, memo }: sendDelegationDelegatorRewardParams): Promise; sendValidatorAccumulatedCommissionRecord({ value, fee, memo }: sendValidatorAccumulatedCommissionRecordParams): Promise; - sendMsgWithdrawValidatorCommission({ value, fee, memo }: sendMsgWithdrawValidatorCommissionParams): Promise; - sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; - sendQueryValidatorDistributionInfoRequest({ value, fee, memo }: sendQueryValidatorDistributionInfoRequestParams): Promise; - sendQueryValidatorCommissionResponse({ value, fee, memo }: sendQueryValidatorCommissionResponseParams): Promise; - sendQueryDelegationRewardsRequest({ value, fee, memo }: sendQueryDelegationRewardsRequestParams): Promise; - sendQueryCommunityPoolResponse({ value, fee, memo }: sendQueryCommunityPoolResponseParams): Promise; - sendValidatorCurrentRewardsRecord({ value, fee, memo }: sendValidatorCurrentRewardsRecordParams): Promise; sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; - sendQueryValidatorCommissionRequest({ value, fee, memo }: sendQueryValidatorCommissionRequestParams): Promise; - sendQueryDelegatorValidatorsResponse({ value, fee, memo }: sendQueryDelegatorValidatorsResponseParams): Promise; + sendValidatorOutstandingRewardsRecord({ value, fee, memo }: sendValidatorOutstandingRewardsRecordParams): Promise; + sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; + sendMsgDepositValidatorRewardsPoolResponse({ value, fee, memo }: sendMsgDepositValidatorRewardsPoolResponseParams): Promise; + sendQueryCommunityPoolRequest({ value, fee, memo }: sendQueryCommunityPoolRequestParams): Promise; + sendValidatorAccumulatedCommission({ value, fee, memo }: sendValidatorAccumulatedCommissionParams): Promise; sendValidatorHistoricalRewardsRecord({ value, fee, memo }: sendValidatorHistoricalRewardsRecordParams): Promise; - sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendValidatorHistoricalRewards({ value, fee, memo }: sendValidatorHistoricalRewardsParams): Promise; + sendValidatorCurrentRewardsRecord({ value, fee, memo }: sendValidatorCurrentRewardsRecordParams): Promise; + sendDelegatorStartingInfoRecord({ value, fee, memo }: sendDelegatorStartingInfoRecordParams): Promise; + sendQueryDelegatorValidatorsResponse({ value, fee, memo }: sendQueryDelegatorValidatorsResponseParams): Promise; sendValidatorOutstandingRewards({ value, fee, memo }: sendValidatorOutstandingRewardsParams): Promise; - sendMsgSetWithdrawAddress({ value, fee, memo }: sendMsgSetWithdrawAddressParams): Promise; - sendQueryValidatorOutstandingRewardsRequest({ value, fee, memo }: sendQueryValidatorOutstandingRewardsRequestParams): Promise; + sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; + sendMsgSetWithdrawAddressResponse({ value, fee, memo }: sendMsgSetWithdrawAddressResponseParams): Promise; + sendMsgWithdrawDelegatorReward({ value, fee, memo }: sendMsgWithdrawDelegatorRewardParams): Promise; + sendMsgFundCommunityPool({ value, fee, memo }: sendMsgFundCommunityPoolParams): Promise; + sendMsgCommunityPoolSpendResponse({ value, fee, memo }: sendMsgCommunityPoolSpendResponseParams): Promise; + sendQueryValidatorOutstandingRewardsResponse({ value, fee, memo }: sendQueryValidatorOutstandingRewardsResponseParams): Promise; + sendQueryDelegatorValidatorsRequest({ value, fee, memo }: sendQueryDelegatorValidatorsRequestParams): Promise; + sendValidatorSlashEvent({ value, fee, memo }: sendValidatorSlashEventParams): Promise; sendValidatorSlashEventRecord({ value, fee, memo }: sendValidatorSlashEventRecordParams): Promise; + sendQueryValidatorCommissionRequest({ value, fee, memo }: sendQueryValidatorCommissionRequestParams): Promise; + sendQueryDelegationRewardsRequest({ value, fee, memo }: sendQueryDelegationRewardsRequestParams): Promise; + sendFeePool({ value, fee, memo }: sendFeePoolParams): Promise; + sendMsgCommunityPoolSpend({ value, fee, memo }: sendMsgCommunityPoolSpendParams): Promise; + sendCommunityPoolSpendProposalWithDeposit({ value, fee, memo }: sendCommunityPoolSpendProposalWithDepositParams): Promise; + sendQueryValidatorCommissionResponse({ value, fee, memo }: sendQueryValidatorCommissionResponseParams): Promise; + sendMsgWithdrawValidatorCommissionResponse({ value, fee, memo }: sendMsgWithdrawValidatorCommissionResponseParams): Promise; + sendMsgDepositValidatorRewardsPool({ value, fee, memo }: sendMsgDepositValidatorRewardsPoolParams): Promise; + sendDelegatorWithdrawInfo({ value, fee, memo }: sendDelegatorWithdrawInfoParams): Promise; + sendMsgWithdrawValidatorCommission({ value, fee, memo }: sendMsgWithdrawValidatorCommissionParams): Promise; + sendMsgFundCommunityPoolResponse({ value, fee, memo }: sendMsgFundCommunityPoolResponseParams): Promise; + sendValidatorHistoricalRewards({ value, fee, memo }: sendValidatorHistoricalRewardsParams): Promise; sendValidatorCurrentRewards({ value, fee, memo }: sendValidatorCurrentRewardsParams): Promise; - sendDelegationDelegatorReward({ value, fee, memo }: sendDelegationDelegatorRewardParams): Promise; - sendQueryValidatorSlashesRequest({ value, fee, memo }: sendQueryValidatorSlashesRequestParams): Promise; + sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; + sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; + sendQueryValidatorSlashesResponse({ value, fee, memo }: sendQueryValidatorSlashesResponseParams): Promise; + sendMsgWithdrawDelegatorRewardResponse({ value, fee, memo }: sendMsgWithdrawDelegatorRewardResponseParams): Promise; sendQueryDelegatorWithdrawAddressResponse({ value, fee, memo }: sendQueryDelegatorWithdrawAddressResponseParams): Promise; - sendDelegatorStartingInfoRecord({ value, fee, memo }: sendDelegatorStartingInfoRecordParams): Promise; - msgWithdrawDelegatorReward({ value }: msgWithdrawDelegatorRewardParams): EncodeObject; - msgCommunityPoolSpendResponse({ value }: msgCommunityPoolSpendResponseParams): EncodeObject; - msgDepositValidatorRewardsPool({ value }: msgDepositValidatorRewardsPoolParams): EncodeObject; - delegatorStartingInfo({ value }: delegatorStartingInfoParams): EncodeObject; - msgSetWithdrawAddressResponse({ value }: msgSetWithdrawAddressResponseParams): EncodeObject; - msgCommunityPoolSpend({ value }: msgCommunityPoolSpendParams): EncodeObject; - queryValidatorOutstandingRewardsResponse({ value }: queryValidatorOutstandingRewardsResponseParams): EncodeObject; - queryDelegationRewardsResponse({ value }: queryDelegationRewardsResponseParams): EncodeObject; - validatorSlashEvent({ value }: validatorSlashEventParams): EncodeObject; - msgFundCommunityPoolResponse({ value }: msgFundCommunityPoolResponseParams): EncodeObject; - queryValidatorSlashesResponse({ value }: queryValidatorSlashesResponseParams): EncodeObject; - validatorAccumulatedCommission({ value }: validatorAccumulatedCommissionParams): EncodeObject; - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; - msgDepositValidatorRewardsPoolResponse({ value }: msgDepositValidatorRewardsPoolResponseParams): EncodeObject; - queryDelegationTotalRewardsResponse({ value }: queryDelegationTotalRewardsResponseParams): EncodeObject; - queryDelegatorWithdrawAddressRequest({ value }: queryDelegatorWithdrawAddressRequestParams): EncodeObject; - queryCommunityPoolRequest({ value }: queryCommunityPoolRequestParams): EncodeObject; + sendDelegatorStartingInfo({ value, fee, memo }: sendDelegatorStartingInfoParams): Promise; + sendQueryValidatorDistributionInfoResponse({ value, fee, memo }: sendQueryValidatorDistributionInfoResponseParams): Promise; + sendQueryDelegationTotalRewardsRequest({ value, fee, memo }: sendQueryDelegationTotalRewardsRequestParams): Promise; + sendQueryDelegationTotalRewardsResponse({ value, fee, memo }: sendQueryDelegationTotalRewardsResponseParams): Promise; + sendQueryDelegatorWithdrawAddressRequest({ value, fee, memo }: sendQueryDelegatorWithdrawAddressRequestParams): Promise; + sendQueryCommunityPoolResponse({ value, fee, memo }: sendQueryCommunityPoolResponseParams): Promise; + msgSetWithdrawAddress({ value }: msgSetWithdrawAddressParams): EncodeObject; validatorSlashEvents({ value }: validatorSlashEventsParams): EncodeObject; + queryDelegationRewardsResponse({ value }: queryDelegationRewardsResponseParams): EncodeObject; communityPoolSpendProposal({ value }: communityPoolSpendProposalParams): EncodeObject; - communityPoolSpendProposalWithDeposit({ value }: communityPoolSpendProposalWithDepositParams): EncodeObject; - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; - queryValidatorDistributionInfoResponse({ value }: queryValidatorDistributionInfoResponseParams): EncodeObject; - delegatorWithdrawInfo({ value }: delegatorWithdrawInfoParams): EncodeObject; + queryValidatorDistributionInfoRequest({ value }: queryValidatorDistributionInfoRequestParams): EncodeObject; + queryValidatorOutstandingRewardsRequest({ value }: queryValidatorOutstandingRewardsRequestParams): EncodeObject; + queryValidatorSlashesRequest({ value }: queryValidatorSlashesRequestParams): EncodeObject; params({ value }: paramsParams): EncodeObject; - msgWithdrawDelegatorRewardResponse({ value }: msgWithdrawDelegatorRewardResponseParams): EncodeObject; - queryDelegationTotalRewardsRequest({ value }: queryDelegationTotalRewardsRequestParams): EncodeObject; - queryDelegatorValidatorsRequest({ value }: queryDelegatorValidatorsRequestParams): EncodeObject; - validatorOutstandingRewardsRecord({ value }: validatorOutstandingRewardsRecordParams): EncodeObject; - msgWithdrawValidatorCommissionResponse({ value }: msgWithdrawValidatorCommissionResponseParams): EncodeObject; - msgFundCommunityPool({ value }: msgFundCommunityPoolParams): EncodeObject; - feePool({ value }: feePoolParams): EncodeObject; + delegationDelegatorReward({ value }: delegationDelegatorRewardParams): EncodeObject; validatorAccumulatedCommissionRecord({ value }: validatorAccumulatedCommissionRecordParams): EncodeObject; - msgWithdrawValidatorCommission({ value }: msgWithdrawValidatorCommissionParams): EncodeObject; - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; - queryValidatorDistributionInfoRequest({ value }: queryValidatorDistributionInfoRequestParams): EncodeObject; - queryValidatorCommissionResponse({ value }: queryValidatorCommissionResponseParams): EncodeObject; - queryDelegationRewardsRequest({ value }: queryDelegationRewardsRequestParams): EncodeObject; - queryCommunityPoolResponse({ value }: queryCommunityPoolResponseParams): EncodeObject; - validatorCurrentRewardsRecord({ value }: validatorCurrentRewardsRecordParams): EncodeObject; queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; - queryValidatorCommissionRequest({ value }: queryValidatorCommissionRequestParams): EncodeObject; - queryDelegatorValidatorsResponse({ value }: queryDelegatorValidatorsResponseParams): EncodeObject; + validatorOutstandingRewardsRecord({ value }: validatorOutstandingRewardsRecordParams): EncodeObject; + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; + msgDepositValidatorRewardsPoolResponse({ value }: msgDepositValidatorRewardsPoolResponseParams): EncodeObject; + queryCommunityPoolRequest({ value }: queryCommunityPoolRequestParams): EncodeObject; + validatorAccumulatedCommission({ value }: validatorAccumulatedCommissionParams): EncodeObject; validatorHistoricalRewardsRecord({ value }: validatorHistoricalRewardsRecordParams): EncodeObject; - genesisState({ value }: genesisStateParams): EncodeObject; - validatorHistoricalRewards({ value }: validatorHistoricalRewardsParams): EncodeObject; + validatorCurrentRewardsRecord({ value }: validatorCurrentRewardsRecordParams): EncodeObject; + delegatorStartingInfoRecord({ value }: delegatorStartingInfoRecordParams): EncodeObject; + queryDelegatorValidatorsResponse({ value }: queryDelegatorValidatorsResponseParams): EncodeObject; validatorOutstandingRewards({ value }: validatorOutstandingRewardsParams): EncodeObject; - msgSetWithdrawAddress({ value }: msgSetWithdrawAddressParams): EncodeObject; - queryValidatorOutstandingRewardsRequest({ value }: queryValidatorOutstandingRewardsRequestParams): EncodeObject; + genesisState({ value }: genesisStateParams): EncodeObject; + msgSetWithdrawAddressResponse({ value }: msgSetWithdrawAddressResponseParams): EncodeObject; + msgWithdrawDelegatorReward({ value }: msgWithdrawDelegatorRewardParams): EncodeObject; + msgFundCommunityPool({ value }: msgFundCommunityPoolParams): EncodeObject; + msgCommunityPoolSpendResponse({ value }: msgCommunityPoolSpendResponseParams): EncodeObject; + queryValidatorOutstandingRewardsResponse({ value }: queryValidatorOutstandingRewardsResponseParams): EncodeObject; + queryDelegatorValidatorsRequest({ value }: queryDelegatorValidatorsRequestParams): EncodeObject; + validatorSlashEvent({ value }: validatorSlashEventParams): EncodeObject; validatorSlashEventRecord({ value }: validatorSlashEventRecordParams): EncodeObject; + queryValidatorCommissionRequest({ value }: queryValidatorCommissionRequestParams): EncodeObject; + queryDelegationRewardsRequest({ value }: queryDelegationRewardsRequestParams): EncodeObject; + feePool({ value }: feePoolParams): EncodeObject; + msgCommunityPoolSpend({ value }: msgCommunityPoolSpendParams): EncodeObject; + communityPoolSpendProposalWithDeposit({ value }: communityPoolSpendProposalWithDepositParams): EncodeObject; + queryValidatorCommissionResponse({ value }: queryValidatorCommissionResponseParams): EncodeObject; + msgWithdrawValidatorCommissionResponse({ value }: msgWithdrawValidatorCommissionResponseParams): EncodeObject; + msgDepositValidatorRewardsPool({ value }: msgDepositValidatorRewardsPoolParams): EncodeObject; + delegatorWithdrawInfo({ value }: delegatorWithdrawInfoParams): EncodeObject; + msgWithdrawValidatorCommission({ value }: msgWithdrawValidatorCommissionParams): EncodeObject; + msgFundCommunityPoolResponse({ value }: msgFundCommunityPoolResponseParams): EncodeObject; + validatorHistoricalRewards({ value }: validatorHistoricalRewardsParams): EncodeObject; validatorCurrentRewards({ value }: validatorCurrentRewardsParams): EncodeObject; - delegationDelegatorReward({ value }: delegationDelegatorRewardParams): EncodeObject; - queryValidatorSlashesRequest({ value }: queryValidatorSlashesRequestParams): EncodeObject; + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; + queryValidatorSlashesResponse({ value }: queryValidatorSlashesResponseParams): EncodeObject; + msgWithdrawDelegatorRewardResponse({ value }: msgWithdrawDelegatorRewardResponseParams): EncodeObject; queryDelegatorWithdrawAddressResponse({ value }: queryDelegatorWithdrawAddressResponseParams): EncodeObject; - delegatorStartingInfoRecord({ value }: delegatorStartingInfoRecordParams): EncodeObject; + delegatorStartingInfo({ value }: delegatorStartingInfoParams): EncodeObject; + queryValidatorDistributionInfoResponse({ value }: queryValidatorDistributionInfoResponseParams): EncodeObject; + queryDelegationTotalRewardsRequest({ value }: queryDelegationTotalRewardsRequestParams): EncodeObject; + queryDelegationTotalRewardsResponse({ value }: queryDelegationTotalRewardsResponseParams): EncodeObject; + queryDelegatorWithdrawAddressRequest({ value }: queryDelegatorWithdrawAddressRequestParams): EncodeObject; + queryCommunityPoolResponse({ value }: queryCommunityPoolResponseParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.distribution.v1beta1/module.js b/ts-client/lib/cosmos.distribution.v1beta1/module.js index d59214f5e..f82356188 100644 --- a/ts-client/lib/cosmos.distribution.v1beta1/module.js +++ b/ts-client/lib/cosmos.distribution.v1beta1/module.js @@ -3,61 +3,61 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgCommunityPoolSpendResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgDepositValidatorRewardsPool } from "./types/cosmos/distribution/v1beta1/tx"; -import { DelegatorStartingInfo } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgSetWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorOutstandingRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegationRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorSlashEvent } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgFundCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorSlashesResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorAccumulatedCommission } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgUpdateParamsResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgDepositValidatorRewardsPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryDelegationTotalRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorWithdrawAddressRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryCommunityPoolRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; import { ValidatorSlashEvents } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryDelegationRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; import { CommunityPoolSpendProposal } from "./types/cosmos/distribution/v1beta1/distribution"; -import { CommunityPoolSpendProposalWithDeposit } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorDistributionInfoResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { DelegatorWithdrawInfo } from "./types/cosmos/distribution/v1beta1/genesis"; +import { QueryValidatorDistributionInfoRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryValidatorOutstandingRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryValidatorSlashesRequest } from "./types/cosmos/distribution/v1beta1/query"; import { Params } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgWithdrawDelegatorRewardResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryDelegationTotalRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorValidatorsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorOutstandingRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { MsgWithdrawValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; -import { FeePool } from "./types/cosmos/distribution/v1beta1/distribution"; +import { DelegationDelegatorReward } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorAccumulatedCommissionRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryParamsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryValidatorDistributionInfoRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegationRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorCurrentRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; import { QueryParamsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryValidatorCommissionRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorValidatorsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorOutstandingRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgDepositValidatorRewardsPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryCommunityPoolRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorAccumulatedCommission } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorHistoricalRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { GenesisState } from "./types/cosmos/distribution/v1beta1/genesis"; -import { ValidatorHistoricalRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { ValidatorCurrentRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { DelegatorStartingInfoRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { QueryDelegatorValidatorsResponse } from "./types/cosmos/distribution/v1beta1/query"; import { ValidatorOutstandingRewards } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorOutstandingRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { GenesisState } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgSetWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgCommunityPoolSpendResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorOutstandingRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegatorValidatorsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorSlashEvent } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorSlashEventRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { QueryValidatorCommissionRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { FeePool } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx"; +import { CommunityPoolSpendProposalWithDeposit } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgWithdrawValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgDepositValidatorRewardsPool } from "./types/cosmos/distribution/v1beta1/tx"; +import { DelegatorWithdrawInfo } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgFundCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { ValidatorHistoricalRewards } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorCurrentRewards } from "./types/cosmos/distribution/v1beta1/distribution"; -import { DelegationDelegatorReward } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryValidatorSlashesRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorSlashesResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgWithdrawDelegatorRewardResponse } from "./types/cosmos/distribution/v1beta1/tx"; import { QueryDelegatorWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { DelegatorStartingInfoRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -export { MsgWithdrawDelegatorReward, MsgCommunityPoolSpendResponse, MsgDepositValidatorRewardsPool, DelegatorStartingInfo, MsgSetWithdrawAddressResponse, MsgCommunityPoolSpend, QueryValidatorOutstandingRewardsResponse, QueryDelegationRewardsResponse, ValidatorSlashEvent, MsgFundCommunityPoolResponse, QueryValidatorSlashesResponse, ValidatorAccumulatedCommission, MsgUpdateParamsResponse, MsgDepositValidatorRewardsPoolResponse, QueryDelegationTotalRewardsResponse, QueryDelegatorWithdrawAddressRequest, QueryCommunityPoolRequest, ValidatorSlashEvents, CommunityPoolSpendProposal, CommunityPoolSpendProposalWithDeposit, MsgUpdateParams, QueryValidatorDistributionInfoResponse, DelegatorWithdrawInfo, Params, MsgWithdrawDelegatorRewardResponse, QueryDelegationTotalRewardsRequest, QueryDelegatorValidatorsRequest, ValidatorOutstandingRewardsRecord, MsgWithdrawValidatorCommissionResponse, MsgFundCommunityPool, FeePool, ValidatorAccumulatedCommissionRecord, MsgWithdrawValidatorCommission, QueryParamsRequest, QueryValidatorDistributionInfoRequest, QueryValidatorCommissionResponse, QueryDelegationRewardsRequest, QueryCommunityPoolResponse, ValidatorCurrentRewardsRecord, QueryParamsResponse, QueryValidatorCommissionRequest, QueryDelegatorValidatorsResponse, ValidatorHistoricalRewardsRecord, GenesisState, ValidatorHistoricalRewards, ValidatorOutstandingRewards, MsgSetWithdrawAddress, QueryValidatorOutstandingRewardsRequest, ValidatorSlashEventRecord, ValidatorCurrentRewards, DelegationDelegatorReward, QueryValidatorSlashesRequest, QueryDelegatorWithdrawAddressResponse, DelegatorStartingInfoRecord }; +import { DelegatorStartingInfo } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryValidatorDistributionInfoResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationTotalRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationTotalRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegatorWithdrawAddressRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/query"; +export { MsgSetWithdrawAddress, ValidatorSlashEvents, QueryDelegationRewardsResponse, CommunityPoolSpendProposal, QueryValidatorDistributionInfoRequest, QueryValidatorOutstandingRewardsRequest, QueryValidatorSlashesRequest, Params, DelegationDelegatorReward, ValidatorAccumulatedCommissionRecord, QueryParamsResponse, ValidatorOutstandingRewardsRecord, MsgUpdateParams, MsgDepositValidatorRewardsPoolResponse, QueryCommunityPoolRequest, ValidatorAccumulatedCommission, ValidatorHistoricalRewardsRecord, ValidatorCurrentRewardsRecord, DelegatorStartingInfoRecord, QueryDelegatorValidatorsResponse, ValidatorOutstandingRewards, GenesisState, MsgSetWithdrawAddressResponse, MsgWithdrawDelegatorReward, MsgFundCommunityPool, MsgCommunityPoolSpendResponse, QueryValidatorOutstandingRewardsResponse, QueryDelegatorValidatorsRequest, ValidatorSlashEvent, ValidatorSlashEventRecord, QueryValidatorCommissionRequest, QueryDelegationRewardsRequest, FeePool, MsgCommunityPoolSpend, CommunityPoolSpendProposalWithDeposit, QueryValidatorCommissionResponse, MsgWithdrawValidatorCommissionResponse, MsgDepositValidatorRewardsPool, DelegatorWithdrawInfo, MsgWithdrawValidatorCommission, MsgFundCommunityPoolResponse, ValidatorHistoricalRewards, ValidatorCurrentRewards, QueryParamsRequest, MsgUpdateParamsResponse, QueryValidatorSlashesResponse, MsgWithdrawDelegatorRewardResponse, QueryDelegatorWithdrawAddressResponse, DelegatorStartingInfo, QueryValidatorDistributionInfoResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorWithdrawAddressRequest, QueryCommunityPoolResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -73,186 +73,186 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendMsgWithdrawDelegatorReward({ value, fee, memo }) { + async sendMsgSetWithdrawAddress({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgWithdrawDelegatorReward: 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.msgWithdrawDelegatorReward({ value: MsgWithdrawDelegatorReward.fromPartial(value) }); + let msg = this.msgSetWithdrawAddress({ value: MsgSetWithdrawAddress.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgWithdrawDelegatorReward: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSetWithdrawAddress: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCommunityPoolSpendResponse({ value, fee, memo }) { + async sendValidatorSlashEvents({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCommunityPoolSpendResponse: 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.msgCommunityPoolSpendResponse({ value: MsgCommunityPoolSpendResponse.fromPartial(value) }); + let msg = this.validatorSlashEvents({ value: ValidatorSlashEvents.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCommunityPoolSpendResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidatorSlashEvents: Could not broadcast Tx: ' + e.message); } }, - async sendMsgDepositValidatorRewardsPool({ value, fee, memo }) { + async sendQueryDelegationRewardsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgDepositValidatorRewardsPool: 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.msgDepositValidatorRewardsPool({ value: MsgDepositValidatorRewardsPool.fromPartial(value) }); + let msg = this.queryDelegationRewardsResponse({ value: QueryDelegationRewardsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgDepositValidatorRewardsPool: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegationRewardsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendDelegatorStartingInfo({ value, fee, memo }) { + async sendCommunityPoolSpendProposal({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDelegatorStartingInfo: 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.delegatorStartingInfo({ value: DelegatorStartingInfo.fromPartial(value) }); + let msg = this.communityPoolSpendProposal({ value: CommunityPoolSpendProposal.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDelegatorStartingInfo: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendCommunityPoolSpendProposal: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSetWithdrawAddressResponse({ value, fee, memo }) { + async sendQueryValidatorDistributionInfoRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSetWithdrawAddressResponse: 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.msgSetWithdrawAddressResponse({ value: MsgSetWithdrawAddressResponse.fromPartial(value) }); + let msg = this.queryValidatorDistributionInfoRequest({ value: QueryValidatorDistributionInfoRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSetWithdrawAddressResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryValidatorDistributionInfoRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCommunityPoolSpend({ value, fee, memo }) { + async sendQueryValidatorOutstandingRewardsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCommunityPoolSpend: 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.msgCommunityPoolSpend({ value: MsgCommunityPoolSpend.fromPartial(value) }); + let msg = this.queryValidatorOutstandingRewardsRequest({ value: QueryValidatorOutstandingRewardsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCommunityPoolSpend: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryValidatorOutstandingRewardsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryValidatorOutstandingRewardsResponse({ value, fee, memo }) { + async sendQueryValidatorSlashesRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryValidatorOutstandingRewardsResponse: 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.queryValidatorOutstandingRewardsResponse({ value: QueryValidatorOutstandingRewardsResponse.fromPartial(value) }); + let msg = this.queryValidatorSlashesRequest({ value: QueryValidatorSlashesRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryValidatorOutstandingRewardsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryValidatorSlashesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegationRewardsResponse({ value, fee, memo }) { + async sendParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegationRewardsResponse: 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.queryDelegationRewardsResponse({ value: QueryDelegationRewardsResponse.fromPartial(value) }); + let msg = this.params({ value: Params.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegationRewardsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); } }, - async sendValidatorSlashEvent({ value, fee, memo }) { + async sendDelegationDelegatorReward({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidatorSlashEvent: 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.validatorSlashEvent({ value: ValidatorSlashEvent.fromPartial(value) }); + let msg = this.delegationDelegatorReward({ value: DelegationDelegatorReward.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidatorSlashEvent: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDelegationDelegatorReward: Could not broadcast Tx: ' + e.message); } }, - async sendMsgFundCommunityPoolResponse({ value, fee, memo }) { + async sendValidatorAccumulatedCommissionRecord({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgFundCommunityPoolResponse: 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.msgFundCommunityPoolResponse({ value: MsgFundCommunityPoolResponse.fromPartial(value) }); + let msg = this.validatorAccumulatedCommissionRecord({ value: ValidatorAccumulatedCommissionRecord.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgFundCommunityPoolResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidatorAccumulatedCommissionRecord: Could not broadcast Tx: ' + e.message); } }, - async sendQueryValidatorSlashesResponse({ value, fee, memo }) { + async sendQueryParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryValidatorSlashesResponse: 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.queryValidatorSlashesResponse({ value: QueryValidatorSlashesResponse.fromPartial(value) }); + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryValidatorSlashesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendValidatorAccumulatedCommission({ value, fee, memo }) { + async sendValidatorOutstandingRewardsRecord({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidatorAccumulatedCommission: 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.validatorAccumulatedCommission({ value: ValidatorAccumulatedCommission.fromPartial(value) }); + let msg = this.validatorOutstandingRewardsRecord({ value: ValidatorOutstandingRewardsRecord.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidatorAccumulatedCommission: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidatorOutstandingRewardsRecord: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }) { + async sendMsgUpdateParams({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); } }, async sendMsgDepositValidatorRewardsPoolResponse({ value, fee, memo }) { @@ -269,298 +269,298 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgDepositValidatorRewardsPoolResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegationTotalRewardsResponse({ value, fee, memo }) { + async sendQueryCommunityPoolRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegationTotalRewardsResponse: 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.queryDelegationTotalRewardsResponse({ value: QueryDelegationTotalRewardsResponse.fromPartial(value) }); + let msg = this.queryCommunityPoolRequest({ value: QueryCommunityPoolRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegationTotalRewardsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryCommunityPoolRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegatorWithdrawAddressRequest({ value, fee, memo }) { + async sendValidatorAccumulatedCommission({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorWithdrawAddressRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendValidatorAccumulatedCommission: Unable to 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.validatorAccumulatedCommission({ value: ValidatorAccumulatedCommission.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegatorWithdrawAddressRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidatorAccumulatedCommission: Could not broadcast Tx: ' + e.message); } }, - async sendQueryCommunityPoolRequest({ value, fee, memo }) { + async sendValidatorHistoricalRewardsRecord({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryCommunityPoolRequest: 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.queryCommunityPoolRequest({ value: QueryCommunityPoolRequest.fromPartial(value) }); + let msg = this.validatorHistoricalRewardsRecord({ value: ValidatorHistoricalRewardsRecord.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryCommunityPoolRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidatorHistoricalRewardsRecord: Could not broadcast Tx: ' + e.message); } }, - async sendValidatorSlashEvents({ value, fee, memo }) { + async sendValidatorCurrentRewardsRecord({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidatorSlashEvents: 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.validatorSlashEvents({ value: ValidatorSlashEvents.fromPartial(value) }); + let msg = this.validatorCurrentRewardsRecord({ value: ValidatorCurrentRewardsRecord.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidatorSlashEvents: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidatorCurrentRewardsRecord: Could not broadcast Tx: ' + e.message); } }, - async sendCommunityPoolSpendProposal({ value, fee, memo }) { + async sendDelegatorStartingInfoRecord({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendCommunityPoolSpendProposal: 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.communityPoolSpendProposal({ value: CommunityPoolSpendProposal.fromPartial(value) }); + let msg = this.delegatorStartingInfoRecord({ value: DelegatorStartingInfoRecord.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendCommunityPoolSpendProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDelegatorStartingInfoRecord: Could not broadcast Tx: ' + e.message); } }, - async sendCommunityPoolSpendProposalWithDeposit({ value, fee, memo }) { + async sendQueryDelegatorValidatorsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendCommunityPoolSpendProposalWithDeposit: 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.communityPoolSpendProposalWithDeposit({ value: CommunityPoolSpendProposalWithDeposit.fromPartial(value) }); + let msg = this.queryDelegatorValidatorsResponse({ value: QueryDelegatorValidatorsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendCommunityPoolSpendProposalWithDeposit: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParams({ value, fee, memo }) { + async sendValidatorOutstandingRewards({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); + let msg = this.validatorOutstandingRewards({ value: ValidatorOutstandingRewards.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidatorOutstandingRewards: Could not broadcast Tx: ' + e.message); } }, - async sendQueryValidatorDistributionInfoResponse({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryValidatorDistributionInfoResponse: 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.queryValidatorDistributionInfoResponse({ value: QueryValidatorDistributionInfoResponse.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryValidatorDistributionInfoResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendDelegatorWithdrawInfo({ value, fee, memo }) { + async sendMsgSetWithdrawAddressResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDelegatorWithdrawInfo: 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.delegatorWithdrawInfo({ value: DelegatorWithdrawInfo.fromPartial(value) }); + let msg = this.msgSetWithdrawAddressResponse({ value: MsgSetWithdrawAddressResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDelegatorWithdrawInfo: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSetWithdrawAddressResponse: Could not broadcast Tx: ' + e.message); } }, - async sendParams({ value, fee, memo }) { + async sendMsgWithdrawDelegatorReward({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgWithdrawDelegatorReward: Unable to 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.msgWithdrawDelegatorReward({ value: MsgWithdrawDelegatorReward.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgWithdrawDelegatorReward: Could not broadcast Tx: ' + e.message); } }, - async sendMsgWithdrawDelegatorRewardResponse({ value, fee, memo }) { + async sendMsgFundCommunityPool({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgWithdrawDelegatorRewardResponse: 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.msgWithdrawDelegatorRewardResponse({ value: MsgWithdrawDelegatorRewardResponse.fromPartial(value) }); + let msg = this.msgFundCommunityPool({ value: MsgFundCommunityPool.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgWithdrawDelegatorRewardResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgFundCommunityPool: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegationTotalRewardsRequest({ value, fee, memo }) { + async sendMsgCommunityPoolSpendResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegationTotalRewardsRequest: 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.queryDelegationTotalRewardsRequest({ value: QueryDelegationTotalRewardsRequest.fromPartial(value) }); + let msg = this.msgCommunityPoolSpendResponse({ value: MsgCommunityPoolSpendResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegationTotalRewardsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCommunityPoolSpendResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegatorValidatorsRequest({ value, fee, memo }) { + async sendQueryValidatorOutstandingRewardsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: 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.queryDelegatorValidatorsRequest({ value: QueryDelegatorValidatorsRequest.fromPartial(value) }); + let msg = this.queryValidatorOutstandingRewardsResponse({ value: QueryValidatorOutstandingRewardsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryValidatorOutstandingRewardsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendValidatorOutstandingRewardsRecord({ value, fee, memo }) { + async sendQueryDelegatorValidatorsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidatorOutstandingRewardsRecord: 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.validatorOutstandingRewardsRecord({ value: ValidatorOutstandingRewardsRecord.fromPartial(value) }); + let msg = this.queryDelegatorValidatorsRequest({ value: QueryDelegatorValidatorsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidatorOutstandingRewardsRecord: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgWithdrawValidatorCommissionResponse({ value, fee, memo }) { + async sendValidatorSlashEvent({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgWithdrawValidatorCommissionResponse: Unable to sign Tx. Signer is not present.'); + 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.msgWithdrawValidatorCommissionResponse({ value: MsgWithdrawValidatorCommissionResponse.fromPartial(value) }); + let msg = this.validatorSlashEvent({ value: ValidatorSlashEvent.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgWithdrawValidatorCommissionResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidatorSlashEvent: Could not broadcast Tx: ' + e.message); } }, - async sendMsgFundCommunityPool({ value, fee, memo }) { + async sendValidatorSlashEventRecord({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgFundCommunityPool: 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.msgFundCommunityPool({ value: MsgFundCommunityPool.fromPartial(value) }); + let msg = this.validatorSlashEventRecord({ value: ValidatorSlashEventRecord.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgFundCommunityPool: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidatorSlashEventRecord: Could not broadcast Tx: ' + e.message); } }, - async sendFeePool({ value, fee, memo }) { + async sendQueryValidatorCommissionRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendFeePool: 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.feePool({ value: FeePool.fromPartial(value) }); + let msg = this.queryValidatorCommissionRequest({ value: QueryValidatorCommissionRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendFeePool: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryValidatorCommissionRequest: Could not broadcast Tx: ' + e.message); } }, - async sendValidatorAccumulatedCommissionRecord({ value, fee, memo }) { + async sendQueryDelegationRewardsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidatorAccumulatedCommissionRecord: 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.validatorAccumulatedCommissionRecord({ value: ValidatorAccumulatedCommissionRecord.fromPartial(value) }); + let msg = this.queryDelegationRewardsRequest({ value: QueryDelegationRewardsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidatorAccumulatedCommissionRecord: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegationRewardsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgWithdrawValidatorCommission({ value, fee, memo }) { + async sendFeePool({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgWithdrawValidatorCommission: 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.msgWithdrawValidatorCommission({ value: MsgWithdrawValidatorCommission.fromPartial(value) }); + let msg = this.feePool({ value: FeePool.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendFeePool: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsRequest({ value, fee, memo }) { + async sendMsgCommunityPoolSpend({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: 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.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); + let msg = this.msgCommunityPoolSpend({ value: MsgCommunityPoolSpend.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCommunityPoolSpend: Could not broadcast Tx: ' + e.message); } }, - async sendQueryValidatorDistributionInfoRequest({ value, fee, memo }) { + async sendCommunityPoolSpendProposalWithDeposit({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryValidatorDistributionInfoRequest: 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.queryValidatorDistributionInfoRequest({ value: QueryValidatorDistributionInfoRequest.fromPartial(value) }); + let msg = this.communityPoolSpendProposalWithDeposit({ value: CommunityPoolSpendProposalWithDeposit.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryValidatorDistributionInfoRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendCommunityPoolSpendProposalWithDeposit: Could not broadcast Tx: ' + e.message); } }, async sendQueryValidatorCommissionResponse({ value, fee, memo }) { @@ -577,360 +577,360 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendQueryValidatorCommissionResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegationRewardsRequest({ value, fee, memo }) { + async sendMsgWithdrawValidatorCommissionResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegationRewardsRequest: 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.queryDelegationRewardsRequest({ value: QueryDelegationRewardsRequest.fromPartial(value) }); + let msg = this.msgWithdrawValidatorCommissionResponse({ value: MsgWithdrawValidatorCommissionResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegationRewardsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgWithdrawValidatorCommissionResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryCommunityPoolResponse({ value, fee, memo }) { + async sendMsgDepositValidatorRewardsPool({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryCommunityPoolResponse: 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.queryCommunityPoolResponse({ value: QueryCommunityPoolResponse.fromPartial(value) }); + let msg = this.msgDepositValidatorRewardsPool({ value: MsgDepositValidatorRewardsPool.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryCommunityPoolResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgDepositValidatorRewardsPool: Could not broadcast Tx: ' + e.message); } }, - async sendValidatorCurrentRewardsRecord({ value, fee, memo }) { + async sendDelegatorWithdrawInfo({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidatorCurrentRewardsRecord: 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.validatorCurrentRewardsRecord({ value: ValidatorCurrentRewardsRecord.fromPartial(value) }); + let msg = this.delegatorWithdrawInfo({ value: DelegatorWithdrawInfo.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidatorCurrentRewardsRecord: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDelegatorWithdrawInfo: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsResponse({ value, fee, memo }) { + async sendMsgWithdrawValidatorCommission({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Unable to 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.msgWithdrawValidatorCommission({ value: MsgWithdrawValidatorCommission.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgWithdrawValidatorCommission: Could not broadcast Tx: ' + e.message); } }, - async sendQueryValidatorCommissionRequest({ value, fee, memo }) { + async sendMsgFundCommunityPoolResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryValidatorCommissionRequest: 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.queryValidatorCommissionRequest({ value: QueryValidatorCommissionRequest.fromPartial(value) }); + let msg = this.msgFundCommunityPoolResponse({ value: MsgFundCommunityPoolResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryValidatorCommissionRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgFundCommunityPoolResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegatorValidatorsResponse({ value, fee, memo }) { + async sendValidatorHistoricalRewards({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: 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.queryDelegatorValidatorsResponse({ value: QueryDelegatorValidatorsResponse.fromPartial(value) }); + let msg = this.validatorHistoricalRewards({ value: ValidatorHistoricalRewards.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidatorHistoricalRewards: Could not broadcast Tx: ' + e.message); } }, - async sendValidatorHistoricalRewardsRecord({ value, fee, memo }) { + async sendValidatorCurrentRewards({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidatorHistoricalRewardsRecord: 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.validatorHistoricalRewardsRecord({ value: ValidatorHistoricalRewardsRecord.fromPartial(value) }); + let msg = this.validatorCurrentRewards({ value: ValidatorCurrentRewards.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidatorHistoricalRewardsRecord: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidatorCurrentRewards: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendQueryParamsRequest({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendValidatorHistoricalRewards({ value, fee, memo }) { + async sendMsgUpdateParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidatorHistoricalRewards: 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.validatorHistoricalRewards({ value: ValidatorHistoricalRewards.fromPartial(value) }); + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidatorHistoricalRewards: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendValidatorOutstandingRewards({ value, fee, memo }) { + async sendQueryValidatorSlashesResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidatorOutstandingRewards: 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.validatorOutstandingRewards({ value: ValidatorOutstandingRewards.fromPartial(value) }); + let msg = this.queryValidatorSlashesResponse({ value: QueryValidatorSlashesResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidatorOutstandingRewards: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryValidatorSlashesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSetWithdrawAddress({ value, fee, memo }) { + async sendMsgWithdrawDelegatorRewardResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSetWithdrawAddress: 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.msgSetWithdrawAddress({ value: MsgSetWithdrawAddress.fromPartial(value) }); + let msg = this.msgWithdrawDelegatorRewardResponse({ value: MsgWithdrawDelegatorRewardResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSetWithdrawAddress: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgWithdrawDelegatorRewardResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryValidatorOutstandingRewardsRequest({ value, fee, memo }) { + async sendQueryDelegatorWithdrawAddressResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryValidatorOutstandingRewardsRequest: 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.queryValidatorOutstandingRewardsRequest({ value: QueryValidatorOutstandingRewardsRequest.fromPartial(value) }); + let msg = this.queryDelegatorWithdrawAddressResponse({ value: QueryDelegatorWithdrawAddressResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryValidatorOutstandingRewardsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegatorWithdrawAddressResponse: Could not broadcast Tx: ' + e.message); } }, - async sendValidatorSlashEventRecord({ value, fee, memo }) { + async sendDelegatorStartingInfo({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidatorSlashEventRecord: 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.validatorSlashEventRecord({ value: ValidatorSlashEventRecord.fromPartial(value) }); + let msg = this.delegatorStartingInfo({ value: DelegatorStartingInfo.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidatorSlashEventRecord: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDelegatorStartingInfo: Could not broadcast Tx: ' + e.message); } }, - async sendValidatorCurrentRewards({ value, fee, memo }) { + async sendQueryValidatorDistributionInfoResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidatorCurrentRewards: 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.validatorCurrentRewards({ value: ValidatorCurrentRewards.fromPartial(value) }); + let msg = this.queryValidatorDistributionInfoResponse({ value: QueryValidatorDistributionInfoResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidatorCurrentRewards: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryValidatorDistributionInfoResponse: Could not broadcast Tx: ' + e.message); } }, - async sendDelegationDelegatorReward({ value, fee, memo }) { + async sendQueryDelegationTotalRewardsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDelegationDelegatorReward: 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.delegationDelegatorReward({ value: DelegationDelegatorReward.fromPartial(value) }); + let msg = this.queryDelegationTotalRewardsRequest({ value: QueryDelegationTotalRewardsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDelegationDelegatorReward: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegationTotalRewardsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryValidatorSlashesRequest({ value, fee, memo }) { + async sendQueryDelegationTotalRewardsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryValidatorSlashesRequest: 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.queryValidatorSlashesRequest({ value: QueryValidatorSlashesRequest.fromPartial(value) }); + let msg = this.queryDelegationTotalRewardsResponse({ value: QueryDelegationTotalRewardsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryValidatorSlashesRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegationTotalRewardsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegatorWithdrawAddressResponse({ value, fee, memo }) { + async sendQueryDelegatorWithdrawAddressRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorWithdrawAddressResponse: 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.queryDelegatorWithdrawAddressResponse({ value: QueryDelegatorWithdrawAddressResponse.fromPartial(value) }); + let msg = this.queryDelegatorWithdrawAddressRequest({ value: QueryDelegatorWithdrawAddressRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegatorWithdrawAddressResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegatorWithdrawAddressRequest: Could not broadcast Tx: ' + e.message); } }, - async sendDelegatorStartingInfoRecord({ value, fee, memo }) { + async sendQueryCommunityPoolResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDelegatorStartingInfoRecord: 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.delegatorStartingInfoRecord({ value: DelegatorStartingInfoRecord.fromPartial(value) }); + let msg = this.queryCommunityPoolResponse({ value: QueryCommunityPoolResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDelegatorStartingInfoRecord: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryCommunityPoolResponse: Could not broadcast Tx: ' + e.message); } }, - msgWithdrawDelegatorReward({ value }) { + msgSetWithdrawAddress({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", value: MsgWithdrawDelegatorReward.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: MsgSetWithdrawAddress.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgWithdrawDelegatorReward: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSetWithdrawAddress: Could not create message: ' + e.message); } }, - msgCommunityPoolSpendResponse({ value }) { + validatorSlashEvents({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse", value: MsgCommunityPoolSpendResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", value: ValidatorSlashEvents.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCommunityPoolSpendResponse: Could not create message: ' + e.message); + throw new Error('TxClient:ValidatorSlashEvents: Could not create message: ' + e.message); } }, - msgDepositValidatorRewardsPool({ value }) { + queryDelegationRewardsResponse({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool", value: MsgDepositValidatorRewardsPool.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", value: QueryDelegationRewardsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgDepositValidatorRewardsPool: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegationRewardsResponse: Could not create message: ' + e.message); } }, - delegatorStartingInfo({ value }) { + communityPoolSpendProposal({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", value: DelegatorStartingInfo.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", value: CommunityPoolSpendProposal.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DelegatorStartingInfo: Could not create message: ' + e.message); + throw new Error('TxClient:CommunityPoolSpendProposal: Could not create message: ' + e.message); } }, - msgSetWithdrawAddressResponse({ value }) { + queryValidatorDistributionInfoRequest({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", value: MsgSetWithdrawAddressResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest", value: QueryValidatorDistributionInfoRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSetWithdrawAddressResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryValidatorDistributionInfoRequest: Could not create message: ' + e.message); } }, - msgCommunityPoolSpend({ value }) { + queryValidatorOutstandingRewardsRequest({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", value: MsgCommunityPoolSpend.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", value: QueryValidatorOutstandingRewardsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCommunityPoolSpend: Could not create message: ' + e.message); + throw new Error('TxClient:QueryValidatorOutstandingRewardsRequest: Could not create message: ' + e.message); } }, - queryValidatorOutstandingRewardsResponse({ value }) { + queryValidatorSlashesRequest({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", value: QueryValidatorOutstandingRewardsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", value: QueryValidatorSlashesRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryValidatorOutstandingRewardsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryValidatorSlashesRequest: Could not create message: ' + e.message); } }, - queryDelegationRewardsResponse({ value }) { + params({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", value: QueryDelegationRewardsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.Params", value: Params.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegationRewardsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Params: Could not create message: ' + e.message); } }, - validatorSlashEvent({ value }) { + delegationDelegatorReward({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", value: ValidatorSlashEvent.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", value: DelegationDelegatorReward.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ValidatorSlashEvent: Could not create message: ' + e.message); + throw new Error('TxClient:DelegationDelegatorReward: Could not create message: ' + e.message); } }, - msgFundCommunityPoolResponse({ value }) { + validatorAccumulatedCommissionRecord({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", value: MsgFundCommunityPoolResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", value: ValidatorAccumulatedCommissionRecord.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgFundCommunityPoolResponse: Could not create message: ' + e.message); + throw new Error('TxClient:ValidatorAccumulatedCommissionRecord: Could not create message: ' + e.message); } }, - queryValidatorSlashesResponse({ value }) { + queryParamsResponse({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", value: QueryValidatorSlashesResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryValidatorSlashesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); } }, - validatorAccumulatedCommission({ value }) { + validatorOutstandingRewardsRecord({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", value: ValidatorAccumulatedCommission.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", value: ValidatorOutstandingRewardsRecord.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ValidatorAccumulatedCommission: Could not create message: ' + e.message); + throw new Error('TxClient:ValidatorOutstandingRewardsRecord: Could not create message: ' + e.message); } }, - msgUpdateParamsResponse({ value }) { + msgUpdateParams({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); } }, msgDepositValidatorRewardsPoolResponse({ value }) { @@ -941,172 +941,172 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgDepositValidatorRewardsPoolResponse: Could not create message: ' + e.message); } }, - queryDelegationTotalRewardsResponse({ value }) { + queryCommunityPoolRequest({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", value: QueryDelegationTotalRewardsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", value: QueryCommunityPoolRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegationTotalRewardsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryCommunityPoolRequest: Could not create message: ' + e.message); } }, - queryDelegatorWithdrawAddressRequest({ value }) { + validatorAccumulatedCommission({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", value: QueryDelegatorWithdrawAddressRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", value: ValidatorAccumulatedCommission.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegatorWithdrawAddressRequest: Could not create message: ' + e.message); + throw new Error('TxClient:ValidatorAccumulatedCommission: Could not create message: ' + e.message); } }, - queryCommunityPoolRequest({ value }) { + validatorHistoricalRewardsRecord({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", value: QueryCommunityPoolRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", value: ValidatorHistoricalRewardsRecord.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryCommunityPoolRequest: Could not create message: ' + e.message); + throw new Error('TxClient:ValidatorHistoricalRewardsRecord: Could not create message: ' + e.message); } }, - validatorSlashEvents({ value }) { + validatorCurrentRewardsRecord({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvents", value: ValidatorSlashEvents.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", value: ValidatorCurrentRewardsRecord.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ValidatorSlashEvents: Could not create message: ' + e.message); + throw new Error('TxClient:ValidatorCurrentRewardsRecord: Could not create message: ' + e.message); } }, - communityPoolSpendProposal({ value }) { + delegatorStartingInfoRecord({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", value: CommunityPoolSpendProposal.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", value: DelegatorStartingInfoRecord.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:CommunityPoolSpendProposal: Could not create message: ' + e.message); + throw new Error('TxClient:DelegatorStartingInfoRecord: Could not create message: ' + e.message); } }, - communityPoolSpendProposalWithDeposit({ value }) { + queryDelegatorValidatorsResponse({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", value: CommunityPoolSpendProposalWithDeposit.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", value: QueryDelegatorValidatorsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:CommunityPoolSpendProposalWithDeposit: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegatorValidatorsResponse: Could not create message: ' + e.message); } }, - msgUpdateParams({ value }) { + validatorOutstandingRewards({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", value: ValidatorOutstandingRewards.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); + throw new Error('TxClient:ValidatorOutstandingRewards: Could not create message: ' + e.message); } }, - queryValidatorDistributionInfoResponse({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse", value: QueryValidatorDistributionInfoResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryValidatorDistributionInfoResponse: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - delegatorWithdrawInfo({ value }) { + msgSetWithdrawAddressResponse({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", value: DelegatorWithdrawInfo.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", value: MsgSetWithdrawAddressResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DelegatorWithdrawInfo: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSetWithdrawAddressResponse: Could not create message: ' + e.message); } }, - params({ value }) { + msgWithdrawDelegatorReward({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.Params", value: Params.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", value: MsgWithdrawDelegatorReward.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Params: Could not create message: ' + e.message); + throw new Error('TxClient:MsgWithdrawDelegatorReward: Could not create message: ' + e.message); } }, - msgWithdrawDelegatorRewardResponse({ value }) { + msgFundCommunityPool({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", value: MsgWithdrawDelegatorRewardResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: MsgFundCommunityPool.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgWithdrawDelegatorRewardResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgFundCommunityPool: Could not create message: ' + e.message); } }, - queryDelegationTotalRewardsRequest({ value }) { + msgCommunityPoolSpendResponse({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", value: QueryDelegationTotalRewardsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse", value: MsgCommunityPoolSpendResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegationTotalRewardsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCommunityPoolSpendResponse: Could not create message: ' + e.message); } }, - queryDelegatorValidatorsRequest({ value }) { + queryValidatorOutstandingRewardsResponse({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", value: QueryDelegatorValidatorsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", value: QueryValidatorOutstandingRewardsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegatorValidatorsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryValidatorOutstandingRewardsResponse: Could not create message: ' + e.message); } }, - validatorOutstandingRewardsRecord({ value }) { + queryDelegatorValidatorsRequest({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", value: ValidatorOutstandingRewardsRecord.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", value: QueryDelegatorValidatorsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ValidatorOutstandingRewardsRecord: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegatorValidatorsRequest: Could not create message: ' + e.message); } }, - msgWithdrawValidatorCommissionResponse({ value }) { + validatorSlashEvent({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", value: MsgWithdrawValidatorCommissionResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEvent", value: ValidatorSlashEvent.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgWithdrawValidatorCommissionResponse: Could not create message: ' + e.message); + throw new Error('TxClient:ValidatorSlashEvent: Could not create message: ' + e.message); } }, - msgFundCommunityPool({ value }) { + validatorSlashEventRecord({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: MsgFundCommunityPool.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", value: ValidatorSlashEventRecord.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgFundCommunityPool: Could not create message: ' + e.message); + throw new Error('TxClient:ValidatorSlashEventRecord: Could not create message: ' + e.message); } }, - feePool({ value }) { + queryValidatorCommissionRequest({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.FeePool", value: FeePool.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", value: QueryValidatorCommissionRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:FeePool: Could not create message: ' + e.message); + throw new Error('TxClient:QueryValidatorCommissionRequest: Could not create message: ' + e.message); } }, - validatorAccumulatedCommissionRecord({ value }) { + queryDelegationRewardsRequest({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", value: ValidatorAccumulatedCommissionRecord.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", value: QueryDelegationRewardsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ValidatorAccumulatedCommissionRecord: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegationRewardsRequest: Could not create message: ' + e.message); } }, - msgWithdrawValidatorCommission({ value }) { + feePool({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: MsgWithdrawValidatorCommission.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.FeePool", value: FeePool.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgWithdrawValidatorCommission: Could not create message: ' + e.message); + throw new Error('TxClient:FeePool: Could not create message: ' + e.message); } }, - queryParamsRequest({ value }) { + msgCommunityPoolSpend({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", value: MsgCommunityPoolSpend.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCommunityPoolSpend: Could not create message: ' + e.message); } }, - queryValidatorDistributionInfoRequest({ value }) { + communityPoolSpendProposalWithDeposit({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest", value: QueryValidatorDistributionInfoRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", value: CommunityPoolSpendProposalWithDeposit.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryValidatorDistributionInfoRequest: Could not create message: ' + e.message); + throw new Error('TxClient:CommunityPoolSpendProposalWithDeposit: Could not create message: ' + e.message); } }, queryValidatorCommissionResponse({ value }) { @@ -1117,148 +1117,148 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:QueryValidatorCommissionResponse: Could not create message: ' + e.message); } }, - queryDelegationRewardsRequest({ value }) { + msgWithdrawValidatorCommissionResponse({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", value: QueryDelegationRewardsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", value: MsgWithdrawValidatorCommissionResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegationRewardsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgWithdrawValidatorCommissionResponse: Could not create message: ' + e.message); } }, - queryCommunityPoolResponse({ value }) { + msgDepositValidatorRewardsPool({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", value: QueryCommunityPoolResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool", value: MsgDepositValidatorRewardsPool.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryCommunityPoolResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgDepositValidatorRewardsPool: Could not create message: ' + e.message); } }, - validatorCurrentRewardsRecord({ value }) { + delegatorWithdrawInfo({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", value: ValidatorCurrentRewardsRecord.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", value: DelegatorWithdrawInfo.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ValidatorCurrentRewardsRecord: Could not create message: ' + e.message); + throw new Error('TxClient:DelegatorWithdrawInfo: Could not create message: ' + e.message); } }, - queryParamsResponse({ value }) { + msgWithdrawValidatorCommission({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: MsgWithdrawValidatorCommission.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgWithdrawValidatorCommission: Could not create message: ' + e.message); } }, - queryValidatorCommissionRequest({ value }) { + msgFundCommunityPoolResponse({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", value: QueryValidatorCommissionRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", value: MsgFundCommunityPoolResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryValidatorCommissionRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgFundCommunityPoolResponse: Could not create message: ' + e.message); } }, - queryDelegatorValidatorsResponse({ value }) { + validatorHistoricalRewards({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", value: QueryDelegatorValidatorsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", value: ValidatorHistoricalRewards.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegatorValidatorsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:ValidatorHistoricalRewards: Could not create message: ' + e.message); } }, - validatorHistoricalRewardsRecord({ value }) { + validatorCurrentRewards({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", value: ValidatorHistoricalRewardsRecord.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", value: ValidatorCurrentRewards.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ValidatorHistoricalRewardsRecord: Could not create message: ' + e.message); + throw new Error('TxClient:ValidatorCurrentRewards: Could not create message: ' + e.message); } }, - genesisState({ value }) { + queryParamsRequest({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); } }, - validatorHistoricalRewards({ value }) { + msgUpdateParamsResponse({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", value: ValidatorHistoricalRewards.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ValidatorHistoricalRewards: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); } }, - validatorOutstandingRewards({ value }) { + queryValidatorSlashesResponse({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", value: ValidatorOutstandingRewards.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", value: QueryValidatorSlashesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ValidatorOutstandingRewards: Could not create message: ' + e.message); + throw new Error('TxClient:QueryValidatorSlashesResponse: Could not create message: ' + e.message); } }, - msgSetWithdrawAddress({ value }) { + msgWithdrawDelegatorRewardResponse({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: MsgSetWithdrawAddress.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", value: MsgWithdrawDelegatorRewardResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSetWithdrawAddress: Could not create message: ' + e.message); + throw new Error('TxClient:MsgWithdrawDelegatorRewardResponse: Could not create message: ' + e.message); } }, - queryValidatorOutstandingRewardsRequest({ value }) { + queryDelegatorWithdrawAddressResponse({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", value: QueryValidatorOutstandingRewardsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", value: QueryDelegatorWithdrawAddressResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryValidatorOutstandingRewardsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegatorWithdrawAddressResponse: Could not create message: ' + e.message); } }, - validatorSlashEventRecord({ value }) { + delegatorStartingInfo({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", value: ValidatorSlashEventRecord.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfo", value: DelegatorStartingInfo.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ValidatorSlashEventRecord: Could not create message: ' + e.message); + throw new Error('TxClient:DelegatorStartingInfo: Could not create message: ' + e.message); } }, - validatorCurrentRewards({ value }) { + queryValidatorDistributionInfoResponse({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.ValidatorCurrentRewards", value: ValidatorCurrentRewards.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse", value: QueryValidatorDistributionInfoResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ValidatorCurrentRewards: Could not create message: ' + e.message); + throw new Error('TxClient:QueryValidatorDistributionInfoResponse: Could not create message: ' + e.message); } }, - delegationDelegatorReward({ value }) { + queryDelegationTotalRewardsRequest({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.DelegationDelegatorReward", value: DelegationDelegatorReward.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", value: QueryDelegationTotalRewardsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DelegationDelegatorReward: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegationTotalRewardsRequest: Could not create message: ' + e.message); } }, - queryValidatorSlashesRequest({ value }) { + queryDelegationTotalRewardsResponse({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", value: QueryValidatorSlashesRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", value: QueryDelegationTotalRewardsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryValidatorSlashesRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegationTotalRewardsResponse: Could not create message: ' + e.message); } }, - queryDelegatorWithdrawAddressResponse({ value }) { + queryDelegatorWithdrawAddressRequest({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", value: QueryDelegatorWithdrawAddressResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", value: QueryDelegatorWithdrawAddressRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegatorWithdrawAddressResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegatorWithdrawAddressRequest: Could not create message: ' + e.message); } }, - delegatorStartingInfoRecord({ value }) { + queryCommunityPoolResponse({ value }) { try { - return { typeUrl: "/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", value: DelegatorStartingInfoRecord.fromPartial(value) }; + return { typeUrl: "/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", value: QueryCommunityPoolResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DelegatorStartingInfoRecord: Could not create message: ' + e.message); + throw new Error('TxClient:QueryCommunityPoolResponse: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.distribution.v1beta1/registry.js b/ts-client/lib/cosmos.distribution.v1beta1/registry.js index 4c0af8451..0e7f629a5 100644 --- a/ts-client/lib/cosmos.distribution.v1beta1/registry.js +++ b/ts-client/lib/cosmos.distribution.v1beta1/registry.js @@ -1,111 +1,111 @@ -import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgCommunityPoolSpendResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgDepositValidatorRewardsPool } from "./types/cosmos/distribution/v1beta1/tx"; -import { DelegatorStartingInfo } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgSetWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorOutstandingRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegationRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorSlashEvent } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgFundCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorSlashesResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorAccumulatedCommission } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgUpdateParamsResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgDepositValidatorRewardsPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryDelegationTotalRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorWithdrawAddressRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryCommunityPoolRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; import { ValidatorSlashEvents } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryDelegationRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; import { CommunityPoolSpendProposal } from "./types/cosmos/distribution/v1beta1/distribution"; -import { CommunityPoolSpendProposalWithDeposit } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorDistributionInfoResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { DelegatorWithdrawInfo } from "./types/cosmos/distribution/v1beta1/genesis"; +import { QueryValidatorDistributionInfoRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryValidatorOutstandingRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryValidatorSlashesRequest } from "./types/cosmos/distribution/v1beta1/query"; import { Params } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgWithdrawDelegatorRewardResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryDelegationTotalRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorValidatorsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorOutstandingRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { MsgWithdrawValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/tx"; -import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; -import { FeePool } from "./types/cosmos/distribution/v1beta1/distribution"; +import { DelegationDelegatorReward } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorAccumulatedCommissionRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryParamsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryValidatorDistributionInfoRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegationRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { ValidatorCurrentRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; import { QueryParamsResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryValidatorCommissionRequest } from "./types/cosmos/distribution/v1beta1/query"; -import { QueryDelegatorValidatorsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorOutstandingRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgUpdateParams } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgDepositValidatorRewardsPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryCommunityPoolRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorAccumulatedCommission } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorHistoricalRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; -import { GenesisState } from "./types/cosmos/distribution/v1beta1/genesis"; -import { ValidatorHistoricalRewards } from "./types/cosmos/distribution/v1beta1/distribution"; +import { ValidatorCurrentRewardsRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { DelegatorStartingInfoRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { QueryDelegatorValidatorsResponse } from "./types/cosmos/distribution/v1beta1/query"; import { ValidatorOutstandingRewards } from "./types/cosmos/distribution/v1beta1/distribution"; -import { MsgSetWithdrawAddress } from "./types/cosmos/distribution/v1beta1/tx"; -import { QueryValidatorOutstandingRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { GenesisState } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgSetWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgWithdrawDelegatorReward } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgFundCommunityPool } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgCommunityPoolSpendResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorOutstandingRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegatorValidatorsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { ValidatorSlashEvent } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorSlashEventRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { QueryValidatorCommissionRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { FeePool } from "./types/cosmos/distribution/v1beta1/distribution"; +import { MsgCommunityPoolSpend } from "./types/cosmos/distribution/v1beta1/tx"; +import { CommunityPoolSpendProposalWithDeposit } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgWithdrawValidatorCommissionResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgDepositValidatorRewardsPool } from "./types/cosmos/distribution/v1beta1/tx"; +import { DelegatorWithdrawInfo } from "./types/cosmos/distribution/v1beta1/genesis"; +import { MsgWithdrawValidatorCommission } from "./types/cosmos/distribution/v1beta1/tx"; +import { MsgFundCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { ValidatorHistoricalRewards } from "./types/cosmos/distribution/v1beta1/distribution"; import { ValidatorCurrentRewards } from "./types/cosmos/distribution/v1beta1/distribution"; -import { DelegationDelegatorReward } from "./types/cosmos/distribution/v1beta1/distribution"; -import { QueryValidatorSlashesRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/distribution/v1beta1/tx"; +import { QueryValidatorSlashesResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { MsgWithdrawDelegatorRewardResponse } from "./types/cosmos/distribution/v1beta1/tx"; import { QueryDelegatorWithdrawAddressResponse } from "./types/cosmos/distribution/v1beta1/query"; -import { DelegatorStartingInfoRecord } from "./types/cosmos/distribution/v1beta1/genesis"; +import { DelegatorStartingInfo } from "./types/cosmos/distribution/v1beta1/distribution"; +import { QueryValidatorDistributionInfoResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationTotalRewardsRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegationTotalRewardsResponse } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryDelegatorWithdrawAddressRequest } from "./types/cosmos/distribution/v1beta1/query"; +import { QueryCommunityPoolResponse } from "./types/cosmos/distribution/v1beta1/query"; const msgTypes = [ - ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward], - ["/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse", MsgCommunityPoolSpendResponse], - ["/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool", MsgDepositValidatorRewardsPool], - ["/cosmos.distribution.v1beta1.DelegatorStartingInfo", DelegatorStartingInfo], - ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", MsgSetWithdrawAddressResponse], - ["/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", MsgCommunityPoolSpend], - ["/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", QueryValidatorOutstandingRewardsResponse], - ["/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", QueryDelegationRewardsResponse], - ["/cosmos.distribution.v1beta1.ValidatorSlashEvent", ValidatorSlashEvent], - ["/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", MsgFundCommunityPoolResponse], - ["/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", QueryValidatorSlashesResponse], - ["/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", ValidatorAccumulatedCommission], - ["/cosmos.distribution.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse", MsgDepositValidatorRewardsPoolResponse], - ["/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", QueryDelegationTotalRewardsResponse], - ["/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", QueryDelegatorWithdrawAddressRequest], - ["/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", QueryCommunityPoolRequest], + ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], ["/cosmos.distribution.v1beta1.ValidatorSlashEvents", ValidatorSlashEvents], + ["/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse", QueryDelegationRewardsResponse], ["/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", CommunityPoolSpendProposal], - ["/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", CommunityPoolSpendProposalWithDeposit], - ["/cosmos.distribution.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse", QueryValidatorDistributionInfoResponse], - ["/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", DelegatorWithdrawInfo], + ["/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest", QueryValidatorDistributionInfoRequest], + ["/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", QueryValidatorOutstandingRewardsRequest], + ["/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", QueryValidatorSlashesRequest], ["/cosmos.distribution.v1beta1.Params", Params], - ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", MsgWithdrawDelegatorRewardResponse], - ["/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", QueryDelegationTotalRewardsRequest], - ["/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", QueryDelegatorValidatorsRequest], - ["/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", ValidatorOutstandingRewardsRecord], - ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", MsgWithdrawValidatorCommissionResponse], - ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool], - ["/cosmos.distribution.v1beta1.FeePool", FeePool], + ["/cosmos.distribution.v1beta1.DelegationDelegatorReward", DelegationDelegatorReward], ["/cosmos.distribution.v1beta1.ValidatorAccumulatedCommissionRecord", ValidatorAccumulatedCommissionRecord], - ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission], - ["/cosmos.distribution.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoRequest", QueryValidatorDistributionInfoRequest], - ["/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", QueryValidatorCommissionResponse], - ["/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", QueryDelegationRewardsRequest], - ["/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", QueryCommunityPoolResponse], - ["/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", ValidatorCurrentRewardsRecord], ["/cosmos.distribution.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", QueryValidatorCommissionRequest], - ["/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", QueryDelegatorValidatorsResponse], + ["/cosmos.distribution.v1beta1.ValidatorOutstandingRewardsRecord", ValidatorOutstandingRewardsRecord], + ["/cosmos.distribution.v1beta1.MsgUpdateParams", MsgUpdateParams], + ["/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPoolResponse", MsgDepositValidatorRewardsPoolResponse], + ["/cosmos.distribution.v1beta1.QueryCommunityPoolRequest", QueryCommunityPoolRequest], + ["/cosmos.distribution.v1beta1.ValidatorAccumulatedCommission", ValidatorAccumulatedCommission], ["/cosmos.distribution.v1beta1.ValidatorHistoricalRewardsRecord", ValidatorHistoricalRewardsRecord], - ["/cosmos.distribution.v1beta1.GenesisState", GenesisState], - ["/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", ValidatorHistoricalRewards], + ["/cosmos.distribution.v1beta1.ValidatorCurrentRewardsRecord", ValidatorCurrentRewardsRecord], + ["/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", DelegatorStartingInfoRecord], + ["/cosmos.distribution.v1beta1.QueryDelegatorValidatorsResponse", QueryDelegatorValidatorsResponse], ["/cosmos.distribution.v1beta1.ValidatorOutstandingRewards", ValidatorOutstandingRewards], - ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress], - ["/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsRequest", QueryValidatorOutstandingRewardsRequest], + ["/cosmos.distribution.v1beta1.GenesisState", GenesisState], + ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddressResponse", MsgSetWithdrawAddressResponse], + ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward], + ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool], + ["/cosmos.distribution.v1beta1.MsgCommunityPoolSpendResponse", MsgCommunityPoolSpendResponse], + ["/cosmos.distribution.v1beta1.QueryValidatorOutstandingRewardsResponse", QueryValidatorOutstandingRewardsResponse], + ["/cosmos.distribution.v1beta1.QueryDelegatorValidatorsRequest", QueryDelegatorValidatorsRequest], + ["/cosmos.distribution.v1beta1.ValidatorSlashEvent", ValidatorSlashEvent], ["/cosmos.distribution.v1beta1.ValidatorSlashEventRecord", ValidatorSlashEventRecord], + ["/cosmos.distribution.v1beta1.QueryValidatorCommissionRequest", QueryValidatorCommissionRequest], + ["/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest", QueryDelegationRewardsRequest], + ["/cosmos.distribution.v1beta1.FeePool", FeePool], + ["/cosmos.distribution.v1beta1.MsgCommunityPoolSpend", MsgCommunityPoolSpend], + ["/cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit", CommunityPoolSpendProposalWithDeposit], + ["/cosmos.distribution.v1beta1.QueryValidatorCommissionResponse", QueryValidatorCommissionResponse], + ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommissionResponse", MsgWithdrawValidatorCommissionResponse], + ["/cosmos.distribution.v1beta1.MsgDepositValidatorRewardsPool", MsgDepositValidatorRewardsPool], + ["/cosmos.distribution.v1beta1.DelegatorWithdrawInfo", DelegatorWithdrawInfo], + ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission], + ["/cosmos.distribution.v1beta1.MsgFundCommunityPoolResponse", MsgFundCommunityPoolResponse], + ["/cosmos.distribution.v1beta1.ValidatorHistoricalRewards", ValidatorHistoricalRewards], ["/cosmos.distribution.v1beta1.ValidatorCurrentRewards", ValidatorCurrentRewards], - ["/cosmos.distribution.v1beta1.DelegationDelegatorReward", DelegationDelegatorReward], - ["/cosmos.distribution.v1beta1.QueryValidatorSlashesRequest", QueryValidatorSlashesRequest], + ["/cosmos.distribution.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.distribution.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.distribution.v1beta1.QueryValidatorSlashesResponse", QueryValidatorSlashesResponse], + ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse", MsgWithdrawDelegatorRewardResponse], ["/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressResponse", QueryDelegatorWithdrawAddressResponse], - ["/cosmos.distribution.v1beta1.DelegatorStartingInfoRecord", DelegatorStartingInfoRecord], + ["/cosmos.distribution.v1beta1.DelegatorStartingInfo", DelegatorStartingInfo], + ["/cosmos.distribution.v1beta1.QueryValidatorDistributionInfoResponse", QueryValidatorDistributionInfoResponse], + ["/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest", QueryDelegationTotalRewardsRequest], + ["/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse", QueryDelegationTotalRewardsResponse], + ["/cosmos.distribution.v1beta1.QueryDelegatorWithdrawAddressRequest", QueryDelegatorWithdrawAddressRequest], + ["/cosmos.distribution.v1beta1.QueryCommunityPoolResponse", QueryCommunityPoolResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.evidence.v1beta1/module.d.ts b/ts-client/lib/cosmos.evidence.v1beta1/module.d.ts index b1cc97957..a309fd261 100644 --- a/ts-client/lib/cosmos.evidence.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.evidence.v1beta1/module.d.ts @@ -2,32 +2,32 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { QueryAllEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; -import { MsgSubmitEvidence } from "./types/cosmos/evidence/v1beta1/tx"; import { QueryEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryAllEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; import { Equivocation } from "./types/cosmos/evidence/v1beta1/evidence"; -import { MsgSubmitEvidenceResponse } from "./types/cosmos/evidence/v1beta1/tx"; import { GenesisState } from "./types/cosmos/evidence/v1beta1/genesis"; +import { MsgSubmitEvidenceResponse } from "./types/cosmos/evidence/v1beta1/tx"; +import { MsgSubmitEvidence } from "./types/cosmos/evidence/v1beta1/tx"; import { QueryEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; -import { QueryAllEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; -export { QueryAllEvidenceRequest, MsgSubmitEvidence, QueryEvidenceRequest, Equivocation, MsgSubmitEvidenceResponse, GenesisState, QueryEvidenceResponse, QueryAllEvidenceResponse }; -type sendQueryAllEvidenceRequestParams = { - value: QueryAllEvidenceRequest; +import { QueryAllEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; +export { QueryEvidenceRequest, QueryAllEvidenceResponse, Equivocation, GenesisState, MsgSubmitEvidenceResponse, MsgSubmitEvidence, QueryEvidenceResponse, QueryAllEvidenceRequest }; +type sendQueryEvidenceRequestParams = { + value: QueryEvidenceRequest; fee?: StdFee; memo?: string; }; -type sendMsgSubmitEvidenceParams = { - value: MsgSubmitEvidence; +type sendQueryAllEvidenceResponseParams = { + value: QueryAllEvidenceResponse; fee?: StdFee; memo?: string; }; -type sendQueryEvidenceRequestParams = { - value: QueryEvidenceRequest; +type sendEquivocationParams = { + value: Equivocation; fee?: StdFee; memo?: string; }; -type sendEquivocationParams = { - value: Equivocation; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; @@ -36,8 +36,8 @@ type sendMsgSubmitEvidenceResponseParams = { fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendMsgSubmitEvidenceParams = { + value: MsgSubmitEvidence; fee?: StdFee; memo?: string; }; @@ -46,34 +46,34 @@ type sendQueryEvidenceResponseParams = { fee?: StdFee; memo?: string; }; -type sendQueryAllEvidenceResponseParams = { - value: QueryAllEvidenceResponse; +type sendQueryAllEvidenceRequestParams = { + value: QueryAllEvidenceRequest; fee?: StdFee; memo?: string; }; -type queryAllEvidenceRequestParams = { - value: QueryAllEvidenceRequest; -}; -type msgSubmitEvidenceParams = { - value: MsgSubmitEvidence; -}; type queryEvidenceRequestParams = { value: QueryEvidenceRequest; }; +type queryAllEvidenceResponseParams = { + value: QueryAllEvidenceResponse; +}; type equivocationParams = { value: Equivocation; }; +type genesisStateParams = { + value: GenesisState; +}; type msgSubmitEvidenceResponseParams = { value: MsgSubmitEvidenceResponse; }; -type genesisStateParams = { - value: GenesisState; +type msgSubmitEvidenceParams = { + value: MsgSubmitEvidence; }; type queryEvidenceResponseParams = { value: QueryEvidenceResponse; }; -type queryAllEvidenceResponseParams = { - value: QueryAllEvidenceResponse; +type queryAllEvidenceRequestParams = { + value: QueryAllEvidenceRequest; }; export declare const registry: Registry; interface TxClientOptions { @@ -82,22 +82,22 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendQueryAllEvidenceRequest({ value, fee, memo }: sendQueryAllEvidenceRequestParams): Promise; - sendMsgSubmitEvidence({ value, fee, memo }: sendMsgSubmitEvidenceParams): Promise; sendQueryEvidenceRequest({ value, fee, memo }: sendQueryEvidenceRequestParams): Promise; + sendQueryAllEvidenceResponse({ value, fee, memo }: sendQueryAllEvidenceResponseParams): Promise; sendEquivocation({ value, fee, memo }: sendEquivocationParams): Promise; - sendMsgSubmitEvidenceResponse({ value, fee, memo }: sendMsgSubmitEvidenceResponseParams): Promise; sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; + sendMsgSubmitEvidenceResponse({ value, fee, memo }: sendMsgSubmitEvidenceResponseParams): Promise; + sendMsgSubmitEvidence({ value, fee, memo }: sendMsgSubmitEvidenceParams): Promise; sendQueryEvidenceResponse({ value, fee, memo }: sendQueryEvidenceResponseParams): Promise; - sendQueryAllEvidenceResponse({ value, fee, memo }: sendQueryAllEvidenceResponseParams): Promise; - queryAllEvidenceRequest({ value }: queryAllEvidenceRequestParams): EncodeObject; - msgSubmitEvidence({ value }: msgSubmitEvidenceParams): EncodeObject; + sendQueryAllEvidenceRequest({ value, fee, memo }: sendQueryAllEvidenceRequestParams): Promise; queryEvidenceRequest({ value }: queryEvidenceRequestParams): EncodeObject; + queryAllEvidenceResponse({ value }: queryAllEvidenceResponseParams): EncodeObject; equivocation({ value }: equivocationParams): EncodeObject; - msgSubmitEvidenceResponse({ value }: msgSubmitEvidenceResponseParams): EncodeObject; genesisState({ value }: genesisStateParams): EncodeObject; + msgSubmitEvidenceResponse({ value }: msgSubmitEvidenceResponseParams): EncodeObject; + msgSubmitEvidence({ value }: msgSubmitEvidenceParams): EncodeObject; queryEvidenceResponse({ value }: queryEvidenceResponseParams): EncodeObject; - queryAllEvidenceResponse({ value }: queryAllEvidenceResponseParams): EncodeObject; + queryAllEvidenceRequest({ value }: queryAllEvidenceRequestParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.evidence.v1beta1/module.js b/ts-client/lib/cosmos.evidence.v1beta1/module.js index 48894b071..ea83355e1 100644 --- a/ts-client/lib/cosmos.evidence.v1beta1/module.js +++ b/ts-client/lib/cosmos.evidence.v1beta1/module.js @@ -3,15 +3,15 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { QueryAllEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; -import { MsgSubmitEvidence } from "./types/cosmos/evidence/v1beta1/tx"; import { QueryEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryAllEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; import { Equivocation } from "./types/cosmos/evidence/v1beta1/evidence"; -import { MsgSubmitEvidenceResponse } from "./types/cosmos/evidence/v1beta1/tx"; import { GenesisState } from "./types/cosmos/evidence/v1beta1/genesis"; +import { MsgSubmitEvidenceResponse } from "./types/cosmos/evidence/v1beta1/tx"; +import { MsgSubmitEvidence } from "./types/cosmos/evidence/v1beta1/tx"; import { QueryEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; -import { QueryAllEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; -export { QueryAllEvidenceRequest, MsgSubmitEvidence, QueryEvidenceRequest, Equivocation, MsgSubmitEvidenceResponse, GenesisState, QueryEvidenceResponse, QueryAllEvidenceResponse }; +import { QueryAllEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; +export { QueryEvidenceRequest, QueryAllEvidenceResponse, Equivocation, GenesisState, MsgSubmitEvidenceResponse, MsgSubmitEvidence, QueryEvidenceResponse, QueryAllEvidenceRequest }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -27,60 +27,60 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendQueryAllEvidenceRequest({ value, fee, memo }) { + async sendQueryEvidenceRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAllEvidenceRequest: 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.queryAllEvidenceRequest({ value: QueryAllEvidenceRequest.fromPartial(value) }); + let msg = this.queryEvidenceRequest({ value: QueryEvidenceRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAllEvidenceRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryEvidenceRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSubmitEvidence({ value, fee, memo }) { + async sendQueryAllEvidenceResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSubmitEvidence: 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.msgSubmitEvidence({ value: MsgSubmitEvidence.fromPartial(value) }); + let msg = this.queryAllEvidenceResponse({ value: QueryAllEvidenceResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSubmitEvidence: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAllEvidenceResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryEvidenceRequest({ value, fee, memo }) { + async sendEquivocation({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryEvidenceRequest: 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.queryEvidenceRequest({ value: QueryEvidenceRequest.fromPartial(value) }); + let msg = this.equivocation({ value: Equivocation.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryEvidenceRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendEquivocation: Could not broadcast Tx: ' + e.message); } }, - async sendEquivocation({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendEquivocation: 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.equivocation({ value: Equivocation.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendEquivocation: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, async sendMsgSubmitEvidenceResponse({ value, fee, memo }) { @@ -97,18 +97,18 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgSubmitEvidenceResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendMsgSubmitEvidence({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.fromPartial(value) }); + let msg = this.msgSubmitEvidence({ value: MsgSubmitEvidence.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSubmitEvidence: Could not broadcast Tx: ' + e.message); } }, async sendQueryEvidenceResponse({ value, fee, memo }) { @@ -125,50 +125,50 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendQueryEvidenceResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAllEvidenceResponse({ value, fee, memo }) { + async sendQueryAllEvidenceRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAllEvidenceResponse: 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.queryAllEvidenceResponse({ value: QueryAllEvidenceResponse.fromPartial(value) }); + let msg = this.queryAllEvidenceRequest({ value: QueryAllEvidenceRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAllEvidenceResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAllEvidenceRequest: Could not broadcast Tx: ' + e.message); } }, - queryAllEvidenceRequest({ value }) { + queryEvidenceRequest({ value }) { try { - return { typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceRequest", value: QueryAllEvidenceRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceRequest", value: QueryEvidenceRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAllEvidenceRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryEvidenceRequest: Could not create message: ' + e.message); } }, - msgSubmitEvidence({ value }) { + queryAllEvidenceResponse({ value }) { try { - return { typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", value: MsgSubmitEvidence.fromPartial(value) }; + return { typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceResponse", value: QueryAllEvidenceResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSubmitEvidence: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAllEvidenceResponse: Could not create message: ' + e.message); } }, - queryEvidenceRequest({ value }) { + equivocation({ value }) { try { - return { typeUrl: "/cosmos.evidence.v1beta1.QueryEvidenceRequest", value: QueryEvidenceRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.evidence.v1beta1.Equivocation", value: Equivocation.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryEvidenceRequest: Could not create message: ' + e.message); + throw new Error('TxClient:Equivocation: Could not create message: ' + e.message); } }, - equivocation({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/cosmos.evidence.v1beta1.Equivocation", value: Equivocation.fromPartial(value) }; + return { typeUrl: "/cosmos.evidence.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Equivocation: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, msgSubmitEvidenceResponse({ value }) { @@ -179,12 +179,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgSubmitEvidenceResponse: Could not create message: ' + e.message); } }, - genesisState({ value }) { + msgSubmitEvidence({ value }) { try { - return { typeUrl: "/cosmos.evidence.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/cosmos.evidence.v1beta1.MsgSubmitEvidence", value: MsgSubmitEvidence.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSubmitEvidence: Could not create message: ' + e.message); } }, queryEvidenceResponse({ value }) { @@ -195,12 +195,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:QueryEvidenceResponse: Could not create message: ' + e.message); } }, - queryAllEvidenceResponse({ value }) { + queryAllEvidenceRequest({ value }) { try { - return { typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceResponse", value: QueryAllEvidenceResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.evidence.v1beta1.QueryAllEvidenceRequest", value: QueryAllEvidenceRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAllEvidenceResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAllEvidenceRequest: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.evidence.v1beta1/registry.js b/ts-client/lib/cosmos.evidence.v1beta1/registry.js index dfd54a03a..9085ab7de 100644 --- a/ts-client/lib/cosmos.evidence.v1beta1/registry.js +++ b/ts-client/lib/cosmos.evidence.v1beta1/registry.js @@ -1,19 +1,19 @@ -import { QueryAllEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; -import { MsgSubmitEvidence } from "./types/cosmos/evidence/v1beta1/tx"; import { QueryEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryAllEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; import { Equivocation } from "./types/cosmos/evidence/v1beta1/evidence"; -import { MsgSubmitEvidenceResponse } from "./types/cosmos/evidence/v1beta1/tx"; import { GenesisState } from "./types/cosmos/evidence/v1beta1/genesis"; +import { MsgSubmitEvidenceResponse } from "./types/cosmos/evidence/v1beta1/tx"; +import { MsgSubmitEvidence } from "./types/cosmos/evidence/v1beta1/tx"; import { QueryEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; -import { QueryAllEvidenceResponse } from "./types/cosmos/evidence/v1beta1/query"; +import { QueryAllEvidenceRequest } from "./types/cosmos/evidence/v1beta1/query"; const msgTypes = [ - ["/cosmos.evidence.v1beta1.QueryAllEvidenceRequest", QueryAllEvidenceRequest], - ["/cosmos.evidence.v1beta1.MsgSubmitEvidence", MsgSubmitEvidence], ["/cosmos.evidence.v1beta1.QueryEvidenceRequest", QueryEvidenceRequest], + ["/cosmos.evidence.v1beta1.QueryAllEvidenceResponse", QueryAllEvidenceResponse], ["/cosmos.evidence.v1beta1.Equivocation", Equivocation], - ["/cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse", MsgSubmitEvidenceResponse], ["/cosmos.evidence.v1beta1.GenesisState", GenesisState], + ["/cosmos.evidence.v1beta1.MsgSubmitEvidenceResponse", MsgSubmitEvidenceResponse], + ["/cosmos.evidence.v1beta1.MsgSubmitEvidence", MsgSubmitEvidence], ["/cosmos.evidence.v1beta1.QueryEvidenceResponse", QueryEvidenceResponse], - ["/cosmos.evidence.v1beta1.QueryAllEvidenceResponse", QueryAllEvidenceResponse], + ["/cosmos.evidence.v1beta1.QueryAllEvidenceRequest", QueryAllEvidenceRequest], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.feegrant.v1beta1/module.d.ts b/ts-client/lib/cosmos.feegrant.v1beta1/module.d.ts index 0f974e6f9..b6b4c5039 100644 --- a/ts-client/lib/cosmos.feegrant.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.feegrant.v1beta1/module.d.ts @@ -2,86 +2,86 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { BasicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { MsgGrantAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; -import { GenesisState } from "./types/cosmos/feegrant/v1beta1/genesis"; -import { QueryAllowanceRequest } from "./types/cosmos/feegrant/v1beta1/query"; -import { QueryAllowancesByGranterResponse } from "./types/cosmos/feegrant/v1beta1/query"; import { MsgGrantAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; -import { QueryAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/query"; -import { PeriodicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { Grant } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { MsgPruneAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/tx"; import { QueryAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowancesRequest } from "./types/cosmos/feegrant/v1beta1/query"; import { QueryAllowancesByGranterRequest } from "./types/cosmos/feegrant/v1beta1/query"; -import { MsgRevokeAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; -import { MsgPruneAllowances } from "./types/cosmos/feegrant/v1beta1/tx"; +import { Grant } from "./types/cosmos/feegrant/v1beta1/feegrant"; import { AllowedMsgAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { QueryAllowancesRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { GenesisState } from "./types/cosmos/feegrant/v1beta1/genesis"; +import { QueryAllowancesByGranterResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { MsgPruneAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/tx"; +import { PeriodicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { BasicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { MsgGrantAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; import { MsgRevokeAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; -export { BasicAllowance, MsgGrantAllowanceResponse, GenesisState, QueryAllowanceRequest, QueryAllowancesByGranterResponse, MsgGrantAllowance, QueryAllowancesResponse, PeriodicAllowance, Grant, MsgPruneAllowancesResponse, QueryAllowanceResponse, QueryAllowancesByGranterRequest, MsgRevokeAllowanceResponse, MsgPruneAllowances, AllowedMsgAllowance, QueryAllowancesRequest, MsgRevokeAllowance }; -type sendBasicAllowanceParams = { - value: BasicAllowance; +import { MsgPruneAllowances } from "./types/cosmos/feegrant/v1beta1/tx"; +import { QueryAllowanceRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { MsgRevokeAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; +export { MsgGrantAllowance, QueryAllowanceResponse, QueryAllowancesRequest, QueryAllowancesByGranterRequest, Grant, AllowedMsgAllowance, GenesisState, QueryAllowancesByGranterResponse, MsgPruneAllowancesResponse, PeriodicAllowance, BasicAllowance, MsgGrantAllowanceResponse, MsgRevokeAllowance, MsgPruneAllowances, QueryAllowanceRequest, QueryAllowancesResponse, MsgRevokeAllowanceResponse }; +type sendMsgGrantAllowanceParams = { + value: MsgGrantAllowance; fee?: StdFee; memo?: string; }; -type sendMsgGrantAllowanceResponseParams = { - value: MsgGrantAllowanceResponse; +type sendQueryAllowanceResponseParams = { + value: QueryAllowanceResponse; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendQueryAllowancesRequestParams = { + value: QueryAllowancesRequest; fee?: StdFee; memo?: string; }; -type sendQueryAllowanceRequestParams = { - value: QueryAllowanceRequest; +type sendQueryAllowancesByGranterRequestParams = { + value: QueryAllowancesByGranterRequest; fee?: StdFee; memo?: string; }; -type sendQueryAllowancesByGranterResponseParams = { - value: QueryAllowancesByGranterResponse; +type sendGrantParams = { + value: Grant; fee?: StdFee; memo?: string; }; -type sendMsgGrantAllowanceParams = { - value: MsgGrantAllowance; +type sendAllowedMsgAllowanceParams = { + value: AllowedMsgAllowance; fee?: StdFee; memo?: string; }; -type sendQueryAllowancesResponseParams = { - value: QueryAllowancesResponse; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendPeriodicAllowanceParams = { - value: PeriodicAllowance; +type sendQueryAllowancesByGranterResponseParams = { + value: QueryAllowancesByGranterResponse; fee?: StdFee; memo?: string; }; -type sendGrantParams = { - value: Grant; +type sendMsgPruneAllowancesResponseParams = { + value: MsgPruneAllowancesResponse; fee?: StdFee; memo?: string; }; -type sendMsgPruneAllowancesResponseParams = { - value: MsgPruneAllowancesResponse; +type sendPeriodicAllowanceParams = { + value: PeriodicAllowance; fee?: StdFee; memo?: string; }; -type sendQueryAllowanceResponseParams = { - value: QueryAllowanceResponse; +type sendBasicAllowanceParams = { + value: BasicAllowance; fee?: StdFee; memo?: string; }; -type sendQueryAllowancesByGranterRequestParams = { - value: QueryAllowancesByGranterRequest; +type sendMsgGrantAllowanceResponseParams = { + value: MsgGrantAllowanceResponse; fee?: StdFee; memo?: string; }; -type sendMsgRevokeAllowanceResponseParams = { - value: MsgRevokeAllowanceResponse; +type sendMsgRevokeAllowanceParams = { + value: MsgRevokeAllowance; fee?: StdFee; memo?: string; }; @@ -90,71 +90,71 @@ type sendMsgPruneAllowancesParams = { fee?: StdFee; memo?: string; }; -type sendAllowedMsgAllowanceParams = { - value: AllowedMsgAllowance; +type sendQueryAllowanceRequestParams = { + value: QueryAllowanceRequest; fee?: StdFee; memo?: string; }; -type sendQueryAllowancesRequestParams = { - value: QueryAllowancesRequest; +type sendQueryAllowancesResponseParams = { + value: QueryAllowancesResponse; fee?: StdFee; memo?: string; }; -type sendMsgRevokeAllowanceParams = { - value: MsgRevokeAllowance; +type sendMsgRevokeAllowanceResponseParams = { + value: MsgRevokeAllowanceResponse; fee?: StdFee; memo?: string; }; -type basicAllowanceParams = { - value: BasicAllowance; +type msgGrantAllowanceParams = { + value: MsgGrantAllowance; }; -type msgGrantAllowanceResponseParams = { - value: MsgGrantAllowanceResponse; +type queryAllowanceResponseParams = { + value: QueryAllowanceResponse; +}; +type queryAllowancesRequestParams = { + value: QueryAllowancesRequest; +}; +type queryAllowancesByGranterRequestParams = { + value: QueryAllowancesByGranterRequest; +}; +type grantParams = { + value: Grant; +}; +type allowedMsgAllowanceParams = { + value: AllowedMsgAllowance; }; type genesisStateParams = { value: GenesisState; }; -type queryAllowanceRequestParams = { - value: QueryAllowanceRequest; -}; type queryAllowancesByGranterResponseParams = { value: QueryAllowancesByGranterResponse; }; -type msgGrantAllowanceParams = { - value: MsgGrantAllowance; -}; -type queryAllowancesResponseParams = { - value: QueryAllowancesResponse; +type msgPruneAllowancesResponseParams = { + value: MsgPruneAllowancesResponse; }; type periodicAllowanceParams = { value: PeriodicAllowance; }; -type grantParams = { - value: Grant; -}; -type msgPruneAllowancesResponseParams = { - value: MsgPruneAllowancesResponse; -}; -type queryAllowanceResponseParams = { - value: QueryAllowanceResponse; +type basicAllowanceParams = { + value: BasicAllowance; }; -type queryAllowancesByGranterRequestParams = { - value: QueryAllowancesByGranterRequest; +type msgGrantAllowanceResponseParams = { + value: MsgGrantAllowanceResponse; }; -type msgRevokeAllowanceResponseParams = { - value: MsgRevokeAllowanceResponse; +type msgRevokeAllowanceParams = { + value: MsgRevokeAllowance; }; type msgPruneAllowancesParams = { value: MsgPruneAllowances; }; -type allowedMsgAllowanceParams = { - value: AllowedMsgAllowance; +type queryAllowanceRequestParams = { + value: QueryAllowanceRequest; }; -type queryAllowancesRequestParams = { - value: QueryAllowancesRequest; +type queryAllowancesResponseParams = { + value: QueryAllowancesResponse; }; -type msgRevokeAllowanceParams = { - value: MsgRevokeAllowance; +type msgRevokeAllowanceResponseParams = { + value: MsgRevokeAllowanceResponse; }; export declare const registry: Registry; interface TxClientOptions { @@ -163,40 +163,40 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendBasicAllowance({ value, fee, memo }: sendBasicAllowanceParams): Promise; - sendMsgGrantAllowanceResponse({ value, fee, memo }: sendMsgGrantAllowanceResponseParams): Promise; - sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendQueryAllowanceRequest({ value, fee, memo }: sendQueryAllowanceRequestParams): Promise; - sendQueryAllowancesByGranterResponse({ value, fee, memo }: sendQueryAllowancesByGranterResponseParams): Promise; sendMsgGrantAllowance({ value, fee, memo }: sendMsgGrantAllowanceParams): Promise; - sendQueryAllowancesResponse({ value, fee, memo }: sendQueryAllowancesResponseParams): Promise; - sendPeriodicAllowance({ value, fee, memo }: sendPeriodicAllowanceParams): Promise; - sendGrant({ value, fee, memo }: sendGrantParams): Promise; - sendMsgPruneAllowancesResponse({ value, fee, memo }: sendMsgPruneAllowancesResponseParams): Promise; sendQueryAllowanceResponse({ value, fee, memo }: sendQueryAllowanceResponseParams): Promise; + sendQueryAllowancesRequest({ value, fee, memo }: sendQueryAllowancesRequestParams): Promise; sendQueryAllowancesByGranterRequest({ value, fee, memo }: sendQueryAllowancesByGranterRequestParams): Promise; - sendMsgRevokeAllowanceResponse({ value, fee, memo }: sendMsgRevokeAllowanceResponseParams): Promise; - sendMsgPruneAllowances({ value, fee, memo }: sendMsgPruneAllowancesParams): Promise; + sendGrant({ value, fee, memo }: sendGrantParams): Promise; sendAllowedMsgAllowance({ value, fee, memo }: sendAllowedMsgAllowanceParams): Promise; - sendQueryAllowancesRequest({ value, fee, memo }: sendQueryAllowancesRequestParams): Promise; + sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; + sendQueryAllowancesByGranterResponse({ value, fee, memo }: sendQueryAllowancesByGranterResponseParams): Promise; + sendMsgPruneAllowancesResponse({ value, fee, memo }: sendMsgPruneAllowancesResponseParams): Promise; + sendPeriodicAllowance({ value, fee, memo }: sendPeriodicAllowanceParams): Promise; + sendBasicAllowance({ value, fee, memo }: sendBasicAllowanceParams): Promise; + sendMsgGrantAllowanceResponse({ value, fee, memo }: sendMsgGrantAllowanceResponseParams): Promise; sendMsgRevokeAllowance({ value, fee, memo }: sendMsgRevokeAllowanceParams): Promise; - basicAllowance({ value }: basicAllowanceParams): EncodeObject; - msgGrantAllowanceResponse({ value }: msgGrantAllowanceResponseParams): EncodeObject; - genesisState({ value }: genesisStateParams): EncodeObject; - queryAllowanceRequest({ value }: queryAllowanceRequestParams): EncodeObject; - queryAllowancesByGranterResponse({ value }: queryAllowancesByGranterResponseParams): EncodeObject; + sendMsgPruneAllowances({ value, fee, memo }: sendMsgPruneAllowancesParams): Promise; + sendQueryAllowanceRequest({ value, fee, memo }: sendQueryAllowanceRequestParams): Promise; + sendQueryAllowancesResponse({ value, fee, memo }: sendQueryAllowancesResponseParams): Promise; + sendMsgRevokeAllowanceResponse({ value, fee, memo }: sendMsgRevokeAllowanceResponseParams): Promise; msgGrantAllowance({ value }: msgGrantAllowanceParams): EncodeObject; - queryAllowancesResponse({ value }: queryAllowancesResponseParams): EncodeObject; - periodicAllowance({ value }: periodicAllowanceParams): EncodeObject; - grant({ value }: grantParams): EncodeObject; - msgPruneAllowancesResponse({ value }: msgPruneAllowancesResponseParams): EncodeObject; queryAllowanceResponse({ value }: queryAllowanceResponseParams): EncodeObject; + queryAllowancesRequest({ value }: queryAllowancesRequestParams): EncodeObject; queryAllowancesByGranterRequest({ value }: queryAllowancesByGranterRequestParams): EncodeObject; - msgRevokeAllowanceResponse({ value }: msgRevokeAllowanceResponseParams): EncodeObject; - msgPruneAllowances({ value }: msgPruneAllowancesParams): EncodeObject; + grant({ value }: grantParams): EncodeObject; allowedMsgAllowance({ value }: allowedMsgAllowanceParams): EncodeObject; - queryAllowancesRequest({ value }: queryAllowancesRequestParams): EncodeObject; + genesisState({ value }: genesisStateParams): EncodeObject; + queryAllowancesByGranterResponse({ value }: queryAllowancesByGranterResponseParams): EncodeObject; + msgPruneAllowancesResponse({ value }: msgPruneAllowancesResponseParams): EncodeObject; + periodicAllowance({ value }: periodicAllowanceParams): EncodeObject; + basicAllowance({ value }: basicAllowanceParams): EncodeObject; + msgGrantAllowanceResponse({ value }: msgGrantAllowanceResponseParams): EncodeObject; msgRevokeAllowance({ value }: msgRevokeAllowanceParams): EncodeObject; + msgPruneAllowances({ value }: msgPruneAllowancesParams): EncodeObject; + queryAllowanceRequest({ value }: queryAllowanceRequestParams): EncodeObject; + queryAllowancesResponse({ value }: queryAllowancesResponseParams): EncodeObject; + msgRevokeAllowanceResponse({ value }: msgRevokeAllowanceResponseParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.feegrant.v1beta1/module.js b/ts-client/lib/cosmos.feegrant.v1beta1/module.js index df1a94903..a60c9ac19 100644 --- a/ts-client/lib/cosmos.feegrant.v1beta1/module.js +++ b/ts-client/lib/cosmos.feegrant.v1beta1/module.js @@ -3,24 +3,24 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { BasicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { MsgGrantAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; -import { GenesisState } from "./types/cosmos/feegrant/v1beta1/genesis"; -import { QueryAllowanceRequest } from "./types/cosmos/feegrant/v1beta1/query"; -import { QueryAllowancesByGranterResponse } from "./types/cosmos/feegrant/v1beta1/query"; import { MsgGrantAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; -import { QueryAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/query"; -import { PeriodicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { Grant } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { MsgPruneAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/tx"; import { QueryAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowancesRequest } from "./types/cosmos/feegrant/v1beta1/query"; import { QueryAllowancesByGranterRequest } from "./types/cosmos/feegrant/v1beta1/query"; -import { MsgRevokeAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; -import { MsgPruneAllowances } from "./types/cosmos/feegrant/v1beta1/tx"; +import { Grant } from "./types/cosmos/feegrant/v1beta1/feegrant"; import { AllowedMsgAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { QueryAllowancesRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { GenesisState } from "./types/cosmos/feegrant/v1beta1/genesis"; +import { QueryAllowancesByGranterResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { MsgPruneAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/tx"; +import { PeriodicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { BasicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { MsgGrantAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; import { MsgRevokeAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; -export { BasicAllowance, MsgGrantAllowanceResponse, GenesisState, QueryAllowanceRequest, QueryAllowancesByGranterResponse, MsgGrantAllowance, QueryAllowancesResponse, PeriodicAllowance, Grant, MsgPruneAllowancesResponse, QueryAllowanceResponse, QueryAllowancesByGranterRequest, MsgRevokeAllowanceResponse, MsgPruneAllowances, AllowedMsgAllowance, QueryAllowancesRequest, MsgRevokeAllowance }; +import { MsgPruneAllowances } from "./types/cosmos/feegrant/v1beta1/tx"; +import { QueryAllowanceRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { MsgRevokeAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; +export { MsgGrantAllowance, QueryAllowanceResponse, QueryAllowancesRequest, QueryAllowancesByGranterRequest, Grant, AllowedMsgAllowance, GenesisState, QueryAllowancesByGranterResponse, MsgPruneAllowancesResponse, PeriodicAllowance, BasicAllowance, MsgGrantAllowanceResponse, MsgRevokeAllowance, MsgPruneAllowances, QueryAllowanceRequest, QueryAllowancesResponse, MsgRevokeAllowanceResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -36,186 +36,186 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendBasicAllowance({ value, fee, memo }) { + async sendMsgGrantAllowance({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendBasicAllowance: 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.basicAllowance({ value: BasicAllowance.fromPartial(value) }); + let msg = this.msgGrantAllowance({ value: MsgGrantAllowance.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendBasicAllowance: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgGrantAllowance: Could not broadcast Tx: ' + e.message); } }, - async sendMsgGrantAllowanceResponse({ value, fee, memo }) { + async sendQueryAllowanceResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgGrantAllowanceResponse: 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.msgGrantAllowanceResponse({ value: MsgGrantAllowanceResponse.fromPartial(value) }); + let msg = this.queryAllowanceResponse({ value: QueryAllowanceResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgGrantAllowanceResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAllowanceResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendQueryAllowancesRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.fromPartial(value) }); + let msg = this.queryAllowancesRequest({ value: QueryAllowancesRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAllowancesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAllowanceRequest({ value, fee, memo }) { + async sendQueryAllowancesByGranterRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAllowanceRequest: 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.queryAllowanceRequest({ value: QueryAllowanceRequest.fromPartial(value) }); + let msg = this.queryAllowancesByGranterRequest({ value: QueryAllowancesByGranterRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAllowanceRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAllowancesByGranterRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAllowancesByGranterResponse({ value, fee, memo }) { + async sendGrant({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAllowancesByGranterResponse: 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.queryAllowancesByGranterResponse({ value: QueryAllowancesByGranterResponse.fromPartial(value) }); + let msg = this.grant({ value: Grant.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAllowancesByGranterResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGrant: Could not broadcast Tx: ' + e.message); } }, - async sendMsgGrantAllowance({ value, fee, memo }) { + async sendAllowedMsgAllowance({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgGrantAllowance: 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.msgGrantAllowance({ value: MsgGrantAllowance.fromPartial(value) }); + let msg = this.allowedMsgAllowance({ value: AllowedMsgAllowance.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgGrantAllowance: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendAllowedMsgAllowance: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAllowancesResponse({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAllowancesResponse: 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.queryAllowancesResponse({ value: QueryAllowancesResponse.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAllowancesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendPeriodicAllowance({ value, fee, memo }) { + async sendQueryAllowancesByGranterResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendPeriodicAllowance: 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.periodicAllowance({ value: PeriodicAllowance.fromPartial(value) }); + let msg = this.queryAllowancesByGranterResponse({ value: QueryAllowancesByGranterResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendPeriodicAllowance: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAllowancesByGranterResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGrant({ value, fee, memo }) { + async sendMsgPruneAllowancesResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGrant: 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.grant({ value: Grant.fromPartial(value) }); + let msg = this.msgPruneAllowancesResponse({ value: MsgPruneAllowancesResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGrant: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgPruneAllowancesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgPruneAllowancesResponse({ value, fee, memo }) { + async sendPeriodicAllowance({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgPruneAllowancesResponse: 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.msgPruneAllowancesResponse({ value: MsgPruneAllowancesResponse.fromPartial(value) }); + let msg = this.periodicAllowance({ value: PeriodicAllowance.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgPruneAllowancesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendPeriodicAllowance: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAllowanceResponse({ value, fee, memo }) { + async sendBasicAllowance({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAllowanceResponse: 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.queryAllowanceResponse({ value: QueryAllowanceResponse.fromPartial(value) }); + let msg = this.basicAllowance({ value: BasicAllowance.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAllowanceResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendBasicAllowance: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAllowancesByGranterRequest({ value, fee, memo }) { + async sendMsgGrantAllowanceResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAllowancesByGranterRequest: 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.queryAllowancesByGranterRequest({ value: QueryAllowancesByGranterRequest.fromPartial(value) }); + let msg = this.msgGrantAllowanceResponse({ value: MsgGrantAllowanceResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAllowancesByGranterRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgGrantAllowanceResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRevokeAllowanceResponse({ value, fee, memo }) { + async sendMsgRevokeAllowance({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRevokeAllowanceResponse: 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.msgRevokeAllowanceResponse({ value: MsgRevokeAllowanceResponse.fromPartial(value) }); + let msg = this.msgRevokeAllowance({ value: MsgRevokeAllowance.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRevokeAllowanceResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRevokeAllowance: Could not broadcast Tx: ' + e.message); } }, async sendMsgPruneAllowances({ value, fee, memo }) { @@ -232,150 +232,150 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgPruneAllowances: Could not broadcast Tx: ' + e.message); } }, - async sendAllowedMsgAllowance({ value, fee, memo }) { + async sendQueryAllowanceRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendAllowedMsgAllowance: 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.allowedMsgAllowance({ value: AllowedMsgAllowance.fromPartial(value) }); + let msg = this.queryAllowanceRequest({ value: QueryAllowanceRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendAllowedMsgAllowance: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAllowanceRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAllowancesRequest({ value, fee, memo }) { + async sendQueryAllowancesResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAllowancesRequest: 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.queryAllowancesRequest({ value: QueryAllowancesRequest.fromPartial(value) }); + let msg = this.queryAllowancesResponse({ value: QueryAllowancesResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAllowancesRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAllowancesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRevokeAllowance({ value, fee, memo }) { + async sendMsgRevokeAllowanceResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRevokeAllowance: 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.msgRevokeAllowance({ value: MsgRevokeAllowance.fromPartial(value) }); + let msg = this.msgRevokeAllowanceResponse({ value: MsgRevokeAllowanceResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRevokeAllowance: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRevokeAllowanceResponse: Could not broadcast Tx: ' + e.message); } }, - basicAllowance({ value }) { + msgGrantAllowance({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", value: BasicAllowance.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", value: MsgGrantAllowance.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:BasicAllowance: Could not create message: ' + e.message); + throw new Error('TxClient:MsgGrantAllowance: Could not create message: ' + e.message); } }, - msgGrantAllowanceResponse({ value }) { + queryAllowanceResponse({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", value: MsgGrantAllowanceResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", value: QueryAllowanceResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgGrantAllowanceResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAllowanceResponse: Could not create message: ' + e.message); } }, - genesisState({ value }) { + queryAllowancesRequest({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", value: QueryAllowancesRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAllowancesRequest: Could not create message: ' + e.message); } }, - queryAllowanceRequest({ value }) { + queryAllowancesByGranterRequest({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", value: QueryAllowanceRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", value: QueryAllowancesByGranterRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAllowanceRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAllowancesByGranterRequest: Could not create message: ' + e.message); } }, - queryAllowancesByGranterResponse({ value }) { + grant({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", value: QueryAllowancesByGranterResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.Grant", value: Grant.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAllowancesByGranterResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Grant: Could not create message: ' + e.message); } }, - msgGrantAllowance({ value }) { + allowedMsgAllowance({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowance", value: MsgGrantAllowance.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", value: AllowedMsgAllowance.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgGrantAllowance: Could not create message: ' + e.message); + throw new Error('TxClient:AllowedMsgAllowance: Could not create message: ' + e.message); } }, - queryAllowancesResponse({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", value: QueryAllowancesResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAllowancesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - periodicAllowance({ value }) { + queryAllowancesByGranterResponse({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", value: PeriodicAllowance.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", value: QueryAllowancesByGranterResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:PeriodicAllowance: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAllowancesByGranterResponse: Could not create message: ' + e.message); } }, - grant({ value }) { + msgPruneAllowancesResponse({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.Grant", value: Grant.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse", value: MsgPruneAllowancesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Grant: Could not create message: ' + e.message); + throw new Error('TxClient:MsgPruneAllowancesResponse: Could not create message: ' + e.message); } }, - msgPruneAllowancesResponse({ value }) { + periodicAllowance({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse", value: MsgPruneAllowancesResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.PeriodicAllowance", value: PeriodicAllowance.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgPruneAllowancesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:PeriodicAllowance: Could not create message: ' + e.message); } }, - queryAllowanceResponse({ value }) { + basicAllowance({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceResponse", value: QueryAllowanceResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.BasicAllowance", value: BasicAllowance.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAllowanceResponse: Could not create message: ' + e.message); + throw new Error('TxClient:BasicAllowance: Could not create message: ' + e.message); } }, - queryAllowancesByGranterRequest({ value }) { + msgGrantAllowanceResponse({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", value: QueryAllowancesByGranterRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", value: MsgGrantAllowanceResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAllowancesByGranterRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgGrantAllowanceResponse: Could not create message: ' + e.message); } }, - msgRevokeAllowanceResponse({ value }) { + msgRevokeAllowance({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", value: MsgRevokeAllowanceResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", value: MsgRevokeAllowance.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRevokeAllowanceResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRevokeAllowance: Could not create message: ' + e.message); } }, msgPruneAllowances({ value }) { @@ -386,28 +386,28 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgPruneAllowances: Could not create message: ' + e.message); } }, - allowedMsgAllowance({ value }) { + queryAllowanceRequest({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.AllowedMsgAllowance", value: AllowedMsgAllowance.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowanceRequest", value: QueryAllowanceRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:AllowedMsgAllowance: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAllowanceRequest: Could not create message: ' + e.message); } }, - queryAllowancesRequest({ value }) { + queryAllowancesResponse({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesRequest", value: QueryAllowancesRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.QueryAllowancesResponse", value: QueryAllowancesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAllowancesRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAllowancesResponse: Could not create message: ' + e.message); } }, - msgRevokeAllowance({ value }) { + msgRevokeAllowanceResponse({ value }) { try { - return { typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowance", value: MsgRevokeAllowance.fromPartial(value) }; + return { typeUrl: "/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", value: MsgRevokeAllowanceResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRevokeAllowance: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRevokeAllowanceResponse: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.feegrant.v1beta1/registry.js b/ts-client/lib/cosmos.feegrant.v1beta1/registry.js index f7a1eab82..365f7cb0e 100644 --- a/ts-client/lib/cosmos.feegrant.v1beta1/registry.js +++ b/ts-client/lib/cosmos.feegrant.v1beta1/registry.js @@ -1,37 +1,37 @@ -import { BasicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { MsgGrantAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; -import { GenesisState } from "./types/cosmos/feegrant/v1beta1/genesis"; -import { QueryAllowanceRequest } from "./types/cosmos/feegrant/v1beta1/query"; -import { QueryAllowancesByGranterResponse } from "./types/cosmos/feegrant/v1beta1/query"; import { MsgGrantAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; -import { QueryAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/query"; -import { PeriodicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { Grant } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { MsgPruneAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/tx"; import { QueryAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowancesRequest } from "./types/cosmos/feegrant/v1beta1/query"; import { QueryAllowancesByGranterRequest } from "./types/cosmos/feegrant/v1beta1/query"; -import { MsgRevokeAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; -import { MsgPruneAllowances } from "./types/cosmos/feegrant/v1beta1/tx"; +import { Grant } from "./types/cosmos/feegrant/v1beta1/feegrant"; import { AllowedMsgAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; -import { QueryAllowancesRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { GenesisState } from "./types/cosmos/feegrant/v1beta1/genesis"; +import { QueryAllowancesByGranterResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { MsgPruneAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/tx"; +import { PeriodicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { BasicAllowance } from "./types/cosmos/feegrant/v1beta1/feegrant"; +import { MsgGrantAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; import { MsgRevokeAllowance } from "./types/cosmos/feegrant/v1beta1/tx"; +import { MsgPruneAllowances } from "./types/cosmos/feegrant/v1beta1/tx"; +import { QueryAllowanceRequest } from "./types/cosmos/feegrant/v1beta1/query"; +import { QueryAllowancesResponse } from "./types/cosmos/feegrant/v1beta1/query"; +import { MsgRevokeAllowanceResponse } from "./types/cosmos/feegrant/v1beta1/tx"; const msgTypes = [ - ["/cosmos.feegrant.v1beta1.BasicAllowance", BasicAllowance], - ["/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", MsgGrantAllowanceResponse], - ["/cosmos.feegrant.v1beta1.GenesisState", GenesisState], - ["/cosmos.feegrant.v1beta1.QueryAllowanceRequest", QueryAllowanceRequest], - ["/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", QueryAllowancesByGranterResponse], ["/cosmos.feegrant.v1beta1.MsgGrantAllowance", MsgGrantAllowance], - ["/cosmos.feegrant.v1beta1.QueryAllowancesResponse", QueryAllowancesResponse], - ["/cosmos.feegrant.v1beta1.PeriodicAllowance", PeriodicAllowance], - ["/cosmos.feegrant.v1beta1.Grant", Grant], - ["/cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse", MsgPruneAllowancesResponse], ["/cosmos.feegrant.v1beta1.QueryAllowanceResponse", QueryAllowanceResponse], + ["/cosmos.feegrant.v1beta1.QueryAllowancesRequest", QueryAllowancesRequest], ["/cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest", QueryAllowancesByGranterRequest], - ["/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", MsgRevokeAllowanceResponse], - ["/cosmos.feegrant.v1beta1.MsgPruneAllowances", MsgPruneAllowances], + ["/cosmos.feegrant.v1beta1.Grant", Grant], ["/cosmos.feegrant.v1beta1.AllowedMsgAllowance", AllowedMsgAllowance], - ["/cosmos.feegrant.v1beta1.QueryAllowancesRequest", QueryAllowancesRequest], + ["/cosmos.feegrant.v1beta1.GenesisState", GenesisState], + ["/cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse", QueryAllowancesByGranterResponse], + ["/cosmos.feegrant.v1beta1.MsgPruneAllowancesResponse", MsgPruneAllowancesResponse], + ["/cosmos.feegrant.v1beta1.PeriodicAllowance", PeriodicAllowance], + ["/cosmos.feegrant.v1beta1.BasicAllowance", BasicAllowance], + ["/cosmos.feegrant.v1beta1.MsgGrantAllowanceResponse", MsgGrantAllowanceResponse], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", MsgRevokeAllowance], + ["/cosmos.feegrant.v1beta1.MsgPruneAllowances", MsgPruneAllowances], + ["/cosmos.feegrant.v1beta1.QueryAllowanceRequest", QueryAllowanceRequest], + ["/cosmos.feegrant.v1beta1.QueryAllowancesResponse", QueryAllowancesResponse], + ["/cosmos.feegrant.v1beta1.MsgRevokeAllowanceResponse", MsgRevokeAllowanceResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.gov.v1/module.d.ts b/ts-client/lib/cosmos.gov.v1/module.d.ts index fd7c7a00c..5445ff976 100644 --- a/ts-client/lib/cosmos.gov.v1/module.d.ts +++ b/ts-client/lib/cosmos.gov.v1/module.d.ts @@ -2,136 +2,141 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { QueryDepositRequest } from "./types/cosmos/gov/v1/query"; -import { QueryProposalResponse } from "./types/cosmos/gov/v1/query"; -import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx"; -import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx"; import { TallyParams } from "./types/cosmos/gov/v1/gov"; -import { QueryProposalRequest } from "./types/cosmos/gov/v1/query"; +import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx"; +import { QueryConstitutionRequest } from "./types/cosmos/gov/v1/query"; +import { QueryVoteRequest } from "./types/cosmos/gov/v1/query"; +import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1/tx"; +import { QueryDepositRequest } from "./types/cosmos/gov/v1/query"; +import { QueryDepositsRequest } from "./types/cosmos/gov/v1/query"; +import { MsgVoteResponse } from "./types/cosmos/gov/v1/tx"; +import { Deposit } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalsRequest } from "./types/cosmos/gov/v1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/gov/v1/tx"; +import { Vote } from "./types/cosmos/gov/v1/gov"; +import { QueryVoteResponse } from "./types/cosmos/gov/v1/query"; import { QueryParamsResponse } from "./types/cosmos/gov/v1/query"; +import { DepositParams } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalResponse } from "./types/cosmos/gov/v1/query"; import { QueryDepositsResponse } from "./types/cosmos/gov/v1/query"; import { QueryTallyResultRequest } from "./types/cosmos/gov/v1/query"; -import { MsgExecLegacyContent } from "./types/cosmos/gov/v1/tx"; -import { MsgDepositResponse } from "./types/cosmos/gov/v1/tx"; -import { TallyResult } from "./types/cosmos/gov/v1/gov"; -import { QueryConstitutionRequest } from "./types/cosmos/gov/v1/query"; -import { QueryDepositResponse } from "./types/cosmos/gov/v1/query"; import { QueryTallyResultResponse } from "./types/cosmos/gov/v1/query"; -import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx"; -import { Deposit } from "./types/cosmos/gov/v1/gov"; -import { DepositParams } from "./types/cosmos/gov/v1/gov"; import { MsgDeposit } from "./types/cosmos/gov/v1/tx"; -import { QueryVoteResponse } from "./types/cosmos/gov/v1/query"; -import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1/tx"; import { Proposal } from "./types/cosmos/gov/v1/gov"; -import { QueryProposalsRequest } from "./types/cosmos/gov/v1/query"; import { QueryProposalsResponse } from "./types/cosmos/gov/v1/query"; -import { QueryVotesResponse } from "./types/cosmos/gov/v1/query"; -import { MsgVoteResponse } from "./types/cosmos/gov/v1/tx"; +import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx"; +import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx"; +import { VotingParams } from "./types/cosmos/gov/v1/gov"; import { Params } from "./types/cosmos/gov/v1/gov"; -import { MsgExecLegacyContentResponse } from "./types/cosmos/gov/v1/tx"; -import { GenesisState } from "./types/cosmos/gov/v1/genesis"; -import { QueryDepositsRequest } from "./types/cosmos/gov/v1/query"; -import { MsgUpdateParamsResponse } from "./types/cosmos/gov/v1/tx"; -import { MsgVote } from "./types/cosmos/gov/v1/tx"; +import { QueryProposalRequest } from "./types/cosmos/gov/v1/query"; +import { MsgCancelProposal } from "./types/cosmos/gov/v1/tx"; import { MsgCancelProposalResponse } from "./types/cosmos/gov/v1/tx"; -import { Vote } from "./types/cosmos/gov/v1/gov"; -import { VotingParams } from "./types/cosmos/gov/v1/gov"; -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 { QueryParamsRequest } from "./types/cosmos/gov/v1/query"; +import { MsgVote } from "./types/cosmos/gov/v1/tx"; import { WeightedVoteOption } from "./types/cosmos/gov/v1/gov"; -import { QueryVoteRequest } from "./types/cosmos/gov/v1/query"; -import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1/tx"; -import { MsgCancelProposal } from "./types/cosmos/gov/v1/tx"; -export { QueryDepositRequest, QueryProposalResponse, MsgVoteWeighted, MsgUpdateParams, TallyParams, QueryProposalRequest, QueryParamsResponse, QueryDepositsResponse, QueryTallyResultRequest, MsgExecLegacyContent, MsgDepositResponse, TallyResult, QueryConstitutionRequest, QueryDepositResponse, QueryTallyResultResponse, MsgSubmitProposal, Deposit, DepositParams, MsgDeposit, QueryVoteResponse, MsgVoteWeightedResponse, Proposal, QueryProposalsRequest, QueryProposalsResponse, QueryVotesResponse, MsgVoteResponse, Params, MsgExecLegacyContentResponse, GenesisState, QueryDepositsRequest, MsgUpdateParamsResponse, MsgVote, MsgCancelProposalResponse, Vote, VotingParams, QueryConstitutionResponse, QueryVotesRequest, QueryParamsRequest, WeightedVoteOption, QueryVoteRequest, MsgSubmitProposalResponse, MsgCancelProposal }; -type sendQueryDepositRequestParams = { - value: QueryDepositRequest; +import { GenesisState } from "./types/cosmos/gov/v1/genesis"; +import { MsgExecLegacyContent } from "./types/cosmos/gov/v1/tx"; +import { QueryConstitutionResponse } from "./types/cosmos/gov/v1/query"; +import { MsgExecLegacyContentResponse } from "./types/cosmos/gov/v1/tx"; +import { TallyResult } from "./types/cosmos/gov/v1/gov"; +import { QueryDepositResponse } from "./types/cosmos/gov/v1/query"; +import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1/tx"; +import { MsgDepositResponse } from "./types/cosmos/gov/v1/tx"; +export { TallyParams, MsgSubmitProposal, QueryConstitutionRequest, QueryVoteRequest, MsgSubmitProposalResponse, QueryDepositRequest, QueryDepositsRequest, MsgVoteResponse, Deposit, QueryProposalsRequest, MsgUpdateParamsResponse, Vote, QueryVoteResponse, QueryParamsResponse, DepositParams, QueryProposalResponse, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse, MsgDeposit, Proposal, QueryProposalsResponse, MsgVoteWeighted, MsgUpdateParams, VotingParams, Params, QueryProposalRequest, MsgCancelProposal, MsgCancelProposalResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, MsgVote, WeightedVoteOption, GenesisState, MsgExecLegacyContent, QueryConstitutionResponse, MsgExecLegacyContentResponse, TallyResult, QueryDepositResponse, MsgVoteWeightedResponse, MsgDepositResponse }; +type sendTallyParamsParams = { + value: TallyParams; fee?: StdFee; memo?: string; }; -type sendQueryProposalResponseParams = { - value: QueryProposalResponse; +type sendMsgSubmitProposalParams = { + value: MsgSubmitProposal; fee?: StdFee; memo?: string; }; -type sendMsgVoteWeightedParams = { - value: MsgVoteWeighted; +type sendQueryConstitutionRequestParams = { + value: QueryConstitutionRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams; +type sendQueryVoteRequestParams = { + value: QueryVoteRequest; fee?: StdFee; memo?: string; }; -type sendTallyParamsParams = { - value: TallyParams; +type sendMsgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse; fee?: StdFee; memo?: string; }; -type sendQueryProposalRequestParams = { - value: QueryProposalRequest; +type sendQueryDepositRequestParams = { + value: QueryDepositRequest; fee?: StdFee; memo?: string; }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse; +type sendQueryDepositsRequestParams = { + value: QueryDepositsRequest; fee?: StdFee; memo?: string; }; -type sendQueryDepositsResponseParams = { - value: QueryDepositsResponse; +type sendMsgVoteResponseParams = { + value: MsgVoteResponse; fee?: StdFee; memo?: string; }; -type sendQueryTallyResultRequestParams = { - value: QueryTallyResultRequest; +type sendDepositParams = { + value: Deposit; fee?: StdFee; memo?: string; }; -type sendMsgExecLegacyContentParams = { - value: MsgExecLegacyContent; +type sendQueryProposalsRequestParams = { + value: QueryProposalsRequest; fee?: StdFee; memo?: string; }; -type sendMsgDepositResponseParams = { - value: MsgDepositResponse; +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; fee?: StdFee; memo?: string; }; -type sendTallyResultParams = { - value: TallyResult; +type sendVoteParams = { + value: Vote; fee?: StdFee; memo?: string; }; -type sendQueryConstitutionRequestParams = { - value: QueryConstitutionRequest; +type sendQueryVoteResponseParams = { + value: QueryVoteResponse; fee?: StdFee; memo?: string; }; -type sendQueryDepositResponseParams = { - value: QueryDepositResponse; +type sendQueryParamsResponseParams = { + value: QueryParamsResponse; fee?: StdFee; memo?: string; }; -type sendQueryTallyResultResponseParams = { - value: QueryTallyResultResponse; +type sendDepositParamsParams = { + value: DepositParams; fee?: StdFee; memo?: string; }; -type sendMsgSubmitProposalParams = { - value: MsgSubmitProposal; +type sendQueryProposalResponseParams = { + value: QueryProposalResponse; fee?: StdFee; memo?: string; }; -type sendDepositParams = { - value: Deposit; +type sendQueryDepositsResponseParams = { + value: QueryDepositsResponse; fee?: StdFee; memo?: string; }; -type sendDepositParamsParams = { - value: DepositParams; +type sendQueryTallyResultRequestParams = { + value: QueryTallyResultRequest; + fee?: StdFee; + memo?: string; +}; +type sendQueryTallyResultResponseParams = { + value: QueryTallyResultResponse; fee?: StdFee; memo?: string; }; @@ -140,63 +145,63 @@ type sendMsgDepositParams = { fee?: StdFee; memo?: string; }; -type sendQueryVoteResponseParams = { - value: QueryVoteResponse; +type sendProposalParams = { + value: Proposal; fee?: StdFee; memo?: string; }; -type sendMsgVoteWeightedResponseParams = { - value: MsgVoteWeightedResponse; +type sendQueryProposalsResponseParams = { + value: QueryProposalsResponse; fee?: StdFee; memo?: string; }; -type sendProposalParams = { - value: Proposal; +type sendMsgVoteWeightedParams = { + value: MsgVoteWeighted; fee?: StdFee; memo?: string; }; -type sendQueryProposalsRequestParams = { - value: QueryProposalsRequest; +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams; fee?: StdFee; memo?: string; }; -type sendQueryProposalsResponseParams = { - value: QueryProposalsResponse; +type sendVotingParamsParams = { + value: VotingParams; fee?: StdFee; memo?: string; }; -type sendQueryVotesResponseParams = { - value: QueryVotesResponse; +type sendParamsParams = { + value: Params; fee?: StdFee; memo?: string; }; -type sendMsgVoteResponseParams = { - value: MsgVoteResponse; +type sendQueryProposalRequestParams = { + value: QueryProposalRequest; fee?: StdFee; memo?: string; }; -type sendParamsParams = { - value: Params; +type sendMsgCancelProposalParams = { + value: MsgCancelProposal; fee?: StdFee; memo?: string; }; -type sendMsgExecLegacyContentResponseParams = { - value: MsgExecLegacyContentResponse; +type sendMsgCancelProposalResponseParams = { + value: MsgCancelProposalResponse; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendQueryVotesRequestParams = { + value: QueryVotesRequest; fee?: StdFee; memo?: string; }; -type sendQueryDepositsRequestParams = { - value: QueryDepositsRequest; +type sendQueryVotesResponseParams = { + value: QueryVotesResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type sendQueryParamsRequestParams = { + value: QueryParamsRequest; fee?: StdFee; memo?: string; }; @@ -205,18 +210,18 @@ type sendMsgVoteParams = { fee?: StdFee; memo?: string; }; -type sendMsgCancelProposalResponseParams = { - value: MsgCancelProposalResponse; +type sendWeightedVoteOptionParams = { + value: WeightedVoteOption; fee?: StdFee; memo?: string; }; -type sendVoteParams = { - value: Vote; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendVotingParamsParams = { - value: VotingParams; +type sendMsgExecLegacyContentParams = { + value: MsgExecLegacyContent; fee?: StdFee; memo?: string; }; @@ -225,161 +230,156 @@ type sendQueryConstitutionResponseParams = { fee?: StdFee; memo?: string; }; -type sendQueryVotesRequestParams = { - value: QueryVotesRequest; +type sendMsgExecLegacyContentResponseParams = { + value: MsgExecLegacyContentResponse; fee?: StdFee; memo?: string; }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest; +type sendTallyResultParams = { + value: TallyResult; fee?: StdFee; memo?: string; }; -type sendWeightedVoteOptionParams = { - value: WeightedVoteOption; +type sendQueryDepositResponseParams = { + value: QueryDepositResponse; fee?: StdFee; memo?: string; }; -type sendQueryVoteRequestParams = { - value: QueryVoteRequest; +type sendMsgVoteWeightedResponseParams = { + value: MsgVoteWeightedResponse; fee?: StdFee; memo?: string; }; -type sendMsgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse; +type sendMsgDepositResponseParams = { + value: MsgDepositResponse; fee?: StdFee; memo?: string; }; -type sendMsgCancelProposalParams = { - value: MsgCancelProposal; - fee?: StdFee; - memo?: string; +type tallyParamsParams = { + value: TallyParams; +}; +type msgSubmitProposalParams = { + value: MsgSubmitProposal; +}; +type queryConstitutionRequestParams = { + value: QueryConstitutionRequest; +}; +type queryVoteRequestParams = { + value: QueryVoteRequest; +}; +type msgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse; }; type queryDepositRequestParams = { value: QueryDepositRequest; }; -type queryProposalResponseParams = { - value: QueryProposalResponse; +type queryDepositsRequestParams = { + value: QueryDepositsRequest; }; -type msgVoteWeightedParams = { - value: MsgVoteWeighted; +type msgVoteResponseParams = { + value: MsgVoteResponse; }; -type msgUpdateParamsParams = { - value: MsgUpdateParams; +type depositParams = { + value: Deposit; }; -type tallyParamsParams = { - value: TallyParams; +type queryProposalsRequestParams = { + value: QueryProposalsRequest; }; -type queryProposalRequestParams = { - value: QueryProposalRequest; +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; +}; +type voteParams = { + value: Vote; +}; +type queryVoteResponseParams = { + value: QueryVoteResponse; }; type queryParamsResponseParams = { value: QueryParamsResponse; }; +type depositParamsParams = { + value: DepositParams; +}; +type queryProposalResponseParams = { + value: QueryProposalResponse; +}; type queryDepositsResponseParams = { value: QueryDepositsResponse; }; type queryTallyResultRequestParams = { value: QueryTallyResultRequest; }; -type msgExecLegacyContentParams = { - value: MsgExecLegacyContent; -}; -type msgDepositResponseParams = { - value: MsgDepositResponse; -}; -type tallyResultParams = { - value: TallyResult; -}; -type queryConstitutionRequestParams = { - value: QueryConstitutionRequest; -}; -type queryDepositResponseParams = { - value: QueryDepositResponse; -}; type queryTallyResultResponseParams = { value: QueryTallyResultResponse; }; -type msgSubmitProposalParams = { - value: MsgSubmitProposal; -}; -type depositParams = { - value: Deposit; -}; -type depositParamsParams = { - value: DepositParams; -}; type msgDepositParams = { value: MsgDeposit; }; -type queryVoteResponseParams = { - value: QueryVoteResponse; -}; -type msgVoteWeightedResponseParams = { - value: MsgVoteWeightedResponse; -}; type proposalParams = { value: Proposal; }; -type queryProposalsRequestParams = { - value: QueryProposalsRequest; -}; type queryProposalsResponseParams = { value: QueryProposalsResponse; }; -type queryVotesResponseParams = { - value: QueryVotesResponse; +type msgVoteWeightedParams = { + value: MsgVoteWeighted; }; -type msgVoteResponseParams = { - value: MsgVoteResponse; +type msgUpdateParamsParams = { + value: MsgUpdateParams; +}; +type votingParamsParams = { + value: VotingParams; }; type paramsParams = { value: Params; }; -type msgExecLegacyContentResponseParams = { - value: MsgExecLegacyContentResponse; +type queryProposalRequestParams = { + value: QueryProposalRequest; }; -type genesisStateParams = { - value: GenesisState; +type msgCancelProposalParams = { + value: MsgCancelProposal; }; -type queryDepositsRequestParams = { - value: QueryDepositsRequest; +type msgCancelProposalResponseParams = { + value: MsgCancelProposalResponse; }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type queryVotesRequestParams = { + value: QueryVotesRequest; +}; +type queryVotesResponseParams = { + value: QueryVotesResponse; +}; +type queryParamsRequestParams = { + value: QueryParamsRequest; }; type msgVoteParams = { value: MsgVote; }; -type msgCancelProposalResponseParams = { - value: MsgCancelProposalResponse; +type weightedVoteOptionParams = { + value: WeightedVoteOption; }; -type voteParams = { - value: Vote; +type genesisStateParams = { + value: GenesisState; }; -type votingParamsParams = { - value: VotingParams; +type msgExecLegacyContentParams = { + value: MsgExecLegacyContent; }; type queryConstitutionResponseParams = { value: QueryConstitutionResponse; }; -type queryVotesRequestParams = { - value: QueryVotesRequest; -}; -type queryParamsRequestParams = { - value: QueryParamsRequest; +type msgExecLegacyContentResponseParams = { + value: MsgExecLegacyContentResponse; }; -type weightedVoteOptionParams = { - value: WeightedVoteOption; +type tallyResultParams = { + value: TallyResult; }; -type queryVoteRequestParams = { - value: QueryVoteRequest; +type queryDepositResponseParams = { + value: QueryDepositResponse; }; -type msgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse; +type msgVoteWeightedResponseParams = { + value: MsgVoteWeightedResponse; }; -type msgCancelProposalParams = { - value: MsgCancelProposal; +type msgDepositResponseParams = { + value: MsgDepositResponse; }; export declare const registry: Registry; interface TxClientOptions { @@ -388,90 +388,90 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendQueryDepositRequest({ value, fee, memo }: sendQueryDepositRequestParams): Promise; - sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise; - sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise; - sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; sendTallyParams({ value, fee, memo }: sendTallyParamsParams): Promise; - sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise; + sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise; + sendQueryConstitutionRequest({ value, fee, memo }: sendQueryConstitutionRequestParams): Promise; + sendQueryVoteRequest({ value, fee, memo }: sendQueryVoteRequestParams): Promise; + sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise; + sendQueryDepositRequest({ value, fee, memo }: sendQueryDepositRequestParams): Promise; + sendQueryDepositsRequest({ value, fee, memo }: sendQueryDepositsRequestParams): Promise; + sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise; + sendDeposit({ value, fee, memo }: sendDepositParams): Promise; + sendQueryProposalsRequest({ value, fee, memo }: sendQueryProposalsRequestParams): Promise; + sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; + sendVote({ value, fee, memo }: sendVoteParams): Promise; + sendQueryVoteResponse({ value, fee, memo }: sendQueryVoteResponseParams): Promise; sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; + sendDepositParams({ value, fee, memo }: sendDepositParamsParams): Promise; + sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise; sendQueryDepositsResponse({ value, fee, memo }: sendQueryDepositsResponseParams): Promise; sendQueryTallyResultRequest({ value, fee, memo }: sendQueryTallyResultRequestParams): Promise; - sendMsgExecLegacyContent({ value, fee, memo }: sendMsgExecLegacyContentParams): Promise; - sendMsgDepositResponse({ value, fee, memo }: sendMsgDepositResponseParams): Promise; - sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise; - sendQueryConstitutionRequest({ value, fee, memo }: sendQueryConstitutionRequestParams): Promise; - sendQueryDepositResponse({ value, fee, memo }: sendQueryDepositResponseParams): Promise; sendQueryTallyResultResponse({ value, fee, memo }: sendQueryTallyResultResponseParams): Promise; - sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise; - sendDeposit({ value, fee, memo }: sendDepositParams): Promise; - sendDepositParams({ value, fee, memo }: sendDepositParamsParams): Promise; sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise; - sendQueryVoteResponse({ value, fee, memo }: sendQueryVoteResponseParams): Promise; - sendMsgVoteWeightedResponse({ value, fee, memo }: sendMsgVoteWeightedResponseParams): Promise; sendProposal({ value, fee, memo }: sendProposalParams): Promise; - sendQueryProposalsRequest({ value, fee, memo }: sendQueryProposalsRequestParams): Promise; sendQueryProposalsResponse({ value, fee, memo }: sendQueryProposalsResponseParams): Promise; - sendQueryVotesResponse({ value, fee, memo }: sendQueryVotesResponseParams): Promise; - sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise; + sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise; + sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; + sendVotingParams({ value, fee, memo }: sendVotingParamsParams): Promise; sendParams({ value, fee, memo }: sendParamsParams): Promise; - sendMsgExecLegacyContentResponse({ value, fee, memo }: sendMsgExecLegacyContentResponseParams): Promise; - sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendQueryDepositsRequest({ value, fee, memo }: sendQueryDepositsRequestParams): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; - sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise; + sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise; + sendMsgCancelProposal({ value, fee, memo }: sendMsgCancelProposalParams): Promise; sendMsgCancelProposalResponse({ value, fee, memo }: sendMsgCancelProposalResponseParams): Promise; - sendVote({ value, fee, memo }: sendVoteParams): Promise; - sendVotingParams({ value, fee, memo }: sendVotingParamsParams): Promise; - sendQueryConstitutionResponse({ value, fee, memo }: sendQueryConstitutionResponseParams): Promise; sendQueryVotesRequest({ value, fee, memo }: sendQueryVotesRequestParams): Promise; + sendQueryVotesResponse({ value, fee, memo }: sendQueryVotesResponseParams): Promise; sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; + sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise; sendWeightedVoteOption({ value, fee, memo }: sendWeightedVoteOptionParams): Promise; - sendQueryVoteRequest({ value, fee, memo }: sendQueryVoteRequestParams): Promise; - sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise; - sendMsgCancelProposal({ value, fee, memo }: sendMsgCancelProposalParams): Promise; - queryDepositRequest({ value }: queryDepositRequestParams): EncodeObject; - queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject; - msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject; - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; + sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; + sendMsgExecLegacyContent({ value, fee, memo }: sendMsgExecLegacyContentParams): Promise; + sendQueryConstitutionResponse({ value, fee, memo }: sendQueryConstitutionResponseParams): Promise; + sendMsgExecLegacyContentResponse({ value, fee, memo }: sendMsgExecLegacyContentResponseParams): Promise; + sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise; + sendQueryDepositResponse({ value, fee, memo }: sendQueryDepositResponseParams): Promise; + sendMsgVoteWeightedResponse({ value, fee, memo }: sendMsgVoteWeightedResponseParams): Promise; + sendMsgDepositResponse({ value, fee, memo }: sendMsgDepositResponseParams): Promise; tallyParams({ value }: tallyParamsParams): EncodeObject; - queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject; + msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject; + queryConstitutionRequest({ value }: queryConstitutionRequestParams): EncodeObject; + queryVoteRequest({ value }: queryVoteRequestParams): EncodeObject; + msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject; + queryDepositRequest({ value }: queryDepositRequestParams): EncodeObject; + queryDepositsRequest({ value }: queryDepositsRequestParams): EncodeObject; + msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject; + deposit({ value }: depositParams): EncodeObject; + queryProposalsRequest({ value }: queryProposalsRequestParams): EncodeObject; + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; + vote({ value }: voteParams): EncodeObject; + queryVoteResponse({ value }: queryVoteResponseParams): EncodeObject; queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; + depositParams({ value }: depositParamsParams): EncodeObject; + queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject; queryDepositsResponse({ value }: queryDepositsResponseParams): EncodeObject; queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject; - msgExecLegacyContent({ value }: msgExecLegacyContentParams): EncodeObject; - msgDepositResponse({ value }: msgDepositResponseParams): EncodeObject; - tallyResult({ value }: tallyResultParams): EncodeObject; - queryConstitutionRequest({ value }: queryConstitutionRequestParams): EncodeObject; - queryDepositResponse({ value }: queryDepositResponseParams): EncodeObject; queryTallyResultResponse({ value }: queryTallyResultResponseParams): EncodeObject; - msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject; - deposit({ value }: depositParams): EncodeObject; - depositParams({ value }: depositParamsParams): EncodeObject; msgDeposit({ value }: msgDepositParams): EncodeObject; - queryVoteResponse({ value }: queryVoteResponseParams): EncodeObject; - msgVoteWeightedResponse({ value }: msgVoteWeightedResponseParams): EncodeObject; proposal({ value }: proposalParams): EncodeObject; - queryProposalsRequest({ value }: queryProposalsRequestParams): EncodeObject; queryProposalsResponse({ value }: queryProposalsResponseParams): EncodeObject; - queryVotesResponse({ value }: queryVotesResponseParams): EncodeObject; - msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject; + msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject; + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; + votingParams({ value }: votingParamsParams): EncodeObject; params({ value }: paramsParams): EncodeObject; - msgExecLegacyContentResponse({ value }: msgExecLegacyContentResponseParams): EncodeObject; - genesisState({ value }: genesisStateParams): EncodeObject; - queryDepositsRequest({ value }: queryDepositsRequestParams): EncodeObject; - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; - msgVote({ value }: msgVoteParams): EncodeObject; + queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject; + msgCancelProposal({ value }: msgCancelProposalParams): EncodeObject; msgCancelProposalResponse({ value }: msgCancelProposalResponseParams): EncodeObject; - vote({ value }: voteParams): EncodeObject; - votingParams({ value }: votingParamsParams): EncodeObject; - queryConstitutionResponse({ value }: queryConstitutionResponseParams): EncodeObject; queryVotesRequest({ value }: queryVotesRequestParams): EncodeObject; + queryVotesResponse({ value }: queryVotesResponseParams): EncodeObject; queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; + msgVote({ value }: msgVoteParams): EncodeObject; weightedVoteOption({ value }: weightedVoteOptionParams): EncodeObject; - queryVoteRequest({ value }: queryVoteRequestParams): EncodeObject; - msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject; - msgCancelProposal({ value }: msgCancelProposalParams): EncodeObject; + genesisState({ value }: genesisStateParams): EncodeObject; + msgExecLegacyContent({ value }: msgExecLegacyContentParams): EncodeObject; + queryConstitutionResponse({ value }: queryConstitutionResponseParams): EncodeObject; + msgExecLegacyContentResponse({ value }: msgExecLegacyContentResponseParams): EncodeObject; + tallyResult({ value }: tallyResultParams): EncodeObject; + queryDepositResponse({ value }: queryDepositResponseParams): EncodeObject; + msgVoteWeightedResponse({ value }: msgVoteWeightedResponseParams): EncodeObject; + msgDepositResponse({ value }: msgDepositResponseParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.gov.v1/module.js b/ts-client/lib/cosmos.gov.v1/module.js index 58c2ecd66..e9bb6ea76 100644 --- a/ts-client/lib/cosmos.gov.v1/module.js +++ b/ts-client/lib/cosmos.gov.v1/module.js @@ -3,49 +3,49 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { QueryDepositRequest } from "./types/cosmos/gov/v1/query"; -import { QueryProposalResponse } from "./types/cosmos/gov/v1/query"; -import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx"; -import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx"; import { TallyParams } from "./types/cosmos/gov/v1/gov"; -import { QueryProposalRequest } from "./types/cosmos/gov/v1/query"; +import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx"; +import { QueryConstitutionRequest } from "./types/cosmos/gov/v1/query"; +import { QueryVoteRequest } from "./types/cosmos/gov/v1/query"; +import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1/tx"; +import { QueryDepositRequest } from "./types/cosmos/gov/v1/query"; +import { QueryDepositsRequest } from "./types/cosmos/gov/v1/query"; +import { MsgVoteResponse } from "./types/cosmos/gov/v1/tx"; +import { Deposit } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalsRequest } from "./types/cosmos/gov/v1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/gov/v1/tx"; +import { Vote } from "./types/cosmos/gov/v1/gov"; +import { QueryVoteResponse } from "./types/cosmos/gov/v1/query"; import { QueryParamsResponse } from "./types/cosmos/gov/v1/query"; +import { DepositParams } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalResponse } from "./types/cosmos/gov/v1/query"; import { QueryDepositsResponse } from "./types/cosmos/gov/v1/query"; import { QueryTallyResultRequest } from "./types/cosmos/gov/v1/query"; -import { MsgExecLegacyContent } from "./types/cosmos/gov/v1/tx"; -import { MsgDepositResponse } from "./types/cosmos/gov/v1/tx"; -import { TallyResult } from "./types/cosmos/gov/v1/gov"; -import { QueryConstitutionRequest } from "./types/cosmos/gov/v1/query"; -import { QueryDepositResponse } from "./types/cosmos/gov/v1/query"; import { QueryTallyResultResponse } from "./types/cosmos/gov/v1/query"; -import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx"; -import { Deposit } from "./types/cosmos/gov/v1/gov"; -import { DepositParams } from "./types/cosmos/gov/v1/gov"; import { MsgDeposit } from "./types/cosmos/gov/v1/tx"; -import { QueryVoteResponse } from "./types/cosmos/gov/v1/query"; -import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1/tx"; import { Proposal } from "./types/cosmos/gov/v1/gov"; -import { QueryProposalsRequest } from "./types/cosmos/gov/v1/query"; import { QueryProposalsResponse } from "./types/cosmos/gov/v1/query"; -import { QueryVotesResponse } from "./types/cosmos/gov/v1/query"; -import { MsgVoteResponse } from "./types/cosmos/gov/v1/tx"; +import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx"; +import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx"; +import { VotingParams } from "./types/cosmos/gov/v1/gov"; import { Params } from "./types/cosmos/gov/v1/gov"; -import { MsgExecLegacyContentResponse } from "./types/cosmos/gov/v1/tx"; -import { GenesisState } from "./types/cosmos/gov/v1/genesis"; -import { QueryDepositsRequest } from "./types/cosmos/gov/v1/query"; -import { MsgUpdateParamsResponse } from "./types/cosmos/gov/v1/tx"; -import { MsgVote } from "./types/cosmos/gov/v1/tx"; +import { QueryProposalRequest } from "./types/cosmos/gov/v1/query"; +import { MsgCancelProposal } from "./types/cosmos/gov/v1/tx"; import { MsgCancelProposalResponse } from "./types/cosmos/gov/v1/tx"; -import { Vote } from "./types/cosmos/gov/v1/gov"; -import { VotingParams } from "./types/cosmos/gov/v1/gov"; -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 { QueryParamsRequest } from "./types/cosmos/gov/v1/query"; +import { MsgVote } from "./types/cosmos/gov/v1/tx"; import { WeightedVoteOption } from "./types/cosmos/gov/v1/gov"; -import { QueryVoteRequest } from "./types/cosmos/gov/v1/query"; -import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1/tx"; -import { MsgCancelProposal } from "./types/cosmos/gov/v1/tx"; -export { QueryDepositRequest, QueryProposalResponse, MsgVoteWeighted, MsgUpdateParams, TallyParams, QueryProposalRequest, QueryParamsResponse, QueryDepositsResponse, QueryTallyResultRequest, MsgExecLegacyContent, MsgDepositResponse, TallyResult, QueryConstitutionRequest, QueryDepositResponse, QueryTallyResultResponse, MsgSubmitProposal, Deposit, DepositParams, MsgDeposit, QueryVoteResponse, MsgVoteWeightedResponse, Proposal, QueryProposalsRequest, QueryProposalsResponse, QueryVotesResponse, MsgVoteResponse, Params, MsgExecLegacyContentResponse, GenesisState, QueryDepositsRequest, MsgUpdateParamsResponse, MsgVote, MsgCancelProposalResponse, Vote, VotingParams, QueryConstitutionResponse, QueryVotesRequest, QueryParamsRequest, WeightedVoteOption, QueryVoteRequest, MsgSubmitProposalResponse, MsgCancelProposal }; +import { GenesisState } from "./types/cosmos/gov/v1/genesis"; +import { MsgExecLegacyContent } from "./types/cosmos/gov/v1/tx"; +import { QueryConstitutionResponse } from "./types/cosmos/gov/v1/query"; +import { MsgExecLegacyContentResponse } from "./types/cosmos/gov/v1/tx"; +import { TallyResult } from "./types/cosmos/gov/v1/gov"; +import { QueryDepositResponse } from "./types/cosmos/gov/v1/query"; +import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1/tx"; +import { MsgDepositResponse } from "./types/cosmos/gov/v1/tx"; +export { TallyParams, MsgSubmitProposal, QueryConstitutionRequest, QueryVoteRequest, MsgSubmitProposalResponse, QueryDepositRequest, QueryDepositsRequest, MsgVoteResponse, Deposit, QueryProposalsRequest, MsgUpdateParamsResponse, Vote, QueryVoteResponse, QueryParamsResponse, DepositParams, QueryProposalResponse, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse, MsgDeposit, Proposal, QueryProposalsResponse, MsgVoteWeighted, MsgUpdateParams, VotingParams, Params, QueryProposalRequest, MsgCancelProposal, MsgCancelProposalResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, MsgVote, WeightedVoteOption, GenesisState, MsgExecLegacyContent, QueryConstitutionResponse, MsgExecLegacyContentResponse, TallyResult, QueryDepositResponse, MsgVoteWeightedResponse, MsgDepositResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -61,438 +61,452 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendQueryDepositRequest({ value, fee, memo }) { + async sendTallyParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDepositRequest: 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.queryDepositRequest({ value: QueryDepositRequest.fromPartial(value) }); + let msg = this.tallyParams({ value: TallyParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDepositRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTallyParams: Could not broadcast Tx: ' + e.message); } }, - async sendQueryProposalResponse({ value, fee, memo }) { + async sendMsgSubmitProposal({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryProposalResponse: 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.queryProposalResponse({ value: QueryProposalResponse.fromPartial(value) }); + let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryProposalResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message); } }, - async sendMsgVoteWeighted({ value, fee, memo }) { + async sendQueryConstitutionRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgVoteWeighted: 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.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) }); + let msg = this.queryConstitutionRequest({ value: QueryConstitutionRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConstitutionRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParams({ value, fee, memo }) { + async sendQueryVoteRequest({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryVoteRequest: Could not broadcast Tx: ' + e.message); } }, - async sendTallyParams({ value, fee, memo }) { + async sendMsgSubmitProposalResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTallyParams: 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.tallyParams({ value: TallyParams.fromPartial(value) }); + let msg = this.msgSubmitProposalResponse({ value: MsgSubmitProposalResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTallyParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSubmitProposalResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryProposalRequest({ value, fee, memo }) { + async sendQueryDepositRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryProposalRequest: 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.queryProposalRequest({ value: QueryProposalRequest.fromPartial(value) }); + let msg = this.queryDepositRequest({ value: QueryDepositRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryProposalRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDepositRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsResponse({ value, fee, memo }) { + async sendQueryDepositsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: 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.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); + let msg = this.queryDepositsRequest({ value: QueryDepositsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDepositsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDepositsResponse({ value, fee, memo }) { + async sendMsgVoteResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDepositsResponse: 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.queryDepositsResponse({ value: QueryDepositsResponse.fromPartial(value) }); + let msg = this.msgVoteResponse({ value: MsgVoteResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDepositsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgVoteResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryTallyResultRequest({ value, fee, memo }) { + async sendDeposit({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultRequest: 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.queryTallyResultRequest({ value: QueryTallyResultRequest.fromPartial(value) }); + let msg = this.deposit({ value: Deposit.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTallyResultRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDeposit: Could not broadcast Tx: ' + e.message); } }, - async sendMsgExecLegacyContent({ value, fee, memo }) { + async sendQueryProposalsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgExecLegacyContent: 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.msgExecLegacyContent({ value: MsgExecLegacyContent.fromPartial(value) }); + let msg = this.queryProposalsRequest({ value: QueryProposalsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgExecLegacyContent: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryProposalsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgDepositResponse({ value, fee, memo }) { + async sendMsgUpdateParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgDepositResponse: 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.msgDepositResponse({ value: MsgDepositResponse.fromPartial(value) }); + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgDepositResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendTallyResult({ value, fee, memo }) { + async sendVote({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTallyResult: 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.tallyResult({ value: TallyResult.fromPartial(value) }); + let msg = this.vote({ value: Vote.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTallyResult: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendVote: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConstitutionRequest({ value, fee, memo }) { + async sendQueryVoteResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConstitutionRequest: 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.queryConstitutionRequest({ value: QueryConstitutionRequest.fromPartial(value) }); + let msg = this.queryVoteResponse({ value: QueryVoteResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConstitutionRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryVoteResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDepositResponse({ value, fee, memo }) { + async sendQueryParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDepositResponse: 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.queryDepositResponse({ value: QueryDepositResponse.fromPartial(value) }); + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDepositResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryTallyResultResponse({ value, fee, memo }) { + async sendDepositParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultResponse: 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.queryTallyResultResponse({ value: QueryTallyResultResponse.fromPartial(value) }); + let msg = this.depositParams({ value: DepositParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTallyResultResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDepositParams: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSubmitProposal({ value, fee, memo }) { + async sendQueryProposalResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposal: 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.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) }); + let msg = this.queryProposalResponse({ value: QueryProposalResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryProposalResponse: Could not broadcast Tx: ' + e.message); } }, - async sendDeposit({ value, fee, memo }) { + async sendQueryDepositsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDeposit: 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.deposit({ value: Deposit.fromPartial(value) }); + let msg = this.queryDepositsResponse({ value: QueryDepositsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDeposit: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDepositsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendDepositParams({ value, fee, memo }) { + async sendQueryTallyResultRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDepositParams: 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.depositParams({ value: DepositParams.fromPartial(value) }); + let msg = this.queryTallyResultRequest({ value: QueryTallyResultRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDepositParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTallyResultRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgDeposit({ value, fee, memo }) { + async sendQueryTallyResultResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgDeposit: 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.msgDeposit({ value: MsgDeposit.fromPartial(value) }); + let msg = this.queryTallyResultResponse({ value: QueryTallyResultResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTallyResultResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryVoteResponse({ value, fee, memo }) { + async sendMsgDeposit({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryVoteResponse: 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.queryVoteResponse({ value: QueryVoteResponse.fromPartial(value) }); + let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryVoteResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: ' + e.message); } }, - async sendMsgVoteWeightedResponse({ value, fee, memo }) { + async sendProposal({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgVoteWeightedResponse: 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.msgVoteWeightedResponse({ value: MsgVoteWeightedResponse.fromPartial(value) }); + let msg = this.proposal({ value: Proposal.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgVoteWeightedResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendProposal: Could not broadcast Tx: ' + e.message); } }, - async sendProposal({ value, fee, memo }) { + async sendQueryProposalsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendProposal: 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.proposal({ value: Proposal.fromPartial(value) }); + let msg = this.queryProposalsResponse({ value: QueryProposalsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryProposalsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryProposalsRequest({ value, fee, memo }) { + async sendMsgVoteWeighted({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryProposalsRequest: 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.queryProposalsRequest({ value: QueryProposalsRequest.fromPartial(value) }); + let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryProposalsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: ' + e.message); } }, - async sendQueryProposalsResponse({ value, fee, memo }) { + async sendMsgUpdateParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryProposalsResponse: 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.queryProposalsResponse({ value: QueryProposalsResponse.fromPartial(value) }); + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryProposalsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); } }, - async sendQueryVotesResponse({ value, fee, memo }) { + async sendVotingParams({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendQueryVotesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendVotingParams: Could not broadcast Tx: ' + e.message); } }, - async sendMsgVoteResponse({ value, fee, memo }) { + async sendParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgVoteResponse: 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.msgVoteResponse({ value: MsgVoteResponse.fromPartial(value) }); + let msg = this.params({ value: Params.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgVoteResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); } }, - async sendParams({ value, fee, memo }) { + async sendQueryProposalRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendParams: 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.params({ value: Params.fromPartial(value) }); + let msg = this.queryProposalRequest({ value: QueryProposalRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryProposalRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgExecLegacyContentResponse({ value, fee, memo }) { + async sendMsgCancelProposal({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgExecLegacyContentResponse: 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.msgExecLegacyContentResponse({ value: MsgExecLegacyContentResponse.fromPartial(value) }); + let msg = this.msgCancelProposal({ value: MsgCancelProposal.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgExecLegacyContentResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCancelProposal: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendMsgCancelProposalResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.fromPartial(value) }); + let msg = this.msgCancelProposalResponse({ value: MsgCancelProposalResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCancelProposalResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDepositsRequest({ value, fee, memo }) { + async sendQueryVotesRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDepositsRequest: 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.queryDepositsRequest({ value: QueryDepositsRequest.fromPartial(value) }); + let msg = this.queryVotesRequest({ value: QueryVotesRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDepositsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryVotesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }) { + async sendQueryVotesResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: 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.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); + let msg = this.queryVotesResponse({ value: QueryVotesResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryVotesResponse: Could not broadcast Tx: ' + e.message); + } + }, + async sendQueryParamsRequest({ value, fee, memo }) { + if (!signer) { + 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.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); + } + catch (e) { + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); } }, async sendMsgVote({ value, fee, memo }) { @@ -509,46 +523,46 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCancelProposalResponse({ value, fee, memo }) { + async sendWeightedVoteOption({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCancelProposalResponse: 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.msgCancelProposalResponse({ value: MsgCancelProposalResponse.fromPartial(value) }); + let msg = this.weightedVoteOption({ value: WeightedVoteOption.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCancelProposalResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendWeightedVoteOption: Could not broadcast Tx: ' + e.message); } }, - async sendVote({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendVote: 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.vote({ value: Vote.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendVote: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendVotingParams({ value, fee, memo }) { + async sendMsgExecLegacyContent({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendVotingParams: 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.votingParams({ value: VotingParams.fromPartial(value) }); + let msg = this.msgExecLegacyContent({ value: MsgExecLegacyContent.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendVotingParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgExecLegacyContent: Could not broadcast Tx: ' + e.message); } }, async sendQueryConstitutionResponse({ value, fee, memo }) { @@ -565,232 +579,226 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendQueryConstitutionResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryVotesRequest({ value, fee, memo }) { + async sendMsgExecLegacyContentResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryVotesRequest: 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.queryVotesRequest({ value: QueryVotesRequest.fromPartial(value) }); + let msg = this.msgExecLegacyContentResponse({ value: MsgExecLegacyContentResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryVotesRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgExecLegacyContentResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsRequest({ value, fee, memo }) { + async sendTallyResult({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: 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.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); + let msg = this.tallyResult({ value: TallyResult.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTallyResult: Could not broadcast Tx: ' + e.message); } }, - async sendWeightedVoteOption({ value, fee, memo }) { + async sendQueryDepositResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendWeightedVoteOption: 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.weightedVoteOption({ value: WeightedVoteOption.fromPartial(value) }); + let msg = this.queryDepositResponse({ value: QueryDepositResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendWeightedVoteOption: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDepositResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryVoteRequest({ value, fee, memo }) { + async sendMsgVoteWeightedResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryVoteRequest: 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.queryVoteRequest({ value: QueryVoteRequest.fromPartial(value) }); + let msg = this.msgVoteWeightedResponse({ value: MsgVoteWeightedResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryVoteRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgVoteWeightedResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSubmitProposalResponse({ value, fee, memo }) { + async sendMsgDepositResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposalResponse: 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.msgSubmitProposalResponse({ value: MsgSubmitProposalResponse.fromPartial(value) }); + let msg = this.msgDepositResponse({ value: MsgDepositResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSubmitProposalResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgDepositResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCancelProposal({ value, fee, memo }) { - if (!signer) { - throw new Error('TxClient:sendMsgCancelProposal: Unable to sign Tx. Signer is not present.'); - } + tallyParams({ value }) { try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgCancelProposal({ value: MsgCancelProposal.fromPartial(value) }); - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); + return { typeUrl: "/cosmos.gov.v1.TallyParams", value: TallyParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:sendMsgCancelProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:TallyParams: Could not create message: ' + e.message); } }, - queryDepositRequest({ value }) { + msgSubmitProposal({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryDepositRequest", value: QueryDepositRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDepositRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message); } }, - queryProposalResponse({ value }) { + queryConstitutionRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryProposalResponse", value: QueryProposalResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryConstitutionRequest", value: QueryConstitutionRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConstitutionRequest: Could not create message: ' + e.message); } }, - msgVoteWeighted({ value }) { + queryVoteRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryVoteRequest", value: QueryVoteRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message); + throw new Error('TxClient:QueryVoteRequest: Could not create message: ' + e.message); } }, - msgUpdateParams({ value }) { + msgSubmitProposalResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message); } }, - tallyParams({ value }) { + queryDepositRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.TallyParams", value: TallyParams.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryDepositRequest", value: QueryDepositRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TallyParams: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDepositRequest: Could not create message: ' + e.message); } }, - queryProposalRequest({ value }) { + queryDepositsRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryProposalRequest", value: QueryProposalRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", value: QueryDepositsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDepositsRequest: Could not create message: ' + e.message); } }, - queryParamsResponse({ value }) { + msgVoteResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.MsgVoteResponse", value: MsgVoteResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message); } }, - queryDepositsResponse({ value }) { + deposit({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", value: QueryDepositsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.Deposit", value: Deposit.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDepositsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Deposit: Could not create message: ' + e.message); } }, - queryTallyResultRequest({ value }) { + queryProposalsRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", value: QueryProposalsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryProposalsRequest: Could not create message: ' + e.message); } }, - msgExecLegacyContent({ value }) { + msgUpdateParamsResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", value: MsgExecLegacyContent.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgExecLegacyContent: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); } }, - msgDepositResponse({ value }) { + vote({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.MsgDepositResponse", value: MsgDepositResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.Vote", value: Vote.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgDepositResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Vote: Could not create message: ' + e.message); } }, - tallyResult({ value }) { + queryVoteResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.TallyResult", value: TallyResult.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryVoteResponse", value: QueryVoteResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TallyResult: Could not create message: ' + e.message); + throw new Error('TxClient:QueryVoteResponse: Could not create message: ' + e.message); } }, - queryConstitutionRequest({ value }) { + queryParamsResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryConstitutionRequest", value: QueryConstitutionRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConstitutionRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); } }, - queryDepositResponse({ value }) { + depositParams({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryDepositResponse", value: QueryDepositResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.DepositParams", value: DepositParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDepositResponse: Could not create message: ' + e.message); + throw new Error('TxClient:DepositParams: Could not create message: ' + e.message); } }, - queryTallyResultResponse({ value }) { + queryProposalResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryProposalResponse", value: QueryProposalResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message); } }, - msgSubmitProposal({ value }) { + queryDepositsResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryDepositsResponse", value: QueryDepositsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDepositsResponse: Could not create message: ' + e.message); } }, - deposit({ value }) { + queryTallyResultRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.Deposit", value: Deposit.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Deposit: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message); } }, - depositParams({ value }) { + queryTallyResultResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.DepositParams", value: DepositParams.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DepositParams: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message); } }, msgDeposit({ value }) { @@ -801,100 +809,100 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message); } }, - queryVoteResponse({ value }) { + proposal({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryVoteResponse", value: QueryVoteResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.Proposal", value: Proposal.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryVoteResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Proposal: Could not create message: ' + e.message); } }, - msgVoteWeightedResponse({ value }) { + queryProposalsResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", value: MsgVoteWeightedResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", value: QueryProposalsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgVoteWeightedResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryProposalsResponse: Could not create message: ' + e.message); } }, - proposal({ value }) { + msgVoteWeighted({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.Proposal", value: Proposal.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Proposal: Could not create message: ' + e.message); + throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message); } }, - queryProposalsRequest({ value }) { + msgUpdateParams({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryProposalsRequest", value: QueryProposalsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryProposalsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); } }, - queryProposalsResponse({ value }) { + votingParams({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryProposalsResponse", value: QueryProposalsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.VotingParams", value: VotingParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryProposalsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:VotingParams: Could not create message: ' + e.message); } }, - queryVotesResponse({ value }) { + params({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryVotesResponse", value: QueryVotesResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.Params", value: Params.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryVotesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Params: Could not create message: ' + e.message); } }, - msgVoteResponse({ value }) { + queryProposalRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.MsgVoteResponse", value: MsgVoteResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryProposalRequest", value: QueryProposalRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message); } }, - params({ value }) { + msgCancelProposal({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.Params", value: Params.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.MsgCancelProposal", value: MsgCancelProposal.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Params: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCancelProposal: Could not create message: ' + e.message); } }, - msgExecLegacyContentResponse({ value }) { + msgCancelProposalResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", value: MsgExecLegacyContentResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.MsgCancelProposalResponse", value: MsgCancelProposalResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgExecLegacyContentResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCancelProposalResponse: Could not create message: ' + e.message); } }, - genesisState({ value }) { + queryVotesRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryVotesRequest", value: QueryVotesRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:QueryVotesRequest: Could not create message: ' + e.message); } }, - queryDepositsRequest({ value }) { + queryVotesResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryDepositsRequest", value: QueryDepositsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryVotesResponse", value: QueryVotesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDepositsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryVotesResponse: Could not create message: ' + e.message); } }, - msgUpdateParamsResponse({ value }) { + queryParamsRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); } }, msgVote({ value }) { @@ -905,28 +913,28 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgVote: Could not create message: ' + e.message); } }, - msgCancelProposalResponse({ value }) { + weightedVoteOption({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.MsgCancelProposalResponse", value: MsgCancelProposalResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.WeightedVoteOption", value: WeightedVoteOption.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCancelProposalResponse: Could not create message: ' + e.message); + throw new Error('TxClient:WeightedVoteOption: Could not create message: ' + e.message); } }, - vote({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.Vote", value: Vote.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Vote: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - votingParams({ value }) { + msgExecLegacyContent({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.VotingParams", value: VotingParams.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent", value: MsgExecLegacyContent.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:VotingParams: Could not create message: ' + e.message); + throw new Error('TxClient:MsgExecLegacyContent: Could not create message: ' + e.message); } }, queryConstitutionResponse({ value }) { @@ -937,52 +945,44 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:QueryConstitutionResponse: Could not create message: ' + e.message); } }, - queryVotesRequest({ value }) { - try { - return { typeUrl: "/cosmos.gov.v1.QueryVotesRequest", value: QueryVotesRequest.fromPartial(value) }; - } - catch (e) { - throw new Error('TxClient:QueryVotesRequest: Could not create message: ' + e.message); - } - }, - queryParamsRequest({ value }) { + msgExecLegacyContentResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse", value: MsgExecLegacyContentResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgExecLegacyContentResponse: Could not create message: ' + e.message); } }, - weightedVoteOption({ value }) { + tallyResult({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.WeightedVoteOption", value: WeightedVoteOption.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.TallyResult", value: TallyResult.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:WeightedVoteOption: Could not create message: ' + e.message); + throw new Error('TxClient:TallyResult: Could not create message: ' + e.message); } }, - queryVoteRequest({ value }) { + queryDepositResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.QueryVoteRequest", value: QueryVoteRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.QueryDepositResponse", value: QueryDepositResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryVoteRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDepositResponse: Could not create message: ' + e.message); } }, - msgSubmitProposalResponse({ value }) { + msgVoteWeightedResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse", value: MsgVoteWeightedResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgVoteWeightedResponse: Could not create message: ' + e.message); } }, - msgCancelProposal({ value }) { + msgDepositResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1.MsgCancelProposal", value: MsgCancelProposal.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1.MsgDepositResponse", value: MsgDepositResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCancelProposal: Could not create message: ' + e.message); + throw new Error('TxClient:MsgDepositResponse: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.gov.v1/registry.js b/ts-client/lib/cosmos.gov.v1/registry.js index 79f551d6e..1e9ce14b7 100644 --- a/ts-client/lib/cosmos.gov.v1/registry.js +++ b/ts-client/lib/cosmos.gov.v1/registry.js @@ -1,87 +1,87 @@ -import { QueryDepositRequest } from "./types/cosmos/gov/v1/query"; -import { QueryProposalResponse } from "./types/cosmos/gov/v1/query"; -import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx"; -import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx"; import { TallyParams } from "./types/cosmos/gov/v1/gov"; -import { QueryProposalRequest } from "./types/cosmos/gov/v1/query"; +import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx"; +import { QueryConstitutionRequest } from "./types/cosmos/gov/v1/query"; +import { QueryVoteRequest } from "./types/cosmos/gov/v1/query"; +import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1/tx"; +import { QueryDepositRequest } from "./types/cosmos/gov/v1/query"; +import { QueryDepositsRequest } from "./types/cosmos/gov/v1/query"; +import { MsgVoteResponse } from "./types/cosmos/gov/v1/tx"; +import { Deposit } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalsRequest } from "./types/cosmos/gov/v1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/gov/v1/tx"; +import { Vote } from "./types/cosmos/gov/v1/gov"; +import { QueryVoteResponse } from "./types/cosmos/gov/v1/query"; import { QueryParamsResponse } from "./types/cosmos/gov/v1/query"; +import { DepositParams } from "./types/cosmos/gov/v1/gov"; +import { QueryProposalResponse } from "./types/cosmos/gov/v1/query"; import { QueryDepositsResponse } from "./types/cosmos/gov/v1/query"; import { QueryTallyResultRequest } from "./types/cosmos/gov/v1/query"; -import { MsgExecLegacyContent } from "./types/cosmos/gov/v1/tx"; -import { MsgDepositResponse } from "./types/cosmos/gov/v1/tx"; -import { TallyResult } from "./types/cosmos/gov/v1/gov"; -import { QueryConstitutionRequest } from "./types/cosmos/gov/v1/query"; -import { QueryDepositResponse } from "./types/cosmos/gov/v1/query"; import { QueryTallyResultResponse } from "./types/cosmos/gov/v1/query"; -import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx"; -import { Deposit } from "./types/cosmos/gov/v1/gov"; -import { DepositParams } from "./types/cosmos/gov/v1/gov"; import { MsgDeposit } from "./types/cosmos/gov/v1/tx"; -import { QueryVoteResponse } from "./types/cosmos/gov/v1/query"; -import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1/tx"; import { Proposal } from "./types/cosmos/gov/v1/gov"; -import { QueryProposalsRequest } from "./types/cosmos/gov/v1/query"; import { QueryProposalsResponse } from "./types/cosmos/gov/v1/query"; -import { QueryVotesResponse } from "./types/cosmos/gov/v1/query"; -import { MsgVoteResponse } from "./types/cosmos/gov/v1/tx"; +import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx"; +import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx"; +import { VotingParams } from "./types/cosmos/gov/v1/gov"; import { Params } from "./types/cosmos/gov/v1/gov"; -import { MsgExecLegacyContentResponse } from "./types/cosmos/gov/v1/tx"; -import { GenesisState } from "./types/cosmos/gov/v1/genesis"; -import { QueryDepositsRequest } from "./types/cosmos/gov/v1/query"; -import { MsgUpdateParamsResponse } from "./types/cosmos/gov/v1/tx"; -import { MsgVote } from "./types/cosmos/gov/v1/tx"; +import { QueryProposalRequest } from "./types/cosmos/gov/v1/query"; +import { MsgCancelProposal } from "./types/cosmos/gov/v1/tx"; import { MsgCancelProposalResponse } from "./types/cosmos/gov/v1/tx"; -import { Vote } from "./types/cosmos/gov/v1/gov"; -import { VotingParams } from "./types/cosmos/gov/v1/gov"; -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 { QueryParamsRequest } from "./types/cosmos/gov/v1/query"; +import { MsgVote } from "./types/cosmos/gov/v1/tx"; import { WeightedVoteOption } from "./types/cosmos/gov/v1/gov"; -import { QueryVoteRequest } from "./types/cosmos/gov/v1/query"; -import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1/tx"; -import { MsgCancelProposal } from "./types/cosmos/gov/v1/tx"; +import { GenesisState } from "./types/cosmos/gov/v1/genesis"; +import { MsgExecLegacyContent } from "./types/cosmos/gov/v1/tx"; +import { QueryConstitutionResponse } from "./types/cosmos/gov/v1/query"; +import { MsgExecLegacyContentResponse } from "./types/cosmos/gov/v1/tx"; +import { TallyResult } from "./types/cosmos/gov/v1/gov"; +import { QueryDepositResponse } from "./types/cosmos/gov/v1/query"; +import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1/tx"; +import { MsgDepositResponse } from "./types/cosmos/gov/v1/tx"; const msgTypes = [ - ["/cosmos.gov.v1.QueryDepositRequest", QueryDepositRequest], - ["/cosmos.gov.v1.QueryProposalResponse", QueryProposalResponse], - ["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted], - ["/cosmos.gov.v1.MsgUpdateParams", MsgUpdateParams], ["/cosmos.gov.v1.TallyParams", TallyParams], - ["/cosmos.gov.v1.QueryProposalRequest", QueryProposalRequest], + ["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal], + ["/cosmos.gov.v1.QueryConstitutionRequest", QueryConstitutionRequest], + ["/cosmos.gov.v1.QueryVoteRequest", QueryVoteRequest], + ["/cosmos.gov.v1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], + ["/cosmos.gov.v1.QueryDepositRequest", QueryDepositRequest], + ["/cosmos.gov.v1.QueryDepositsRequest", QueryDepositsRequest], + ["/cosmos.gov.v1.MsgVoteResponse", MsgVoteResponse], + ["/cosmos.gov.v1.Deposit", Deposit], + ["/cosmos.gov.v1.QueryProposalsRequest", QueryProposalsRequest], + ["/cosmos.gov.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.gov.v1.Vote", Vote], + ["/cosmos.gov.v1.QueryVoteResponse", QueryVoteResponse], ["/cosmos.gov.v1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.gov.v1.DepositParams", DepositParams], + ["/cosmos.gov.v1.QueryProposalResponse", QueryProposalResponse], ["/cosmos.gov.v1.QueryDepositsResponse", QueryDepositsResponse], ["/cosmos.gov.v1.QueryTallyResultRequest", QueryTallyResultRequest], - ["/cosmos.gov.v1.MsgExecLegacyContent", MsgExecLegacyContent], - ["/cosmos.gov.v1.MsgDepositResponse", MsgDepositResponse], - ["/cosmos.gov.v1.TallyResult", TallyResult], - ["/cosmos.gov.v1.QueryConstitutionRequest", QueryConstitutionRequest], - ["/cosmos.gov.v1.QueryDepositResponse", QueryDepositResponse], ["/cosmos.gov.v1.QueryTallyResultResponse", QueryTallyResultResponse], - ["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal], - ["/cosmos.gov.v1.Deposit", Deposit], - ["/cosmos.gov.v1.DepositParams", DepositParams], ["/cosmos.gov.v1.MsgDeposit", MsgDeposit], - ["/cosmos.gov.v1.QueryVoteResponse", QueryVoteResponse], - ["/cosmos.gov.v1.MsgVoteWeightedResponse", MsgVoteWeightedResponse], ["/cosmos.gov.v1.Proposal", Proposal], - ["/cosmos.gov.v1.QueryProposalsRequest", QueryProposalsRequest], ["/cosmos.gov.v1.QueryProposalsResponse", QueryProposalsResponse], - ["/cosmos.gov.v1.QueryVotesResponse", QueryVotesResponse], - ["/cosmos.gov.v1.MsgVoteResponse", MsgVoteResponse], + ["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted], + ["/cosmos.gov.v1.MsgUpdateParams", MsgUpdateParams], + ["/cosmos.gov.v1.VotingParams", VotingParams], ["/cosmos.gov.v1.Params", Params], - ["/cosmos.gov.v1.MsgExecLegacyContentResponse", MsgExecLegacyContentResponse], - ["/cosmos.gov.v1.GenesisState", GenesisState], - ["/cosmos.gov.v1.QueryDepositsRequest", QueryDepositsRequest], - ["/cosmos.gov.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/cosmos.gov.v1.MsgVote", MsgVote], + ["/cosmos.gov.v1.QueryProposalRequest", QueryProposalRequest], + ["/cosmos.gov.v1.MsgCancelProposal", MsgCancelProposal], ["/cosmos.gov.v1.MsgCancelProposalResponse", MsgCancelProposalResponse], - ["/cosmos.gov.v1.Vote", Vote], - ["/cosmos.gov.v1.VotingParams", VotingParams], - ["/cosmos.gov.v1.QueryConstitutionResponse", QueryConstitutionResponse], ["/cosmos.gov.v1.QueryVotesRequest", QueryVotesRequest], + ["/cosmos.gov.v1.QueryVotesResponse", QueryVotesResponse], ["/cosmos.gov.v1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.gov.v1.MsgVote", MsgVote], ["/cosmos.gov.v1.WeightedVoteOption", WeightedVoteOption], - ["/cosmos.gov.v1.QueryVoteRequest", QueryVoteRequest], - ["/cosmos.gov.v1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], - ["/cosmos.gov.v1.MsgCancelProposal", MsgCancelProposal], + ["/cosmos.gov.v1.GenesisState", GenesisState], + ["/cosmos.gov.v1.MsgExecLegacyContent", MsgExecLegacyContent], + ["/cosmos.gov.v1.QueryConstitutionResponse", QueryConstitutionResponse], + ["/cosmos.gov.v1.MsgExecLegacyContentResponse", MsgExecLegacyContentResponse], + ["/cosmos.gov.v1.TallyResult", TallyResult], + ["/cosmos.gov.v1.QueryDepositResponse", QueryDepositResponse], + ["/cosmos.gov.v1.MsgVoteWeightedResponse", MsgVoteWeightedResponse], + ["/cosmos.gov.v1.MsgDepositResponse", MsgDepositResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.gov.v1beta1/module.d.ts b/ts-client/lib/cosmos.gov.v1beta1/module.d.ts index 11e3b47bc..8f4a6c214 100644 --- a/ts-client/lib/cosmos.gov.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.gov.v1beta1/module.d.ts @@ -2,313 +2,313 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; -import { Deposit } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryDepositsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { GenesisState } from "./types/cosmos/gov/v1beta1/genesis"; +import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryProposalRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { Vote } from "./types/cosmos/gov/v1beta1/gov"; +import { VotingParams } from "./types/cosmos/gov/v1beta1/gov"; import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryVotesRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryProposalsResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryVotesResponse } from "./types/cosmos/gov/v1beta1/query"; +import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryProposalResponse } from "./types/cosmos/gov/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositsResponse } from "./types/cosmos/gov/v1beta1/query"; import { QueryTallyResultResponse } from "./types/cosmos/gov/v1beta1/query"; -import { GenesisState } from "./types/cosmos/gov/v1beta1/genesis"; -import { TextProposal } from "./types/cosmos/gov/v1beta1/gov"; +import { Proposal } from "./types/cosmos/gov/v1beta1/gov"; import { MsgDepositResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { WeightedVoteOption } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryVoteRequest } from "./types/cosmos/gov/v1beta1/query"; import { QueryTallyResultRequest } from "./types/cosmos/gov/v1beta1/query"; +import { TallyResult } from "./types/cosmos/gov/v1beta1/gov"; +import { WeightedVoteOption } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryProposalsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { Deposit } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryVoteResponse } from "./types/cosmos/gov/v1beta1/query"; import { DepositParams } from "./types/cosmos/gov/v1beta1/gov"; +import { TextProposal } from "./types/cosmos/gov/v1beta1/gov"; +import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryDepositResponse } from "./types/cosmos/gov/v1beta1/query"; +import { TallyParams } from "./types/cosmos/gov/v1beta1/gov"; import { MsgVoteResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryProposalsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryProposalsResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryDepositsResponse } from "./types/cosmos/gov/v1beta1/query"; import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryProposalResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryVoteRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { TallyParams } from "./types/cosmos/gov/v1beta1/gov"; -import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx"; -import { TallyResult } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryParamsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryProposalRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryVotesRequest } from "./types/cosmos/gov/v1beta1/query"; import { QueryDepositRequest } from "./types/cosmos/gov/v1beta1/query"; -import { VotingParams } from "./types/cosmos/gov/v1beta1/gov"; -import { Proposal } from "./types/cosmos/gov/v1beta1/gov"; -import { Vote } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryVoteResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryVotesResponse } from "./types/cosmos/gov/v1beta1/query"; -export { MsgSubmitProposal, Deposit, MsgDeposit, QueryVotesRequest, QueryParamsResponse, QueryDepositsResponse, QueryTallyResultResponse, GenesisState, TextProposal, MsgDepositResponse, WeightedVoteOption, QueryTallyResultRequest, DepositParams, MsgVoteResponse, QueryProposalsRequest, QueryProposalsResponse, MsgVoteWeightedResponse, QueryProposalResponse, QueryVoteRequest, QueryDepositsRequest, TallyParams, MsgSubmitProposalResponse, MsgVote, MsgVoteWeighted, TallyResult, QueryParamsRequest, QueryDepositResponse, QueryProposalRequest, QueryDepositRequest, VotingParams, Proposal, Vote, QueryVoteResponse, QueryVotesResponse }; -type sendMsgSubmitProposalParams = { - value: MsgSubmitProposal; +export { QueryDepositsRequest, GenesisState, MsgVoteWeighted, QueryProposalRequest, QueryParamsRequest, Vote, VotingParams, MsgDeposit, QueryProposalsResponse, QueryVotesResponse, MsgSubmitProposalResponse, MsgVote, QueryProposalResponse, QueryParamsResponse, QueryTallyResultResponse, Proposal, MsgDepositResponse, QueryVoteRequest, QueryTallyResultRequest, TallyResult, WeightedVoteOption, QueryProposalsRequest, Deposit, QueryVoteResponse, DepositParams, TextProposal, MsgSubmitProposal, QueryDepositResponse, TallyParams, MsgVoteResponse, QueryDepositsResponse, MsgVoteWeightedResponse, QueryVotesRequest, QueryDepositRequest }; +type sendQueryDepositsRequestParams = { + value: QueryDepositsRequest; fee?: StdFee; memo?: string; }; -type sendDepositParams = { - value: Deposit; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendMsgDepositParams = { - value: MsgDeposit; +type sendMsgVoteWeightedParams = { + value: MsgVoteWeighted; fee?: StdFee; memo?: string; }; -type sendQueryVotesRequestParams = { - value: QueryVotesRequest; +type sendQueryProposalRequestParams = { + value: QueryProposalRequest; fee?: StdFee; memo?: string; }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse; +type sendQueryParamsRequestParams = { + value: QueryParamsRequest; fee?: StdFee; memo?: string; }; -type sendQueryDepositsResponseParams = { - value: QueryDepositsResponse; +type sendVoteParams = { + value: Vote; fee?: StdFee; memo?: string; }; -type sendQueryTallyResultResponseParams = { - value: QueryTallyResultResponse; +type sendVotingParamsParams = { + value: VotingParams; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendMsgDepositParams = { + value: MsgDeposit; fee?: StdFee; memo?: string; }; -type sendTextProposalParams = { - value: TextProposal; +type sendQueryProposalsResponseParams = { + value: QueryProposalsResponse; fee?: StdFee; memo?: string; }; -type sendMsgDepositResponseParams = { - value: MsgDepositResponse; +type sendQueryVotesResponseParams = { + value: QueryVotesResponse; fee?: StdFee; memo?: string; }; -type sendWeightedVoteOptionParams = { - value: WeightedVoteOption; +type sendMsgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse; fee?: StdFee; memo?: string; }; -type sendQueryTallyResultRequestParams = { - value: QueryTallyResultRequest; +type sendMsgVoteParams = { + value: MsgVote; fee?: StdFee; memo?: string; }; -type sendDepositParamsParams = { - value: DepositParams; +type sendQueryProposalResponseParams = { + value: QueryProposalResponse; fee?: StdFee; memo?: string; }; -type sendMsgVoteResponseParams = { - value: MsgVoteResponse; +type sendQueryParamsResponseParams = { + value: QueryParamsResponse; fee?: StdFee; memo?: string; }; -type sendQueryProposalsRequestParams = { - value: QueryProposalsRequest; +type sendQueryTallyResultResponseParams = { + value: QueryTallyResultResponse; fee?: StdFee; memo?: string; }; -type sendQueryProposalsResponseParams = { - value: QueryProposalsResponse; +type sendProposalParams = { + value: Proposal; fee?: StdFee; memo?: string; }; -type sendMsgVoteWeightedResponseParams = { - value: MsgVoteWeightedResponse; +type sendMsgDepositResponseParams = { + value: MsgDepositResponse; fee?: StdFee; memo?: string; }; -type sendQueryProposalResponseParams = { - value: QueryProposalResponse; +type sendQueryVoteRequestParams = { + value: QueryVoteRequest; fee?: StdFee; memo?: string; }; -type sendQueryVoteRequestParams = { - value: QueryVoteRequest; +type sendQueryTallyResultRequestParams = { + value: QueryTallyResultRequest; fee?: StdFee; memo?: string; }; -type sendQueryDepositsRequestParams = { - value: QueryDepositsRequest; +type sendTallyResultParams = { + value: TallyResult; fee?: StdFee; memo?: string; }; -type sendTallyParamsParams = { - value: TallyParams; +type sendWeightedVoteOptionParams = { + value: WeightedVoteOption; fee?: StdFee; memo?: string; }; -type sendMsgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse; +type sendQueryProposalsRequestParams = { + value: QueryProposalsRequest; fee?: StdFee; memo?: string; }; -type sendMsgVoteParams = { - value: MsgVote; +type sendDepositParams = { + value: Deposit; fee?: StdFee; memo?: string; }; -type sendMsgVoteWeightedParams = { - value: MsgVoteWeighted; +type sendQueryVoteResponseParams = { + value: QueryVoteResponse; fee?: StdFee; memo?: string; }; -type sendTallyResultParams = { - value: TallyResult; +type sendDepositParamsParams = { + value: DepositParams; fee?: StdFee; memo?: string; }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest; +type sendTextProposalParams = { + value: TextProposal; fee?: StdFee; memo?: string; }; -type sendQueryDepositResponseParams = { - value: QueryDepositResponse; +type sendMsgSubmitProposalParams = { + value: MsgSubmitProposal; fee?: StdFee; memo?: string; }; -type sendQueryProposalRequestParams = { - value: QueryProposalRequest; +type sendQueryDepositResponseParams = { + value: QueryDepositResponse; fee?: StdFee; memo?: string; }; -type sendQueryDepositRequestParams = { - value: QueryDepositRequest; +type sendTallyParamsParams = { + value: TallyParams; fee?: StdFee; memo?: string; }; -type sendVotingParamsParams = { - value: VotingParams; +type sendMsgVoteResponseParams = { + value: MsgVoteResponse; fee?: StdFee; memo?: string; }; -type sendProposalParams = { - value: Proposal; +type sendQueryDepositsResponseParams = { + value: QueryDepositsResponse; fee?: StdFee; memo?: string; }; -type sendVoteParams = { - value: Vote; +type sendMsgVoteWeightedResponseParams = { + value: MsgVoteWeightedResponse; fee?: StdFee; memo?: string; }; -type sendQueryVoteResponseParams = { - value: QueryVoteResponse; +type sendQueryVotesRequestParams = { + value: QueryVotesRequest; fee?: StdFee; memo?: string; }; -type sendQueryVotesResponseParams = { - value: QueryVotesResponse; +type sendQueryDepositRequestParams = { + value: QueryDepositRequest; fee?: StdFee; memo?: string; }; -type msgSubmitProposalParams = { - value: MsgSubmitProposal; +type queryDepositsRequestParams = { + value: QueryDepositsRequest; }; -type depositParams = { - value: Deposit; +type genesisStateParams = { + value: GenesisState; +}; +type msgVoteWeightedParams = { + value: MsgVoteWeighted; +}; +type queryProposalRequestParams = { + value: QueryProposalRequest; +}; +type queryParamsRequestParams = { + value: QueryParamsRequest; +}; +type voteParams = { + value: Vote; +}; +type votingParamsParams = { + value: VotingParams; }; type msgDepositParams = { value: MsgDeposit; }; -type queryVotesRequestParams = { - value: QueryVotesRequest; +type queryProposalsResponseParams = { + value: QueryProposalsResponse; +}; +type queryVotesResponseParams = { + value: QueryVotesResponse; +}; +type msgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse; +}; +type msgVoteParams = { + value: MsgVote; +}; +type queryProposalResponseParams = { + value: QueryProposalResponse; }; type queryParamsResponseParams = { value: QueryParamsResponse; }; -type queryDepositsResponseParams = { - value: QueryDepositsResponse; -}; type queryTallyResultResponseParams = { value: QueryTallyResultResponse; }; -type genesisStateParams = { - value: GenesisState; -}; -type textProposalParams = { - value: TextProposal; +type proposalParams = { + value: Proposal; }; type msgDepositResponseParams = { value: MsgDepositResponse; }; -type weightedVoteOptionParams = { - value: WeightedVoteOption; +type queryVoteRequestParams = { + value: QueryVoteRequest; }; type queryTallyResultRequestParams = { value: QueryTallyResultRequest; }; -type depositParamsParams = { - value: DepositParams; +type tallyResultParams = { + value: TallyResult; }; -type msgVoteResponseParams = { - value: MsgVoteResponse; +type weightedVoteOptionParams = { + value: WeightedVoteOption; }; type queryProposalsRequestParams = { value: QueryProposalsRequest; }; -type queryProposalsResponseParams = { - value: QueryProposalsResponse; +type depositParams = { + value: Deposit; }; -type msgVoteWeightedResponseParams = { - value: MsgVoteWeightedResponse; +type queryVoteResponseParams = { + value: QueryVoteResponse; }; -type queryProposalResponseParams = { - value: QueryProposalResponse; +type depositParamsParams = { + value: DepositParams; }; -type queryVoteRequestParams = { - value: QueryVoteRequest; +type textProposalParams = { + value: TextProposal; }; -type queryDepositsRequestParams = { - value: QueryDepositsRequest; +type msgSubmitProposalParams = { + value: MsgSubmitProposal; +}; +type queryDepositResponseParams = { + value: QueryDepositResponse; }; type tallyParamsParams = { value: TallyParams; }; -type msgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse; -}; -type msgVoteParams = { - value: MsgVote; -}; -type msgVoteWeightedParams = { - value: MsgVoteWeighted; -}; -type tallyResultParams = { - value: TallyResult; +type msgVoteResponseParams = { + value: MsgVoteResponse; }; -type queryParamsRequestParams = { - value: QueryParamsRequest; +type queryDepositsResponseParams = { + value: QueryDepositsResponse; }; -type queryDepositResponseParams = { - value: QueryDepositResponse; +type msgVoteWeightedResponseParams = { + value: MsgVoteWeightedResponse; }; -type queryProposalRequestParams = { - value: QueryProposalRequest; +type queryVotesRequestParams = { + value: QueryVotesRequest; }; type queryDepositRequestParams = { value: QueryDepositRequest; }; -type votingParamsParams = { - value: VotingParams; -}; -type proposalParams = { - value: Proposal; -}; -type voteParams = { - value: Vote; -}; -type queryVoteResponseParams = { - value: QueryVoteResponse; -}; -type queryVotesResponseParams = { - value: QueryVotesResponse; -}; export declare const registry: Registry; interface TxClientOptions { addr: string; @@ -316,74 +316,74 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise; - sendDeposit({ value, fee, memo }: sendDepositParams): Promise; + sendQueryDepositsRequest({ value, fee, memo }: sendQueryDepositsRequestParams): Promise; + sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; + sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise; + sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise; + sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; + sendVote({ value, fee, memo }: sendVoteParams): Promise; + sendVotingParams({ value, fee, memo }: sendVotingParamsParams): Promise; sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise; - sendQueryVotesRequest({ value, fee, memo }: sendQueryVotesRequestParams): Promise; + sendQueryProposalsResponse({ value, fee, memo }: sendQueryProposalsResponseParams): Promise; + sendQueryVotesResponse({ value, fee, memo }: sendQueryVotesResponseParams): Promise; + sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise; + sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise; + sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise; sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; - sendQueryDepositsResponse({ value, fee, memo }: sendQueryDepositsResponseParams): Promise; sendQueryTallyResultResponse({ value, fee, memo }: sendQueryTallyResultResponseParams): Promise; - sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendTextProposal({ value, fee, memo }: sendTextProposalParams): Promise; + sendProposal({ value, fee, memo }: sendProposalParams): Promise; sendMsgDepositResponse({ value, fee, memo }: sendMsgDepositResponseParams): Promise; - sendWeightedVoteOption({ value, fee, memo }: sendWeightedVoteOptionParams): Promise; + sendQueryVoteRequest({ value, fee, memo }: sendQueryVoteRequestParams): Promise; sendQueryTallyResultRequest({ value, fee, memo }: sendQueryTallyResultRequestParams): Promise; + sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise; + sendWeightedVoteOption({ value, fee, memo }: sendWeightedVoteOptionParams): Promise; + sendQueryProposalsRequest({ value, fee, memo }: sendQueryProposalsRequestParams): Promise; + sendDeposit({ value, fee, memo }: sendDepositParams): Promise; + sendQueryVoteResponse({ value, fee, memo }: sendQueryVoteResponseParams): Promise; sendDepositParams({ value, fee, memo }: sendDepositParamsParams): Promise; + sendTextProposal({ value, fee, memo }: sendTextProposalParams): Promise; + sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise; + sendQueryDepositResponse({ value, fee, memo }: sendQueryDepositResponseParams): Promise; + sendTallyParams({ value, fee, memo }: sendTallyParamsParams): Promise; sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise; - sendQueryProposalsRequest({ value, fee, memo }: sendQueryProposalsRequestParams): Promise; - sendQueryProposalsResponse({ value, fee, memo }: sendQueryProposalsResponseParams): Promise; + sendQueryDepositsResponse({ value, fee, memo }: sendQueryDepositsResponseParams): Promise; sendMsgVoteWeightedResponse({ value, fee, memo }: sendMsgVoteWeightedResponseParams): Promise; - sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise; - sendQueryVoteRequest({ value, fee, memo }: sendQueryVoteRequestParams): Promise; - sendQueryDepositsRequest({ value, fee, memo }: sendQueryDepositsRequestParams): Promise; - sendTallyParams({ value, fee, memo }: sendTallyParamsParams): Promise; - sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise; - sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise; - sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise; - sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise; - sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; - sendQueryDepositResponse({ value, fee, memo }: sendQueryDepositResponseParams): Promise; - sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise; + sendQueryVotesRequest({ value, fee, memo }: sendQueryVotesRequestParams): Promise; sendQueryDepositRequest({ value, fee, memo }: sendQueryDepositRequestParams): Promise; - sendVotingParams({ value, fee, memo }: sendVotingParamsParams): Promise; - sendProposal({ value, fee, memo }: sendProposalParams): Promise; - sendVote({ value, fee, memo }: sendVoteParams): Promise; - sendQueryVoteResponse({ value, fee, memo }: sendQueryVoteResponseParams): Promise; - sendQueryVotesResponse({ value, fee, memo }: sendQueryVotesResponseParams): Promise; - msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject; - deposit({ value }: depositParams): EncodeObject; + queryDepositsRequest({ value }: queryDepositsRequestParams): EncodeObject; + genesisState({ value }: genesisStateParams): EncodeObject; + msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject; + queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject; + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; + vote({ value }: voteParams): EncodeObject; + votingParams({ value }: votingParamsParams): EncodeObject; msgDeposit({ value }: msgDepositParams): EncodeObject; - queryVotesRequest({ value }: queryVotesRequestParams): EncodeObject; + queryProposalsResponse({ value }: queryProposalsResponseParams): EncodeObject; + queryVotesResponse({ value }: queryVotesResponseParams): EncodeObject; + msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject; + msgVote({ value }: msgVoteParams): EncodeObject; + queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject; queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; - queryDepositsResponse({ value }: queryDepositsResponseParams): EncodeObject; queryTallyResultResponse({ value }: queryTallyResultResponseParams): EncodeObject; - genesisState({ value }: genesisStateParams): EncodeObject; - textProposal({ value }: textProposalParams): EncodeObject; + proposal({ value }: proposalParams): EncodeObject; msgDepositResponse({ value }: msgDepositResponseParams): EncodeObject; - weightedVoteOption({ value }: weightedVoteOptionParams): EncodeObject; + queryVoteRequest({ value }: queryVoteRequestParams): EncodeObject; queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject; + tallyResult({ value }: tallyResultParams): EncodeObject; + weightedVoteOption({ value }: weightedVoteOptionParams): EncodeObject; + queryProposalsRequest({ value }: queryProposalsRequestParams): EncodeObject; + deposit({ value }: depositParams): EncodeObject; + queryVoteResponse({ value }: queryVoteResponseParams): EncodeObject; depositParams({ value }: depositParamsParams): EncodeObject; + textProposal({ value }: textProposalParams): EncodeObject; + msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject; + queryDepositResponse({ value }: queryDepositResponseParams): EncodeObject; + tallyParams({ value }: tallyParamsParams): EncodeObject; msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject; - queryProposalsRequest({ value }: queryProposalsRequestParams): EncodeObject; - queryProposalsResponse({ value }: queryProposalsResponseParams): EncodeObject; + queryDepositsResponse({ value }: queryDepositsResponseParams): EncodeObject; msgVoteWeightedResponse({ value }: msgVoteWeightedResponseParams): EncodeObject; - queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject; - queryVoteRequest({ value }: queryVoteRequestParams): EncodeObject; - queryDepositsRequest({ value }: queryDepositsRequestParams): EncodeObject; - tallyParams({ value }: tallyParamsParams): EncodeObject; - msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject; - msgVote({ value }: msgVoteParams): EncodeObject; - msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject; - tallyResult({ value }: tallyResultParams): EncodeObject; - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; - queryDepositResponse({ value }: queryDepositResponseParams): EncodeObject; - queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject; + queryVotesRequest({ value }: queryVotesRequestParams): EncodeObject; queryDepositRequest({ value }: queryDepositRequestParams): EncodeObject; - votingParams({ value }: votingParamsParams): EncodeObject; - proposal({ value }: proposalParams): EncodeObject; - vote({ value }: voteParams): EncodeObject; - queryVoteResponse({ value }: queryVoteResponseParams): EncodeObject; - queryVotesResponse({ value }: queryVotesResponseParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.gov.v1beta1/module.js b/ts-client/lib/cosmos.gov.v1beta1/module.js index 1f77d95f2..691f74d6b 100644 --- a/ts-client/lib/cosmos.gov.v1beta1/module.js +++ b/ts-client/lib/cosmos.gov.v1beta1/module.js @@ -3,41 +3,41 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; -import { Deposit } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryDepositsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { GenesisState } from "./types/cosmos/gov/v1beta1/genesis"; +import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryProposalRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { Vote } from "./types/cosmos/gov/v1beta1/gov"; +import { VotingParams } from "./types/cosmos/gov/v1beta1/gov"; import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryVotesRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryProposalsResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryVotesResponse } from "./types/cosmos/gov/v1beta1/query"; +import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryProposalResponse } from "./types/cosmos/gov/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositsResponse } from "./types/cosmos/gov/v1beta1/query"; import { QueryTallyResultResponse } from "./types/cosmos/gov/v1beta1/query"; -import { GenesisState } from "./types/cosmos/gov/v1beta1/genesis"; -import { TextProposal } from "./types/cosmos/gov/v1beta1/gov"; +import { Proposal } from "./types/cosmos/gov/v1beta1/gov"; import { MsgDepositResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { WeightedVoteOption } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryVoteRequest } from "./types/cosmos/gov/v1beta1/query"; import { QueryTallyResultRequest } from "./types/cosmos/gov/v1beta1/query"; +import { TallyResult } from "./types/cosmos/gov/v1beta1/gov"; +import { WeightedVoteOption } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryProposalsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { Deposit } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryVoteResponse } from "./types/cosmos/gov/v1beta1/query"; import { DepositParams } from "./types/cosmos/gov/v1beta1/gov"; +import { TextProposal } from "./types/cosmos/gov/v1beta1/gov"; +import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryDepositResponse } from "./types/cosmos/gov/v1beta1/query"; +import { TallyParams } from "./types/cosmos/gov/v1beta1/gov"; import { MsgVoteResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryProposalsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryProposalsResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryDepositsResponse } from "./types/cosmos/gov/v1beta1/query"; import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryProposalResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryVoteRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { TallyParams } from "./types/cosmos/gov/v1beta1/gov"; -import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx"; -import { TallyResult } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryParamsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryProposalRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryVotesRequest } from "./types/cosmos/gov/v1beta1/query"; import { QueryDepositRequest } from "./types/cosmos/gov/v1beta1/query"; -import { VotingParams } from "./types/cosmos/gov/v1beta1/gov"; -import { Proposal } from "./types/cosmos/gov/v1beta1/gov"; -import { Vote } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryVoteResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryVotesResponse } from "./types/cosmos/gov/v1beta1/query"; -export { MsgSubmitProposal, Deposit, MsgDeposit, QueryVotesRequest, QueryParamsResponse, QueryDepositsResponse, QueryTallyResultResponse, GenesisState, TextProposal, MsgDepositResponse, WeightedVoteOption, QueryTallyResultRequest, DepositParams, MsgVoteResponse, QueryProposalsRequest, QueryProposalsResponse, MsgVoteWeightedResponse, QueryProposalResponse, QueryVoteRequest, QueryDepositsRequest, TallyParams, MsgSubmitProposalResponse, MsgVote, MsgVoteWeighted, TallyResult, QueryParamsRequest, QueryDepositResponse, QueryProposalRequest, QueryDepositRequest, VotingParams, Proposal, Vote, QueryVoteResponse, QueryVotesResponse }; +export { QueryDepositsRequest, GenesisState, MsgVoteWeighted, QueryProposalRequest, QueryParamsRequest, Vote, VotingParams, MsgDeposit, QueryProposalsResponse, QueryVotesResponse, MsgSubmitProposalResponse, MsgVote, QueryProposalResponse, QueryParamsResponse, QueryTallyResultResponse, Proposal, MsgDepositResponse, QueryVoteRequest, QueryTallyResultRequest, TallyResult, WeightedVoteOption, QueryProposalsRequest, Deposit, QueryVoteResponse, DepositParams, TextProposal, MsgSubmitProposal, QueryDepositResponse, TallyParams, MsgVoteResponse, QueryDepositsResponse, MsgVoteWeightedResponse, QueryVotesRequest, QueryDepositRequest }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -53,752 +53,752 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendMsgSubmitProposal({ value, fee, memo }) { + async sendQueryDepositsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposal: 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.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) }); + let msg = this.queryDepositsRequest({ value: QueryDepositsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDepositsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendDeposit({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDeposit: 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.deposit({ value: Deposit.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDeposit: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendMsgDeposit({ value, fee, memo }) { + async sendMsgVoteWeighted({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgDeposit: 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.msgDeposit({ value: MsgDeposit.fromPartial(value) }); + let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: ' + e.message); } }, - async sendQueryVotesRequest({ value, fee, memo }) { + async sendQueryProposalRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryVotesRequest: 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.queryVotesRequest({ value: QueryVotesRequest.fromPartial(value) }); + let msg = this.queryProposalRequest({ value: QueryProposalRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryVotesRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryProposalRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsResponse({ value, fee, memo }) { + async sendQueryParamsRequest({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDepositsResponse({ value, fee, memo }) { + async sendVote({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDepositsResponse: 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.queryDepositsResponse({ value: QueryDepositsResponse.fromPartial(value) }); + let msg = this.vote({ value: Vote.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDepositsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendVote: Could not broadcast Tx: ' + e.message); } }, - async sendQueryTallyResultResponse({ value, fee, memo }) { + async sendVotingParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultResponse: 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.queryTallyResultResponse({ value: QueryTallyResultResponse.fromPartial(value) }); + let msg = this.votingParams({ value: VotingParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTallyResultResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendVotingParams: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendMsgDeposit({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.fromPartial(value) }); + let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: ' + e.message); } }, - async sendTextProposal({ value, fee, memo }) { + async sendQueryProposalsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTextProposal: 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.textProposal({ value: TextProposal.fromPartial(value) }); + let msg = this.queryProposalsResponse({ value: QueryProposalsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTextProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryProposalsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgDepositResponse({ value, fee, memo }) { + async sendQueryVotesResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgDepositResponse: 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.msgDepositResponse({ value: MsgDepositResponse.fromPartial(value) }); + let msg = this.queryVotesResponse({ value: QueryVotesResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgDepositResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryVotesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendWeightedVoteOption({ value, fee, memo }) { + async sendMsgSubmitProposalResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendWeightedVoteOption: 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.weightedVoteOption({ value: WeightedVoteOption.fromPartial(value) }); + let msg = this.msgSubmitProposalResponse({ value: MsgSubmitProposalResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendWeightedVoteOption: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSubmitProposalResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryTallyResultRequest({ value, fee, memo }) { + async sendMsgVote({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultRequest: 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.queryTallyResultRequest({ value: QueryTallyResultRequest.fromPartial(value) }); + let msg = this.msgVote({ value: MsgVote.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTallyResultRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message); } }, - async sendDepositParams({ value, fee, memo }) { + async sendQueryProposalResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDepositParams: 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.depositParams({ value: DepositParams.fromPartial(value) }); + let msg = this.queryProposalResponse({ value: QueryProposalResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDepositParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryProposalResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgVoteResponse({ value, fee, memo }) { + async sendQueryParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgVoteResponse: 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.msgVoteResponse({ value: MsgVoteResponse.fromPartial(value) }); + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgVoteResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryProposalsRequest({ value, fee, memo }) { + async sendQueryTallyResultResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryProposalsRequest: 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.queryProposalsRequest({ value: QueryProposalsRequest.fromPartial(value) }); + let msg = this.queryTallyResultResponse({ value: QueryTallyResultResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryProposalsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTallyResultResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryProposalsResponse({ value, fee, memo }) { + async sendProposal({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryProposalsResponse: 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.queryProposalsResponse({ value: QueryProposalsResponse.fromPartial(value) }); + let msg = this.proposal({ value: Proposal.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryProposalsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendProposal: Could not broadcast Tx: ' + e.message); } }, - async sendMsgVoteWeightedResponse({ value, fee, memo }) { + async sendMsgDepositResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgVoteWeightedResponse: 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.msgVoteWeightedResponse({ value: MsgVoteWeightedResponse.fromPartial(value) }); + let msg = this.msgDepositResponse({ value: MsgDepositResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgVoteWeightedResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgDepositResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryProposalResponse({ value, fee, memo }) { + async sendQueryVoteRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryProposalResponse: 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.queryProposalResponse({ value: QueryProposalResponse.fromPartial(value) }); + let msg = this.queryVoteRequest({ value: QueryVoteRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryProposalResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryVoteRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryVoteRequest({ value, fee, memo }) { + async sendQueryTallyResultRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryVoteRequest: 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.queryVoteRequest({ value: QueryVoteRequest.fromPartial(value) }); + let msg = this.queryTallyResultRequest({ value: QueryTallyResultRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryVoteRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTallyResultRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDepositsRequest({ value, fee, memo }) { + async sendTallyResult({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDepositsRequest: 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.queryDepositsRequest({ value: QueryDepositsRequest.fromPartial(value) }); + let msg = this.tallyResult({ value: TallyResult.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDepositsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTallyResult: Could not broadcast Tx: ' + e.message); } }, - async sendTallyParams({ value, fee, memo }) { + async sendWeightedVoteOption({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTallyParams: 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.tallyParams({ value: TallyParams.fromPartial(value) }); + let msg = this.weightedVoteOption({ value: WeightedVoteOption.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTallyParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendWeightedVoteOption: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSubmitProposalResponse({ value, fee, memo }) { + async sendQueryProposalsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposalResponse: 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.msgSubmitProposalResponse({ value: MsgSubmitProposalResponse.fromPartial(value) }); + let msg = this.queryProposalsRequest({ value: QueryProposalsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSubmitProposalResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryProposalsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgVote({ value, fee, memo }) { + async sendDeposit({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgVote: 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.msgVote({ value: MsgVote.fromPartial(value) }); + let msg = this.deposit({ value: Deposit.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDeposit: Could not broadcast Tx: ' + e.message); } }, - async sendMsgVoteWeighted({ value, fee, memo }) { + async sendQueryVoteResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgVoteWeighted: 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.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) }); + let msg = this.queryVoteResponse({ value: QueryVoteResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryVoteResponse: Could not broadcast Tx: ' + e.message); } }, - async sendTallyResult({ value, fee, memo }) { + async sendDepositParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTallyResult: 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.tallyResult({ value: TallyResult.fromPartial(value) }); + let msg = this.depositParams({ value: DepositParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTallyResult: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDepositParams: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsRequest({ value, fee, memo }) { + async sendTextProposal({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: 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.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); + let msg = this.textProposal({ value: TextProposal.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTextProposal: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDepositResponse({ value, fee, memo }) { + async sendMsgSubmitProposal({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendQueryDepositResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message); } }, - async sendQueryProposalRequest({ value, fee, memo }) { + async sendQueryDepositResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryProposalRequest: 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.queryProposalRequest({ value: QueryProposalRequest.fromPartial(value) }); + let msg = this.queryDepositResponse({ value: QueryDepositResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryProposalRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDepositResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDepositRequest({ value, fee, memo }) { + async sendTallyParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDepositRequest: 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.queryDepositRequest({ value: QueryDepositRequest.fromPartial(value) }); + let msg = this.tallyParams({ value: TallyParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDepositRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTallyParams: Could not broadcast Tx: ' + e.message); } }, - async sendVotingParams({ value, fee, memo }) { + async sendMsgVoteResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendVotingParams: 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.votingParams({ value: VotingParams.fromPartial(value) }); + let msg = this.msgVoteResponse({ value: MsgVoteResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendVotingParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgVoteResponse: Could not broadcast Tx: ' + e.message); } }, - async sendProposal({ value, fee, memo }) { + async sendQueryDepositsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendProposal: 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.proposal({ value: Proposal.fromPartial(value) }); + let msg = this.queryDepositsResponse({ value: QueryDepositsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDepositsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendVote({ value, fee, memo }) { + async sendMsgVoteWeightedResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendVote: 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.vote({ value: Vote.fromPartial(value) }); + let msg = this.msgVoteWeightedResponse({ value: MsgVoteWeightedResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendVote: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgVoteWeightedResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryVoteResponse({ value, fee, memo }) { + async sendQueryVotesRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryVoteResponse: 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.queryVoteResponse({ value: QueryVoteResponse.fromPartial(value) }); + let msg = this.queryVotesRequest({ value: QueryVotesRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryVoteResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryVotesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryVotesResponse({ value, fee, memo }) { + async sendQueryDepositRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryVotesResponse: 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.queryVotesResponse({ value: QueryVotesResponse.fromPartial(value) }); + let msg = this.queryDepositRequest({ value: QueryDepositRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryVotesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDepositRequest: Could not broadcast Tx: ' + e.message); } }, - msgSubmitProposal({ value }) { + queryDepositsRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", value: QueryDepositsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDepositsRequest: Could not create message: ' + e.message); } }, - deposit({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.Deposit", value: Deposit.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Deposit: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - msgDeposit({ value }) { + msgVoteWeighted({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: MsgDeposit.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message); + throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message); } }, - queryVotesRequest({ value }) { + queryProposalRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", value: QueryVotesRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", value: QueryProposalRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryVotesRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message); } }, - queryParamsResponse({ value }) { + queryParamsRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); } }, - queryDepositsResponse({ value }) { + vote({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", value: QueryDepositsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.Vote", value: Vote.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDepositsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Vote: Could not create message: ' + e.message); } }, - queryTallyResultResponse({ value }) { + votingParams({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.VotingParams", value: VotingParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message); + throw new Error('TxClient:VotingParams: Could not create message: ' + e.message); } }, - genesisState({ value }) { + msgDeposit({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.MsgDeposit", value: MsgDeposit.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message); } }, - textProposal({ value }) { + queryProposalsResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.TextProposal", value: TextProposal.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", value: QueryProposalsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TextProposal: Could not create message: ' + e.message); + throw new Error('TxClient:QueryProposalsResponse: Could not create message: ' + e.message); } }, - msgDepositResponse({ value }) { + queryVotesResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", value: MsgDepositResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", value: QueryVotesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgDepositResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryVotesResponse: Could not create message: ' + e.message); } }, - weightedVoteOption({ value }) { + msgSubmitProposalResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", value: WeightedVoteOption.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:WeightedVoteOption: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message); } }, - queryTallyResultRequest({ value }) { + msgVote({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: MsgVote.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgVote: Could not create message: ' + e.message); } }, - depositParams({ value }) { + queryProposalResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.DepositParams", value: DepositParams.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", value: QueryProposalResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DepositParams: Could not create message: ' + e.message); + throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message); } }, - msgVoteResponse({ value }) { + queryParamsResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", value: MsgVoteResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); } }, - queryProposalsRequest({ value }) { + queryTallyResultResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", value: QueryProposalsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryProposalsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message); } }, - queryProposalsResponse({ value }) { + proposal({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsResponse", value: QueryProposalsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.Proposal", value: Proposal.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryProposalsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Proposal: Could not create message: ' + e.message); } }, - msgVoteWeightedResponse({ value }) { + msgDepositResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", value: MsgVoteWeightedResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.MsgDepositResponse", value: MsgDepositResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgVoteWeightedResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgDepositResponse: Could not create message: ' + e.message); } }, - queryProposalResponse({ value }) { + queryVoteRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalResponse", value: QueryProposalResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", value: QueryVoteRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryVoteRequest: Could not create message: ' + e.message); } }, - queryVoteRequest({ value }) { + queryTallyResultRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryVoteRequest", value: QueryVoteRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryVoteRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message); } }, - queryDepositsRequest({ value }) { + tallyResult({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsRequest", value: QueryDepositsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.TallyResult", value: TallyResult.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDepositsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:TallyResult: Could not create message: ' + e.message); } }, - tallyParams({ value }) { + weightedVoteOption({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.TallyParams", value: TallyParams.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption", value: WeightedVoteOption.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TallyParams: Could not create message: ' + e.message); + throw new Error('TxClient:WeightedVoteOption: Could not create message: ' + e.message); } }, - msgSubmitProposalResponse({ value }) { + queryProposalsRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalsRequest", value: QueryProposalsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryProposalsRequest: Could not create message: ' + e.message); } }, - msgVote({ value }) { + deposit({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgVote", value: MsgVote.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.Deposit", value: Deposit.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgVote: Could not create message: ' + e.message); + throw new Error('TxClient:Deposit: Could not create message: ' + e.message); } }, - msgVoteWeighted({ value }) { + queryVoteResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", value: QueryVoteResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message); + throw new Error('TxClient:QueryVoteResponse: Could not create message: ' + e.message); } }, - tallyResult({ value }) { + depositParams({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.TallyResult", value: TallyResult.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.DepositParams", value: DepositParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TallyResult: Could not create message: ' + e.message); + throw new Error('TxClient:DepositParams: Could not create message: ' + e.message); } }, - queryParamsRequest({ value }) { + textProposal({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.TextProposal", value: TextProposal.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:TextProposal: Could not create message: ' + e.message); } }, - queryDepositResponse({ value }) { + msgSubmitProposal({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", value: QueryDepositResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDepositResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message); } }, - queryProposalRequest({ value }) { + queryDepositResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryProposalRequest", value: QueryProposalRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositResponse", value: QueryDepositResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDepositResponse: Could not create message: ' + e.message); } }, - queryDepositRequest({ value }) { + tallyParams({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", value: QueryDepositRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.TallyParams", value: TallyParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDepositRequest: Could not create message: ' + e.message); + throw new Error('TxClient:TallyParams: Could not create message: ' + e.message); } }, - votingParams({ value }) { + msgVoteResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.VotingParams", value: VotingParams.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteResponse", value: MsgVoteResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:VotingParams: Could not create message: ' + e.message); + throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message); } }, - proposal({ value }) { + queryDepositsResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.Proposal", value: Proposal.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositsResponse", value: QueryDepositsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Proposal: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDepositsResponse: Could not create message: ' + e.message); } }, - vote({ value }) { + msgVoteWeightedResponse({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.Vote", value: Vote.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.MsgVoteWeightedResponse", value: MsgVoteWeightedResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Vote: Could not create message: ' + e.message); + throw new Error('TxClient:MsgVoteWeightedResponse: Could not create message: ' + e.message); } }, - queryVoteResponse({ value }) { + queryVotesRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryVoteResponse", value: QueryVoteResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryVotesRequest", value: QueryVotesRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryVoteResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryVotesRequest: Could not create message: ' + e.message); } }, - queryVotesResponse({ value }) { + queryDepositRequest({ value }) { try { - return { typeUrl: "/cosmos.gov.v1beta1.QueryVotesResponse", value: QueryVotesResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.gov.v1beta1.QueryDepositRequest", value: QueryDepositRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryVotesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDepositRequest: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.gov.v1beta1/registry.js b/ts-client/lib/cosmos.gov.v1beta1/registry.js index 9839e23f7..39b48ec90 100644 --- a/ts-client/lib/cosmos.gov.v1beta1/registry.js +++ b/ts-client/lib/cosmos.gov.v1beta1/registry.js @@ -1,71 +1,71 @@ -import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; -import { Deposit } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryDepositsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { GenesisState } from "./types/cosmos/gov/v1beta1/genesis"; +import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryProposalRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { Vote } from "./types/cosmos/gov/v1beta1/gov"; +import { VotingParams } from "./types/cosmos/gov/v1beta1/gov"; import { MsgDeposit } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryVotesRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryProposalsResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryVotesResponse } from "./types/cosmos/gov/v1beta1/query"; +import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1beta1/tx"; +import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryProposalResponse } from "./types/cosmos/gov/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositsResponse } from "./types/cosmos/gov/v1beta1/query"; import { QueryTallyResultResponse } from "./types/cosmos/gov/v1beta1/query"; -import { GenesisState } from "./types/cosmos/gov/v1beta1/genesis"; -import { TextProposal } from "./types/cosmos/gov/v1beta1/gov"; +import { Proposal } from "./types/cosmos/gov/v1beta1/gov"; import { MsgDepositResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { WeightedVoteOption } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryVoteRequest } from "./types/cosmos/gov/v1beta1/query"; import { QueryTallyResultRequest } from "./types/cosmos/gov/v1beta1/query"; +import { TallyResult } from "./types/cosmos/gov/v1beta1/gov"; +import { WeightedVoteOption } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryProposalsRequest } from "./types/cosmos/gov/v1beta1/query"; +import { Deposit } from "./types/cosmos/gov/v1beta1/gov"; +import { QueryVoteResponse } from "./types/cosmos/gov/v1beta1/query"; import { DepositParams } from "./types/cosmos/gov/v1beta1/gov"; +import { TextProposal } from "./types/cosmos/gov/v1beta1/gov"; +import { MsgSubmitProposal } from "./types/cosmos/gov/v1beta1/tx"; +import { QueryDepositResponse } from "./types/cosmos/gov/v1beta1/query"; +import { TallyParams } from "./types/cosmos/gov/v1beta1/gov"; import { MsgVoteResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryProposalsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryProposalsResponse } from "./types/cosmos/gov/v1beta1/query"; +import { QueryDepositsResponse } from "./types/cosmos/gov/v1beta1/query"; import { MsgVoteWeightedResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { QueryProposalResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryVoteRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { TallyParams } from "./types/cosmos/gov/v1beta1/gov"; -import { MsgSubmitProposalResponse } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgVote } from "./types/cosmos/gov/v1beta1/tx"; -import { MsgVoteWeighted } from "./types/cosmos/gov/v1beta1/tx"; -import { TallyResult } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryParamsRequest } from "./types/cosmos/gov/v1beta1/query"; -import { QueryDepositResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryProposalRequest } from "./types/cosmos/gov/v1beta1/query"; +import { QueryVotesRequest } from "./types/cosmos/gov/v1beta1/query"; import { QueryDepositRequest } from "./types/cosmos/gov/v1beta1/query"; -import { VotingParams } from "./types/cosmos/gov/v1beta1/gov"; -import { Proposal } from "./types/cosmos/gov/v1beta1/gov"; -import { Vote } from "./types/cosmos/gov/v1beta1/gov"; -import { QueryVoteResponse } from "./types/cosmos/gov/v1beta1/query"; -import { QueryVotesResponse } from "./types/cosmos/gov/v1beta1/query"; const msgTypes = [ - ["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal], - ["/cosmos.gov.v1beta1.Deposit", Deposit], + ["/cosmos.gov.v1beta1.QueryDepositsRequest", QueryDepositsRequest], + ["/cosmos.gov.v1beta1.GenesisState", GenesisState], + ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted], + ["/cosmos.gov.v1beta1.QueryProposalRequest", QueryProposalRequest], + ["/cosmos.gov.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.gov.v1beta1.Vote", Vote], + ["/cosmos.gov.v1beta1.VotingParams", VotingParams], ["/cosmos.gov.v1beta1.MsgDeposit", MsgDeposit], - ["/cosmos.gov.v1beta1.QueryVotesRequest", QueryVotesRequest], + ["/cosmos.gov.v1beta1.QueryProposalsResponse", QueryProposalsResponse], + ["/cosmos.gov.v1beta1.QueryVotesResponse", QueryVotesResponse], + ["/cosmos.gov.v1beta1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], + ["/cosmos.gov.v1beta1.MsgVote", MsgVote], + ["/cosmos.gov.v1beta1.QueryProposalResponse", QueryProposalResponse], ["/cosmos.gov.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/cosmos.gov.v1beta1.QueryDepositsResponse", QueryDepositsResponse], ["/cosmos.gov.v1beta1.QueryTallyResultResponse", QueryTallyResultResponse], - ["/cosmos.gov.v1beta1.GenesisState", GenesisState], - ["/cosmos.gov.v1beta1.TextProposal", TextProposal], + ["/cosmos.gov.v1beta1.Proposal", Proposal], ["/cosmos.gov.v1beta1.MsgDepositResponse", MsgDepositResponse], - ["/cosmos.gov.v1beta1.WeightedVoteOption", WeightedVoteOption], + ["/cosmos.gov.v1beta1.QueryVoteRequest", QueryVoteRequest], ["/cosmos.gov.v1beta1.QueryTallyResultRequest", QueryTallyResultRequest], + ["/cosmos.gov.v1beta1.TallyResult", TallyResult], + ["/cosmos.gov.v1beta1.WeightedVoteOption", WeightedVoteOption], + ["/cosmos.gov.v1beta1.QueryProposalsRequest", QueryProposalsRequest], + ["/cosmos.gov.v1beta1.Deposit", Deposit], + ["/cosmos.gov.v1beta1.QueryVoteResponse", QueryVoteResponse], ["/cosmos.gov.v1beta1.DepositParams", DepositParams], + ["/cosmos.gov.v1beta1.TextProposal", TextProposal], + ["/cosmos.gov.v1beta1.MsgSubmitProposal", MsgSubmitProposal], + ["/cosmos.gov.v1beta1.QueryDepositResponse", QueryDepositResponse], + ["/cosmos.gov.v1beta1.TallyParams", TallyParams], ["/cosmos.gov.v1beta1.MsgVoteResponse", MsgVoteResponse], - ["/cosmos.gov.v1beta1.QueryProposalsRequest", QueryProposalsRequest], - ["/cosmos.gov.v1beta1.QueryProposalsResponse", QueryProposalsResponse], + ["/cosmos.gov.v1beta1.QueryDepositsResponse", QueryDepositsResponse], ["/cosmos.gov.v1beta1.MsgVoteWeightedResponse", MsgVoteWeightedResponse], - ["/cosmos.gov.v1beta1.QueryProposalResponse", QueryProposalResponse], - ["/cosmos.gov.v1beta1.QueryVoteRequest", QueryVoteRequest], - ["/cosmos.gov.v1beta1.QueryDepositsRequest", QueryDepositsRequest], - ["/cosmos.gov.v1beta1.TallyParams", TallyParams], - ["/cosmos.gov.v1beta1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], - ["/cosmos.gov.v1beta1.MsgVote", MsgVote], - ["/cosmos.gov.v1beta1.MsgVoteWeighted", MsgVoteWeighted], - ["/cosmos.gov.v1beta1.TallyResult", TallyResult], - ["/cosmos.gov.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.gov.v1beta1.QueryDepositResponse", QueryDepositResponse], - ["/cosmos.gov.v1beta1.QueryProposalRequest", QueryProposalRequest], + ["/cosmos.gov.v1beta1.QueryVotesRequest", QueryVotesRequest], ["/cosmos.gov.v1beta1.QueryDepositRequest", QueryDepositRequest], - ["/cosmos.gov.v1beta1.VotingParams", VotingParams], - ["/cosmos.gov.v1beta1.Proposal", Proposal], - ["/cosmos.gov.v1beta1.Vote", Vote], - ["/cosmos.gov.v1beta1.QueryVoteResponse", QueryVoteResponse], - ["/cosmos.gov.v1beta1.QueryVotesResponse", QueryVotesResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.group.v1/module.d.ts b/ts-client/lib/cosmos.group.v1/module.d.ts index 6168bdc3c..2b999d5e5 100644 --- a/ts-client/lib/cosmos.group.v1/module.d.ts +++ b/ts-client/lib/cosmos.group.v1/module.d.ts @@ -2,212 +2,217 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { MsgExec } from "./types/cosmos/group/v1/tx"; -import { PercentageDecisionPolicy } from "./types/cosmos/group/v1/types"; -import { GroupMember } from "./types/cosmos/group/v1/types"; +import { TallyResult } from "./types/cosmos/group/v1/types"; +import { EventUpdateGroup } from "./types/cosmos/group/v1/events"; +import { EventSubmitProposal } from "./types/cosmos/group/v1/events"; +import { EventWithdrawProposal } from "./types/cosmos/group/v1/events"; +import { QueryGroupInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupPolicyInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupPoliciesByAdminRequest } from "./types/cosmos/group/v1/query"; +import { Vote } from "./types/cosmos/group/v1/types"; +import { QueryVotesByProposalResponse } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroupWithPolicyResponse } from "./types/cosmos/group/v1/tx"; +import { MsgVoteResponse } from "./types/cosmos/group/v1/tx"; +import { QueryVoteByProposalVoterRequest } from "./types/cosmos/group/v1/query"; +import { QueryVoteByProposalVoterResponse } from "./types/cosmos/group/v1/query"; +import { QueryVotesByProposalRequest } from "./types/cosmos/group/v1/query"; import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx"; -import { QueryGroupInfoResponse } from "./types/cosmos/group/v1/query"; import { MsgUpdateGroupMetadataResponse } from "./types/cosmos/group/v1/tx"; -import { EventCreateGroup } from "./types/cosmos/group/v1/events"; -import { GroupInfo } from "./types/cosmos/group/v1/types"; -import { QueryGroupPoliciesByAdminResponse } from "./types/cosmos/group/v1/query"; -import { QueryVotesByProposalRequest } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx"; -import { MsgWithdrawProposalResponse } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPolicyInfoRequest } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupPolicyMetadataResponse } from "./types/cosmos/group/v1/tx"; -import { EventUpdateGroupPolicy } from "./types/cosmos/group/v1/events"; -import { EventWithdrawProposal } from "./types/cosmos/group/v1/events"; -import { EventExec } from "./types/cosmos/group/v1/events"; import { Member } from "./types/cosmos/group/v1/types"; -import { QueryGroupsByAdminRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupsRequest } from "./types/cosmos/group/v1/query"; -import { MsgVoteResponse } from "./types/cosmos/group/v1/tx"; -import { EventVote } from "./types/cosmos/group/v1/events"; import { QueryProposalRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupsByMemberRequest } from "./types/cosmos/group/v1/query"; -import { QueryTallyResultRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupPoliciesByGroupRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupMembersResponse } from "./types/cosmos/group/v1/tx"; +import { MsgExecResponse } from "./types/cosmos/group/v1/tx"; +import { MemberRequest } from "./types/cosmos/group/v1/types"; +import { ThresholdDecisionPolicy } from "./types/cosmos/group/v1/types"; +import { EventExec } from "./types/cosmos/group/v1/events"; +import { QueryProposalsByGroupPolicyRequest } from "./types/cosmos/group/v1/query"; import { QueryTallyResultResponse } from "./types/cosmos/group/v1/query"; -import { QueryGroupsByAdminResponse } from "./types/cosmos/group/v1/query"; -import { QueryVotesByProposalResponse } from "./types/cosmos/group/v1/query"; -import { GenesisState } from "./types/cosmos/group/v1/genesis"; -import { EventSubmitProposal } from "./types/cosmos/group/v1/events"; -import { QueryGroupPoliciesByGroupResponse } from "./types/cosmos/group/v1/query"; -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 { MsgCreateGroupWithPolicyResponse } from "./types/cosmos/group/v1/tx"; import { MsgUpdateGroupPolicyDecisionPolicyResponse } from "./types/cosmos/group/v1/tx"; -import { QueryGroupsByMemberResponse } from "./types/cosmos/group/v1/query"; -import { MsgSubmitProposalResponse } from "./types/cosmos/group/v1/tx"; -import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx"; -import { TallyResult } from "./types/cosmos/group/v1/types"; -import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPolicyInfoResponse } from "./types/cosmos/group/v1/query"; -import { QueryVoteByProposalVoterRequest } from "./types/cosmos/group/v1/query"; -import { QueryVotesByVoterRequest } from "./types/cosmos/group/v1/query"; -import { Proposal } from "./types/cosmos/group/v1/types"; -import { QueryGroupInfoRequest } from "./types/cosmos/group/v1/query"; -import { MsgExecResponse } from "./types/cosmos/group/v1/tx"; -import { MsgLeaveGroupResponse } from "./types/cosmos/group/v1/tx"; +import { EventCreateGroup } from "./types/cosmos/group/v1/events"; import { EventProposalPruned } from "./types/cosmos/group/v1/events"; -import { QueryGroupMembersRequest } from "./types/cosmos/group/v1/query"; -import { QueryVotesByVoterResponse } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx"; +import { EventVote } from "./types/cosmos/group/v1/events"; +import { EventUpdateGroupPolicy } from "./types/cosmos/group/v1/events"; import { EventLeaveGroup } from "./types/cosmos/group/v1/events"; -import { ThresholdDecisionPolicy } from "./types/cosmos/group/v1/types"; +import { MsgUpdateGroupAdminResponse } from "./types/cosmos/group/v1/tx"; +import { MsgExec } from "./types/cosmos/group/v1/tx"; +import { GroupInfo } from "./types/cosmos/group/v1/types"; +import { QueryGroupsByAdminRequest } from "./types/cosmos/group/v1/query"; +import { QueryVotesByVoterRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx"; +import { GroupMember } from "./types/cosmos/group/v1/types"; +import { QueryGroupPoliciesByAdminResponse } from "./types/cosmos/group/v1/query"; +import { EventCreateGroupPolicy } from "./types/cosmos/group/v1/events"; +import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx"; +import { GenesisState } from "./types/cosmos/group/v1/genesis"; +import { MsgCreateGroupResponse } from "./types/cosmos/group/v1/tx"; +import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx"; +import { GroupPolicyInfo } from "./types/cosmos/group/v1/types"; import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPoliciesByGroupRequest } from "./types/cosmos/group/v1/query"; import { MsgCreateGroup } from "./types/cosmos/group/v1/tx"; -import { EventUpdateGroup } from "./types/cosmos/group/v1/events"; -import { MemberRequest } from "./types/cosmos/group/v1/types"; +import { QueryTallyResultRequest } from "./types/cosmos/group/v1/query"; +import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx"; import { DecisionPolicyWindows } from "./types/cosmos/group/v1/types"; -import { Vote } from "./types/cosmos/group/v1/types"; -import { QueryGroupPoliciesByAdminRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupMembersResponse } from "./types/cosmos/group/v1/query"; +import { QueryVotesByVoterResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByMemberRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupsRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx"; +import { MsgWithdrawProposalResponse } from "./types/cosmos/group/v1/tx"; +import { QueryProposalResponse } from "./types/cosmos/group/v1/query"; +import { MsgSubmitProposalResponse } from "./types/cosmos/group/v1/tx"; +import { QueryGroupsByMemberResponse } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupPolicyMetadataResponse } from "./types/cosmos/group/v1/tx"; +import { QueryProposalsByGroupPolicyResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupInfoResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupMembersRequest } from "./types/cosmos/group/v1/query"; +import { MsgLeaveGroupResponse } from "./types/cosmos/group/v1/tx"; +import { PercentageDecisionPolicy } from "./types/cosmos/group/v1/types"; +import { QueryGroupPolicyInfoResponse } from "./types/cosmos/group/v1/query"; import { QueryGroupsResponse } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupMembersResponse } from "./types/cosmos/group/v1/tx"; import { MsgUpdateGroupPolicyAdminResponse } from "./types/cosmos/group/v1/tx"; -import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx"; import { MsgVote } from "./types/cosmos/group/v1/tx"; -import { MsgCreateGroupResponse } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupAdminResponse } from "./types/cosmos/group/v1/tx"; -import { EventCreateGroupPolicy } from "./types/cosmos/group/v1/events"; -import { GroupPolicyInfo } from "./types/cosmos/group/v1/types"; -import { QueryProposalResponse } from "./types/cosmos/group/v1/query"; -import { QueryProposalsByGroupPolicyRequest } from "./types/cosmos/group/v1/query"; -import { QueryProposalsByGroupPolicyResponse } from "./types/cosmos/group/v1/query"; -import { QueryVoteByProposalVoterResponse } from "./types/cosmos/group/v1/query"; -export { MsgExec, PercentageDecisionPolicy, GroupMember, MsgUpdateGroupMetadata, QueryGroupInfoResponse, MsgUpdateGroupMetadataResponse, EventCreateGroup, GroupInfo, QueryGroupPoliciesByAdminResponse, QueryVotesByProposalRequest, MsgUpdateGroupPolicyAdmin, MsgWithdrawProposalResponse, QueryGroupPolicyInfoRequest, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyMetadataResponse, EventUpdateGroupPolicy, EventWithdrawProposal, EventExec, Member, QueryGroupsByAdminRequest, QueryGroupsRequest, MsgVoteResponse, EventVote, QueryProposalRequest, QueryGroupsByMemberRequest, QueryTallyResultRequest, QueryTallyResultResponse, QueryGroupsByAdminResponse, QueryVotesByProposalResponse, GenesisState, EventSubmitProposal, QueryGroupPoliciesByGroupResponse, MsgCreateGroupWithPolicy, MsgCreateGroupPolicy, QueryGroupMembersResponse, MsgCreateGroupPolicyResponse, MsgCreateGroupWithPolicyResponse, MsgUpdateGroupPolicyDecisionPolicyResponse, QueryGroupsByMemberResponse, MsgSubmitProposalResponse, MsgLeaveGroup, TallyResult, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, QueryGroupPolicyInfoResponse, QueryVoteByProposalVoterRequest, QueryVotesByVoterRequest, Proposal, QueryGroupInfoRequest, MsgExecResponse, MsgLeaveGroupResponse, EventProposalPruned, QueryGroupMembersRequest, QueryVotesByVoterResponse, MsgUpdateGroupPolicyDecisionPolicy, EventLeaveGroup, ThresholdDecisionPolicy, MsgSubmitProposal, QueryGroupPoliciesByGroupRequest, MsgCreateGroup, EventUpdateGroup, MemberRequest, DecisionPolicyWindows, Vote, QueryGroupPoliciesByAdminRequest, QueryGroupsResponse, MsgUpdateGroupMembersResponse, MsgUpdateGroupPolicyAdminResponse, MsgWithdrawProposal, MsgVote, MsgCreateGroupResponse, MsgUpdateGroupAdminResponse, EventCreateGroupPolicy, GroupPolicyInfo, QueryProposalResponse, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponse, QueryVoteByProposalVoterResponse }; -type sendMsgExecParams = { - value: MsgExec; +import { QueryGroupPoliciesByGroupResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByAdminResponse } from "./types/cosmos/group/v1/query"; +import { Proposal } from "./types/cosmos/group/v1/types"; +export { TallyResult, EventUpdateGroup, EventSubmitProposal, EventWithdrawProposal, QueryGroupInfoRequest, QueryGroupPolicyInfoRequest, QueryGroupPoliciesByAdminRequest, Vote, QueryVotesByProposalResponse, MsgCreateGroupWithPolicyResponse, MsgVoteResponse, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponse, QueryVotesByProposalRequest, MsgUpdateGroupMetadata, MsgUpdateGroupMetadataResponse, Member, QueryProposalRequest, QueryGroupPoliciesByGroupRequest, MsgUpdateGroupAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupMembersResponse, MsgExecResponse, MemberRequest, ThresholdDecisionPolicy, EventExec, QueryProposalsByGroupPolicyRequest, QueryTallyResultResponse, MsgCreateGroupPolicyResponse, MsgUpdateGroupPolicyDecisionPolicyResponse, EventCreateGroup, EventProposalPruned, MsgUpdateGroupPolicyAdmin, EventVote, EventUpdateGroupPolicy, EventLeaveGroup, MsgUpdateGroupAdminResponse, MsgExec, GroupInfo, QueryGroupsByAdminRequest, QueryVotesByVoterRequest, MsgUpdateGroupMembers, GroupMember, QueryGroupPoliciesByAdminResponse, EventCreateGroupPolicy, MsgCreateGroupWithPolicy, GenesisState, MsgCreateGroupResponse, MsgLeaveGroup, GroupPolicyInfo, MsgSubmitProposal, MsgCreateGroup, QueryTallyResultRequest, MsgWithdrawProposal, DecisionPolicyWindows, QueryGroupMembersResponse, QueryVotesByVoterResponse, QueryGroupsByMemberRequest, QueryGroupsRequest, MsgUpdateGroupPolicyMetadata, MsgWithdrawProposalResponse, QueryProposalResponse, MsgSubmitProposalResponse, QueryGroupsByMemberResponse, MsgCreateGroupPolicy, MsgUpdateGroupPolicyMetadataResponse, QueryProposalsByGroupPolicyResponse, QueryGroupInfoResponse, QueryGroupMembersRequest, MsgLeaveGroupResponse, PercentageDecisionPolicy, QueryGroupPolicyInfoResponse, QueryGroupsResponse, MsgUpdateGroupPolicyAdminResponse, MsgVote, QueryGroupPoliciesByGroupResponse, QueryGroupsByAdminResponse, Proposal }; +type sendTallyResultParams = { + value: TallyResult; fee?: StdFee; memo?: string; }; -type sendPercentageDecisionPolicyParams = { - value: PercentageDecisionPolicy; +type sendEventUpdateGroupParams = { + value: EventUpdateGroup; fee?: StdFee; memo?: string; }; -type sendGroupMemberParams = { - value: GroupMember; +type sendEventSubmitProposalParams = { + value: EventSubmitProposal; fee?: StdFee; memo?: string; }; -type sendMsgUpdateGroupMetadataParams = { - value: MsgUpdateGroupMetadata; +type sendEventWithdrawProposalParams = { + value: EventWithdrawProposal; fee?: StdFee; memo?: string; }; -type sendQueryGroupInfoResponseParams = { - value: QueryGroupInfoResponse; +type sendQueryGroupInfoRequestParams = { + value: QueryGroupInfoRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateGroupMetadataResponseParams = { - value: MsgUpdateGroupMetadataResponse; +type sendQueryGroupPolicyInfoRequestParams = { + value: QueryGroupPolicyInfoRequest; fee?: StdFee; memo?: string; }; -type sendEventCreateGroupParams = { - value: EventCreateGroup; +type sendQueryGroupPoliciesByAdminRequestParams = { + value: QueryGroupPoliciesByAdminRequest; fee?: StdFee; memo?: string; }; -type sendGroupInfoParams = { - value: GroupInfo; +type sendVoteParams = { + value: Vote; fee?: StdFee; memo?: string; }; -type sendQueryGroupPoliciesByAdminResponseParams = { - value: QueryGroupPoliciesByAdminResponse; +type sendQueryVotesByProposalResponseParams = { + value: QueryVotesByProposalResponse; fee?: StdFee; memo?: string; }; -type sendQueryVotesByProposalRequestParams = { - value: QueryVotesByProposalRequest; +type sendMsgCreateGroupWithPolicyResponseParams = { + value: MsgCreateGroupWithPolicyResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateGroupPolicyAdminParams = { - value: MsgUpdateGroupPolicyAdmin; +type sendMsgVoteResponseParams = { + value: MsgVoteResponse; fee?: StdFee; memo?: string; }; -type sendMsgWithdrawProposalResponseParams = { - value: MsgWithdrawProposalResponse; +type sendQueryVoteByProposalVoterRequestParams = { + value: QueryVoteByProposalVoterRequest; fee?: StdFee; memo?: string; }; -type sendQueryGroupPolicyInfoRequestParams = { - value: QueryGroupPolicyInfoRequest; +type sendQueryVoteByProposalVoterResponseParams = { + value: QueryVoteByProposalVoterResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateGroupPolicyMetadataParams = { - value: MsgUpdateGroupPolicyMetadata; +type sendQueryVotesByProposalRequestParams = { + value: QueryVotesByProposalRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateGroupPolicyMetadataResponseParams = { - value: MsgUpdateGroupPolicyMetadataResponse; +type sendMsgUpdateGroupMetadataParams = { + value: MsgUpdateGroupMetadata; fee?: StdFee; memo?: string; }; -type sendEventUpdateGroupPolicyParams = { - value: EventUpdateGroupPolicy; +type sendMsgUpdateGroupMetadataResponseParams = { + value: MsgUpdateGroupMetadataResponse; fee?: StdFee; memo?: string; }; -type sendEventWithdrawProposalParams = { - value: EventWithdrawProposal; +type sendMemberParams = { + value: Member; fee?: StdFee; memo?: string; }; -type sendEventExecParams = { - value: EventExec; +type sendQueryProposalRequestParams = { + value: QueryProposalRequest; fee?: StdFee; memo?: string; }; -type sendMemberParams = { - value: Member; +type sendQueryGroupPoliciesByGroupRequestParams = { + value: QueryGroupPoliciesByGroupRequest; fee?: StdFee; memo?: string; }; -type sendQueryGroupsByAdminRequestParams = { - value: QueryGroupsByAdminRequest; +type sendMsgUpdateGroupAdminParams = { + value: MsgUpdateGroupAdmin; fee?: StdFee; memo?: string; }; -type sendQueryGroupsRequestParams = { - value: QueryGroupsRequest; +type sendMsgUpdateGroupPolicyDecisionPolicyParams = { + value: MsgUpdateGroupPolicyDecisionPolicy; fee?: StdFee; memo?: string; }; -type sendMsgVoteResponseParams = { - value: MsgVoteResponse; +type sendMsgUpdateGroupMembersResponseParams = { + value: MsgUpdateGroupMembersResponse; fee?: StdFee; memo?: string; }; -type sendEventVoteParams = { - value: EventVote; +type sendMsgExecResponseParams = { + value: MsgExecResponse; fee?: StdFee; memo?: string; }; -type sendQueryProposalRequestParams = { - value: QueryProposalRequest; +type sendMemberRequestParams = { + value: MemberRequest; fee?: StdFee; memo?: string; }; -type sendQueryGroupsByMemberRequestParams = { - value: QueryGroupsByMemberRequest; +type sendThresholdDecisionPolicyParams = { + value: ThresholdDecisionPolicy; fee?: StdFee; memo?: string; }; -type sendQueryTallyResultRequestParams = { - value: QueryTallyResultRequest; +type sendEventExecParams = { + value: EventExec; + fee?: StdFee; + memo?: string; +}; +type sendQueryProposalsByGroupPolicyRequestParams = { + value: QueryProposalsByGroupPolicyRequest; fee?: StdFee; memo?: string; }; @@ -216,78 +221,68 @@ type sendQueryTallyResultResponseParams = { fee?: StdFee; memo?: string; }; -type sendQueryGroupsByAdminResponseParams = { - value: QueryGroupsByAdminResponse; +type sendMsgCreateGroupPolicyResponseParams = { + value: MsgCreateGroupPolicyResponse; fee?: StdFee; memo?: string; }; -type sendQueryVotesByProposalResponseParams = { - value: QueryVotesByProposalResponse; +type sendMsgUpdateGroupPolicyDecisionPolicyResponseParams = { + value: MsgUpdateGroupPolicyDecisionPolicyResponse; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendEventCreateGroupParams = { + value: EventCreateGroup; fee?: StdFee; memo?: string; }; -type sendEventSubmitProposalParams = { - value: EventSubmitProposal; +type sendEventProposalPrunedParams = { + value: EventProposalPruned; fee?: StdFee; memo?: string; }; -type sendQueryGroupPoliciesByGroupResponseParams = { - value: QueryGroupPoliciesByGroupResponse; +type sendMsgUpdateGroupPolicyAdminParams = { + value: MsgUpdateGroupPolicyAdmin; fee?: StdFee; memo?: string; }; -type sendMsgCreateGroupWithPolicyParams = { - value: MsgCreateGroupWithPolicy; - fee?: StdFee; - memo?: string; -}; -type sendMsgCreateGroupPolicyParams = { - value: MsgCreateGroupPolicy; - fee?: StdFee; - memo?: string; -}; -type sendQueryGroupMembersResponseParams = { - value: QueryGroupMembersResponse; +type sendEventVoteParams = { + value: EventVote; fee?: StdFee; memo?: string; }; -type sendMsgCreateGroupPolicyResponseParams = { - value: MsgCreateGroupPolicyResponse; +type sendEventUpdateGroupPolicyParams = { + value: EventUpdateGroupPolicy; fee?: StdFee; memo?: string; }; -type sendMsgCreateGroupWithPolicyResponseParams = { - value: MsgCreateGroupWithPolicyResponse; +type sendEventLeaveGroupParams = { + value: EventLeaveGroup; fee?: StdFee; memo?: string; }; -type sendMsgUpdateGroupPolicyDecisionPolicyResponseParams = { - value: MsgUpdateGroupPolicyDecisionPolicyResponse; +type sendMsgUpdateGroupAdminResponseParams = { + value: MsgUpdateGroupAdminResponse; fee?: StdFee; memo?: string; }; -type sendQueryGroupsByMemberResponseParams = { - value: QueryGroupsByMemberResponse; +type sendMsgExecParams = { + value: MsgExec; fee?: StdFee; memo?: string; }; -type sendMsgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse; +type sendGroupInfoParams = { + value: GroupInfo; fee?: StdFee; memo?: string; }; -type sendMsgLeaveGroupParams = { - value: MsgLeaveGroup; +type sendQueryGroupsByAdminRequestParams = { + value: QueryGroupsByAdminRequest; fee?: StdFee; memo?: string; }; -type sendTallyResultParams = { - value: TallyResult; +type sendQueryVotesByVoterRequestParams = { + value: QueryVotesByVoterRequest; fee?: StdFee; memo?: string; }; @@ -296,414 +291,419 @@ type sendMsgUpdateGroupMembersParams = { fee?: StdFee; memo?: string; }; -type sendMsgUpdateGroupAdminParams = { - value: MsgUpdateGroupAdmin; +type sendGroupMemberParams = { + value: GroupMember; fee?: StdFee; memo?: string; }; -type sendQueryGroupPolicyInfoResponseParams = { - value: QueryGroupPolicyInfoResponse; +type sendQueryGroupPoliciesByAdminResponseParams = { + value: QueryGroupPoliciesByAdminResponse; fee?: StdFee; memo?: string; }; -type sendQueryVoteByProposalVoterRequestParams = { - value: QueryVoteByProposalVoterRequest; +type sendEventCreateGroupPolicyParams = { + value: EventCreateGroupPolicy; fee?: StdFee; memo?: string; }; -type sendQueryVotesByVoterRequestParams = { - value: QueryVotesByVoterRequest; +type sendMsgCreateGroupWithPolicyParams = { + value: MsgCreateGroupWithPolicy; fee?: StdFee; memo?: string; }; -type sendProposalParams = { - value: Proposal; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendQueryGroupInfoRequestParams = { - value: QueryGroupInfoRequest; +type sendMsgCreateGroupResponseParams = { + value: MsgCreateGroupResponse; fee?: StdFee; memo?: string; }; -type sendMsgExecResponseParams = { - value: MsgExecResponse; +type sendMsgLeaveGroupParams = { + value: MsgLeaveGroup; fee?: StdFee; memo?: string; }; -type sendMsgLeaveGroupResponseParams = { - value: MsgLeaveGroupResponse; +type sendGroupPolicyInfoParams = { + value: GroupPolicyInfo; fee?: StdFee; memo?: string; }; -type sendEventProposalPrunedParams = { - value: EventProposalPruned; +type sendMsgSubmitProposalParams = { + value: MsgSubmitProposal; fee?: StdFee; memo?: string; }; -type sendQueryGroupMembersRequestParams = { - value: QueryGroupMembersRequest; +type sendMsgCreateGroupParams = { + value: MsgCreateGroup; fee?: StdFee; memo?: string; }; -type sendQueryVotesByVoterResponseParams = { - value: QueryVotesByVoterResponse; +type sendQueryTallyResultRequestParams = { + value: QueryTallyResultRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateGroupPolicyDecisionPolicyParams = { - value: MsgUpdateGroupPolicyDecisionPolicy; +type sendMsgWithdrawProposalParams = { + value: MsgWithdrawProposal; fee?: StdFee; memo?: string; }; -type sendEventLeaveGroupParams = { - value: EventLeaveGroup; +type sendDecisionPolicyWindowsParams = { + value: DecisionPolicyWindows; fee?: StdFee; memo?: string; }; -type sendThresholdDecisionPolicyParams = { - value: ThresholdDecisionPolicy; +type sendQueryGroupMembersResponseParams = { + value: QueryGroupMembersResponse; fee?: StdFee; memo?: string; }; -type sendMsgSubmitProposalParams = { - value: MsgSubmitProposal; +type sendQueryVotesByVoterResponseParams = { + value: QueryVotesByVoterResponse; fee?: StdFee; memo?: string; }; -type sendQueryGroupPoliciesByGroupRequestParams = { - value: QueryGroupPoliciesByGroupRequest; +type sendQueryGroupsByMemberRequestParams = { + value: QueryGroupsByMemberRequest; fee?: StdFee; memo?: string; }; -type sendMsgCreateGroupParams = { - value: MsgCreateGroup; +type sendQueryGroupsRequestParams = { + value: QueryGroupsRequest; fee?: StdFee; memo?: string; }; -type sendEventUpdateGroupParams = { - value: EventUpdateGroup; +type sendMsgUpdateGroupPolicyMetadataParams = { + value: MsgUpdateGroupPolicyMetadata; fee?: StdFee; memo?: string; }; -type sendMemberRequestParams = { - value: MemberRequest; +type sendMsgWithdrawProposalResponseParams = { + value: MsgWithdrawProposalResponse; fee?: StdFee; memo?: string; }; -type sendDecisionPolicyWindowsParams = { - value: DecisionPolicyWindows; +type sendQueryProposalResponseParams = { + value: QueryProposalResponse; fee?: StdFee; memo?: string; }; -type sendVoteParams = { - value: Vote; +type sendMsgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse; fee?: StdFee; memo?: string; }; -type sendQueryGroupPoliciesByAdminRequestParams = { - value: QueryGroupPoliciesByAdminRequest; +type sendQueryGroupsByMemberResponseParams = { + value: QueryGroupsByMemberResponse; fee?: StdFee; memo?: string; }; -type sendQueryGroupsResponseParams = { - value: QueryGroupsResponse; +type sendMsgCreateGroupPolicyParams = { + value: MsgCreateGroupPolicy; fee?: StdFee; memo?: string; }; -type sendMsgUpdateGroupMembersResponseParams = { - value: MsgUpdateGroupMembersResponse; +type sendMsgUpdateGroupPolicyMetadataResponseParams = { + value: MsgUpdateGroupPolicyMetadataResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateGroupPolicyAdminResponseParams = { - value: MsgUpdateGroupPolicyAdminResponse; +type sendQueryProposalsByGroupPolicyResponseParams = { + value: QueryProposalsByGroupPolicyResponse; fee?: StdFee; memo?: string; }; -type sendMsgWithdrawProposalParams = { - value: MsgWithdrawProposal; +type sendQueryGroupInfoResponseParams = { + value: QueryGroupInfoResponse; fee?: StdFee; memo?: string; }; -type sendMsgVoteParams = { - value: MsgVote; +type sendQueryGroupMembersRequestParams = { + value: QueryGroupMembersRequest; fee?: StdFee; memo?: string; }; -type sendMsgCreateGroupResponseParams = { - value: MsgCreateGroupResponse; +type sendMsgLeaveGroupResponseParams = { + value: MsgLeaveGroupResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateGroupAdminResponseParams = { - value: MsgUpdateGroupAdminResponse; +type sendPercentageDecisionPolicyParams = { + value: PercentageDecisionPolicy; fee?: StdFee; memo?: string; }; -type sendEventCreateGroupPolicyParams = { - value: EventCreateGroupPolicy; +type sendQueryGroupPolicyInfoResponseParams = { + value: QueryGroupPolicyInfoResponse; fee?: StdFee; memo?: string; }; -type sendGroupPolicyInfoParams = { - value: GroupPolicyInfo; +type sendQueryGroupsResponseParams = { + value: QueryGroupsResponse; fee?: StdFee; memo?: string; }; -type sendQueryProposalResponseParams = { - value: QueryProposalResponse; +type sendMsgUpdateGroupPolicyAdminResponseParams = { + value: MsgUpdateGroupPolicyAdminResponse; fee?: StdFee; memo?: string; }; -type sendQueryProposalsByGroupPolicyRequestParams = { - value: QueryProposalsByGroupPolicyRequest; +type sendMsgVoteParams = { + value: MsgVote; fee?: StdFee; memo?: string; }; -type sendQueryProposalsByGroupPolicyResponseParams = { - value: QueryProposalsByGroupPolicyResponse; +type sendQueryGroupPoliciesByGroupResponseParams = { + value: QueryGroupPoliciesByGroupResponse; fee?: StdFee; memo?: string; }; -type sendQueryVoteByProposalVoterResponseParams = { - value: QueryVoteByProposalVoterResponse; +type sendQueryGroupsByAdminResponseParams = { + value: QueryGroupsByAdminResponse; fee?: StdFee; memo?: string; }; -type msgExecParams = { - value: MsgExec; -}; -type percentageDecisionPolicyParams = { - value: PercentageDecisionPolicy; +type sendProposalParams = { + value: Proposal; + fee?: StdFee; + memo?: string; }; -type groupMemberParams = { - value: GroupMember; +type tallyResultParams = { + value: TallyResult; }; -type msgUpdateGroupMetadataParams = { - value: MsgUpdateGroupMetadata; +type eventUpdateGroupParams = { + value: EventUpdateGroup; }; -type queryGroupInfoResponseParams = { - value: QueryGroupInfoResponse; +type eventSubmitProposalParams = { + value: EventSubmitProposal; }; -type msgUpdateGroupMetadataResponseParams = { - value: MsgUpdateGroupMetadataResponse; +type eventWithdrawProposalParams = { + value: EventWithdrawProposal; }; -type eventCreateGroupParams = { - value: EventCreateGroup; +type queryGroupInfoRequestParams = { + value: QueryGroupInfoRequest; }; -type groupInfoParams = { - value: GroupInfo; +type queryGroupPolicyInfoRequestParams = { + value: QueryGroupPolicyInfoRequest; }; -type queryGroupPoliciesByAdminResponseParams = { - value: QueryGroupPoliciesByAdminResponse; +type queryGroupPoliciesByAdminRequestParams = { + value: QueryGroupPoliciesByAdminRequest; }; -type queryVotesByProposalRequestParams = { - value: QueryVotesByProposalRequest; +type voteParams = { + value: Vote; }; -type msgUpdateGroupPolicyAdminParams = { - value: MsgUpdateGroupPolicyAdmin; +type queryVotesByProposalResponseParams = { + value: QueryVotesByProposalResponse; }; -type msgWithdrawProposalResponseParams = { - value: MsgWithdrawProposalResponse; +type msgCreateGroupWithPolicyResponseParams = { + value: MsgCreateGroupWithPolicyResponse; }; -type queryGroupPolicyInfoRequestParams = { - value: QueryGroupPolicyInfoRequest; +type msgVoteResponseParams = { + value: MsgVoteResponse; }; -type msgUpdateGroupPolicyMetadataParams = { - value: MsgUpdateGroupPolicyMetadata; +type queryVoteByProposalVoterRequestParams = { + value: QueryVoteByProposalVoterRequest; }; -type msgUpdateGroupPolicyMetadataResponseParams = { - value: MsgUpdateGroupPolicyMetadataResponse; +type queryVoteByProposalVoterResponseParams = { + value: QueryVoteByProposalVoterResponse; }; -type eventUpdateGroupPolicyParams = { - value: EventUpdateGroupPolicy; +type queryVotesByProposalRequestParams = { + value: QueryVotesByProposalRequest; }; -type eventWithdrawProposalParams = { - value: EventWithdrawProposal; +type msgUpdateGroupMetadataParams = { + value: MsgUpdateGroupMetadata; }; -type eventExecParams = { - value: EventExec; +type msgUpdateGroupMetadataResponseParams = { + value: MsgUpdateGroupMetadataResponse; }; type memberParams = { value: Member; }; -type queryGroupsByAdminRequestParams = { - value: QueryGroupsByAdminRequest; -}; -type queryGroupsRequestParams = { - value: QueryGroupsRequest; -}; -type msgVoteResponseParams = { - value: MsgVoteResponse; -}; -type eventVoteParams = { - value: EventVote; -}; type queryProposalRequestParams = { value: QueryProposalRequest; }; -type queryGroupsByMemberRequestParams = { - value: QueryGroupsByMemberRequest; -}; -type queryTallyResultRequestParams = { - value: QueryTallyResultRequest; +type queryGroupPoliciesByGroupRequestParams = { + value: QueryGroupPoliciesByGroupRequest; }; -type queryTallyResultResponseParams = { - value: QueryTallyResultResponse; +type msgUpdateGroupAdminParams = { + value: MsgUpdateGroupAdmin; }; -type queryGroupsByAdminResponseParams = { - value: QueryGroupsByAdminResponse; +type msgUpdateGroupPolicyDecisionPolicyParams = { + value: MsgUpdateGroupPolicyDecisionPolicy; }; -type queryVotesByProposalResponseParams = { - value: QueryVotesByProposalResponse; +type msgUpdateGroupMembersResponseParams = { + value: MsgUpdateGroupMembersResponse; }; -type genesisStateParams = { - value: GenesisState; +type msgExecResponseParams = { + value: MsgExecResponse; }; -type eventSubmitProposalParams = { - value: EventSubmitProposal; +type memberRequestParams = { + value: MemberRequest; }; -type queryGroupPoliciesByGroupResponseParams = { - value: QueryGroupPoliciesByGroupResponse; +type thresholdDecisionPolicyParams = { + value: ThresholdDecisionPolicy; }; -type msgCreateGroupWithPolicyParams = { - value: MsgCreateGroupWithPolicy; +type eventExecParams = { + value: EventExec; }; -type msgCreateGroupPolicyParams = { - value: MsgCreateGroupPolicy; +type queryProposalsByGroupPolicyRequestParams = { + value: QueryProposalsByGroupPolicyRequest; }; -type queryGroupMembersResponseParams = { - value: QueryGroupMembersResponse; +type queryTallyResultResponseParams = { + value: QueryTallyResultResponse; }; type msgCreateGroupPolicyResponseParams = { value: MsgCreateGroupPolicyResponse; }; -type msgCreateGroupWithPolicyResponseParams = { - value: MsgCreateGroupWithPolicyResponse; -}; type msgUpdateGroupPolicyDecisionPolicyResponseParams = { value: MsgUpdateGroupPolicyDecisionPolicyResponse; }; -type queryGroupsByMemberResponseParams = { - value: QueryGroupsByMemberResponse; +type eventCreateGroupParams = { + value: EventCreateGroup; }; -type msgSubmitProposalResponseParams = { - value: MsgSubmitProposalResponse; +type eventProposalPrunedParams = { + value: EventProposalPruned; }; -type msgLeaveGroupParams = { - value: MsgLeaveGroup; +type msgUpdateGroupPolicyAdminParams = { + value: MsgUpdateGroupPolicyAdmin; }; -type tallyResultParams = { - value: TallyResult; +type eventVoteParams = { + value: EventVote; }; -type msgUpdateGroupMembersParams = { - value: MsgUpdateGroupMembers; +type eventUpdateGroupPolicyParams = { + value: EventUpdateGroupPolicy; }; -type msgUpdateGroupAdminParams = { - value: MsgUpdateGroupAdmin; +type eventLeaveGroupParams = { + value: EventLeaveGroup; }; -type queryGroupPolicyInfoResponseParams = { - value: QueryGroupPolicyInfoResponse; +type msgUpdateGroupAdminResponseParams = { + value: MsgUpdateGroupAdminResponse; }; -type queryVoteByProposalVoterRequestParams = { - value: QueryVoteByProposalVoterRequest; +type msgExecParams = { + value: MsgExec; +}; +type groupInfoParams = { + value: GroupInfo; +}; +type queryGroupsByAdminRequestParams = { + value: QueryGroupsByAdminRequest; }; type queryVotesByVoterRequestParams = { value: QueryVotesByVoterRequest; }; -type proposalParams = { - value: Proposal; -}; -type queryGroupInfoRequestParams = { - value: QueryGroupInfoRequest; +type msgUpdateGroupMembersParams = { + value: MsgUpdateGroupMembers; }; -type msgExecResponseParams = { - value: MsgExecResponse; +type groupMemberParams = { + value: GroupMember; }; -type msgLeaveGroupResponseParams = { - value: MsgLeaveGroupResponse; +type queryGroupPoliciesByAdminResponseParams = { + value: QueryGroupPoliciesByAdminResponse; }; -type eventProposalPrunedParams = { - value: EventProposalPruned; +type eventCreateGroupPolicyParams = { + value: EventCreateGroupPolicy; }; -type queryGroupMembersRequestParams = { - value: QueryGroupMembersRequest; +type msgCreateGroupWithPolicyParams = { + value: MsgCreateGroupWithPolicy; }; -type queryVotesByVoterResponseParams = { - value: QueryVotesByVoterResponse; +type genesisStateParams = { + value: GenesisState; }; -type msgUpdateGroupPolicyDecisionPolicyParams = { - value: MsgUpdateGroupPolicyDecisionPolicy; +type msgCreateGroupResponseParams = { + value: MsgCreateGroupResponse; }; -type eventLeaveGroupParams = { - value: EventLeaveGroup; +type msgLeaveGroupParams = { + value: MsgLeaveGroup; }; -type thresholdDecisionPolicyParams = { - value: ThresholdDecisionPolicy; +type groupPolicyInfoParams = { + value: GroupPolicyInfo; }; type msgSubmitProposalParams = { value: MsgSubmitProposal; }; -type queryGroupPoliciesByGroupRequestParams = { - value: QueryGroupPoliciesByGroupRequest; -}; type msgCreateGroupParams = { value: MsgCreateGroup; }; -type eventUpdateGroupParams = { - value: EventUpdateGroup; +type queryTallyResultRequestParams = { + value: QueryTallyResultRequest; }; -type memberRequestParams = { - value: MemberRequest; +type msgWithdrawProposalParams = { + value: MsgWithdrawProposal; }; type decisionPolicyWindowsParams = { value: DecisionPolicyWindows; }; -type voteParams = { - value: Vote; -}; -type queryGroupPoliciesByAdminRequestParams = { - value: QueryGroupPoliciesByAdminRequest; -}; -type queryGroupsResponseParams = { - value: QueryGroupsResponse; +type queryGroupMembersResponseParams = { + value: QueryGroupMembersResponse; }; -type msgUpdateGroupMembersResponseParams = { - value: MsgUpdateGroupMembersResponse; +type queryVotesByVoterResponseParams = { + value: QueryVotesByVoterResponse; }; -type msgUpdateGroupPolicyAdminResponseParams = { - value: MsgUpdateGroupPolicyAdminResponse; +type queryGroupsByMemberRequestParams = { + value: QueryGroupsByMemberRequest; }; -type msgWithdrawProposalParams = { - value: MsgWithdrawProposal; +type queryGroupsRequestParams = { + value: QueryGroupsRequest; }; -type msgVoteParams = { - value: MsgVote; +type msgUpdateGroupPolicyMetadataParams = { + value: MsgUpdateGroupPolicyMetadata; }; -type msgCreateGroupResponseParams = { - value: MsgCreateGroupResponse; +type msgWithdrawProposalResponseParams = { + value: MsgWithdrawProposalResponse; }; -type msgUpdateGroupAdminResponseParams = { - value: MsgUpdateGroupAdminResponse; +type queryProposalResponseParams = { + value: QueryProposalResponse; }; -type eventCreateGroupPolicyParams = { - value: EventCreateGroupPolicy; +type msgSubmitProposalResponseParams = { + value: MsgSubmitProposalResponse; }; -type groupPolicyInfoParams = { - value: GroupPolicyInfo; +type queryGroupsByMemberResponseParams = { + value: QueryGroupsByMemberResponse; }; -type queryProposalResponseParams = { - value: QueryProposalResponse; +type msgCreateGroupPolicyParams = { + value: MsgCreateGroupPolicy; }; -type queryProposalsByGroupPolicyRequestParams = { - value: QueryProposalsByGroupPolicyRequest; +type msgUpdateGroupPolicyMetadataResponseParams = { + value: MsgUpdateGroupPolicyMetadataResponse; }; type queryProposalsByGroupPolicyResponseParams = { value: QueryProposalsByGroupPolicyResponse; }; -type queryVoteByProposalVoterResponseParams = { - value: QueryVoteByProposalVoterResponse; +type queryGroupInfoResponseParams = { + value: QueryGroupInfoResponse; +}; +type queryGroupMembersRequestParams = { + value: QueryGroupMembersRequest; +}; +type msgLeaveGroupResponseParams = { + value: MsgLeaveGroupResponse; +}; +type percentageDecisionPolicyParams = { + value: PercentageDecisionPolicy; +}; +type queryGroupPolicyInfoResponseParams = { + value: QueryGroupPolicyInfoResponse; +}; +type queryGroupsResponseParams = { + value: QueryGroupsResponse; +}; +type msgUpdateGroupPolicyAdminResponseParams = { + value: MsgUpdateGroupPolicyAdminResponse; +}; +type msgVoteParams = { + value: MsgVote; +}; +type queryGroupPoliciesByGroupResponseParams = { + value: QueryGroupPoliciesByGroupResponse; +}; +type queryGroupsByAdminResponseParams = { + value: QueryGroupsByAdminResponse; +}; +type proposalParams = { + value: Proposal; }; export declare const registry: Registry; interface TxClientOptions { @@ -712,162 +712,162 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise; - sendPercentageDecisionPolicy({ value, fee, memo }: sendPercentageDecisionPolicyParams): Promise; - sendGroupMember({ value, fee, memo }: sendGroupMemberParams): Promise; + sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise; + sendEventUpdateGroup({ value, fee, memo }: sendEventUpdateGroupParams): Promise; + sendEventSubmitProposal({ value, fee, memo }: sendEventSubmitProposalParams): Promise; + sendEventWithdrawProposal({ value, fee, memo }: sendEventWithdrawProposalParams): Promise; + sendQueryGroupInfoRequest({ value, fee, memo }: sendQueryGroupInfoRequestParams): Promise; + sendQueryGroupPolicyInfoRequest({ value, fee, memo }: sendQueryGroupPolicyInfoRequestParams): Promise; + sendQueryGroupPoliciesByAdminRequest({ value, fee, memo }: sendQueryGroupPoliciesByAdminRequestParams): Promise; + sendVote({ value, fee, memo }: sendVoteParams): Promise; + sendQueryVotesByProposalResponse({ value, fee, memo }: sendQueryVotesByProposalResponseParams): Promise; + sendMsgCreateGroupWithPolicyResponse({ value, fee, memo }: sendMsgCreateGroupWithPolicyResponseParams): Promise; + sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise; + sendQueryVoteByProposalVoterRequest({ value, fee, memo }: sendQueryVoteByProposalVoterRequestParams): Promise; + sendQueryVoteByProposalVoterResponse({ value, fee, memo }: sendQueryVoteByProposalVoterResponseParams): Promise; + sendQueryVotesByProposalRequest({ value, fee, memo }: sendQueryVotesByProposalRequestParams): Promise; sendMsgUpdateGroupMetadata({ value, fee, memo }: sendMsgUpdateGroupMetadataParams): Promise; - sendQueryGroupInfoResponse({ value, fee, memo }: sendQueryGroupInfoResponseParams): Promise; sendMsgUpdateGroupMetadataResponse({ value, fee, memo }: sendMsgUpdateGroupMetadataResponseParams): Promise; - sendEventCreateGroup({ value, fee, memo }: sendEventCreateGroupParams): Promise; - sendGroupInfo({ value, fee, memo }: sendGroupInfoParams): Promise; - sendQueryGroupPoliciesByAdminResponse({ value, fee, memo }: sendQueryGroupPoliciesByAdminResponseParams): Promise; - sendQueryVotesByProposalRequest({ value, fee, memo }: sendQueryVotesByProposalRequestParams): Promise; - sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }: sendMsgUpdateGroupPolicyAdminParams): Promise; - sendMsgWithdrawProposalResponse({ value, fee, memo }: sendMsgWithdrawProposalResponseParams): Promise; - sendQueryGroupPolicyInfoRequest({ value, fee, memo }: sendQueryGroupPolicyInfoRequestParams): Promise; - sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataParams): Promise; - sendMsgUpdateGroupPolicyMetadataResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataResponseParams): Promise; - sendEventUpdateGroupPolicy({ value, fee, memo }: sendEventUpdateGroupPolicyParams): Promise; - sendEventWithdrawProposal({ value, fee, memo }: sendEventWithdrawProposalParams): Promise; - sendEventExec({ value, fee, memo }: sendEventExecParams): Promise; sendMember({ value, fee, memo }: sendMemberParams): Promise; - sendQueryGroupsByAdminRequest({ value, fee, memo }: sendQueryGroupsByAdminRequestParams): Promise; - sendQueryGroupsRequest({ value, fee, memo }: sendQueryGroupsRequestParams): Promise; - sendMsgVoteResponse({ value, fee, memo }: sendMsgVoteResponseParams): Promise; - sendEventVote({ value, fee, memo }: sendEventVoteParams): Promise; sendQueryProposalRequest({ value, fee, memo }: sendQueryProposalRequestParams): Promise; - sendQueryGroupsByMemberRequest({ value, fee, memo }: sendQueryGroupsByMemberRequestParams): Promise; - sendQueryTallyResultRequest({ value, fee, memo }: sendQueryTallyResultRequestParams): Promise; + sendQueryGroupPoliciesByGroupRequest({ value, fee, memo }: sendQueryGroupPoliciesByGroupRequestParams): Promise; + sendMsgUpdateGroupAdmin({ value, fee, memo }: sendMsgUpdateGroupAdminParams): Promise; + sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyParams): Promise; + sendMsgUpdateGroupMembersResponse({ value, fee, memo }: sendMsgUpdateGroupMembersResponseParams): Promise; + sendMsgExecResponse({ value, fee, memo }: sendMsgExecResponseParams): Promise; + sendMemberRequest({ value, fee, memo }: sendMemberRequestParams): Promise; + sendThresholdDecisionPolicy({ value, fee, memo }: sendThresholdDecisionPolicyParams): Promise; + sendEventExec({ value, fee, memo }: sendEventExecParams): Promise; + sendQueryProposalsByGroupPolicyRequest({ value, fee, memo }: sendQueryProposalsByGroupPolicyRequestParams): Promise; sendQueryTallyResultResponse({ value, fee, memo }: sendQueryTallyResultResponseParams): Promise; - sendQueryGroupsByAdminResponse({ value, fee, memo }: sendQueryGroupsByAdminResponseParams): Promise; - sendQueryVotesByProposalResponse({ value, fee, memo }: sendQueryVotesByProposalResponseParams): Promise; - sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendEventSubmitProposal({ value, fee, memo }: sendEventSubmitProposalParams): Promise; - sendQueryGroupPoliciesByGroupResponse({ value, fee, memo }: sendQueryGroupPoliciesByGroupResponseParams): Promise; - sendMsgCreateGroupWithPolicy({ value, fee, memo }: sendMsgCreateGroupWithPolicyParams): Promise; - sendMsgCreateGroupPolicy({ value, fee, memo }: sendMsgCreateGroupPolicyParams): Promise; - sendQueryGroupMembersResponse({ value, fee, memo }: sendQueryGroupMembersResponseParams): Promise; sendMsgCreateGroupPolicyResponse({ value, fee, memo }: sendMsgCreateGroupPolicyResponseParams): Promise; - sendMsgCreateGroupWithPolicyResponse({ value, fee, memo }: sendMsgCreateGroupWithPolicyResponseParams): Promise; sendMsgUpdateGroupPolicyDecisionPolicyResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyResponseParams): Promise; - sendQueryGroupsByMemberResponse({ value, fee, memo }: sendQueryGroupsByMemberResponseParams): Promise; - sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise; - sendMsgLeaveGroup({ value, fee, memo }: sendMsgLeaveGroupParams): Promise; - sendTallyResult({ value, fee, memo }: sendTallyResultParams): Promise; - sendMsgUpdateGroupMembers({ value, fee, memo }: sendMsgUpdateGroupMembersParams): Promise; - sendMsgUpdateGroupAdmin({ value, fee, memo }: sendMsgUpdateGroupAdminParams): Promise; - sendQueryGroupPolicyInfoResponse({ value, fee, memo }: sendQueryGroupPolicyInfoResponseParams): Promise; - sendQueryVoteByProposalVoterRequest({ value, fee, memo }: sendQueryVoteByProposalVoterRequestParams): Promise; - sendQueryVotesByVoterRequest({ value, fee, memo }: sendQueryVotesByVoterRequestParams): Promise; - sendProposal({ value, fee, memo }: sendProposalParams): Promise; - sendQueryGroupInfoRequest({ value, fee, memo }: sendQueryGroupInfoRequestParams): Promise; - sendMsgExecResponse({ value, fee, memo }: sendMsgExecResponseParams): Promise; - sendMsgLeaveGroupResponse({ value, fee, memo }: sendMsgLeaveGroupResponseParams): Promise; + sendEventCreateGroup({ value, fee, memo }: sendEventCreateGroupParams): Promise; sendEventProposalPruned({ value, fee, memo }: sendEventProposalPrunedParams): Promise; - sendQueryGroupMembersRequest({ value, fee, memo }: sendQueryGroupMembersRequestParams): Promise; - sendQueryVotesByVoterResponse({ value, fee, memo }: sendQueryVotesByVoterResponseParams): Promise; - sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyParams): Promise; + sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }: sendMsgUpdateGroupPolicyAdminParams): Promise; + sendEventVote({ value, fee, memo }: sendEventVoteParams): Promise; + sendEventUpdateGroupPolicy({ value, fee, memo }: sendEventUpdateGroupPolicyParams): Promise; sendEventLeaveGroup({ value, fee, memo }: sendEventLeaveGroupParams): Promise; - sendThresholdDecisionPolicy({ value, fee, memo }: sendThresholdDecisionPolicyParams): Promise; + sendMsgUpdateGroupAdminResponse({ value, fee, memo }: sendMsgUpdateGroupAdminResponseParams): Promise; + sendMsgExec({ value, fee, memo }: sendMsgExecParams): Promise; + sendGroupInfo({ value, fee, memo }: sendGroupInfoParams): Promise; + sendQueryGroupsByAdminRequest({ value, fee, memo }: sendQueryGroupsByAdminRequestParams): Promise; + sendQueryVotesByVoterRequest({ value, fee, memo }: sendQueryVotesByVoterRequestParams): Promise; + sendMsgUpdateGroupMembers({ value, fee, memo }: sendMsgUpdateGroupMembersParams): Promise; + sendGroupMember({ value, fee, memo }: sendGroupMemberParams): Promise; + sendQueryGroupPoliciesByAdminResponse({ value, fee, memo }: sendQueryGroupPoliciesByAdminResponseParams): Promise; + sendEventCreateGroupPolicy({ value, fee, memo }: sendEventCreateGroupPolicyParams): Promise; + sendMsgCreateGroupWithPolicy({ value, fee, memo }: sendMsgCreateGroupWithPolicyParams): Promise; + sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; + sendMsgCreateGroupResponse({ value, fee, memo }: sendMsgCreateGroupResponseParams): Promise; + sendMsgLeaveGroup({ value, fee, memo }: sendMsgLeaveGroupParams): Promise; + sendGroupPolicyInfo({ value, fee, memo }: sendGroupPolicyInfoParams): Promise; sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise; - sendQueryGroupPoliciesByGroupRequest({ value, fee, memo }: sendQueryGroupPoliciesByGroupRequestParams): Promise; sendMsgCreateGroup({ value, fee, memo }: sendMsgCreateGroupParams): Promise; - sendEventUpdateGroup({ value, fee, memo }: sendEventUpdateGroupParams): Promise; - sendMemberRequest({ value, fee, memo }: sendMemberRequestParams): Promise; + sendQueryTallyResultRequest({ value, fee, memo }: sendQueryTallyResultRequestParams): Promise; + sendMsgWithdrawProposal({ value, fee, memo }: sendMsgWithdrawProposalParams): Promise; sendDecisionPolicyWindows({ value, fee, memo }: sendDecisionPolicyWindowsParams): Promise; - sendVote({ value, fee, memo }: sendVoteParams): Promise; - sendQueryGroupPoliciesByAdminRequest({ value, fee, memo }: sendQueryGroupPoliciesByAdminRequestParams): Promise; + sendQueryGroupMembersResponse({ value, fee, memo }: sendQueryGroupMembersResponseParams): Promise; + sendQueryVotesByVoterResponse({ value, fee, memo }: sendQueryVotesByVoterResponseParams): Promise; + sendQueryGroupsByMemberRequest({ value, fee, memo }: sendQueryGroupsByMemberRequestParams): Promise; + sendQueryGroupsRequest({ value, fee, memo }: sendQueryGroupsRequestParams): Promise; + sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataParams): Promise; + sendMsgWithdrawProposalResponse({ value, fee, memo }: sendMsgWithdrawProposalResponseParams): Promise; + sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise; + sendMsgSubmitProposalResponse({ value, fee, memo }: sendMsgSubmitProposalResponseParams): Promise; + sendQueryGroupsByMemberResponse({ value, fee, memo }: sendQueryGroupsByMemberResponseParams): Promise; + sendMsgCreateGroupPolicy({ value, fee, memo }: sendMsgCreateGroupPolicyParams): Promise; + sendMsgUpdateGroupPolicyMetadataResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataResponseParams): Promise; + sendQueryProposalsByGroupPolicyResponse({ value, fee, memo }: sendQueryProposalsByGroupPolicyResponseParams): Promise; + sendQueryGroupInfoResponse({ value, fee, memo }: sendQueryGroupInfoResponseParams): Promise; + sendQueryGroupMembersRequest({ value, fee, memo }: sendQueryGroupMembersRequestParams): Promise; + sendMsgLeaveGroupResponse({ value, fee, memo }: sendMsgLeaveGroupResponseParams): Promise; + sendPercentageDecisionPolicy({ value, fee, memo }: sendPercentageDecisionPolicyParams): Promise; + sendQueryGroupPolicyInfoResponse({ value, fee, memo }: sendQueryGroupPolicyInfoResponseParams): Promise; sendQueryGroupsResponse({ value, fee, memo }: sendQueryGroupsResponseParams): Promise; - sendMsgUpdateGroupMembersResponse({ value, fee, memo }: sendMsgUpdateGroupMembersResponseParams): Promise; sendMsgUpdateGroupPolicyAdminResponse({ value, fee, memo }: sendMsgUpdateGroupPolicyAdminResponseParams): Promise; - sendMsgWithdrawProposal({ value, fee, memo }: sendMsgWithdrawProposalParams): Promise; sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise; - sendMsgCreateGroupResponse({ value, fee, memo }: sendMsgCreateGroupResponseParams): Promise; - sendMsgUpdateGroupAdminResponse({ value, fee, memo }: sendMsgUpdateGroupAdminResponseParams): Promise; - sendEventCreateGroupPolicy({ value, fee, memo }: sendEventCreateGroupPolicyParams): Promise; - sendGroupPolicyInfo({ value, fee, memo }: sendGroupPolicyInfoParams): Promise; - sendQueryProposalResponse({ value, fee, memo }: sendQueryProposalResponseParams): Promise; - sendQueryProposalsByGroupPolicyRequest({ value, fee, memo }: sendQueryProposalsByGroupPolicyRequestParams): Promise; - sendQueryProposalsByGroupPolicyResponse({ value, fee, memo }: sendQueryProposalsByGroupPolicyResponseParams): Promise; - sendQueryVoteByProposalVoterResponse({ value, fee, memo }: sendQueryVoteByProposalVoterResponseParams): Promise; - msgExec({ value }: msgExecParams): EncodeObject; - percentageDecisionPolicy({ value }: percentageDecisionPolicyParams): EncodeObject; - groupMember({ value }: groupMemberParams): EncodeObject; + sendQueryGroupPoliciesByGroupResponse({ value, fee, memo }: sendQueryGroupPoliciesByGroupResponseParams): Promise; + sendQueryGroupsByAdminResponse({ value, fee, memo }: sendQueryGroupsByAdminResponseParams): Promise; + sendProposal({ value, fee, memo }: sendProposalParams): Promise; + tallyResult({ value }: tallyResultParams): EncodeObject; + eventUpdateGroup({ value }: eventUpdateGroupParams): EncodeObject; + eventSubmitProposal({ value }: eventSubmitProposalParams): EncodeObject; + eventWithdrawProposal({ value }: eventWithdrawProposalParams): EncodeObject; + queryGroupInfoRequest({ value }: queryGroupInfoRequestParams): EncodeObject; + queryGroupPolicyInfoRequest({ value }: queryGroupPolicyInfoRequestParams): EncodeObject; + queryGroupPoliciesByAdminRequest({ value }: queryGroupPoliciesByAdminRequestParams): EncodeObject; + vote({ value }: voteParams): EncodeObject; + queryVotesByProposalResponse({ value }: queryVotesByProposalResponseParams): EncodeObject; + msgCreateGroupWithPolicyResponse({ value }: msgCreateGroupWithPolicyResponseParams): EncodeObject; + msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject; + queryVoteByProposalVoterRequest({ value }: queryVoteByProposalVoterRequestParams): EncodeObject; + queryVoteByProposalVoterResponse({ value }: queryVoteByProposalVoterResponseParams): EncodeObject; + queryVotesByProposalRequest({ value }: queryVotesByProposalRequestParams): EncodeObject; msgUpdateGroupMetadata({ value }: msgUpdateGroupMetadataParams): EncodeObject; - queryGroupInfoResponse({ value }: queryGroupInfoResponseParams): EncodeObject; msgUpdateGroupMetadataResponse({ value }: msgUpdateGroupMetadataResponseParams): EncodeObject; - eventCreateGroup({ value }: eventCreateGroupParams): EncodeObject; - groupInfo({ value }: groupInfoParams): EncodeObject; - queryGroupPoliciesByAdminResponse({ value }: queryGroupPoliciesByAdminResponseParams): EncodeObject; - queryVotesByProposalRequest({ value }: queryVotesByProposalRequestParams): EncodeObject; - msgUpdateGroupPolicyAdmin({ value }: msgUpdateGroupPolicyAdminParams): EncodeObject; - msgWithdrawProposalResponse({ value }: msgWithdrawProposalResponseParams): EncodeObject; - queryGroupPolicyInfoRequest({ value }: queryGroupPolicyInfoRequestParams): EncodeObject; - msgUpdateGroupPolicyMetadata({ value }: msgUpdateGroupPolicyMetadataParams): EncodeObject; - msgUpdateGroupPolicyMetadataResponse({ value }: msgUpdateGroupPolicyMetadataResponseParams): EncodeObject; - eventUpdateGroupPolicy({ value }: eventUpdateGroupPolicyParams): EncodeObject; - eventWithdrawProposal({ value }: eventWithdrawProposalParams): EncodeObject; - eventExec({ value }: eventExecParams): EncodeObject; member({ value }: memberParams): EncodeObject; - queryGroupsByAdminRequest({ value }: queryGroupsByAdminRequestParams): EncodeObject; - queryGroupsRequest({ value }: queryGroupsRequestParams): EncodeObject; - msgVoteResponse({ value }: msgVoteResponseParams): EncodeObject; - eventVote({ value }: eventVoteParams): EncodeObject; queryProposalRequest({ value }: queryProposalRequestParams): EncodeObject; - queryGroupsByMemberRequest({ value }: queryGroupsByMemberRequestParams): EncodeObject; - queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject; + queryGroupPoliciesByGroupRequest({ value }: queryGroupPoliciesByGroupRequestParams): EncodeObject; + msgUpdateGroupAdmin({ value }: msgUpdateGroupAdminParams): EncodeObject; + msgUpdateGroupPolicyDecisionPolicy({ value }: msgUpdateGroupPolicyDecisionPolicyParams): EncodeObject; + msgUpdateGroupMembersResponse({ value }: msgUpdateGroupMembersResponseParams): EncodeObject; + msgExecResponse({ value }: msgExecResponseParams): EncodeObject; + memberRequest({ value }: memberRequestParams): EncodeObject; + thresholdDecisionPolicy({ value }: thresholdDecisionPolicyParams): EncodeObject; + eventExec({ value }: eventExecParams): EncodeObject; + queryProposalsByGroupPolicyRequest({ value }: queryProposalsByGroupPolicyRequestParams): EncodeObject; queryTallyResultResponse({ value }: queryTallyResultResponseParams): EncodeObject; - queryGroupsByAdminResponse({ value }: queryGroupsByAdminResponseParams): EncodeObject; - queryVotesByProposalResponse({ value }: queryVotesByProposalResponseParams): EncodeObject; - genesisState({ value }: genesisStateParams): EncodeObject; - eventSubmitProposal({ value }: eventSubmitProposalParams): EncodeObject; - queryGroupPoliciesByGroupResponse({ value }: queryGroupPoliciesByGroupResponseParams): EncodeObject; - msgCreateGroupWithPolicy({ value }: msgCreateGroupWithPolicyParams): EncodeObject; - msgCreateGroupPolicy({ value }: msgCreateGroupPolicyParams): EncodeObject; - queryGroupMembersResponse({ value }: queryGroupMembersResponseParams): EncodeObject; msgCreateGroupPolicyResponse({ value }: msgCreateGroupPolicyResponseParams): EncodeObject; - msgCreateGroupWithPolicyResponse({ value }: msgCreateGroupWithPolicyResponseParams): EncodeObject; msgUpdateGroupPolicyDecisionPolicyResponse({ value }: msgUpdateGroupPolicyDecisionPolicyResponseParams): EncodeObject; - queryGroupsByMemberResponse({ value }: queryGroupsByMemberResponseParams): EncodeObject; - msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject; - msgLeaveGroup({ value }: msgLeaveGroupParams): EncodeObject; - tallyResult({ value }: tallyResultParams): EncodeObject; - msgUpdateGroupMembers({ value }: msgUpdateGroupMembersParams): EncodeObject; - msgUpdateGroupAdmin({ value }: msgUpdateGroupAdminParams): EncodeObject; - queryGroupPolicyInfoResponse({ value }: queryGroupPolicyInfoResponseParams): EncodeObject; - queryVoteByProposalVoterRequest({ value }: queryVoteByProposalVoterRequestParams): EncodeObject; - queryVotesByVoterRequest({ value }: queryVotesByVoterRequestParams): EncodeObject; - proposal({ value }: proposalParams): EncodeObject; - queryGroupInfoRequest({ value }: queryGroupInfoRequestParams): EncodeObject; - msgExecResponse({ value }: msgExecResponseParams): EncodeObject; - msgLeaveGroupResponse({ value }: msgLeaveGroupResponseParams): EncodeObject; + eventCreateGroup({ value }: eventCreateGroupParams): EncodeObject; eventProposalPruned({ value }: eventProposalPrunedParams): EncodeObject; - queryGroupMembersRequest({ value }: queryGroupMembersRequestParams): EncodeObject; - queryVotesByVoterResponse({ value }: queryVotesByVoterResponseParams): EncodeObject; - msgUpdateGroupPolicyDecisionPolicy({ value }: msgUpdateGroupPolicyDecisionPolicyParams): EncodeObject; + msgUpdateGroupPolicyAdmin({ value }: msgUpdateGroupPolicyAdminParams): EncodeObject; + eventVote({ value }: eventVoteParams): EncodeObject; + eventUpdateGroupPolicy({ value }: eventUpdateGroupPolicyParams): EncodeObject; eventLeaveGroup({ value }: eventLeaveGroupParams): EncodeObject; - thresholdDecisionPolicy({ value }: thresholdDecisionPolicyParams): EncodeObject; + msgUpdateGroupAdminResponse({ value }: msgUpdateGroupAdminResponseParams): EncodeObject; + msgExec({ value }: msgExecParams): EncodeObject; + groupInfo({ value }: groupInfoParams): EncodeObject; + queryGroupsByAdminRequest({ value }: queryGroupsByAdminRequestParams): EncodeObject; + queryVotesByVoterRequest({ value }: queryVotesByVoterRequestParams): EncodeObject; + msgUpdateGroupMembers({ value }: msgUpdateGroupMembersParams): EncodeObject; + groupMember({ value }: groupMemberParams): EncodeObject; + queryGroupPoliciesByAdminResponse({ value }: queryGroupPoliciesByAdminResponseParams): EncodeObject; + eventCreateGroupPolicy({ value }: eventCreateGroupPolicyParams): EncodeObject; + msgCreateGroupWithPolicy({ value }: msgCreateGroupWithPolicyParams): EncodeObject; + genesisState({ value }: genesisStateParams): EncodeObject; + msgCreateGroupResponse({ value }: msgCreateGroupResponseParams): EncodeObject; + msgLeaveGroup({ value }: msgLeaveGroupParams): EncodeObject; + groupPolicyInfo({ value }: groupPolicyInfoParams): EncodeObject; msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject; - queryGroupPoliciesByGroupRequest({ value }: queryGroupPoliciesByGroupRequestParams): EncodeObject; msgCreateGroup({ value }: msgCreateGroupParams): EncodeObject; - eventUpdateGroup({ value }: eventUpdateGroupParams): EncodeObject; - memberRequest({ value }: memberRequestParams): EncodeObject; + queryTallyResultRequest({ value }: queryTallyResultRequestParams): EncodeObject; + msgWithdrawProposal({ value }: msgWithdrawProposalParams): EncodeObject; decisionPolicyWindows({ value }: decisionPolicyWindowsParams): EncodeObject; - vote({ value }: voteParams): EncodeObject; - queryGroupPoliciesByAdminRequest({ value }: queryGroupPoliciesByAdminRequestParams): EncodeObject; + queryGroupMembersResponse({ value }: queryGroupMembersResponseParams): EncodeObject; + queryVotesByVoterResponse({ value }: queryVotesByVoterResponseParams): EncodeObject; + queryGroupsByMemberRequest({ value }: queryGroupsByMemberRequestParams): EncodeObject; + queryGroupsRequest({ value }: queryGroupsRequestParams): EncodeObject; + msgUpdateGroupPolicyMetadata({ value }: msgUpdateGroupPolicyMetadataParams): EncodeObject; + msgWithdrawProposalResponse({ value }: msgWithdrawProposalResponseParams): EncodeObject; + queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject; + msgSubmitProposalResponse({ value }: msgSubmitProposalResponseParams): EncodeObject; + queryGroupsByMemberResponse({ value }: queryGroupsByMemberResponseParams): EncodeObject; + msgCreateGroupPolicy({ value }: msgCreateGroupPolicyParams): EncodeObject; + msgUpdateGroupPolicyMetadataResponse({ value }: msgUpdateGroupPolicyMetadataResponseParams): EncodeObject; + queryProposalsByGroupPolicyResponse({ value }: queryProposalsByGroupPolicyResponseParams): EncodeObject; + queryGroupInfoResponse({ value }: queryGroupInfoResponseParams): EncodeObject; + queryGroupMembersRequest({ value }: queryGroupMembersRequestParams): EncodeObject; + msgLeaveGroupResponse({ value }: msgLeaveGroupResponseParams): EncodeObject; + percentageDecisionPolicy({ value }: percentageDecisionPolicyParams): EncodeObject; + queryGroupPolicyInfoResponse({ value }: queryGroupPolicyInfoResponseParams): EncodeObject; queryGroupsResponse({ value }: queryGroupsResponseParams): EncodeObject; - msgUpdateGroupMembersResponse({ value }: msgUpdateGroupMembersResponseParams): EncodeObject; msgUpdateGroupPolicyAdminResponse({ value }: msgUpdateGroupPolicyAdminResponseParams): EncodeObject; - msgWithdrawProposal({ value }: msgWithdrawProposalParams): EncodeObject; msgVote({ value }: msgVoteParams): EncodeObject; - msgCreateGroupResponse({ value }: msgCreateGroupResponseParams): EncodeObject; - msgUpdateGroupAdminResponse({ value }: msgUpdateGroupAdminResponseParams): EncodeObject; - eventCreateGroupPolicy({ value }: eventCreateGroupPolicyParams): EncodeObject; - groupPolicyInfo({ value }: groupPolicyInfoParams): EncodeObject; - queryProposalResponse({ value }: queryProposalResponseParams): EncodeObject; - queryProposalsByGroupPolicyRequest({ value }: queryProposalsByGroupPolicyRequestParams): EncodeObject; - queryProposalsByGroupPolicyResponse({ value }: queryProposalsByGroupPolicyResponseParams): EncodeObject; - queryVoteByProposalVoterResponse({ value }: queryVoteByProposalVoterResponseParams): EncodeObject; + queryGroupPoliciesByGroupResponse({ value }: queryGroupPoliciesByGroupResponseParams): EncodeObject; + queryGroupsByAdminResponse({ value }: queryGroupsByAdminResponseParams): EncodeObject; + proposal({ value }: proposalParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.group.v1/module.js b/ts-client/lib/cosmos.group.v1/module.js index 6d4256d01..ba9970779 100644 --- a/ts-client/lib/cosmos.group.v1/module.js +++ b/ts-client/lib/cosmos.group.v1/module.js @@ -3,85 +3,85 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { MsgExec } from "./types/cosmos/group/v1/tx"; -import { PercentageDecisionPolicy } from "./types/cosmos/group/v1/types"; -import { GroupMember } from "./types/cosmos/group/v1/types"; +import { TallyResult } from "./types/cosmos/group/v1/types"; +import { EventUpdateGroup } from "./types/cosmos/group/v1/events"; +import { EventSubmitProposal } from "./types/cosmos/group/v1/events"; +import { EventWithdrawProposal } from "./types/cosmos/group/v1/events"; +import { QueryGroupInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupPolicyInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupPoliciesByAdminRequest } from "./types/cosmos/group/v1/query"; +import { Vote } from "./types/cosmos/group/v1/types"; +import { QueryVotesByProposalResponse } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroupWithPolicyResponse } from "./types/cosmos/group/v1/tx"; +import { MsgVoteResponse } from "./types/cosmos/group/v1/tx"; +import { QueryVoteByProposalVoterRequest } from "./types/cosmos/group/v1/query"; +import { QueryVoteByProposalVoterResponse } from "./types/cosmos/group/v1/query"; +import { QueryVotesByProposalRequest } from "./types/cosmos/group/v1/query"; import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx"; -import { QueryGroupInfoResponse } from "./types/cosmos/group/v1/query"; import { MsgUpdateGroupMetadataResponse } from "./types/cosmos/group/v1/tx"; -import { EventCreateGroup } from "./types/cosmos/group/v1/events"; -import { GroupInfo } from "./types/cosmos/group/v1/types"; -import { QueryGroupPoliciesByAdminResponse } from "./types/cosmos/group/v1/query"; -import { QueryVotesByProposalRequest } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx"; -import { MsgWithdrawProposalResponse } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPolicyInfoRequest } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupPolicyMetadataResponse } from "./types/cosmos/group/v1/tx"; -import { EventUpdateGroupPolicy } from "./types/cosmos/group/v1/events"; -import { EventWithdrawProposal } from "./types/cosmos/group/v1/events"; -import { EventExec } from "./types/cosmos/group/v1/events"; import { Member } from "./types/cosmos/group/v1/types"; -import { QueryGroupsByAdminRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupsRequest } from "./types/cosmos/group/v1/query"; -import { MsgVoteResponse } from "./types/cosmos/group/v1/tx"; -import { EventVote } from "./types/cosmos/group/v1/events"; import { QueryProposalRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupsByMemberRequest } from "./types/cosmos/group/v1/query"; -import { QueryTallyResultRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupPoliciesByGroupRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupMembersResponse } from "./types/cosmos/group/v1/tx"; +import { MsgExecResponse } from "./types/cosmos/group/v1/tx"; +import { MemberRequest } from "./types/cosmos/group/v1/types"; +import { ThresholdDecisionPolicy } from "./types/cosmos/group/v1/types"; +import { EventExec } from "./types/cosmos/group/v1/events"; +import { QueryProposalsByGroupPolicyRequest } from "./types/cosmos/group/v1/query"; import { QueryTallyResultResponse } from "./types/cosmos/group/v1/query"; -import { QueryGroupsByAdminResponse } from "./types/cosmos/group/v1/query"; -import { QueryVotesByProposalResponse } from "./types/cosmos/group/v1/query"; -import { GenesisState } from "./types/cosmos/group/v1/genesis"; -import { EventSubmitProposal } from "./types/cosmos/group/v1/events"; -import { QueryGroupPoliciesByGroupResponse } from "./types/cosmos/group/v1/query"; -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 { MsgCreateGroupWithPolicyResponse } from "./types/cosmos/group/v1/tx"; import { MsgUpdateGroupPolicyDecisionPolicyResponse } from "./types/cosmos/group/v1/tx"; -import { QueryGroupsByMemberResponse } from "./types/cosmos/group/v1/query"; -import { MsgSubmitProposalResponse } from "./types/cosmos/group/v1/tx"; -import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx"; -import { TallyResult } from "./types/cosmos/group/v1/types"; -import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPolicyInfoResponse } from "./types/cosmos/group/v1/query"; -import { QueryVoteByProposalVoterRequest } from "./types/cosmos/group/v1/query"; -import { QueryVotesByVoterRequest } from "./types/cosmos/group/v1/query"; -import { Proposal } from "./types/cosmos/group/v1/types"; -import { QueryGroupInfoRequest } from "./types/cosmos/group/v1/query"; -import { MsgExecResponse } from "./types/cosmos/group/v1/tx"; -import { MsgLeaveGroupResponse } from "./types/cosmos/group/v1/tx"; +import { EventCreateGroup } from "./types/cosmos/group/v1/events"; import { EventProposalPruned } from "./types/cosmos/group/v1/events"; -import { QueryGroupMembersRequest } from "./types/cosmos/group/v1/query"; -import { QueryVotesByVoterResponse } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx"; +import { EventVote } from "./types/cosmos/group/v1/events"; +import { EventUpdateGroupPolicy } from "./types/cosmos/group/v1/events"; import { EventLeaveGroup } from "./types/cosmos/group/v1/events"; -import { ThresholdDecisionPolicy } from "./types/cosmos/group/v1/types"; +import { MsgUpdateGroupAdminResponse } from "./types/cosmos/group/v1/tx"; +import { MsgExec } from "./types/cosmos/group/v1/tx"; +import { GroupInfo } from "./types/cosmos/group/v1/types"; +import { QueryGroupsByAdminRequest } from "./types/cosmos/group/v1/query"; +import { QueryVotesByVoterRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx"; +import { GroupMember } from "./types/cosmos/group/v1/types"; +import { QueryGroupPoliciesByAdminResponse } from "./types/cosmos/group/v1/query"; +import { EventCreateGroupPolicy } from "./types/cosmos/group/v1/events"; +import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx"; +import { GenesisState } from "./types/cosmos/group/v1/genesis"; +import { MsgCreateGroupResponse } from "./types/cosmos/group/v1/tx"; +import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx"; +import { GroupPolicyInfo } from "./types/cosmos/group/v1/types"; import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPoliciesByGroupRequest } from "./types/cosmos/group/v1/query"; import { MsgCreateGroup } from "./types/cosmos/group/v1/tx"; -import { EventUpdateGroup } from "./types/cosmos/group/v1/events"; -import { MemberRequest } from "./types/cosmos/group/v1/types"; +import { QueryTallyResultRequest } from "./types/cosmos/group/v1/query"; +import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx"; import { DecisionPolicyWindows } from "./types/cosmos/group/v1/types"; -import { Vote } from "./types/cosmos/group/v1/types"; -import { QueryGroupPoliciesByAdminRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupMembersResponse } from "./types/cosmos/group/v1/query"; +import { QueryVotesByVoterResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByMemberRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupsRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx"; +import { MsgWithdrawProposalResponse } from "./types/cosmos/group/v1/tx"; +import { QueryProposalResponse } from "./types/cosmos/group/v1/query"; +import { MsgSubmitProposalResponse } from "./types/cosmos/group/v1/tx"; +import { QueryGroupsByMemberResponse } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupPolicyMetadataResponse } from "./types/cosmos/group/v1/tx"; +import { QueryProposalsByGroupPolicyResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupInfoResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupMembersRequest } from "./types/cosmos/group/v1/query"; +import { MsgLeaveGroupResponse } from "./types/cosmos/group/v1/tx"; +import { PercentageDecisionPolicy } from "./types/cosmos/group/v1/types"; +import { QueryGroupPolicyInfoResponse } from "./types/cosmos/group/v1/query"; import { QueryGroupsResponse } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupMembersResponse } from "./types/cosmos/group/v1/tx"; import { MsgUpdateGroupPolicyAdminResponse } from "./types/cosmos/group/v1/tx"; -import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx"; import { MsgVote } from "./types/cosmos/group/v1/tx"; -import { MsgCreateGroupResponse } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupAdminResponse } from "./types/cosmos/group/v1/tx"; -import { EventCreateGroupPolicy } from "./types/cosmos/group/v1/events"; -import { GroupPolicyInfo } from "./types/cosmos/group/v1/types"; -import { QueryProposalResponse } from "./types/cosmos/group/v1/query"; -import { QueryProposalsByGroupPolicyRequest } from "./types/cosmos/group/v1/query"; -import { QueryProposalsByGroupPolicyResponse } from "./types/cosmos/group/v1/query"; -import { QueryVoteByProposalVoterResponse } from "./types/cosmos/group/v1/query"; -export { MsgExec, PercentageDecisionPolicy, GroupMember, MsgUpdateGroupMetadata, QueryGroupInfoResponse, MsgUpdateGroupMetadataResponse, EventCreateGroup, GroupInfo, QueryGroupPoliciesByAdminResponse, QueryVotesByProposalRequest, MsgUpdateGroupPolicyAdmin, MsgWithdrawProposalResponse, QueryGroupPolicyInfoRequest, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupPolicyMetadataResponse, EventUpdateGroupPolicy, EventWithdrawProposal, EventExec, Member, QueryGroupsByAdminRequest, QueryGroupsRequest, MsgVoteResponse, EventVote, QueryProposalRequest, QueryGroupsByMemberRequest, QueryTallyResultRequest, QueryTallyResultResponse, QueryGroupsByAdminResponse, QueryVotesByProposalResponse, GenesisState, EventSubmitProposal, QueryGroupPoliciesByGroupResponse, MsgCreateGroupWithPolicy, MsgCreateGroupPolicy, QueryGroupMembersResponse, MsgCreateGroupPolicyResponse, MsgCreateGroupWithPolicyResponse, MsgUpdateGroupPolicyDecisionPolicyResponse, QueryGroupsByMemberResponse, MsgSubmitProposalResponse, MsgLeaveGroup, TallyResult, MsgUpdateGroupMembers, MsgUpdateGroupAdmin, QueryGroupPolicyInfoResponse, QueryVoteByProposalVoterRequest, QueryVotesByVoterRequest, Proposal, QueryGroupInfoRequest, MsgExecResponse, MsgLeaveGroupResponse, EventProposalPruned, QueryGroupMembersRequest, QueryVotesByVoterResponse, MsgUpdateGroupPolicyDecisionPolicy, EventLeaveGroup, ThresholdDecisionPolicy, MsgSubmitProposal, QueryGroupPoliciesByGroupRequest, MsgCreateGroup, EventUpdateGroup, MemberRequest, DecisionPolicyWindows, Vote, QueryGroupPoliciesByAdminRequest, QueryGroupsResponse, MsgUpdateGroupMembersResponse, MsgUpdateGroupPolicyAdminResponse, MsgWithdrawProposal, MsgVote, MsgCreateGroupResponse, MsgUpdateGroupAdminResponse, EventCreateGroupPolicy, GroupPolicyInfo, QueryProposalResponse, QueryProposalsByGroupPolicyRequest, QueryProposalsByGroupPolicyResponse, QueryVoteByProposalVoterResponse }; +import { QueryGroupPoliciesByGroupResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByAdminResponse } from "./types/cosmos/group/v1/query"; +import { Proposal } from "./types/cosmos/group/v1/types"; +export { TallyResult, EventUpdateGroup, EventSubmitProposal, EventWithdrawProposal, QueryGroupInfoRequest, QueryGroupPolicyInfoRequest, QueryGroupPoliciesByAdminRequest, Vote, QueryVotesByProposalResponse, MsgCreateGroupWithPolicyResponse, MsgVoteResponse, QueryVoteByProposalVoterRequest, QueryVoteByProposalVoterResponse, QueryVotesByProposalRequest, MsgUpdateGroupMetadata, MsgUpdateGroupMetadataResponse, Member, QueryProposalRequest, QueryGroupPoliciesByGroupRequest, MsgUpdateGroupAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupMembersResponse, MsgExecResponse, MemberRequest, ThresholdDecisionPolicy, EventExec, QueryProposalsByGroupPolicyRequest, QueryTallyResultResponse, MsgCreateGroupPolicyResponse, MsgUpdateGroupPolicyDecisionPolicyResponse, EventCreateGroup, EventProposalPruned, MsgUpdateGroupPolicyAdmin, EventVote, EventUpdateGroupPolicy, EventLeaveGroup, MsgUpdateGroupAdminResponse, MsgExec, GroupInfo, QueryGroupsByAdminRequest, QueryVotesByVoterRequest, MsgUpdateGroupMembers, GroupMember, QueryGroupPoliciesByAdminResponse, EventCreateGroupPolicy, MsgCreateGroupWithPolicy, GenesisState, MsgCreateGroupResponse, MsgLeaveGroup, GroupPolicyInfo, MsgSubmitProposal, MsgCreateGroup, QueryTallyResultRequest, MsgWithdrawProposal, DecisionPolicyWindows, QueryGroupMembersResponse, QueryVotesByVoterResponse, QueryGroupsByMemberRequest, QueryGroupsRequest, MsgUpdateGroupPolicyMetadata, MsgWithdrawProposalResponse, QueryProposalResponse, MsgSubmitProposalResponse, QueryGroupsByMemberResponse, MsgCreateGroupPolicy, MsgUpdateGroupPolicyMetadataResponse, QueryProposalsByGroupPolicyResponse, QueryGroupInfoResponse, QueryGroupMembersRequest, MsgLeaveGroupResponse, PercentageDecisionPolicy, QueryGroupPolicyInfoResponse, QueryGroupsResponse, MsgUpdateGroupPolicyAdminResponse, MsgVote, QueryGroupPoliciesByGroupResponse, QueryGroupsByAdminResponse, Proposal }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -97,592 +97,578 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendMsgExec({ value, fee, memo }) { - if (!signer) { - 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.msgExec({ value: MsgExec.fromPartial(value) }); - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); - } - catch (e) { - throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: ' + e.message); - } - }, - async sendPercentageDecisionPolicy({ value, fee, memo }) { + async sendTallyResult({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendPercentageDecisionPolicy: 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.percentageDecisionPolicy({ value: PercentageDecisionPolicy.fromPartial(value) }); + let msg = this.tallyResult({ value: TallyResult.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendPercentageDecisionPolicy: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTallyResult: Could not broadcast Tx: ' + e.message); } }, - async sendGroupMember({ value, fee, memo }) { + async sendEventUpdateGroup({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGroupMember: 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.groupMember({ value: GroupMember.fromPartial(value) }); + let msg = this.eventUpdateGroup({ value: EventUpdateGroup.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGroupMember: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendEventUpdateGroup: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateGroupMetadata({ value, fee, memo }) { + async sendEventSubmitProposal({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupMetadata: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendEventSubmitProposal: Unable to 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.eventSubmitProposal({ value: EventSubmitProposal.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateGroupMetadata: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendEventSubmitProposal: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupInfoResponse({ value, fee, memo }) { + async sendEventWithdrawProposal({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGroupInfoResponse: 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.queryGroupInfoResponse({ value: QueryGroupInfoResponse.fromPartial(value) }); + let msg = this.eventWithdrawProposal({ value: EventWithdrawProposal.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGroupInfoResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendEventWithdrawProposal: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateGroupMetadataResponse({ value, fee, memo }) { + async sendQueryGroupInfoRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupMetadataResponse: 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.msgUpdateGroupMetadataResponse({ value: MsgUpdateGroupMetadataResponse.fromPartial(value) }); + let msg = this.queryGroupInfoRequest({ value: QueryGroupInfoRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateGroupMetadataResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupInfoRequest: Could not broadcast Tx: ' + e.message); } }, - async sendEventCreateGroup({ value, fee, memo }) { + async sendQueryGroupPolicyInfoRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendEventCreateGroup: 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.eventCreateGroup({ value: EventCreateGroup.fromPartial(value) }); + let msg = this.queryGroupPolicyInfoRequest({ value: QueryGroupPolicyInfoRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendEventCreateGroup: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupPolicyInfoRequest: Could not broadcast Tx: ' + e.message); } }, - async sendGroupInfo({ value, fee, memo }) { + async sendQueryGroupPoliciesByAdminRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGroupInfo: 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.groupInfo({ value: GroupInfo.fromPartial(value) }); + let msg = this.queryGroupPoliciesByAdminRequest({ value: QueryGroupPoliciesByAdminRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGroupInfo: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupPoliciesByAdminRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupPoliciesByAdminResponse({ value, fee, memo }) { + async sendVote({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGroupPoliciesByAdminResponse: 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.queryGroupPoliciesByAdminResponse({ value: QueryGroupPoliciesByAdminResponse.fromPartial(value) }); + let msg = this.vote({ value: Vote.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGroupPoliciesByAdminResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendVote: Could not broadcast Tx: ' + e.message); } }, - async sendQueryVotesByProposalRequest({ value, fee, memo }) { + async sendQueryVotesByProposalResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryVotesByProposalRequest: 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.queryVotesByProposalRequest({ value: QueryVotesByProposalRequest.fromPartial(value) }); + let msg = this.queryVotesByProposalResponse({ value: QueryVotesByProposalResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryVotesByProposalRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryVotesByProposalResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }) { + async sendMsgCreateGroupWithPolicyResponse({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCreateGroupWithPolicyResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgWithdrawProposalResponse({ value, fee, memo }) { + async sendMsgVoteResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgWithdrawProposalResponse: 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.msgWithdrawProposalResponse({ value: MsgWithdrawProposalResponse.fromPartial(value) }); + let msg = this.msgVoteResponse({ value: MsgVoteResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgWithdrawProposalResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgVoteResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupPolicyInfoRequest({ value, fee, memo }) { + async sendQueryVoteByProposalVoterRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGroupPolicyInfoRequest: 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.queryGroupPolicyInfoRequest({ value: QueryGroupPolicyInfoRequest.fromPartial(value) }); + let msg = this.queryVoteByProposalVoterRequest({ value: QueryVoteByProposalVoterRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGroupPolicyInfoRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryVoteByProposalVoterRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }) { + async sendQueryVoteByProposalVoterResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: 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.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(value) }); + let msg = this.queryVoteByProposalVoterResponse({ value: QueryVoteByProposalVoterResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryVoteByProposalVoterResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateGroupPolicyMetadataResponse({ value, fee, memo }) { + async sendQueryVotesByProposalRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadataResponse: 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.msgUpdateGroupPolicyMetadataResponse({ value: MsgUpdateGroupPolicyMetadataResponse.fromPartial(value) }); + let msg = this.queryVotesByProposalRequest({ value: QueryVotesByProposalRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadataResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryVotesByProposalRequest: Could not broadcast Tx: ' + e.message); } }, - async sendEventUpdateGroupPolicy({ value, fee, memo }) { + async sendMsgUpdateGroupMetadata({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendEventUpdateGroupPolicy: 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.eventUpdateGroupPolicy({ value: EventUpdateGroupPolicy.fromPartial(value) }); + let msg = this.msgUpdateGroupMetadata({ value: MsgUpdateGroupMetadata.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendEventUpdateGroupPolicy: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateGroupMetadata: Could not broadcast Tx: ' + e.message); } }, - async sendEventWithdrawProposal({ value, fee, memo }) { + async sendMsgUpdateGroupMetadataResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendEventWithdrawProposal: 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.eventWithdrawProposal({ value: EventWithdrawProposal.fromPartial(value) }); + let msg = this.msgUpdateGroupMetadataResponse({ value: MsgUpdateGroupMetadataResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendEventWithdrawProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateGroupMetadataResponse: Could not broadcast Tx: ' + e.message); } }, - async sendEventExec({ value, fee, memo }) { + async sendMember({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendEventExec: 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.eventExec({ value: EventExec.fromPartial(value) }); + let msg = this.member({ value: Member.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendEventExec: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMember: Could not broadcast Tx: ' + e.message); } }, - async sendMember({ value, fee, memo }) { + async sendQueryProposalRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMember: 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.member({ value: Member.fromPartial(value) }); + let msg = this.queryProposalRequest({ value: QueryProposalRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMember: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryProposalRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupsByAdminRequest({ value, fee, memo }) { + async sendQueryGroupPoliciesByGroupRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGroupsByAdminRequest: 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.queryGroupsByAdminRequest({ value: QueryGroupsByAdminRequest.fromPartial(value) }); + let msg = this.queryGroupPoliciesByGroupRequest({ value: QueryGroupPoliciesByGroupRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGroupsByAdminRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupPoliciesByGroupRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupsRequest({ value, fee, memo }) { + async sendMsgUpdateGroupAdmin({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGroupsRequest: 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.queryGroupsRequest({ value: QueryGroupsRequest.fromPartial(value) }); + let msg = this.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGroupsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: ' + e.message); } }, - async sendMsgVoteResponse({ value, fee, memo }) { + async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgVoteResponse: 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.msgVoteResponse({ value: MsgVoteResponse.fromPartial(value) }); + let msg = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgVoteResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: ' + e.message); } }, - async sendEventVote({ value, fee, memo }) { + async sendMsgUpdateGroupMembersResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendEventVote: 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.eventVote({ value: EventVote.fromPartial(value) }); + let msg = this.msgUpdateGroupMembersResponse({ value: MsgUpdateGroupMembersResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendEventVote: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateGroupMembersResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryProposalRequest({ value, fee, memo }) { + async sendMsgExecResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryProposalRequest: 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.queryProposalRequest({ value: QueryProposalRequest.fromPartial(value) }); + let msg = this.msgExecResponse({ value: MsgExecResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryProposalRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgExecResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupsByMemberRequest({ value, fee, memo }) { + async sendMemberRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGroupsByMemberRequest: 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.queryGroupsByMemberRequest({ value: QueryGroupsByMemberRequest.fromPartial(value) }); + let msg = this.memberRequest({ value: MemberRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGroupsByMemberRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMemberRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryTallyResultRequest({ value, fee, memo }) { + async sendThresholdDecisionPolicy({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultRequest: 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.queryTallyResultRequest({ value: QueryTallyResultRequest.fromPartial(value) }); + let msg = this.thresholdDecisionPolicy({ value: ThresholdDecisionPolicy.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTallyResultRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendThresholdDecisionPolicy: Could not broadcast Tx: ' + e.message); } }, - async sendQueryTallyResultResponse({ value, fee, memo }) { + async sendEventExec({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTallyResultResponse: 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.queryTallyResultResponse({ value: QueryTallyResultResponse.fromPartial(value) }); + let msg = this.eventExec({ value: EventExec.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTallyResultResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendEventExec: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupsByAdminResponse({ value, fee, memo }) { + async sendQueryProposalsByGroupPolicyRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGroupsByAdminResponse: 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.queryGroupsByAdminResponse({ value: QueryGroupsByAdminResponse.fromPartial(value) }); + let msg = this.queryProposalsByGroupPolicyRequest({ value: QueryProposalsByGroupPolicyRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGroupsByAdminResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryProposalsByGroupPolicyRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryVotesByProposalResponse({ value, fee, memo }) { + async sendQueryTallyResultResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryVotesByProposalResponse: 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.queryVotesByProposalResponse({ value: QueryVotesByProposalResponse.fromPartial(value) }); + let msg = this.queryTallyResultResponse({ value: QueryTallyResultResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryVotesByProposalResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTallyResultResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendMsgCreateGroupPolicyResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.fromPartial(value) }); + let msg = this.msgCreateGroupPolicyResponse({ value: MsgCreateGroupPolicyResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCreateGroupPolicyResponse: Could not broadcast Tx: ' + e.message); } }, - async sendEventSubmitProposal({ value, fee, memo }) { + async sendMsgUpdateGroupPolicyDecisionPolicyResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendEventSubmitProposal: 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.eventSubmitProposal({ value: EventSubmitProposal.fromPartial(value) }); + let msg = this.msgUpdateGroupPolicyDecisionPolicyResponse({ value: MsgUpdateGroupPolicyDecisionPolicyResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendEventSubmitProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicyResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupPoliciesByGroupResponse({ value, fee, memo }) { + async sendEventCreateGroup({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendQueryGroupPoliciesByGroupResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendEventCreateGroup: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCreateGroupWithPolicy({ value, fee, memo }) { + async sendEventProposalPruned({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroupWithPolicy: 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.msgCreateGroupWithPolicy({ value: MsgCreateGroupWithPolicy.fromPartial(value) }); + let msg = this.eventProposalPruned({ value: EventProposalPruned.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendEventProposalPruned: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCreateGroupPolicy({ value, fee, memo }) { + async sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroupPolicy: 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.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(value) }); + let msg = this.msgUpdateGroupPolicyAdmin({ value: MsgUpdateGroupPolicyAdmin.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupMembersResponse({ value, fee, memo }) { + async sendEventVote({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGroupMembersResponse: 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.queryGroupMembersResponse({ value: QueryGroupMembersResponse.fromPartial(value) }); + let msg = this.eventVote({ value: EventVote.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGroupMembersResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendEventVote: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCreateGroupPolicyResponse({ value, fee, memo }) { + async sendEventUpdateGroupPolicy({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroupPolicyResponse: 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.msgCreateGroupPolicyResponse({ value: MsgCreateGroupPolicyResponse.fromPartial(value) }); + let msg = this.eventUpdateGroupPolicy({ value: EventUpdateGroupPolicy.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCreateGroupPolicyResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendEventUpdateGroupPolicy: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCreateGroupWithPolicyResponse({ value, fee, memo }) { + async sendEventLeaveGroup({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroupWithPolicyResponse: 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.msgCreateGroupWithPolicyResponse({ value: MsgCreateGroupWithPolicyResponse.fromPartial(value) }); + let msg = this.eventLeaveGroup({ value: EventLeaveGroup.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCreateGroupWithPolicyResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendEventLeaveGroup: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateGroupPolicyDecisionPolicyResponse({ value, fee, memo }) { + async sendMsgUpdateGroupAdminResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicyResponse: 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.msgUpdateGroupPolicyDecisionPolicyResponse({ value: MsgUpdateGroupPolicyDecisionPolicyResponse.fromPartial(value) }); + let msg = this.msgUpdateGroupAdminResponse({ value: MsgUpdateGroupAdminResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicyResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateGroupAdminResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupsByMemberResponse({ value, fee, memo }) { + async sendMsgExec({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGroupsByMemberResponse: 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.queryGroupsByMemberResponse({ value: QueryGroupsByMemberResponse.fromPartial(value) }); + let msg = this.msgExec({ value: MsgExec.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGroupsByMemberResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSubmitProposalResponse({ value, fee, memo }) { + async sendGroupInfo({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposalResponse: 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.msgSubmitProposalResponse({ value: MsgSubmitProposalResponse.fromPartial(value) }); + let msg = this.groupInfo({ value: GroupInfo.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSubmitProposalResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGroupInfo: Could not broadcast Tx: ' + e.message); } }, - async sendMsgLeaveGroup({ value, fee, memo }) { + async sendQueryGroupsByAdminRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgLeaveGroup: 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.msgLeaveGroup({ value: MsgLeaveGroup.fromPartial(value) }); + let msg = this.queryGroupsByAdminRequest({ value: QueryGroupsByAdminRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgLeaveGroup: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupsByAdminRequest: Could not broadcast Tx: ' + e.message); } }, - async sendTallyResult({ value, fee, memo }) { + async sendQueryVotesByVoterRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTallyResult: 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.tallyResult({ value: TallyResult.fromPartial(value) }); + let msg = this.queryVotesByVoterRequest({ value: QueryVotesByVoterRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTallyResult: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryVotesByVoterRequest: Could not broadcast Tx: ' + e.message); } }, async sendMsgUpdateGroupMembers({ value, fee, memo }) { @@ -699,830 +685,836 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateGroupAdmin({ value, fee, memo }) { + async sendGroupMember({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupAdmin: 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.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) }); + let msg = this.groupMember({ value: GroupMember.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGroupMember: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupPolicyInfoResponse({ value, fee, memo }) { + async sendQueryGroupPoliciesByAdminResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGroupPolicyInfoResponse: 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.queryGroupPolicyInfoResponse({ value: QueryGroupPolicyInfoResponse.fromPartial(value) }); + let msg = this.queryGroupPoliciesByAdminResponse({ value: QueryGroupPoliciesByAdminResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGroupPolicyInfoResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupPoliciesByAdminResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryVoteByProposalVoterRequest({ value, fee, memo }) { + async sendEventCreateGroupPolicy({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryVoteByProposalVoterRequest: 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.queryVoteByProposalVoterRequest({ value: QueryVoteByProposalVoterRequest.fromPartial(value) }); + let msg = this.eventCreateGroupPolicy({ value: EventCreateGroupPolicy.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryVoteByProposalVoterRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendEventCreateGroupPolicy: Could not broadcast Tx: ' + e.message); } }, - async sendQueryVotesByVoterRequest({ value, fee, memo }) { + async sendMsgCreateGroupWithPolicy({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryVotesByVoterRequest: 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.queryVotesByVoterRequest({ value: QueryVotesByVoterRequest.fromPartial(value) }); + let msg = this.msgCreateGroupWithPolicy({ value: MsgCreateGroupWithPolicy.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryVotesByVoterRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: ' + e.message); } }, - async sendProposal({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendProposal: 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.proposal({ value: Proposal.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupInfoRequest({ value, fee, memo }) { + async sendMsgCreateGroupResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGroupInfoRequest: 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.queryGroupInfoRequest({ value: QueryGroupInfoRequest.fromPartial(value) }); + let msg = this.msgCreateGroupResponse({ value: MsgCreateGroupResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGroupInfoRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCreateGroupResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgExecResponse({ value, fee, memo }) { + async sendMsgLeaveGroup({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgExecResponse: 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.msgExecResponse({ value: MsgExecResponse.fromPartial(value) }); + let msg = this.msgLeaveGroup({ value: MsgLeaveGroup.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgExecResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgLeaveGroup: Could not broadcast Tx: ' + e.message); } }, - async sendMsgLeaveGroupResponse({ value, fee, memo }) { + async sendGroupPolicyInfo({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgLeaveGroupResponse: 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.msgLeaveGroupResponse({ value: MsgLeaveGroupResponse.fromPartial(value) }); + let msg = this.groupPolicyInfo({ value: GroupPolicyInfo.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgLeaveGroupResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGroupPolicyInfo: Could not broadcast Tx: ' + e.message); } }, - async sendEventProposalPruned({ value, fee, memo }) { + async sendMsgSubmitProposal({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendEventProposalPruned: 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.eventProposalPruned({ value: EventProposalPruned.fromPartial(value) }); + let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendEventProposalPruned: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupMembersRequest({ value, fee, memo }) { + async sendMsgCreateGroup({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGroupMembersRequest: 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.queryGroupMembersRequest({ value: QueryGroupMembersRequest.fromPartial(value) }); + let msg = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGroupMembersRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: ' + e.message); } }, - async sendQueryVotesByVoterResponse({ value, fee, memo }) { + async sendQueryTallyResultRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryVotesByVoterResponse: 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.queryVotesByVoterResponse({ value: QueryVotesByVoterResponse.fromPartial(value) }); + let msg = this.queryTallyResultRequest({ value: QueryTallyResultRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryVotesByVoterResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTallyResultRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }) { + async sendMsgWithdrawProposal({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: 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.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) }); + let msg = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: ' + e.message); } }, - async sendEventLeaveGroup({ value, fee, memo }) { + async sendDecisionPolicyWindows({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendEventLeaveGroup: 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.eventLeaveGroup({ value: EventLeaveGroup.fromPartial(value) }); + let msg = this.decisionPolicyWindows({ value: DecisionPolicyWindows.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendEventLeaveGroup: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDecisionPolicyWindows: Could not broadcast Tx: ' + e.message); } }, - async sendThresholdDecisionPolicy({ value, fee, memo }) { + async sendQueryGroupMembersResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendThresholdDecisionPolicy: 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.thresholdDecisionPolicy({ value: ThresholdDecisionPolicy.fromPartial(value) }); + let msg = this.queryGroupMembersResponse({ value: QueryGroupMembersResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendThresholdDecisionPolicy: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupMembersResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSubmitProposal({ value, fee, memo }) { + async sendQueryVotesByVoterResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSubmitProposal: 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.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) }); + let msg = this.queryVotesByVoterResponse({ value: QueryVotesByVoterResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryVotesByVoterResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupPoliciesByGroupRequest({ value, fee, memo }) { + async sendQueryGroupsByMemberRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGroupPoliciesByGroupRequest: 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.queryGroupPoliciesByGroupRequest({ value: QueryGroupPoliciesByGroupRequest.fromPartial(value) }); + let msg = this.queryGroupsByMemberRequest({ value: QueryGroupsByMemberRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGroupPoliciesByGroupRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupsByMemberRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCreateGroup({ value, fee, memo }) { + async sendQueryGroupsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroup: 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.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) }); + let msg = this.queryGroupsRequest({ value: QueryGroupsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendEventUpdateGroup({ value, fee, memo }) { + async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendEventUpdateGroup: 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.eventUpdateGroup({ value: EventUpdateGroup.fromPartial(value) }); + let msg = this.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendEventUpdateGroup: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: ' + e.message); } }, - async sendMemberRequest({ value, fee, memo }) { + async sendMsgWithdrawProposalResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMemberRequest: 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.memberRequest({ value: MemberRequest.fromPartial(value) }); + let msg = this.msgWithdrawProposalResponse({ value: MsgWithdrawProposalResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMemberRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgWithdrawProposalResponse: Could not broadcast Tx: ' + e.message); } }, - async sendDecisionPolicyWindows({ value, fee, memo }) { + async sendQueryProposalResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDecisionPolicyWindows: 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.decisionPolicyWindows({ value: DecisionPolicyWindows.fromPartial(value) }); + let msg = this.queryProposalResponse({ value: QueryProposalResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDecisionPolicyWindows: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryProposalResponse: Could not broadcast Tx: ' + e.message); } }, - async sendVote({ value, fee, memo }) { + async sendMsgSubmitProposalResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendVote: 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.vote({ value: Vote.fromPartial(value) }); + let msg = this.msgSubmitProposalResponse({ value: MsgSubmitProposalResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendVote: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSubmitProposalResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupPoliciesByAdminRequest({ value, fee, memo }) { + async sendQueryGroupsByMemberResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGroupPoliciesByAdminRequest: 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.queryGroupPoliciesByAdminRequest({ value: QueryGroupPoliciesByAdminRequest.fromPartial(value) }); + let msg = this.queryGroupsByMemberResponse({ value: QueryGroupsByMemberResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGroupPoliciesByAdminRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupsByMemberResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryGroupsResponse({ value, fee, memo }) { + async sendMsgCreateGroupPolicy({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryGroupsResponse: 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.queryGroupsResponse({ value: QueryGroupsResponse.fromPartial(value) }); + let msg = this.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryGroupsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateGroupMembersResponse({ value, fee, memo }) { + async sendMsgUpdateGroupPolicyMetadataResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupMembersResponse: 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.msgUpdateGroupMembersResponse({ value: MsgUpdateGroupMembersResponse.fromPartial(value) }); + let msg = this.msgUpdateGroupPolicyMetadataResponse({ value: MsgUpdateGroupPolicyMetadataResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateGroupMembersResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadataResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateGroupPolicyAdminResponse({ value, fee, memo }) { + async sendQueryProposalsByGroupPolicyResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyAdminResponse: 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.msgUpdateGroupPolicyAdminResponse({ value: MsgUpdateGroupPolicyAdminResponse.fromPartial(value) }); + let msg = this.queryProposalsByGroupPolicyResponse({ value: QueryProposalsByGroupPolicyResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateGroupPolicyAdminResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryProposalsByGroupPolicyResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgWithdrawProposal({ value, fee, memo }) { + async sendQueryGroupInfoResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgWithdrawProposal: 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.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) }); + let msg = this.queryGroupInfoResponse({ value: QueryGroupInfoResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupInfoResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgVote({ value, fee, memo }) { + async sendQueryGroupMembersRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgVote: 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.msgVote({ value: MsgVote.fromPartial(value) }); + let msg = this.queryGroupMembersRequest({ value: QueryGroupMembersRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupMembersRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCreateGroupResponse({ value, fee, memo }) { + async sendMsgLeaveGroupResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCreateGroupResponse: 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.msgCreateGroupResponse({ value: MsgCreateGroupResponse.fromPartial(value) }); + let msg = this.msgLeaveGroupResponse({ value: MsgLeaveGroupResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCreateGroupResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgLeaveGroupResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateGroupAdminResponse({ value, fee, memo }) { + async sendPercentageDecisionPolicy({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateGroupAdminResponse: 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.msgUpdateGroupAdminResponse({ value: MsgUpdateGroupAdminResponse.fromPartial(value) }); + let msg = this.percentageDecisionPolicy({ value: PercentageDecisionPolicy.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateGroupAdminResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendPercentageDecisionPolicy: Could not broadcast Tx: ' + e.message); } }, - async sendEventCreateGroupPolicy({ value, fee, memo }) { + async sendQueryGroupPolicyInfoResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendEventCreateGroupPolicy: 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.eventCreateGroupPolicy({ value: EventCreateGroupPolicy.fromPartial(value) }); + let msg = this.queryGroupPolicyInfoResponse({ value: QueryGroupPolicyInfoResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendEventCreateGroupPolicy: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupPolicyInfoResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGroupPolicyInfo({ value, fee, memo }) { + async sendQueryGroupsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGroupPolicyInfo: 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.groupPolicyInfo({ value: GroupPolicyInfo.fromPartial(value) }); + let msg = this.queryGroupsResponse({ value: QueryGroupsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGroupPolicyInfo: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryProposalResponse({ value, fee, memo }) { + async sendMsgUpdateGroupPolicyAdminResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryProposalResponse: 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.queryProposalResponse({ value: QueryProposalResponse.fromPartial(value) }); + let msg = this.msgUpdateGroupPolicyAdminResponse({ value: MsgUpdateGroupPolicyAdminResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryProposalResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateGroupPolicyAdminResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryProposalsByGroupPolicyRequest({ value, fee, memo }) { + async sendMsgVote({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryProposalsByGroupPolicyRequest: 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.queryProposalsByGroupPolicyRequest({ value: QueryProposalsByGroupPolicyRequest.fromPartial(value) }); + let msg = this.msgVote({ value: MsgVote.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryProposalsByGroupPolicyRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message); } }, - async sendQueryProposalsByGroupPolicyResponse({ value, fee, memo }) { + async sendQueryGroupPoliciesByGroupResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryProposalsByGroupPolicyResponse: 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.queryProposalsByGroupPolicyResponse({ value: QueryProposalsByGroupPolicyResponse.fromPartial(value) }); + let msg = this.queryGroupPoliciesByGroupResponse({ value: QueryGroupPoliciesByGroupResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryProposalsByGroupPolicyResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupPoliciesByGroupResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryVoteByProposalVoterResponse({ value, fee, memo }) { + async sendQueryGroupsByAdminResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryVoteByProposalVoterResponse: 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.queryVoteByProposalVoterResponse({ value: QueryVoteByProposalVoterResponse.fromPartial(value) }); + let msg = this.queryGroupsByAdminResponse({ value: QueryGroupsByAdminResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryVoteByProposalVoterResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryGroupsByAdminResponse: Could not broadcast Tx: ' + e.message); } }, - msgExec({ value }) { + async sendProposal({ value, fee, memo }) { + if (!signer) { + throw new Error('TxClient:sendProposal: Unable to sign Tx. Signer is not present.'); + } try { - return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial(value) }; + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); + let msg = this.proposal({ value: Proposal.fromPartial(value) }); + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:MsgExec: Could not create message: ' + e.message); + throw new Error('TxClient:sendProposal: Could not broadcast Tx: ' + e.message); } }, - percentageDecisionPolicy({ value }) { + tallyResult({ value }) { try { - return { typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", value: PercentageDecisionPolicy.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.TallyResult", value: TallyResult.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:PercentageDecisionPolicy: Could not create message: ' + e.message); + throw new Error('TxClient:TallyResult: Could not create message: ' + e.message); } }, - groupMember({ value }) { + eventUpdateGroup({ value }) { try { - return { typeUrl: "/cosmos.group.v1.GroupMember", value: GroupMember.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.EventUpdateGroup", value: EventUpdateGroup.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GroupMember: Could not create message: ' + e.message); + throw new Error('TxClient:EventUpdateGroup: Could not create message: ' + e.message); } }, - msgUpdateGroupMetadata({ value }) { + eventSubmitProposal({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", value: MsgUpdateGroupMetadata.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.EventSubmitProposal", value: EventSubmitProposal.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message); + throw new Error('TxClient:EventSubmitProposal: Could not create message: ' + e.message); } }, - queryGroupInfoResponse({ value }) { + eventWithdrawProposal({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", value: QueryGroupInfoResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.EventWithdrawProposal", value: EventWithdrawProposal.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupInfoResponse: Could not create message: ' + e.message); + throw new Error('TxClient:EventWithdrawProposal: Could not create message: ' + e.message); } }, - msgUpdateGroupMetadataResponse({ value }) { + queryGroupInfoRequest({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", value: MsgUpdateGroupMetadataResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", value: QueryGroupInfoRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateGroupMetadataResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupInfoRequest: Could not create message: ' + e.message); } }, - eventCreateGroup({ value }) { + queryGroupPolicyInfoRequest({ value }) { try { - return { typeUrl: "/cosmos.group.v1.EventCreateGroup", value: EventCreateGroup.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", value: QueryGroupPolicyInfoRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:EventCreateGroup: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupPolicyInfoRequest: Could not create message: ' + e.message); } }, - groupInfo({ value }) { + queryGroupPoliciesByAdminRequest({ value }) { try { - return { typeUrl: "/cosmos.group.v1.GroupInfo", value: GroupInfo.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", value: QueryGroupPoliciesByAdminRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GroupInfo: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupPoliciesByAdminRequest: Could not create message: ' + e.message); } }, - queryGroupPoliciesByAdminResponse({ value }) { + vote({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", value: QueryGroupPoliciesByAdminResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.Vote", value: Vote.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupPoliciesByAdminResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Vote: Could not create message: ' + e.message); } }, - queryVotesByProposalRequest({ value }) { + queryVotesByProposalResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", value: QueryVotesByProposalRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", value: QueryVotesByProposalResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryVotesByProposalRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryVotesByProposalResponse: Could not create message: ' + e.message); } }, - msgUpdateGroupPolicyAdmin({ value }) { + msgCreateGroupWithPolicyResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", value: MsgUpdateGroupPolicyAdmin.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", value: MsgCreateGroupWithPolicyResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateGroupPolicyAdmin: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreateGroupWithPolicyResponse: Could not create message: ' + e.message); } }, - msgWithdrawProposalResponse({ value }) { + msgVoteResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", value: MsgWithdrawProposalResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgVoteResponse", value: MsgVoteResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgWithdrawProposalResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message); } }, - queryGroupPolicyInfoRequest({ value }) { + queryVoteByProposalVoterRequest({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoRequest", value: QueryGroupPolicyInfoRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", value: QueryVoteByProposalVoterRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupPolicyInfoRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryVoteByProposalVoterRequest: Could not create message: ' + e.message); } }, - msgUpdateGroupPolicyMetadata({ value }) { + queryVoteByProposalVoterResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", value: QueryVoteByProposalVoterResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message); + throw new Error('TxClient:QueryVoteByProposalVoterResponse: Could not create message: ' + e.message); } }, - msgUpdateGroupPolicyMetadataResponse({ value }) { + queryVotesByProposalRequest({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", value: MsgUpdateGroupPolicyMetadataResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryVotesByProposalRequest", value: QueryVotesByProposalRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateGroupPolicyMetadataResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryVotesByProposalRequest: Could not create message: ' + e.message); } }, - eventUpdateGroupPolicy({ value }) { + msgUpdateGroupMetadata({ value }) { try { - return { typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", value: EventUpdateGroupPolicy.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", value: MsgUpdateGroupMetadata.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:EventUpdateGroupPolicy: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message); } }, - eventWithdrawProposal({ value }) { + msgUpdateGroupMetadataResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.EventWithdrawProposal", value: EventWithdrawProposal.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadataResponse", value: MsgUpdateGroupMetadataResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:EventWithdrawProposal: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateGroupMetadataResponse: Could not create message: ' + e.message); } }, - eventExec({ value }) { + member({ value }) { try { - return { typeUrl: "/cosmos.group.v1.EventExec", value: EventExec.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.Member", value: Member.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:EventExec: Could not create message: ' + e.message); + throw new Error('TxClient:Member: Could not create message: ' + e.message); } }, - member({ value }) { + queryProposalRequest({ value }) { try { - return { typeUrl: "/cosmos.group.v1.Member", value: Member.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryProposalRequest", value: QueryProposalRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Member: Could not create message: ' + e.message); + throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message); } }, - queryGroupsByAdminRequest({ value }) { + queryGroupPoliciesByGroupRequest({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", value: QueryGroupsByAdminRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", value: QueryGroupPoliciesByGroupRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupsByAdminRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupPoliciesByGroupRequest: Could not create message: ' + e.message); } }, - queryGroupsRequest({ value }) { + msgUpdateGroupAdmin({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsRequest", value: QueryGroupsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", value: MsgUpdateGroupAdmin.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message); } }, - msgVoteResponse({ value }) { + msgUpdateGroupPolicyDecisionPolicy({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgVoteResponse", value: MsgVoteResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgVoteResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message); } }, - eventVote({ value }) { + msgUpdateGroupMembersResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.EventVote", value: EventVote.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", value: MsgUpdateGroupMembersResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:EventVote: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateGroupMembersResponse: Could not create message: ' + e.message); } }, - queryProposalRequest({ value }) { + msgExecResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryProposalRequest", value: QueryProposalRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgExecResponse", value: MsgExecResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryProposalRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgExecResponse: Could not create message: ' + e.message); } }, - queryGroupsByMemberRequest({ value }) { + memberRequest({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", value: QueryGroupsByMemberRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MemberRequest", value: MemberRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupsByMemberRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MemberRequest: Could not create message: ' + e.message); } }, - queryTallyResultRequest({ value }) { + thresholdDecisionPolicy({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", value: ThresholdDecisionPolicy.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message); + throw new Error('TxClient:ThresholdDecisionPolicy: Could not create message: ' + e.message); } }, - queryTallyResultResponse({ value }) { + eventExec({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.EventExec", value: EventExec.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message); + throw new Error('TxClient:EventExec: Could not create message: ' + e.message); } }, - queryGroupsByAdminResponse({ value }) { + queryProposalsByGroupPolicyRequest({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", value: QueryGroupsByAdminResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", value: QueryProposalsByGroupPolicyRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupsByAdminResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryProposalsByGroupPolicyRequest: Could not create message: ' + e.message); } }, - queryVotesByProposalResponse({ value }) { + queryTallyResultResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryVotesByProposalResponse", value: QueryVotesByProposalResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryTallyResultResponse", value: QueryTallyResultResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryVotesByProposalResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTallyResultResponse: Could not create message: ' + e.message); } }, - genesisState({ value }) { + msgCreateGroupPolicyResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", value: MsgCreateGroupPolicyResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreateGroupPolicyResponse: Could not create message: ' + e.message); } }, - eventSubmitProposal({ value }) { + msgUpdateGroupPolicyDecisionPolicyResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.EventSubmitProposal", value: EventSubmitProposal.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", value: MsgUpdateGroupPolicyDecisionPolicyResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:EventSubmitProposal: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicyResponse: Could not create message: ' + e.message); } }, - queryGroupPoliciesByGroupResponse({ value }) { + eventCreateGroup({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", value: QueryGroupPoliciesByGroupResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.EventCreateGroup", value: EventCreateGroup.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupPoliciesByGroupResponse: Could not create message: ' + e.message); + throw new Error('TxClient:EventCreateGroup: Could not create message: ' + e.message); } }, - msgCreateGroupWithPolicy({ value }) { + eventProposalPruned({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", value: MsgCreateGroupWithPolicy.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.EventProposalPruned", value: EventProposalPruned.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message); + throw new Error('TxClient:EventProposalPruned: Could not create message: ' + e.message); } }, - msgCreateGroupPolicy({ value }) { + msgUpdateGroupPolicyAdmin({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", value: MsgUpdateGroupPolicyAdmin.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateGroupPolicyAdmin: Could not create message: ' + e.message); } }, - queryGroupMembersResponse({ value }) { + eventVote({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", value: QueryGroupMembersResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.EventVote", value: EventVote.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupMembersResponse: Could not create message: ' + e.message); + throw new Error('TxClient:EventVote: Could not create message: ' + e.message); } }, - msgCreateGroupPolicyResponse({ value }) { + eventUpdateGroupPolicy({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicyResponse", value: MsgCreateGroupPolicyResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy", value: EventUpdateGroupPolicy.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCreateGroupPolicyResponse: Could not create message: ' + e.message); + throw new Error('TxClient:EventUpdateGroupPolicy: Could not create message: ' + e.message); } }, - msgCreateGroupWithPolicyResponse({ value }) { + eventLeaveGroup({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", value: MsgCreateGroupWithPolicyResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.EventLeaveGroup", value: EventLeaveGroup.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCreateGroupWithPolicyResponse: Could not create message: ' + e.message); + throw new Error('TxClient:EventLeaveGroup: Could not create message: ' + e.message); } }, - msgUpdateGroupPolicyDecisionPolicyResponse({ value }) { + msgUpdateGroupAdminResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", value: MsgUpdateGroupPolicyDecisionPolicyResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", value: MsgUpdateGroupAdminResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicyResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateGroupAdminResponse: Could not create message: ' + e.message); } }, - queryGroupsByMemberResponse({ value }) { + msgExec({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", value: QueryGroupsByMemberResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupsByMemberResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgExec: Could not create message: ' + e.message); } }, - msgSubmitProposalResponse({ value }) { + groupInfo({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.GroupInfo", value: GroupInfo.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message); + throw new Error('TxClient:GroupInfo: Could not create message: ' + e.message); } }, - msgLeaveGroup({ value }) { + queryGroupsByAdminRequest({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgLeaveGroup", value: MsgLeaveGroup.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminRequest", value: QueryGroupsByAdminRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupsByAdminRequest: Could not create message: ' + e.message); } }, - tallyResult({ value }) { + queryVotesByVoterRequest({ value }) { try { - return { typeUrl: "/cosmos.group.v1.TallyResult", value: TallyResult.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", value: QueryVotesByVoterRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TallyResult: Could not create message: ' + e.message); + throw new Error('TxClient:QueryVotesByVoterRequest: Could not create message: ' + e.message); } }, msgUpdateGroupMembers({ value }) { @@ -1533,284 +1525,292 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message); } }, - msgUpdateGroupAdmin({ value }) { + groupMember({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", value: MsgUpdateGroupAdmin.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.GroupMember", value: GroupMember.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message); + throw new Error('TxClient:GroupMember: Could not create message: ' + e.message); } }, - queryGroupPolicyInfoResponse({ value }) { + queryGroupPoliciesByAdminResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", value: QueryGroupPolicyInfoResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", value: QueryGroupPoliciesByAdminResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupPolicyInfoResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupPoliciesByAdminResponse: Could not create message: ' + e.message); } }, - queryVoteByProposalVoterRequest({ value }) { + eventCreateGroupPolicy({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterRequest", value: QueryVoteByProposalVoterRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", value: EventCreateGroupPolicy.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryVoteByProposalVoterRequest: Could not create message: ' + e.message); + throw new Error('TxClient:EventCreateGroupPolicy: Could not create message: ' + e.message); } }, - queryVotesByVoterRequest({ value }) { + msgCreateGroupWithPolicy({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryVotesByVoterRequest", value: QueryVotesByVoterRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", value: MsgCreateGroupWithPolicy.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryVotesByVoterRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message); } }, - proposal({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/cosmos.group.v1.Proposal", value: Proposal.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Proposal: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - queryGroupInfoRequest({ value }) { + msgCreateGroupResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupInfoRequest", value: QueryGroupInfoRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", value: MsgCreateGroupResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupInfoRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreateGroupResponse: Could not create message: ' + e.message); } }, - msgExecResponse({ value }) { + msgLeaveGroup({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgExecResponse", value: MsgExecResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgLeaveGroup", value: MsgLeaveGroup.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgExecResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message); } }, - msgLeaveGroupResponse({ value }) { + groupPolicyInfo({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", value: MsgLeaveGroupResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.GroupPolicyInfo", value: GroupPolicyInfo.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgLeaveGroupResponse: Could not create message: ' + e.message); + throw new Error('TxClient:GroupPolicyInfo: Could not create message: ' + e.message); } }, - eventProposalPruned({ value }) { + msgSubmitProposal({ value }) { try { - return { typeUrl: "/cosmos.group.v1.EventProposalPruned", value: EventProposalPruned.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:EventProposalPruned: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message); } }, - queryGroupMembersRequest({ value }) { + msgCreateGroup({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", value: QueryGroupMembersRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupMembersRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message); } }, - queryVotesByVoterResponse({ value }) { + queryTallyResultRequest({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", value: QueryVotesByVoterResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryTallyResultRequest", value: QueryTallyResultRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryVotesByVoterResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTallyResultRequest: Could not create message: ' + e.message); } }, - msgUpdateGroupPolicyDecisionPolicy({ value }) { + msgWithdrawProposal({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message); + throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message); } }, - eventLeaveGroup({ value }) { + decisionPolicyWindows({ value }) { try { - return { typeUrl: "/cosmos.group.v1.EventLeaveGroup", value: EventLeaveGroup.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", value: DecisionPolicyWindows.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:EventLeaveGroup: Could not create message: ' + e.message); + throw new Error('TxClient:DecisionPolicyWindows: Could not create message: ' + e.message); } }, - thresholdDecisionPolicy({ value }) { + queryGroupMembersResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.ThresholdDecisionPolicy", value: ThresholdDecisionPolicy.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupMembersResponse", value: QueryGroupMembersResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ThresholdDecisionPolicy: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupMembersResponse: Could not create message: ' + e.message); } }, - msgSubmitProposal({ value }) { + queryVotesByVoterResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryVotesByVoterResponse", value: QueryVotesByVoterResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message); + throw new Error('TxClient:QueryVotesByVoterResponse: Could not create message: ' + e.message); } }, - queryGroupPoliciesByGroupRequest({ value }) { + queryGroupsByMemberRequest({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", value: QueryGroupPoliciesByGroupRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberRequest", value: QueryGroupsByMemberRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupPoliciesByGroupRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupsByMemberRequest: Could not create message: ' + e.message); } }, - msgCreateGroup({ value }) { + queryGroupsRequest({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupsRequest", value: QueryGroupsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupsRequest: Could not create message: ' + e.message); } }, - eventUpdateGroup({ value }) { + msgUpdateGroupPolicyMetadata({ value }) { try { - return { typeUrl: "/cosmos.group.v1.EventUpdateGroup", value: EventUpdateGroup.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:EventUpdateGroup: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message); } }, - memberRequest({ value }) { + msgWithdrawProposalResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MemberRequest", value: MemberRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposalResponse", value: MsgWithdrawProposalResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MemberRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgWithdrawProposalResponse: Could not create message: ' + e.message); } }, - decisionPolicyWindows({ value }) { + queryProposalResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.DecisionPolicyWindows", value: DecisionPolicyWindows.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryProposalResponse", value: QueryProposalResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DecisionPolicyWindows: Could not create message: ' + e.message); + throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message); } }, - vote({ value }) { + msgSubmitProposalResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.Vote", value: Vote.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgSubmitProposalResponse", value: MsgSubmitProposalResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Vote: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSubmitProposalResponse: Could not create message: ' + e.message); } }, - queryGroupPoliciesByAdminRequest({ value }) { + queryGroupsByMemberResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", value: QueryGroupPoliciesByAdminRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupsByMemberResponse", value: QueryGroupsByMemberResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupPoliciesByAdminRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupsByMemberResponse: Could not create message: ' + e.message); } }, - queryGroupsResponse({ value }) { + msgCreateGroupPolicy({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryGroupsResponse", value: QueryGroupsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryGroupsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message); } }, - msgUpdateGroupMembersResponse({ value }) { + msgUpdateGroupPolicyMetadataResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembersResponse", value: MsgUpdateGroupMembersResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", value: MsgUpdateGroupPolicyMetadataResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateGroupMembersResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateGroupPolicyMetadataResponse: Could not create message: ' + e.message); } }, - msgUpdateGroupPolicyAdminResponse({ value }) { + queryProposalsByGroupPolicyResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", value: MsgUpdateGroupPolicyAdminResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", value: QueryProposalsByGroupPolicyResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateGroupPolicyAdminResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryProposalsByGroupPolicyResponse: Could not create message: ' + e.message); } }, - msgWithdrawProposal({ value }) { + queryGroupInfoResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupInfoResponse", value: QueryGroupInfoResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupInfoResponse: Could not create message: ' + e.message); } }, - msgVote({ value }) { + queryGroupMembersRequest({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgVote", value: MsgVote.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupMembersRequest", value: QueryGroupMembersRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgVote: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupMembersRequest: Could not create message: ' + e.message); } }, - msgCreateGroupResponse({ value }) { + msgLeaveGroupResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgCreateGroupResponse", value: MsgCreateGroupResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgLeaveGroupResponse", value: MsgLeaveGroupResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCreateGroupResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgLeaveGroupResponse: Could not create message: ' + e.message); } }, - msgUpdateGroupAdminResponse({ value }) { + percentageDecisionPolicy({ value }) { try { - return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdminResponse", value: MsgUpdateGroupAdminResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.PercentageDecisionPolicy", value: PercentageDecisionPolicy.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateGroupAdminResponse: Could not create message: ' + e.message); + throw new Error('TxClient:PercentageDecisionPolicy: Could not create message: ' + e.message); } }, - eventCreateGroupPolicy({ value }) { + queryGroupPolicyInfoResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy", value: EventCreateGroupPolicy.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupPolicyInfoResponse", value: QueryGroupPolicyInfoResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:EventCreateGroupPolicy: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupPolicyInfoResponse: Could not create message: ' + e.message); } }, - groupPolicyInfo({ value }) { + queryGroupsResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.GroupPolicyInfo", value: GroupPolicyInfo.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupsResponse", value: QueryGroupsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GroupPolicyInfo: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupsResponse: Could not create message: ' + e.message); } }, - queryProposalResponse({ value }) { + msgUpdateGroupPolicyAdminResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryProposalResponse", value: QueryProposalResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", value: MsgUpdateGroupPolicyAdminResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryProposalResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateGroupPolicyAdminResponse: Could not create message: ' + e.message); } }, - queryProposalsByGroupPolicyRequest({ value }) { + msgVote({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", value: QueryProposalsByGroupPolicyRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.MsgVote", value: MsgVote.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryProposalsByGroupPolicyRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgVote: Could not create message: ' + e.message); } }, - queryProposalsByGroupPolicyResponse({ value }) { + queryGroupPoliciesByGroupResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", value: QueryProposalsByGroupPolicyResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", value: QueryGroupPoliciesByGroupResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryProposalsByGroupPolicyResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupPoliciesByGroupResponse: Could not create message: ' + e.message); } }, - queryVoteByProposalVoterResponse({ value }) { + queryGroupsByAdminResponse({ value }) { try { - return { typeUrl: "/cosmos.group.v1.QueryVoteByProposalVoterResponse", value: QueryVoteByProposalVoterResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.group.v1.QueryGroupsByAdminResponse", value: QueryGroupsByAdminResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryVoteByProposalVoterResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryGroupsByAdminResponse: Could not create message: ' + e.message); + } + }, + proposal({ value }) { + try { + return { typeUrl: "/cosmos.group.v1.Proposal", value: Proposal.fromPartial(value) }; + } + catch (e) { + throw new Error('TxClient:Proposal: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.group.v1/registry.js b/ts-client/lib/cosmos.group.v1/registry.js index d7f6d65d8..406b27654 100644 --- a/ts-client/lib/cosmos.group.v1/registry.js +++ b/ts-client/lib/cosmos.group.v1/registry.js @@ -1,159 +1,159 @@ -import { MsgExec } from "./types/cosmos/group/v1/tx"; -import { PercentageDecisionPolicy } from "./types/cosmos/group/v1/types"; -import { GroupMember } from "./types/cosmos/group/v1/types"; +import { TallyResult } from "./types/cosmos/group/v1/types"; +import { EventUpdateGroup } from "./types/cosmos/group/v1/events"; +import { EventSubmitProposal } from "./types/cosmos/group/v1/events"; +import { EventWithdrawProposal } from "./types/cosmos/group/v1/events"; +import { QueryGroupInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupPolicyInfoRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupPoliciesByAdminRequest } from "./types/cosmos/group/v1/query"; +import { Vote } from "./types/cosmos/group/v1/types"; +import { QueryVotesByProposalResponse } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroupWithPolicyResponse } from "./types/cosmos/group/v1/tx"; +import { MsgVoteResponse } from "./types/cosmos/group/v1/tx"; +import { QueryVoteByProposalVoterRequest } from "./types/cosmos/group/v1/query"; +import { QueryVoteByProposalVoterResponse } from "./types/cosmos/group/v1/query"; +import { QueryVotesByProposalRequest } from "./types/cosmos/group/v1/query"; import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx"; -import { QueryGroupInfoResponse } from "./types/cosmos/group/v1/query"; import { MsgUpdateGroupMetadataResponse } from "./types/cosmos/group/v1/tx"; -import { EventCreateGroup } from "./types/cosmos/group/v1/events"; -import { GroupInfo } from "./types/cosmos/group/v1/types"; -import { QueryGroupPoliciesByAdminResponse } from "./types/cosmos/group/v1/query"; -import { QueryVotesByProposalRequest } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx"; -import { MsgWithdrawProposalResponse } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPolicyInfoRequest } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupPolicyMetadataResponse } from "./types/cosmos/group/v1/tx"; -import { EventUpdateGroupPolicy } from "./types/cosmos/group/v1/events"; -import { EventWithdrawProposal } from "./types/cosmos/group/v1/events"; -import { EventExec } from "./types/cosmos/group/v1/events"; import { Member } from "./types/cosmos/group/v1/types"; -import { QueryGroupsByAdminRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupsRequest } from "./types/cosmos/group/v1/query"; -import { MsgVoteResponse } from "./types/cosmos/group/v1/tx"; -import { EventVote } from "./types/cosmos/group/v1/events"; import { QueryProposalRequest } from "./types/cosmos/group/v1/query"; -import { QueryGroupsByMemberRequest } from "./types/cosmos/group/v1/query"; -import { QueryTallyResultRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupPoliciesByGroupRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupMembersResponse } from "./types/cosmos/group/v1/tx"; +import { MsgExecResponse } from "./types/cosmos/group/v1/tx"; +import { MemberRequest } from "./types/cosmos/group/v1/types"; +import { ThresholdDecisionPolicy } from "./types/cosmos/group/v1/types"; +import { EventExec } from "./types/cosmos/group/v1/events"; +import { QueryProposalsByGroupPolicyRequest } from "./types/cosmos/group/v1/query"; import { QueryTallyResultResponse } from "./types/cosmos/group/v1/query"; -import { QueryGroupsByAdminResponse } from "./types/cosmos/group/v1/query"; -import { QueryVotesByProposalResponse } from "./types/cosmos/group/v1/query"; -import { GenesisState } from "./types/cosmos/group/v1/genesis"; -import { EventSubmitProposal } from "./types/cosmos/group/v1/events"; -import { QueryGroupPoliciesByGroupResponse } from "./types/cosmos/group/v1/query"; -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 { MsgCreateGroupWithPolicyResponse } from "./types/cosmos/group/v1/tx"; import { MsgUpdateGroupPolicyDecisionPolicyResponse } from "./types/cosmos/group/v1/tx"; -import { QueryGroupsByMemberResponse } from "./types/cosmos/group/v1/query"; -import { MsgSubmitProposalResponse } from "./types/cosmos/group/v1/tx"; -import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx"; -import { TallyResult } from "./types/cosmos/group/v1/types"; -import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPolicyInfoResponse } from "./types/cosmos/group/v1/query"; -import { QueryVoteByProposalVoterRequest } from "./types/cosmos/group/v1/query"; -import { QueryVotesByVoterRequest } from "./types/cosmos/group/v1/query"; -import { Proposal } from "./types/cosmos/group/v1/types"; -import { QueryGroupInfoRequest } from "./types/cosmos/group/v1/query"; -import { MsgExecResponse } from "./types/cosmos/group/v1/tx"; -import { MsgLeaveGroupResponse } from "./types/cosmos/group/v1/tx"; +import { EventCreateGroup } from "./types/cosmos/group/v1/events"; import { EventProposalPruned } from "./types/cosmos/group/v1/events"; -import { QueryGroupMembersRequest } from "./types/cosmos/group/v1/query"; -import { QueryVotesByVoterResponse } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx"; +import { EventVote } from "./types/cosmos/group/v1/events"; +import { EventUpdateGroupPolicy } from "./types/cosmos/group/v1/events"; import { EventLeaveGroup } from "./types/cosmos/group/v1/events"; -import { ThresholdDecisionPolicy } from "./types/cosmos/group/v1/types"; +import { MsgUpdateGroupAdminResponse } from "./types/cosmos/group/v1/tx"; +import { MsgExec } from "./types/cosmos/group/v1/tx"; +import { GroupInfo } from "./types/cosmos/group/v1/types"; +import { QueryGroupsByAdminRequest } from "./types/cosmos/group/v1/query"; +import { QueryVotesByVoterRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx"; +import { GroupMember } from "./types/cosmos/group/v1/types"; +import { QueryGroupPoliciesByAdminResponse } from "./types/cosmos/group/v1/query"; +import { EventCreateGroupPolicy } from "./types/cosmos/group/v1/events"; +import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx"; +import { GenesisState } from "./types/cosmos/group/v1/genesis"; +import { MsgCreateGroupResponse } from "./types/cosmos/group/v1/tx"; +import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx"; +import { GroupPolicyInfo } from "./types/cosmos/group/v1/types"; import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx"; -import { QueryGroupPoliciesByGroupRequest } from "./types/cosmos/group/v1/query"; import { MsgCreateGroup } from "./types/cosmos/group/v1/tx"; -import { EventUpdateGroup } from "./types/cosmos/group/v1/events"; -import { MemberRequest } from "./types/cosmos/group/v1/types"; +import { QueryTallyResultRequest } from "./types/cosmos/group/v1/query"; +import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx"; import { DecisionPolicyWindows } from "./types/cosmos/group/v1/types"; -import { Vote } from "./types/cosmos/group/v1/types"; -import { QueryGroupPoliciesByAdminRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupMembersResponse } from "./types/cosmos/group/v1/query"; +import { QueryVotesByVoterResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByMemberRequest } from "./types/cosmos/group/v1/query"; +import { QueryGroupsRequest } from "./types/cosmos/group/v1/query"; +import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx"; +import { MsgWithdrawProposalResponse } from "./types/cosmos/group/v1/tx"; +import { QueryProposalResponse } from "./types/cosmos/group/v1/query"; +import { MsgSubmitProposalResponse } from "./types/cosmos/group/v1/tx"; +import { QueryGroupsByMemberResponse } from "./types/cosmos/group/v1/query"; +import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx"; +import { MsgUpdateGroupPolicyMetadataResponse } from "./types/cosmos/group/v1/tx"; +import { QueryProposalsByGroupPolicyResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupInfoResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupMembersRequest } from "./types/cosmos/group/v1/query"; +import { MsgLeaveGroupResponse } from "./types/cosmos/group/v1/tx"; +import { PercentageDecisionPolicy } from "./types/cosmos/group/v1/types"; +import { QueryGroupPolicyInfoResponse } from "./types/cosmos/group/v1/query"; import { QueryGroupsResponse } from "./types/cosmos/group/v1/query"; -import { MsgUpdateGroupMembersResponse } from "./types/cosmos/group/v1/tx"; import { MsgUpdateGroupPolicyAdminResponse } from "./types/cosmos/group/v1/tx"; -import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx"; import { MsgVote } from "./types/cosmos/group/v1/tx"; -import { MsgCreateGroupResponse } from "./types/cosmos/group/v1/tx"; -import { MsgUpdateGroupAdminResponse } from "./types/cosmos/group/v1/tx"; -import { EventCreateGroupPolicy } from "./types/cosmos/group/v1/events"; -import { GroupPolicyInfo } from "./types/cosmos/group/v1/types"; -import { QueryProposalResponse } from "./types/cosmos/group/v1/query"; -import { QueryProposalsByGroupPolicyRequest } from "./types/cosmos/group/v1/query"; -import { QueryProposalsByGroupPolicyResponse } from "./types/cosmos/group/v1/query"; -import { QueryVoteByProposalVoterResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupPoliciesByGroupResponse } from "./types/cosmos/group/v1/query"; +import { QueryGroupsByAdminResponse } from "./types/cosmos/group/v1/query"; +import { Proposal } from "./types/cosmos/group/v1/types"; const msgTypes = [ - ["/cosmos.group.v1.MsgExec", MsgExec], - ["/cosmos.group.v1.PercentageDecisionPolicy", PercentageDecisionPolicy], - ["/cosmos.group.v1.GroupMember", GroupMember], + ["/cosmos.group.v1.TallyResult", TallyResult], + ["/cosmos.group.v1.EventUpdateGroup", EventUpdateGroup], + ["/cosmos.group.v1.EventSubmitProposal", EventSubmitProposal], + ["/cosmos.group.v1.EventWithdrawProposal", EventWithdrawProposal], + ["/cosmos.group.v1.QueryGroupInfoRequest", QueryGroupInfoRequest], + ["/cosmos.group.v1.QueryGroupPolicyInfoRequest", QueryGroupPolicyInfoRequest], + ["/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", QueryGroupPoliciesByAdminRequest], + ["/cosmos.group.v1.Vote", Vote], + ["/cosmos.group.v1.QueryVotesByProposalResponse", QueryVotesByProposalResponse], + ["/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", MsgCreateGroupWithPolicyResponse], + ["/cosmos.group.v1.MsgVoteResponse", MsgVoteResponse], + ["/cosmos.group.v1.QueryVoteByProposalVoterRequest", QueryVoteByProposalVoterRequest], + ["/cosmos.group.v1.QueryVoteByProposalVoterResponse", QueryVoteByProposalVoterResponse], + ["/cosmos.group.v1.QueryVotesByProposalRequest", QueryVotesByProposalRequest], ["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata], - ["/cosmos.group.v1.QueryGroupInfoResponse", QueryGroupInfoResponse], ["/cosmos.group.v1.MsgUpdateGroupMetadataResponse", MsgUpdateGroupMetadataResponse], - ["/cosmos.group.v1.EventCreateGroup", EventCreateGroup], - ["/cosmos.group.v1.GroupInfo", GroupInfo], - ["/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", QueryGroupPoliciesByAdminResponse], - ["/cosmos.group.v1.QueryVotesByProposalRequest", QueryVotesByProposalRequest], - ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin], - ["/cosmos.group.v1.MsgWithdrawProposalResponse", MsgWithdrawProposalResponse], - ["/cosmos.group.v1.QueryGroupPolicyInfoRequest", QueryGroupPolicyInfoRequest], - ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata], - ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", MsgUpdateGroupPolicyMetadataResponse], - ["/cosmos.group.v1.EventUpdateGroupPolicy", EventUpdateGroupPolicy], - ["/cosmos.group.v1.EventWithdrawProposal", EventWithdrawProposal], - ["/cosmos.group.v1.EventExec", EventExec], ["/cosmos.group.v1.Member", Member], - ["/cosmos.group.v1.QueryGroupsByAdminRequest", QueryGroupsByAdminRequest], - ["/cosmos.group.v1.QueryGroupsRequest", QueryGroupsRequest], - ["/cosmos.group.v1.MsgVoteResponse", MsgVoteResponse], - ["/cosmos.group.v1.EventVote", EventVote], ["/cosmos.group.v1.QueryProposalRequest", QueryProposalRequest], - ["/cosmos.group.v1.QueryGroupsByMemberRequest", QueryGroupsByMemberRequest], - ["/cosmos.group.v1.QueryTallyResultRequest", QueryTallyResultRequest], + ["/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", QueryGroupPoliciesByGroupRequest], + ["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin], + ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy], + ["/cosmos.group.v1.MsgUpdateGroupMembersResponse", MsgUpdateGroupMembersResponse], + ["/cosmos.group.v1.MsgExecResponse", MsgExecResponse], + ["/cosmos.group.v1.MemberRequest", MemberRequest], + ["/cosmos.group.v1.ThresholdDecisionPolicy", ThresholdDecisionPolicy], + ["/cosmos.group.v1.EventExec", EventExec], + ["/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", QueryProposalsByGroupPolicyRequest], ["/cosmos.group.v1.QueryTallyResultResponse", QueryTallyResultResponse], - ["/cosmos.group.v1.QueryGroupsByAdminResponse", QueryGroupsByAdminResponse], - ["/cosmos.group.v1.QueryVotesByProposalResponse", QueryVotesByProposalResponse], - ["/cosmos.group.v1.GenesisState", GenesisState], - ["/cosmos.group.v1.EventSubmitProposal", EventSubmitProposal], - ["/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", QueryGroupPoliciesByGroupResponse], - ["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy], - ["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy], - ["/cosmos.group.v1.QueryGroupMembersResponse", QueryGroupMembersResponse], ["/cosmos.group.v1.MsgCreateGroupPolicyResponse", MsgCreateGroupPolicyResponse], - ["/cosmos.group.v1.MsgCreateGroupWithPolicyResponse", MsgCreateGroupWithPolicyResponse], ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicyResponse", MsgUpdateGroupPolicyDecisionPolicyResponse], - ["/cosmos.group.v1.QueryGroupsByMemberResponse", QueryGroupsByMemberResponse], - ["/cosmos.group.v1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], - ["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup], - ["/cosmos.group.v1.TallyResult", TallyResult], - ["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], - ["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin], - ["/cosmos.group.v1.QueryGroupPolicyInfoResponse", QueryGroupPolicyInfoResponse], - ["/cosmos.group.v1.QueryVoteByProposalVoterRequest", QueryVoteByProposalVoterRequest], - ["/cosmos.group.v1.QueryVotesByVoterRequest", QueryVotesByVoterRequest], - ["/cosmos.group.v1.Proposal", Proposal], - ["/cosmos.group.v1.QueryGroupInfoRequest", QueryGroupInfoRequest], - ["/cosmos.group.v1.MsgExecResponse", MsgExecResponse], - ["/cosmos.group.v1.MsgLeaveGroupResponse", MsgLeaveGroupResponse], + ["/cosmos.group.v1.EventCreateGroup", EventCreateGroup], ["/cosmos.group.v1.EventProposalPruned", EventProposalPruned], - ["/cosmos.group.v1.QueryGroupMembersRequest", QueryGroupMembersRequest], - ["/cosmos.group.v1.QueryVotesByVoterResponse", QueryVotesByVoterResponse], - ["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy], + ["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin], + ["/cosmos.group.v1.EventVote", EventVote], + ["/cosmos.group.v1.EventUpdateGroupPolicy", EventUpdateGroupPolicy], ["/cosmos.group.v1.EventLeaveGroup", EventLeaveGroup], - ["/cosmos.group.v1.ThresholdDecisionPolicy", ThresholdDecisionPolicy], + ["/cosmos.group.v1.MsgUpdateGroupAdminResponse", MsgUpdateGroupAdminResponse], + ["/cosmos.group.v1.MsgExec", MsgExec], + ["/cosmos.group.v1.GroupInfo", GroupInfo], + ["/cosmos.group.v1.QueryGroupsByAdminRequest", QueryGroupsByAdminRequest], + ["/cosmos.group.v1.QueryVotesByVoterRequest", QueryVotesByVoterRequest], + ["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], + ["/cosmos.group.v1.GroupMember", GroupMember], + ["/cosmos.group.v1.QueryGroupPoliciesByAdminResponse", QueryGroupPoliciesByAdminResponse], + ["/cosmos.group.v1.EventCreateGroupPolicy", EventCreateGroupPolicy], + ["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy], + ["/cosmos.group.v1.GenesisState", GenesisState], + ["/cosmos.group.v1.MsgCreateGroupResponse", MsgCreateGroupResponse], + ["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup], + ["/cosmos.group.v1.GroupPolicyInfo", GroupPolicyInfo], ["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal], - ["/cosmos.group.v1.QueryGroupPoliciesByGroupRequest", QueryGroupPoliciesByGroupRequest], ["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup], - ["/cosmos.group.v1.EventUpdateGroup", EventUpdateGroup], - ["/cosmos.group.v1.MemberRequest", MemberRequest], + ["/cosmos.group.v1.QueryTallyResultRequest", QueryTallyResultRequest], + ["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal], ["/cosmos.group.v1.DecisionPolicyWindows", DecisionPolicyWindows], - ["/cosmos.group.v1.Vote", Vote], - ["/cosmos.group.v1.QueryGroupPoliciesByAdminRequest", QueryGroupPoliciesByAdminRequest], + ["/cosmos.group.v1.QueryGroupMembersResponse", QueryGroupMembersResponse], + ["/cosmos.group.v1.QueryVotesByVoterResponse", QueryVotesByVoterResponse], + ["/cosmos.group.v1.QueryGroupsByMemberRequest", QueryGroupsByMemberRequest], + ["/cosmos.group.v1.QueryGroupsRequest", QueryGroupsRequest], + ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata], + ["/cosmos.group.v1.MsgWithdrawProposalResponse", MsgWithdrawProposalResponse], + ["/cosmos.group.v1.QueryProposalResponse", QueryProposalResponse], + ["/cosmos.group.v1.MsgSubmitProposalResponse", MsgSubmitProposalResponse], + ["/cosmos.group.v1.QueryGroupsByMemberResponse", QueryGroupsByMemberResponse], + ["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy], + ["/cosmos.group.v1.MsgUpdateGroupPolicyMetadataResponse", MsgUpdateGroupPolicyMetadataResponse], + ["/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", QueryProposalsByGroupPolicyResponse], + ["/cosmos.group.v1.QueryGroupInfoResponse", QueryGroupInfoResponse], + ["/cosmos.group.v1.QueryGroupMembersRequest", QueryGroupMembersRequest], + ["/cosmos.group.v1.MsgLeaveGroupResponse", MsgLeaveGroupResponse], + ["/cosmos.group.v1.PercentageDecisionPolicy", PercentageDecisionPolicy], + ["/cosmos.group.v1.QueryGroupPolicyInfoResponse", QueryGroupPolicyInfoResponse], ["/cosmos.group.v1.QueryGroupsResponse", QueryGroupsResponse], - ["/cosmos.group.v1.MsgUpdateGroupMembersResponse", MsgUpdateGroupMembersResponse], ["/cosmos.group.v1.MsgUpdateGroupPolicyAdminResponse", MsgUpdateGroupPolicyAdminResponse], - ["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal], ["/cosmos.group.v1.MsgVote", MsgVote], - ["/cosmos.group.v1.MsgCreateGroupResponse", MsgCreateGroupResponse], - ["/cosmos.group.v1.MsgUpdateGroupAdminResponse", MsgUpdateGroupAdminResponse], - ["/cosmos.group.v1.EventCreateGroupPolicy", EventCreateGroupPolicy], - ["/cosmos.group.v1.GroupPolicyInfo", GroupPolicyInfo], - ["/cosmos.group.v1.QueryProposalResponse", QueryProposalResponse], - ["/cosmos.group.v1.QueryProposalsByGroupPolicyRequest", QueryProposalsByGroupPolicyRequest], - ["/cosmos.group.v1.QueryProposalsByGroupPolicyResponse", QueryProposalsByGroupPolicyResponse], - ["/cosmos.group.v1.QueryVoteByProposalVoterResponse", QueryVoteByProposalVoterResponse], + ["/cosmos.group.v1.QueryGroupPoliciesByGroupResponse", QueryGroupPoliciesByGroupResponse], + ["/cosmos.group.v1.QueryGroupsByAdminResponse", QueryGroupsByAdminResponse], + ["/cosmos.group.v1.Proposal", Proposal], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.mint.v1beta1/module.d.ts b/ts-client/lib/cosmos.mint.v1beta1/module.d.ts index 01ccd049b..4581776e1 100644 --- a/ts-client/lib/cosmos.mint.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.mint.v1beta1/module.d.ts @@ -2,20 +2,25 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { QueryInflationRequest } from "./types/cosmos/mint/v1beta1/query"; +import { QueryAnnualProvisionsRequest } from "./types/cosmos/mint/v1beta1/query"; +import { QueryAnnualProvisionsResponse } from "./types/cosmos/mint/v1beta1/query"; import { QueryParamsRequest } from "./types/cosmos/mint/v1beta1/query"; -import { QueryParamsResponse } from "./types/cosmos/mint/v1beta1/query"; +import { QueryInflationResponse } from "./types/cosmos/mint/v1beta1/query"; import { Minter } from "./types/cosmos/mint/v1beta1/mint"; +import { Params } from "./types/cosmos/mint/v1beta1/mint"; +import { QueryParamsResponse } from "./types/cosmos/mint/v1beta1/query"; +import { MsgUpdateParams } from "./types/cosmos/mint/v1beta1/tx"; import { MsgUpdateParamsResponse } from "./types/cosmos/mint/v1beta1/tx"; import { GenesisState } from "./types/cosmos/mint/v1beta1/genesis"; -import { QueryAnnualProvisionsRequest } from "./types/cosmos/mint/v1beta1/query"; -import { QueryAnnualProvisionsResponse } from "./types/cosmos/mint/v1beta1/query"; -import { MsgUpdateParams } from "./types/cosmos/mint/v1beta1/tx"; -import { Params } from "./types/cosmos/mint/v1beta1/mint"; -import { QueryInflationResponse } from "./types/cosmos/mint/v1beta1/query"; -export { QueryInflationRequest, QueryParamsRequest, QueryParamsResponse, Minter, MsgUpdateParamsResponse, GenesisState, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse, MsgUpdateParams, Params, QueryInflationResponse }; -type sendQueryInflationRequestParams = { - value: QueryInflationRequest; +import { QueryInflationRequest } from "./types/cosmos/mint/v1beta1/query"; +export { QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse, QueryParamsRequest, QueryInflationResponse, Minter, Params, QueryParamsResponse, MsgUpdateParams, MsgUpdateParamsResponse, GenesisState, QueryInflationRequest }; +type sendQueryAnnualProvisionsRequestParams = { + value: QueryAnnualProvisionsRequest; + fee?: StdFee; + memo?: string; +}; +type sendQueryAnnualProvisionsResponseParams = { + value: QueryAnnualProvisionsResponse; fee?: StdFee; memo?: string; }; @@ -24,8 +29,8 @@ type sendQueryParamsRequestParams = { fee?: StdFee; memo?: string; }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse; +type sendQueryInflationResponseParams = { + value: QueryInflationResponse; fee?: StdFee; memo?: string; }; @@ -34,73 +39,68 @@ type sendMinterParams = { fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type sendParamsParams = { + value: Params; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendQueryParamsResponseParams = { + value: QueryParamsResponse; fee?: StdFee; memo?: string; }; -type sendQueryAnnualProvisionsRequestParams = { - value: QueryAnnualProvisionsRequest; +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams; fee?: StdFee; memo?: string; }; -type sendQueryAnnualProvisionsResponseParams = { - value: QueryAnnualProvisionsResponse; +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendParamsParams = { - value: Params; +type sendQueryInflationRequestParams = { + value: QueryInflationRequest; fee?: StdFee; memo?: string; }; -type sendQueryInflationResponseParams = { - value: QueryInflationResponse; - fee?: StdFee; - memo?: string; +type queryAnnualProvisionsRequestParams = { + value: QueryAnnualProvisionsRequest; }; -type queryInflationRequestParams = { - value: QueryInflationRequest; +type queryAnnualProvisionsResponseParams = { + value: QueryAnnualProvisionsResponse; }; type queryParamsRequestParams = { value: QueryParamsRequest; }; -type queryParamsResponseParams = { - value: QueryParamsResponse; +type queryInflationResponseParams = { + value: QueryInflationResponse; }; type minterParams = { value: Minter; }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; -}; -type genesisStateParams = { - value: GenesisState; -}; -type queryAnnualProvisionsRequestParams = { - value: QueryAnnualProvisionsRequest; +type paramsParams = { + value: Params; }; -type queryAnnualProvisionsResponseParams = { - value: QueryAnnualProvisionsResponse; +type queryParamsResponseParams = { + value: QueryParamsResponse; }; type msgUpdateParamsParams = { value: MsgUpdateParams; }; -type paramsParams = { - value: Params; +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; }; -type queryInflationResponseParams = { - value: QueryInflationResponse; +type genesisStateParams = { + value: GenesisState; +}; +type queryInflationRequestParams = { + value: QueryInflationRequest; }; export declare const registry: Registry; interface TxClientOptions { @@ -109,28 +109,28 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendQueryInflationRequest({ value, fee, memo }: sendQueryInflationRequestParams): Promise; + sendQueryAnnualProvisionsRequest({ value, fee, memo }: sendQueryAnnualProvisionsRequestParams): Promise; + sendQueryAnnualProvisionsResponse({ value, fee, memo }: sendQueryAnnualProvisionsResponseParams): Promise; sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; - sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; + sendQueryInflationResponse({ value, fee, memo }: sendQueryInflationResponseParams): Promise; sendMinter({ value, fee, memo }: sendMinterParams): Promise; + sendParams({ value, fee, memo }: sendParamsParams): Promise; + sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; + sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendQueryAnnualProvisionsRequest({ value, fee, memo }: sendQueryAnnualProvisionsRequestParams): Promise; - sendQueryAnnualProvisionsResponse({ value, fee, memo }: sendQueryAnnualProvisionsResponseParams): Promise; - sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; - sendParams({ value, fee, memo }: sendParamsParams): Promise; - sendQueryInflationResponse({ value, fee, memo }: sendQueryInflationResponseParams): Promise; - queryInflationRequest({ value }: queryInflationRequestParams): EncodeObject; + sendQueryInflationRequest({ value, fee, memo }: sendQueryInflationRequestParams): Promise; + queryAnnualProvisionsRequest({ value }: queryAnnualProvisionsRequestParams): EncodeObject; + queryAnnualProvisionsResponse({ value }: queryAnnualProvisionsResponseParams): EncodeObject; queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; + queryInflationResponse({ value }: queryInflationResponseParams): EncodeObject; minter({ value }: minterParams): EncodeObject; + params({ value }: paramsParams): EncodeObject; + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; genesisState({ value }: genesisStateParams): EncodeObject; - queryAnnualProvisionsRequest({ value }: queryAnnualProvisionsRequestParams): EncodeObject; - queryAnnualProvisionsResponse({ value }: queryAnnualProvisionsResponseParams): EncodeObject; - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; - params({ value }: paramsParams): EncodeObject; - queryInflationResponse({ value }: queryInflationResponseParams): EncodeObject; + queryInflationRequest({ value }: queryInflationRequestParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.mint.v1beta1/module.js b/ts-client/lib/cosmos.mint.v1beta1/module.js index 10f1cca36..6bb984daf 100644 --- a/ts-client/lib/cosmos.mint.v1beta1/module.js +++ b/ts-client/lib/cosmos.mint.v1beta1/module.js @@ -3,18 +3,18 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { QueryInflationRequest } from "./types/cosmos/mint/v1beta1/query"; +import { QueryAnnualProvisionsRequest } from "./types/cosmos/mint/v1beta1/query"; +import { QueryAnnualProvisionsResponse } from "./types/cosmos/mint/v1beta1/query"; import { QueryParamsRequest } from "./types/cosmos/mint/v1beta1/query"; -import { QueryParamsResponse } from "./types/cosmos/mint/v1beta1/query"; +import { QueryInflationResponse } from "./types/cosmos/mint/v1beta1/query"; import { Minter } from "./types/cosmos/mint/v1beta1/mint"; +import { Params } from "./types/cosmos/mint/v1beta1/mint"; +import { QueryParamsResponse } from "./types/cosmos/mint/v1beta1/query"; +import { MsgUpdateParams } from "./types/cosmos/mint/v1beta1/tx"; import { MsgUpdateParamsResponse } from "./types/cosmos/mint/v1beta1/tx"; import { GenesisState } from "./types/cosmos/mint/v1beta1/genesis"; -import { QueryAnnualProvisionsRequest } from "./types/cosmos/mint/v1beta1/query"; -import { QueryAnnualProvisionsResponse } from "./types/cosmos/mint/v1beta1/query"; -import { MsgUpdateParams } from "./types/cosmos/mint/v1beta1/tx"; -import { Params } from "./types/cosmos/mint/v1beta1/mint"; -import { QueryInflationResponse } from "./types/cosmos/mint/v1beta1/query"; -export { QueryInflationRequest, QueryParamsRequest, QueryParamsResponse, Minter, MsgUpdateParamsResponse, GenesisState, QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse, MsgUpdateParams, Params, QueryInflationResponse }; +import { QueryInflationRequest } from "./types/cosmos/mint/v1beta1/query"; +export { QueryAnnualProvisionsRequest, QueryAnnualProvisionsResponse, QueryParamsRequest, QueryInflationResponse, Minter, Params, QueryParamsResponse, MsgUpdateParams, MsgUpdateParamsResponse, GenesisState, QueryInflationRequest }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -30,18 +30,32 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendQueryInflationRequest({ value, fee, memo }) { + async sendQueryAnnualProvisionsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryInflationRequest: 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.queryInflationRequest({ value: QueryInflationRequest.fromPartial(value) }); + let msg = this.queryAnnualProvisionsRequest({ value: QueryAnnualProvisionsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryInflationRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAnnualProvisionsRequest: Could not broadcast Tx: ' + e.message); + } + }, + async sendQueryAnnualProvisionsResponse({ value, fee, memo }) { + 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) { + throw new Error('TxClient:sendQueryAnnualProvisionsResponse: Could not broadcast Tx: ' + e.message); } }, async sendQueryParamsRequest({ value, fee, memo }) { @@ -58,18 +72,18 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsResponse({ value, fee, memo }) { + async sendQueryInflationResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: 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.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); + let msg = this.queryInflationResponse({ value: QueryInflationResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryInflationResponse: Could not broadcast Tx: ' + e.message); } }, async sendMinter({ value, fee, memo }) { @@ -86,110 +100,104 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMinter: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }) { + async sendParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: 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.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); + let msg = this.params({ value: Params.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendQueryParamsResponse({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAnnualProvisionsRequest({ value, fee, memo }) { + async sendMsgUpdateParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAnnualProvisionsRequest: 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.queryAnnualProvisionsRequest({ value: QueryAnnualProvisionsRequest.fromPartial(value) }); + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAnnualProvisionsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAnnualProvisionsResponse({ value, fee, memo }) { + async sendMsgUpdateParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAnnualProvisionsResponse: 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.queryAnnualProvisionsResponse({ value: QueryAnnualProvisionsResponse.fromPartial(value) }); + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAnnualProvisionsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParams({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendParams({ value, fee, memo }) { + async sendQueryInflationRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryInflationRequest: Unable to 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.queryInflationRequest({ value: QueryInflationRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryInflationRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryInflationResponse({ value, fee, memo }) { - if (!signer) { - throw new Error('TxClient:sendQueryInflationResponse: Unable to sign Tx. Signer is not present.'); - } + queryAnnualProvisionsRequest({ value }) { try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryInflationResponse({ value: QueryInflationResponse.fromPartial(value) }); - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); + return { typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", value: QueryAnnualProvisionsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:sendQueryInflationResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:QueryAnnualProvisionsRequest: Could not create message: ' + e.message); } }, - queryInflationRequest({ value }) { + queryAnnualProvisionsResponse({ value }) { try { - return { typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", value: QueryInflationRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", value: QueryAnnualProvisionsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryInflationRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAnnualProvisionsResponse: Could not create message: ' + e.message); } }, queryParamsRequest({ value }) { @@ -200,12 +208,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); } }, - queryParamsResponse({ value }) { + queryInflationResponse({ value }) { try { - return { typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", value: QueryInflationResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryInflationResponse: Could not create message: ' + e.message); } }, minter({ value }) { @@ -216,60 +224,52 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:Minter: Could not create message: ' + e.message); } }, - msgUpdateParamsResponse({ value }) { - try { - return { typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; - } - catch (e) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); - } - }, - genesisState({ value }) { + params({ value }) { try { - return { typeUrl: "/cosmos.mint.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/cosmos.mint.v1beta1.Params", value: Params.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:Params: Could not create message: ' + e.message); } }, - queryAnnualProvisionsRequest({ value }) { + queryParamsResponse({ value }) { try { - return { typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", value: QueryAnnualProvisionsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.mint.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAnnualProvisionsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); } }, - queryAnnualProvisionsResponse({ value }) { + msgUpdateParams({ value }) { try { - return { typeUrl: "/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", value: QueryAnnualProvisionsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAnnualProvisionsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); } }, - msgUpdateParams({ value }) { + msgUpdateParamsResponse({ value }) { try { - return { typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; + return { typeUrl: "/cosmos.mint.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); } }, - params({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/cosmos.mint.v1beta1.Params", value: Params.fromPartial(value) }; + return { typeUrl: "/cosmos.mint.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Params: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - queryInflationResponse({ value }) { + queryInflationRequest({ value }) { try { - return { typeUrl: "/cosmos.mint.v1beta1.QueryInflationResponse", value: QueryInflationResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.mint.v1beta1.QueryInflationRequest", value: QueryInflationRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryInflationResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryInflationRequest: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.mint.v1beta1/registry.js b/ts-client/lib/cosmos.mint.v1beta1/registry.js index 471a816e7..c11edf3b1 100644 --- a/ts-client/lib/cosmos.mint.v1beta1/registry.js +++ b/ts-client/lib/cosmos.mint.v1beta1/registry.js @@ -1,25 +1,25 @@ -import { QueryInflationRequest } from "./types/cosmos/mint/v1beta1/query"; +import { QueryAnnualProvisionsRequest } from "./types/cosmos/mint/v1beta1/query"; +import { QueryAnnualProvisionsResponse } from "./types/cosmos/mint/v1beta1/query"; import { QueryParamsRequest } from "./types/cosmos/mint/v1beta1/query"; -import { QueryParamsResponse } from "./types/cosmos/mint/v1beta1/query"; +import { QueryInflationResponse } from "./types/cosmos/mint/v1beta1/query"; import { Minter } from "./types/cosmos/mint/v1beta1/mint"; +import { Params } from "./types/cosmos/mint/v1beta1/mint"; +import { QueryParamsResponse } from "./types/cosmos/mint/v1beta1/query"; +import { MsgUpdateParams } from "./types/cosmos/mint/v1beta1/tx"; import { MsgUpdateParamsResponse } from "./types/cosmos/mint/v1beta1/tx"; import { GenesisState } from "./types/cosmos/mint/v1beta1/genesis"; -import { QueryAnnualProvisionsRequest } from "./types/cosmos/mint/v1beta1/query"; -import { QueryAnnualProvisionsResponse } from "./types/cosmos/mint/v1beta1/query"; -import { MsgUpdateParams } from "./types/cosmos/mint/v1beta1/tx"; -import { Params } from "./types/cosmos/mint/v1beta1/mint"; -import { QueryInflationResponse } from "./types/cosmos/mint/v1beta1/query"; +import { QueryInflationRequest } from "./types/cosmos/mint/v1beta1/query"; const msgTypes = [ - ["/cosmos.mint.v1beta1.QueryInflationRequest", QueryInflationRequest], + ["/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", QueryAnnualProvisionsRequest], + ["/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", QueryAnnualProvisionsResponse], ["/cosmos.mint.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.mint.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.mint.v1beta1.QueryInflationResponse", QueryInflationResponse], ["/cosmos.mint.v1beta1.Minter", Minter], + ["/cosmos.mint.v1beta1.Params", Params], + ["/cosmos.mint.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.mint.v1beta1.MsgUpdateParams", MsgUpdateParams], ["/cosmos.mint.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ["/cosmos.mint.v1beta1.GenesisState", GenesisState], - ["/cosmos.mint.v1beta1.QueryAnnualProvisionsRequest", QueryAnnualProvisionsRequest], - ["/cosmos.mint.v1beta1.QueryAnnualProvisionsResponse", QueryAnnualProvisionsResponse], - ["/cosmos.mint.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/cosmos.mint.v1beta1.Params", Params], - ["/cosmos.mint.v1beta1.QueryInflationResponse", QueryInflationResponse], + ["/cosmos.mint.v1beta1.QueryInflationRequest", QueryInflationRequest], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.params.v1beta1/module.d.ts b/ts-client/lib/cosmos.params.v1beta1/module.d.ts index b7da3acee..8affb211c 100644 --- a/ts-client/lib/cosmos.params.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.params.v1beta1/module.d.ts @@ -2,16 +2,21 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { QueryParamsResponse } from "./types/cosmos/params/v1beta1/query"; +import { ParameterChangeProposal } from "./types/cosmos/params/v1beta1/params"; +import { QueryParamsRequest } from "./types/cosmos/params/v1beta1/query"; import { QuerySubspacesRequest } from "./types/cosmos/params/v1beta1/query"; +import { QuerySubspacesResponse } from "./types/cosmos/params/v1beta1/query"; import { Subspace } from "./types/cosmos/params/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/params/v1beta1/query"; import { ParamChange } from "./types/cosmos/params/v1beta1/params"; -import { QuerySubspacesResponse } from "./types/cosmos/params/v1beta1/query"; -import { ParameterChangeProposal } from "./types/cosmos/params/v1beta1/params"; -export { QueryParamsResponse, QuerySubspacesRequest, Subspace, QueryParamsRequest, ParamChange, QuerySubspacesResponse, ParameterChangeProposal }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse; +import { QueryParamsResponse } from "./types/cosmos/params/v1beta1/query"; +export { ParameterChangeProposal, QueryParamsRequest, QuerySubspacesRequest, QuerySubspacesResponse, Subspace, ParamChange, QueryParamsResponse }; +type sendParameterChangeProposalParams = { + value: ParameterChangeProposal; + fee?: StdFee; + memo?: string; +}; +type sendQueryParamsRequestParams = { + value: QueryParamsRequest; fee?: StdFee; memo?: string; }; @@ -20,13 +25,13 @@ type sendQuerySubspacesRequestParams = { fee?: StdFee; memo?: string; }; -type sendSubspaceParams = { - value: Subspace; +type sendQuerySubspacesResponseParams = { + value: QuerySubspacesResponse; fee?: StdFee; memo?: string; }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest; +type sendSubspaceParams = { + value: Subspace; fee?: StdFee; memo?: string; }; @@ -35,36 +40,31 @@ type sendParamChangeParams = { fee?: StdFee; memo?: string; }; -type sendQuerySubspacesResponseParams = { - value: QuerySubspacesResponse; +type sendQueryParamsResponseParams = { + value: QueryParamsResponse; fee?: StdFee; memo?: string; }; -type sendParameterChangeProposalParams = { +type parameterChangeProposalParams = { value: ParameterChangeProposal; - fee?: StdFee; - memo?: string; }; -type queryParamsResponseParams = { - value: QueryParamsResponse; +type queryParamsRequestParams = { + value: QueryParamsRequest; }; type querySubspacesRequestParams = { value: QuerySubspacesRequest; }; +type querySubspacesResponseParams = { + value: QuerySubspacesResponse; +}; type subspaceParams = { value: Subspace; }; -type queryParamsRequestParams = { - value: QueryParamsRequest; -}; type paramChangeParams = { value: ParamChange; }; -type querySubspacesResponseParams = { - value: QuerySubspacesResponse; -}; -type parameterChangeProposalParams = { - value: ParameterChangeProposal; +type queryParamsResponseParams = { + value: QueryParamsResponse; }; export declare const registry: Registry; interface TxClientOptions { @@ -73,20 +73,20 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; + sendParameterChangeProposal({ value, fee, memo }: sendParameterChangeProposalParams): Promise; + sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; sendQuerySubspacesRequest({ value, fee, memo }: sendQuerySubspacesRequestParams): Promise; + sendQuerySubspacesResponse({ value, fee, memo }: sendQuerySubspacesResponseParams): Promise; sendSubspace({ value, fee, memo }: sendSubspaceParams): Promise; - sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; sendParamChange({ value, fee, memo }: sendParamChangeParams): Promise; - sendQuerySubspacesResponse({ value, fee, memo }: sendQuerySubspacesResponseParams): Promise; - sendParameterChangeProposal({ value, fee, memo }: sendParameterChangeProposalParams): Promise; - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; + sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; + parameterChangeProposal({ value }: parameterChangeProposalParams): EncodeObject; + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; querySubspacesRequest({ value }: querySubspacesRequestParams): EncodeObject; + querySubspacesResponse({ value }: querySubspacesResponseParams): EncodeObject; subspace({ value }: subspaceParams): EncodeObject; - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; paramChange({ value }: paramChangeParams): EncodeObject; - querySubspacesResponse({ value }: querySubspacesResponseParams): EncodeObject; - parameterChangeProposal({ value }: parameterChangeProposalParams): EncodeObject; + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.params.v1beta1/module.js b/ts-client/lib/cosmos.params.v1beta1/module.js index d875c0e7d..bd45ec858 100644 --- a/ts-client/lib/cosmos.params.v1beta1/module.js +++ b/ts-client/lib/cosmos.params.v1beta1/module.js @@ -3,14 +3,14 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { QueryParamsResponse } from "./types/cosmos/params/v1beta1/query"; +import { ParameterChangeProposal } from "./types/cosmos/params/v1beta1/params"; +import { QueryParamsRequest } from "./types/cosmos/params/v1beta1/query"; import { QuerySubspacesRequest } from "./types/cosmos/params/v1beta1/query"; +import { QuerySubspacesResponse } from "./types/cosmos/params/v1beta1/query"; import { Subspace } from "./types/cosmos/params/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/params/v1beta1/query"; import { ParamChange } from "./types/cosmos/params/v1beta1/params"; -import { QuerySubspacesResponse } from "./types/cosmos/params/v1beta1/query"; -import { ParameterChangeProposal } from "./types/cosmos/params/v1beta1/params"; -export { QueryParamsResponse, QuerySubspacesRequest, Subspace, QueryParamsRequest, ParamChange, QuerySubspacesResponse, ParameterChangeProposal }; +import { QueryParamsResponse } from "./types/cosmos/params/v1beta1/query"; +export { ParameterChangeProposal, QueryParamsRequest, QuerySubspacesRequest, QuerySubspacesResponse, Subspace, ParamChange, QueryParamsResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -26,18 +26,32 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendQueryParamsResponse({ value, fee, memo }) { + async sendParameterChangeProposal({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendParameterChangeProposal: Unable to 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.parameterChangeProposal({ value: ParameterChangeProposal.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendParameterChangeProposal: Could not broadcast Tx: ' + e.message); + } + }, + async sendQueryParamsRequest({ value, fee, memo }) { + if (!signer) { + 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.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); + } + catch (e) { + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); } }, async sendQuerySubspacesRequest({ value, fee, memo }) { @@ -54,32 +68,32 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendQuerySubspacesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendSubspace({ value, fee, memo }) { + async sendQuerySubspacesResponse({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendSubspace: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySubspacesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsRequest({ value, fee, memo }) { + async sendSubspace({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: 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.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); + let msg = this.subspace({ value: Subspace.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSubspace: Could not broadcast Tx: ' + e.message); } }, async sendParamChange({ value, fee, memo }) { @@ -96,40 +110,34 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendParamChange: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySubspacesResponse({ value, fee, memo }) { + async sendQueryParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySubspacesResponse: 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.querySubspacesResponse({ value: QuerySubspacesResponse.fromPartial(value) }); + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySubspacesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendParameterChangeProposal({ value, fee, memo }) { - if (!signer) { - throw new Error('TxClient:sendParameterChangeProposal: Unable to sign Tx. Signer is not present.'); - } + parameterChangeProposal({ value }) { try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.parameterChangeProposal({ value: ParameterChangeProposal.fromPartial(value) }); - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); + return { typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", value: ParameterChangeProposal.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:sendParameterChangeProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:ParameterChangeProposal: Could not create message: ' + e.message); } }, - queryParamsResponse({ value }) { + queryParamsRequest({ value }) { try { - return { typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); } }, querySubspacesRequest({ value }) { @@ -140,20 +148,20 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:QuerySubspacesRequest: Could not create message: ' + e.message); } }, - subspace({ value }) { + querySubspacesResponse({ value }) { try { - return { typeUrl: "/cosmos.params.v1beta1.Subspace", value: Subspace.fromPartial(value) }; + return { typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", value: QuerySubspacesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Subspace: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySubspacesResponse: Could not create message: ' + e.message); } }, - queryParamsRequest({ value }) { + subspace({ value }) { try { - return { typeUrl: "/cosmos.params.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.params.v1beta1.Subspace", value: Subspace.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:Subspace: Could not create message: ' + e.message); } }, paramChange({ value }) { @@ -164,20 +172,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:ParamChange: Could not create message: ' + e.message); } }, - querySubspacesResponse({ value }) { - try { - return { typeUrl: "/cosmos.params.v1beta1.QuerySubspacesResponse", value: QuerySubspacesResponse.fromPartial(value) }; - } - catch (e) { - throw new Error('TxClient:QuerySubspacesResponse: Could not create message: ' + e.message); - } - }, - parameterChangeProposal({ value }) { + queryParamsResponse({ value }) { try { - return { typeUrl: "/cosmos.params.v1beta1.ParameterChangeProposal", value: ParameterChangeProposal.fromPartial(value) }; + return { typeUrl: "/cosmos.params.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ParameterChangeProposal: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.params.v1beta1/registry.js b/ts-client/lib/cosmos.params.v1beta1/registry.js index 1a938f0e8..65484a63a 100644 --- a/ts-client/lib/cosmos.params.v1beta1/registry.js +++ b/ts-client/lib/cosmos.params.v1beta1/registry.js @@ -1,17 +1,17 @@ -import { QueryParamsResponse } from "./types/cosmos/params/v1beta1/query"; +import { ParameterChangeProposal } from "./types/cosmos/params/v1beta1/params"; +import { QueryParamsRequest } from "./types/cosmos/params/v1beta1/query"; import { QuerySubspacesRequest } from "./types/cosmos/params/v1beta1/query"; +import { QuerySubspacesResponse } from "./types/cosmos/params/v1beta1/query"; import { Subspace } from "./types/cosmos/params/v1beta1/query"; -import { QueryParamsRequest } from "./types/cosmos/params/v1beta1/query"; import { ParamChange } from "./types/cosmos/params/v1beta1/params"; -import { QuerySubspacesResponse } from "./types/cosmos/params/v1beta1/query"; -import { ParameterChangeProposal } from "./types/cosmos/params/v1beta1/params"; +import { QueryParamsResponse } from "./types/cosmos/params/v1beta1/query"; const msgTypes = [ - ["/cosmos.params.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.params.v1beta1.ParameterChangeProposal", ParameterChangeProposal], + ["/cosmos.params.v1beta1.QueryParamsRequest", QueryParamsRequest], ["/cosmos.params.v1beta1.QuerySubspacesRequest", QuerySubspacesRequest], + ["/cosmos.params.v1beta1.QuerySubspacesResponse", QuerySubspacesResponse], ["/cosmos.params.v1beta1.Subspace", Subspace], - ["/cosmos.params.v1beta1.QueryParamsRequest", QueryParamsRequest], ["/cosmos.params.v1beta1.ParamChange", ParamChange], - ["/cosmos.params.v1beta1.QuerySubspacesResponse", QuerySubspacesResponse], - ["/cosmos.params.v1beta1.ParameterChangeProposal", ParameterChangeProposal], + ["/cosmos.params.v1beta1.QueryParamsResponse", QueryParamsResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.slashing.v1beta1/module.d.ts b/ts-client/lib/cosmos.slashing.v1beta1/module.d.ts index cdcd102b1..92e2aaab2 100644 --- a/ts-client/lib/cosmos.slashing.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.slashing.v1beta1/module.d.ts @@ -2,75 +2,70 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { Params } from "./types/cosmos/slashing/v1beta1/slashing"; -import { QuerySigningInfosResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { MissedBlock } from "./types/cosmos/slashing/v1beta1/genesis"; +import { QuerySigningInfoResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { QuerySigningInfosRequest } from "./types/cosmos/slashing/v1beta1/query"; +import { QuerySigningInfoRequest } from "./types/cosmos/slashing/v1beta1/query"; +import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; import { MsgUnjailResponse } from "./types/cosmos/slashing/v1beta1/tx"; import { MsgUpdateParams } from "./types/cosmos/slashing/v1beta1/tx"; +import { MsgUpdateParamsResponse } from "./types/cosmos/slashing/v1beta1/tx"; +import { QueryParamsRequest } from "./types/cosmos/slashing/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { ValidatorSigningInfo } from "./types/cosmos/slashing/v1beta1/slashing"; +import { ValidatorMissedBlocks } from "./types/cosmos/slashing/v1beta1/genesis"; +import { QuerySigningInfosResponse } from "./types/cosmos/slashing/v1beta1/query"; import { GenesisState } from "./types/cosmos/slashing/v1beta1/genesis"; import { SigningInfo } from "./types/cosmos/slashing/v1beta1/genesis"; -import { QuerySigningInfoResponse } from "./types/cosmos/slashing/v1beta1/query"; -import { ValidatorMissedBlocks } from "./types/cosmos/slashing/v1beta1/genesis"; -import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; -import { MsgUpdateParamsResponse } from "./types/cosmos/slashing/v1beta1/tx"; -import { ValidatorSigningInfo } from "./types/cosmos/slashing/v1beta1/slashing"; -import { QueryParamsRequest } from "./types/cosmos/slashing/v1beta1/query"; -import { QuerySigningInfoRequest } from "./types/cosmos/slashing/v1beta1/query"; -import { QuerySigningInfosRequest } from "./types/cosmos/slashing/v1beta1/query"; -import { MissedBlock } from "./types/cosmos/slashing/v1beta1/genesis"; -export { Params, QuerySigningInfosResponse, MsgUnjailResponse, MsgUpdateParams, QueryParamsResponse, GenesisState, SigningInfo, QuerySigningInfoResponse, ValidatorMissedBlocks, MsgUnjail, MsgUpdateParamsResponse, ValidatorSigningInfo, QueryParamsRequest, QuerySigningInfoRequest, QuerySigningInfosRequest, MissedBlock }; -type sendParamsParams = { - value: Params; - fee?: StdFee; - memo?: string; -}; -type sendQuerySigningInfosResponseParams = { - value: QuerySigningInfosResponse; +import { Params } from "./types/cosmos/slashing/v1beta1/slashing"; +export { MissedBlock, QuerySigningInfoResponse, QuerySigningInfosRequest, QuerySigningInfoRequest, MsgUnjail, MsgUnjailResponse, MsgUpdateParams, MsgUpdateParamsResponse, QueryParamsRequest, QueryParamsResponse, ValidatorSigningInfo, ValidatorMissedBlocks, QuerySigningInfosResponse, GenesisState, SigningInfo, Params }; +type sendMissedBlockParams = { + value: MissedBlock; fee?: StdFee; memo?: string; }; -type sendMsgUnjailResponseParams = { - value: MsgUnjailResponse; +type sendQuerySigningInfoResponseParams = { + value: QuerySigningInfoResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams; +type sendQuerySigningInfosRequestParams = { + value: QuerySigningInfosRequest; fee?: StdFee; memo?: string; }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse; +type sendQuerySigningInfoRequestParams = { + value: QuerySigningInfoRequest; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendMsgUnjailParams = { + value: MsgUnjail; fee?: StdFee; memo?: string; }; -type sendSigningInfoParams = { - value: SigningInfo; +type sendMsgUnjailResponseParams = { + value: MsgUnjailResponse; fee?: StdFee; memo?: string; }; -type sendQuerySigningInfoResponseParams = { - value: QuerySigningInfoResponse; +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams; fee?: StdFee; memo?: string; }; -type sendValidatorMissedBlocksParams = { - value: ValidatorMissedBlocks; +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; fee?: StdFee; memo?: string; }; -type sendMsgUnjailParams = { - value: MsgUnjail; +type sendQueryParamsRequestParams = { + value: QueryParamsRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type sendQueryParamsResponseParams = { + value: QueryParamsResponse; fee?: StdFee; memo?: string; }; @@ -79,73 +74,78 @@ type sendValidatorSigningInfoParams = { fee?: StdFee; memo?: string; }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest; +type sendValidatorMissedBlocksParams = { + value: ValidatorMissedBlocks; fee?: StdFee; memo?: string; }; -type sendQuerySigningInfoRequestParams = { - value: QuerySigningInfoRequest; +type sendQuerySigningInfosResponseParams = { + value: QuerySigningInfosResponse; fee?: StdFee; memo?: string; }; -type sendQuerySigningInfosRequestParams = { - value: QuerySigningInfosRequest; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendMissedBlockParams = { - value: MissedBlock; +type sendSigningInfoParams = { + value: SigningInfo; fee?: StdFee; memo?: string; }; -type paramsParams = { +type sendParamsParams = { value: Params; + fee?: StdFee; + memo?: string; }; -type querySigningInfosResponseParams = { - value: QuerySigningInfosResponse; -}; -type msgUnjailResponseParams = { - value: MsgUnjailResponse; -}; -type msgUpdateParamsParams = { - value: MsgUpdateParams; -}; -type queryParamsResponseParams = { - value: QueryParamsResponse; -}; -type genesisStateParams = { - value: GenesisState; -}; -type signingInfoParams = { - value: SigningInfo; +type missedBlockParams = { + value: MissedBlock; }; type querySigningInfoResponseParams = { value: QuerySigningInfoResponse; }; -type validatorMissedBlocksParams = { - value: ValidatorMissedBlocks; +type querySigningInfosRequestParams = { + value: QuerySigningInfosRequest; +}; +type querySigningInfoRequestParams = { + value: QuerySigningInfoRequest; }; type msgUnjailParams = { value: MsgUnjail; }; +type msgUnjailResponseParams = { + value: MsgUnjailResponse; +}; +type msgUpdateParamsParams = { + value: MsgUpdateParams; +}; type msgUpdateParamsResponseParams = { value: MsgUpdateParamsResponse; }; +type queryParamsRequestParams = { + value: QueryParamsRequest; +}; +type queryParamsResponseParams = { + value: QueryParamsResponse; +}; type validatorSigningInfoParams = { value: ValidatorSigningInfo; }; -type queryParamsRequestParams = { - value: QueryParamsRequest; +type validatorMissedBlocksParams = { + value: ValidatorMissedBlocks; }; -type querySigningInfoRequestParams = { - value: QuerySigningInfoRequest; +type querySigningInfosResponseParams = { + value: QuerySigningInfosResponse; }; -type querySigningInfosRequestParams = { - value: QuerySigningInfosRequest; +type genesisStateParams = { + value: GenesisState; }; -type missedBlockParams = { - value: MissedBlock; +type signingInfoParams = { + value: SigningInfo; +}; +type paramsParams = { + value: Params; }; export declare const registry: Registry; interface TxClientOptions { @@ -154,38 +154,38 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendParams({ value, fee, memo }: sendParamsParams): Promise; - sendQuerySigningInfosResponse({ value, fee, memo }: sendQuerySigningInfosResponseParams): Promise; + sendMissedBlock({ value, fee, memo }: sendMissedBlockParams): Promise; + sendQuerySigningInfoResponse({ value, fee, memo }: sendQuerySigningInfoResponseParams): Promise; + sendQuerySigningInfosRequest({ value, fee, memo }: sendQuerySigningInfosRequestParams): Promise; + sendQuerySigningInfoRequest({ value, fee, memo }: sendQuerySigningInfoRequestParams): Promise; + sendMsgUnjail({ value, fee, memo }: sendMsgUnjailParams): Promise; sendMsgUnjailResponse({ value, fee, memo }: sendMsgUnjailResponseParams): Promise; sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; + sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; + sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; + sendValidatorSigningInfo({ value, fee, memo }: sendValidatorSigningInfoParams): Promise; + sendValidatorMissedBlocks({ value, fee, memo }: sendValidatorMissedBlocksParams): Promise; + sendQuerySigningInfosResponse({ value, fee, memo }: sendQuerySigningInfosResponseParams): Promise; sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; sendSigningInfo({ value, fee, memo }: sendSigningInfoParams): Promise; - sendQuerySigningInfoResponse({ value, fee, memo }: sendQuerySigningInfoResponseParams): Promise; - sendValidatorMissedBlocks({ value, fee, memo }: sendValidatorMissedBlocksParams): Promise; - sendMsgUnjail({ value, fee, memo }: sendMsgUnjailParams): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; - sendValidatorSigningInfo({ value, fee, memo }: sendValidatorSigningInfoParams): Promise; - sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; - sendQuerySigningInfoRequest({ value, fee, memo }: sendQuerySigningInfoRequestParams): Promise; - sendQuerySigningInfosRequest({ value, fee, memo }: sendQuerySigningInfosRequestParams): Promise; - sendMissedBlock({ value, fee, memo }: sendMissedBlockParams): Promise; - params({ value }: paramsParams): EncodeObject; - querySigningInfosResponse({ value }: querySigningInfosResponseParams): EncodeObject; + sendParams({ value, fee, memo }: sendParamsParams): Promise; + missedBlock({ value }: missedBlockParams): EncodeObject; + querySigningInfoResponse({ value }: querySigningInfoResponseParams): EncodeObject; + querySigningInfosRequest({ value }: querySigningInfosRequestParams): EncodeObject; + querySigningInfoRequest({ value }: querySigningInfoRequestParams): EncodeObject; + msgUnjail({ value }: msgUnjailParams): EncodeObject; msgUnjailResponse({ value }: msgUnjailResponseParams): EncodeObject; msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; + validatorSigningInfo({ value }: validatorSigningInfoParams): EncodeObject; + validatorMissedBlocks({ value }: validatorMissedBlocksParams): EncodeObject; + querySigningInfosResponse({ value }: querySigningInfosResponseParams): EncodeObject; genesisState({ value }: genesisStateParams): EncodeObject; signingInfo({ value }: signingInfoParams): EncodeObject; - querySigningInfoResponse({ value }: querySigningInfoResponseParams): EncodeObject; - validatorMissedBlocks({ value }: validatorMissedBlocksParams): EncodeObject; - msgUnjail({ value }: msgUnjailParams): EncodeObject; - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; - validatorSigningInfo({ value }: validatorSigningInfoParams): EncodeObject; - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; - querySigningInfoRequest({ value }: querySigningInfoRequestParams): EncodeObject; - querySigningInfosRequest({ value }: querySigningInfosRequestParams): EncodeObject; - missedBlock({ value }: missedBlockParams): EncodeObject; + params({ value }: paramsParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.slashing.v1beta1/module.js b/ts-client/lib/cosmos.slashing.v1beta1/module.js index 66fc2fdb8..fa7f2dacc 100644 --- a/ts-client/lib/cosmos.slashing.v1beta1/module.js +++ b/ts-client/lib/cosmos.slashing.v1beta1/module.js @@ -3,23 +3,23 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { Params } from "./types/cosmos/slashing/v1beta1/slashing"; -import { QuerySigningInfosResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { MissedBlock } from "./types/cosmos/slashing/v1beta1/genesis"; +import { QuerySigningInfoResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { QuerySigningInfosRequest } from "./types/cosmos/slashing/v1beta1/query"; +import { QuerySigningInfoRequest } from "./types/cosmos/slashing/v1beta1/query"; +import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; import { MsgUnjailResponse } from "./types/cosmos/slashing/v1beta1/tx"; import { MsgUpdateParams } from "./types/cosmos/slashing/v1beta1/tx"; +import { MsgUpdateParamsResponse } from "./types/cosmos/slashing/v1beta1/tx"; +import { QueryParamsRequest } from "./types/cosmos/slashing/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { ValidatorSigningInfo } from "./types/cosmos/slashing/v1beta1/slashing"; +import { ValidatorMissedBlocks } from "./types/cosmos/slashing/v1beta1/genesis"; +import { QuerySigningInfosResponse } from "./types/cosmos/slashing/v1beta1/query"; import { GenesisState } from "./types/cosmos/slashing/v1beta1/genesis"; import { SigningInfo } from "./types/cosmos/slashing/v1beta1/genesis"; -import { QuerySigningInfoResponse } from "./types/cosmos/slashing/v1beta1/query"; -import { ValidatorMissedBlocks } from "./types/cosmos/slashing/v1beta1/genesis"; -import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; -import { MsgUpdateParamsResponse } from "./types/cosmos/slashing/v1beta1/tx"; -import { ValidatorSigningInfo } from "./types/cosmos/slashing/v1beta1/slashing"; -import { QueryParamsRequest } from "./types/cosmos/slashing/v1beta1/query"; -import { QuerySigningInfoRequest } from "./types/cosmos/slashing/v1beta1/query"; -import { QuerySigningInfosRequest } from "./types/cosmos/slashing/v1beta1/query"; -import { MissedBlock } from "./types/cosmos/slashing/v1beta1/genesis"; -export { Params, QuerySigningInfosResponse, MsgUnjailResponse, MsgUpdateParams, QueryParamsResponse, GenesisState, SigningInfo, QuerySigningInfoResponse, ValidatorMissedBlocks, MsgUnjail, MsgUpdateParamsResponse, ValidatorSigningInfo, QueryParamsRequest, QuerySigningInfoRequest, QuerySigningInfosRequest, MissedBlock }; +import { Params } from "./types/cosmos/slashing/v1beta1/slashing"; +export { MissedBlock, QuerySigningInfoResponse, QuerySigningInfosRequest, QuerySigningInfoRequest, MsgUnjail, MsgUnjailResponse, MsgUpdateParams, MsgUpdateParamsResponse, QueryParamsRequest, QueryParamsResponse, ValidatorSigningInfo, ValidatorMissedBlocks, QuerySigningInfosResponse, GenesisState, SigningInfo, Params }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -35,356 +35,356 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendParams({ value, fee, memo }) { + async sendMissedBlock({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendParams: 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.params({ value: Params.fromPartial(value) }); + let msg = this.missedBlock({ value: MissedBlock.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMissedBlock: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySigningInfosResponse({ value, fee, memo }) { + async sendQuerySigningInfoResponse({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendQuerySigningInfosResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySigningInfoResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUnjailResponse({ value, fee, memo }) { + async sendQuerySigningInfosRequest({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendMsgUnjailResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySigningInfosRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParams({ value, fee, memo }) { + async sendQuerySigningInfoRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); + let msg = this.querySigningInfoRequest({ value: QuerySigningInfoRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySigningInfoRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsResponse({ value, fee, memo }) { + async sendMsgUnjail({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: 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.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); + let msg = this.msgUnjail({ value: MsgUnjail.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUnjail: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendMsgUnjailResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.fromPartial(value) }); + let msg = this.msgUnjailResponse({ value: MsgUnjailResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUnjailResponse: Could not broadcast Tx: ' + e.message); } }, - async sendSigningInfo({ value, fee, memo }) { + async sendMsgUpdateParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSigningInfo: 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.signingInfo({ value: SigningInfo.fromPartial(value) }); + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSigningInfo: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySigningInfoResponse({ value, fee, memo }) { + async sendMsgUpdateParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySigningInfoResponse: 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.querySigningInfoResponse({ value: QuerySigningInfoResponse.fromPartial(value) }); + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySigningInfoResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendValidatorMissedBlocks({ value, fee, memo }) { + async sendQueryParamsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidatorMissedBlocks: 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.validatorMissedBlocks({ value: ValidatorMissedBlocks.fromPartial(value) }); + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidatorMissedBlocks: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUnjail({ value, fee, memo }) { + async sendQueryParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUnjail: 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.msgUnjail({ value: MsgUnjail.fromPartial(value) }); + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUnjail: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }) { + async sendValidatorSigningInfo({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: 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.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); + let msg = this.validatorSigningInfo({ value: ValidatorSigningInfo.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidatorSigningInfo: Could not broadcast Tx: ' + e.message); } }, - async sendValidatorSigningInfo({ value, fee, memo }) { + async sendValidatorMissedBlocks({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidatorSigningInfo: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendValidatorMissedBlocks: Unable to 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.validatorMissedBlocks({ value: ValidatorMissedBlocks.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidatorSigningInfo: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidatorMissedBlocks: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsRequest({ value, fee, memo }) { + async sendQuerySigningInfosResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: 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.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); + let msg = this.querySigningInfosResponse({ value: QuerySigningInfosResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySigningInfosResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySigningInfoRequest({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySigningInfoRequest: 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.querySigningInfoRequest({ value: QuerySigningInfoRequest.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySigningInfoRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySigningInfosRequest({ value, fee, memo }) { + async sendSigningInfo({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySigningInfosRequest: 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.querySigningInfosRequest({ value: QuerySigningInfosRequest.fromPartial(value) }); + let msg = this.signingInfo({ value: SigningInfo.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySigningInfosRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSigningInfo: Could not broadcast Tx: ' + e.message); } }, - async sendMissedBlock({ value, fee, memo }) { + async sendParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMissedBlock: 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.missedBlock({ value: MissedBlock.fromPartial(value) }); + let msg = this.params({ value: Params.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMissedBlock: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); } }, - params({ value }) { + missedBlock({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.Params", value: Params.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.MissedBlock", value: MissedBlock.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Params: Could not create message: ' + e.message); + throw new Error('TxClient:MissedBlock: Could not create message: ' + e.message); } }, - querySigningInfosResponse({ value }) { + querySigningInfoResponse({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosResponse", value: QuerySigningInfosResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoResponse", value: QuerySigningInfoResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySigningInfosResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySigningInfoResponse: Could not create message: ' + e.message); } }, - msgUnjailResponse({ value }) { + querySigningInfosRequest({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.MsgUnjailResponse", value: MsgUnjailResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosRequest", value: QuerySigningInfosRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUnjailResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySigningInfosRequest: Could not create message: ' + e.message); } }, - msgUpdateParams({ value }) { + querySigningInfoRequest({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoRequest", value: QuerySigningInfoRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySigningInfoRequest: Could not create message: ' + e.message); } }, - queryParamsResponse({ value }) { + msgUnjail({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", value: MsgUnjail.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUnjail: Could not create message: ' + e.message); } }, - genesisState({ value }) { + msgUnjailResponse({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.MsgUnjailResponse", value: MsgUnjailResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUnjailResponse: Could not create message: ' + e.message); } }, - signingInfo({ value }) { + msgUpdateParams({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.SigningInfo", value: SigningInfo.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:SigningInfo: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); } }, - querySigningInfoResponse({ value }) { + msgUpdateParamsResponse({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoResponse", value: QuerySigningInfoResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySigningInfoResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); } }, - validatorMissedBlocks({ value }) { + queryParamsRequest({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.ValidatorMissedBlocks", value: ValidatorMissedBlocks.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ValidatorMissedBlocks: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); } }, - msgUnjail({ value }) { + queryParamsResponse({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail", value: MsgUnjail.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUnjail: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); } }, - msgUpdateParamsResponse({ value }) { + validatorSigningInfo({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo", value: ValidatorSigningInfo.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:ValidatorSigningInfo: Could not create message: ' + e.message); } }, - validatorSigningInfo({ value }) { + validatorMissedBlocks({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo", value: ValidatorSigningInfo.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.ValidatorMissedBlocks", value: ValidatorMissedBlocks.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ValidatorSigningInfo: Could not create message: ' + e.message); + throw new Error('TxClient:ValidatorMissedBlocks: Could not create message: ' + e.message); } }, - queryParamsRequest({ value }) { + querySigningInfosResponse({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosResponse", value: QuerySigningInfosResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySigningInfosResponse: Could not create message: ' + e.message); } }, - querySigningInfoRequest({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfoRequest", value: QuerySigningInfoRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySigningInfoRequest: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - querySigningInfosRequest({ value }) { + signingInfo({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.QuerySigningInfosRequest", value: QuerySigningInfosRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.SigningInfo", value: SigningInfo.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySigningInfosRequest: Could not create message: ' + e.message); + throw new Error('TxClient:SigningInfo: Could not create message: ' + e.message); } }, - missedBlock({ value }) { + params({ value }) { try { - return { typeUrl: "/cosmos.slashing.v1beta1.MissedBlock", value: MissedBlock.fromPartial(value) }; + return { typeUrl: "/cosmos.slashing.v1beta1.Params", value: Params.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MissedBlock: Could not create message: ' + e.message); + throw new Error('TxClient:Params: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.slashing.v1beta1/registry.js b/ts-client/lib/cosmos.slashing.v1beta1/registry.js index 2a6e228dd..55a76121f 100644 --- a/ts-client/lib/cosmos.slashing.v1beta1/registry.js +++ b/ts-client/lib/cosmos.slashing.v1beta1/registry.js @@ -1,35 +1,35 @@ -import { Params } from "./types/cosmos/slashing/v1beta1/slashing"; -import { QuerySigningInfosResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { MissedBlock } from "./types/cosmos/slashing/v1beta1/genesis"; +import { QuerySigningInfoResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { QuerySigningInfosRequest } from "./types/cosmos/slashing/v1beta1/query"; +import { QuerySigningInfoRequest } from "./types/cosmos/slashing/v1beta1/query"; +import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; import { MsgUnjailResponse } from "./types/cosmos/slashing/v1beta1/tx"; import { MsgUpdateParams } from "./types/cosmos/slashing/v1beta1/tx"; +import { MsgUpdateParamsResponse } from "./types/cosmos/slashing/v1beta1/tx"; +import { QueryParamsRequest } from "./types/cosmos/slashing/v1beta1/query"; import { QueryParamsResponse } from "./types/cosmos/slashing/v1beta1/query"; +import { ValidatorSigningInfo } from "./types/cosmos/slashing/v1beta1/slashing"; +import { ValidatorMissedBlocks } from "./types/cosmos/slashing/v1beta1/genesis"; +import { QuerySigningInfosResponse } from "./types/cosmos/slashing/v1beta1/query"; import { GenesisState } from "./types/cosmos/slashing/v1beta1/genesis"; import { SigningInfo } from "./types/cosmos/slashing/v1beta1/genesis"; -import { QuerySigningInfoResponse } from "./types/cosmos/slashing/v1beta1/query"; -import { ValidatorMissedBlocks } from "./types/cosmos/slashing/v1beta1/genesis"; -import { MsgUnjail } from "./types/cosmos/slashing/v1beta1/tx"; -import { MsgUpdateParamsResponse } from "./types/cosmos/slashing/v1beta1/tx"; -import { ValidatorSigningInfo } from "./types/cosmos/slashing/v1beta1/slashing"; -import { QueryParamsRequest } from "./types/cosmos/slashing/v1beta1/query"; -import { QuerySigningInfoRequest } from "./types/cosmos/slashing/v1beta1/query"; -import { QuerySigningInfosRequest } from "./types/cosmos/slashing/v1beta1/query"; -import { MissedBlock } from "./types/cosmos/slashing/v1beta1/genesis"; +import { Params } from "./types/cosmos/slashing/v1beta1/slashing"; const msgTypes = [ - ["/cosmos.slashing.v1beta1.Params", Params], - ["/cosmos.slashing.v1beta1.QuerySigningInfosResponse", QuerySigningInfosResponse], + ["/cosmos.slashing.v1beta1.MissedBlock", MissedBlock], + ["/cosmos.slashing.v1beta1.QuerySigningInfoResponse", QuerySigningInfoResponse], + ["/cosmos.slashing.v1beta1.QuerySigningInfosRequest", QuerySigningInfosRequest], + ["/cosmos.slashing.v1beta1.QuerySigningInfoRequest", QuerySigningInfoRequest], + ["/cosmos.slashing.v1beta1.MsgUnjail", MsgUnjail], ["/cosmos.slashing.v1beta1.MsgUnjailResponse", MsgUnjailResponse], ["/cosmos.slashing.v1beta1.MsgUpdateParams", MsgUpdateParams], + ["/cosmos.slashing.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.slashing.v1beta1.QueryParamsRequest", QueryParamsRequest], ["/cosmos.slashing.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.slashing.v1beta1.ValidatorSigningInfo", ValidatorSigningInfo], + ["/cosmos.slashing.v1beta1.ValidatorMissedBlocks", ValidatorMissedBlocks], + ["/cosmos.slashing.v1beta1.QuerySigningInfosResponse", QuerySigningInfosResponse], ["/cosmos.slashing.v1beta1.GenesisState", GenesisState], ["/cosmos.slashing.v1beta1.SigningInfo", SigningInfo], - ["/cosmos.slashing.v1beta1.QuerySigningInfoResponse", QuerySigningInfoResponse], - ["/cosmos.slashing.v1beta1.ValidatorMissedBlocks", ValidatorMissedBlocks], - ["/cosmos.slashing.v1beta1.MsgUnjail", MsgUnjail], - ["/cosmos.slashing.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/cosmos.slashing.v1beta1.ValidatorSigningInfo", ValidatorSigningInfo], - ["/cosmos.slashing.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.slashing.v1beta1.QuerySigningInfoRequest", QuerySigningInfoRequest], - ["/cosmos.slashing.v1beta1.QuerySigningInfosRequest", QuerySigningInfosRequest], - ["/cosmos.slashing.v1beta1.MissedBlock", MissedBlock], + ["/cosmos.slashing.v1beta1.Params", Params], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.d.ts b/ts-client/lib/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.d.ts index 1a3cc5dc5..28307b6f8 100644 --- a/ts-client/lib/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.d.ts +++ b/ts-client/lib/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.d.ts @@ -18733,19 +18733,19 @@ export declare const FileDescriptorSet: { namePart?: string; isExtension?: boolean; } & { - namePart?: string; - isExtension?: boolean; - } & { [K_487 in Exclude]: never; })[] & { [K_488 in Exclude]: never; }; + [x: string]: any; + } & { + [x: string]: never; + })[] & { + [x: string]: never; + }; identifierValue?: string; positiveIntValue?: number; - negativeIntValue?: number; - doubleValue?: number; - stringValue?: Uint8Array; - aggregateValue?: string; - } & { [K_489 in Exclude]: never; })[] & { [K_490 in Exclude]: never; })[] & { [K_488 in Exclude]: never; }; - } & { [K_491 in Exclude]: never; }; + } & { [K_489 in Exclude]: never; }; proto3Optional?: boolean; - } & { [K_492 in Exclude]: never; })[] & { [K_493 in Exclude]: never; })[] & { [K_491 in Exclude]: never; })[] & { [K_495 in Exclude]: never; }; - identifierValue?: string; - positiveIntValue?: number; - negativeIntValue?: number; - doubleValue?: number; - stringValue?: Uint8Array; - aggregateValue?: string; - } & { [K_496 in Exclude]: never; })[] & { [K_497 in Exclude]: never; }; - } & { [K_498 in Exclude]: never; }; - proto3Optional?: boolean; - } & { [K_499 in Exclude]: never; })[] & { [K_500 in Exclude]: never; }; + [x: string]: any; + } & { + [x: string]: never; + })[] & { + [x: string]: never; + }; nestedType?: { name?: string; field?: { @@ -19314,187 +19197,12 @@ export declare const FileDescriptorSet: { }[]; reservedName?: string[]; } & { - name?: any; - field?: any; - extension?: any; - nestedType?: any; - enumType?: any; - extensionRange?: any; - oneofDecl?: any; - options?: any; - reservedRange?: any; - reservedName?: any; + [x: string]: any; } & { [x: string]: never; - })[] & { [K_501 in Exclude]: never; }; + })[] & { + [x: string]: never; + }; enumType?: { name?: string; value?: { @@ -19704,7 +19412,7 @@ export declare const FileDescriptorSet: { reservedName?: string[] & string[] & { [x: string]: never; }; - } & { [K_502 in Exclude]: never; })[] & { [K_503 in Exclude]: never; })[] & { [K_493 in Exclude]: never; })[] & { [K_505 in Exclude]: never; })[] & { [K_495 in Exclude]: never; })[] & { [K_507 in Exclude]: never; })[] & { [K_497 in Exclude]: never; }; - } & { [K_508 in Exclude]: never; }>(object: I_1): FileDescriptorSet; + } & { [K_498 in Exclude]: never; }>(object: I_1): FileDescriptorSet; }; export declare const FileDescriptorProto: { encode(message: FileDescriptorProto, writer?: _m0.Writer): _m0.Writer; diff --git a/ts-client/lib/cosmos.staking.v1beta1/module.d.ts b/ts-client/lib/cosmos.staking.v1beta1/module.d.ts index b33c6b990..38cda40c8 100644 --- a/ts-client/lib/cosmos.staking.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.staking.v1beta1/module.d.ts @@ -2,609 +2,609 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { ValAddresses } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { Validator } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgBeginRedelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { RedelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryValidatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgEditValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgCancelUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { LastValidatorPower } from "./types/cosmos/staking/v1beta1/genesis"; -import { DVVTriplet } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegatorValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryPoolRequest } from "./types/cosmos/staking/v1beta1/query"; -import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { MsgCreateValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgUpdateParamsResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { StakeAuthorization } from "./types/cosmos/staking/v1beta1/authz"; -import { QueryDelegatorValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryParamsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryValidatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryUnbondingDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgDelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { Redelegation } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgBeginRedelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgUndelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { Commission } from "./types/cosmos/staking/v1beta1/staking"; -import { Pool } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryRedelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { MsgCancelUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { StakeAuthorization_Validators } from "./types/cosmos/staking/v1beta1/authz"; +import { QueryUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx"; import { MsgUpdateParams } from "./types/cosmos/staking/v1beta1/tx"; -import { RedelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; -import { GenesisState } from "./types/cosmos/staking/v1beta1/genesis"; -import { Validator } from "./types/cosmos/staking/v1beta1/staking"; -import { DVVTriplets } from "./types/cosmos/staking/v1beta1/staking"; -import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { Params } from "./types/cosmos/staking/v1beta1/staking"; -import { HistoricalInfo } from "./types/cosmos/staking/v1beta1/staking"; -import { DVPair } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryValidatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryRedelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { CommissionRates } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; +import { Description } from "./types/cosmos/staking/v1beta1/staking"; +import { Pool } from "./types/cosmos/staking/v1beta1/staking"; +import { UnbondingDelegation } from "./types/cosmos/staking/v1beta1/staking"; import { QueryDelegatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { Redelegation } from "./types/cosmos/staking/v1beta1/staking"; -import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { ValidatorUpdates } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryHistoricalInfoRequest } from "./types/cosmos/staking/v1beta1/query"; +import { ValAddresses } from "./types/cosmos/staking/v1beta1/staking"; import { DVPairs } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryValidatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx"; -import { UnbondingDelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; -import { Description } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryParamsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; +import { CommissionRates } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; +import { DVPair } from "./types/cosmos/staking/v1beta1/staking"; +import { ValidatorUpdates } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgCreateValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUndelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { Params } from "./types/cosmos/staking/v1beta1/staking"; import { Delegation } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { StakeAuthorization_Validators } from "./types/cosmos/staking/v1beta1/authz"; +import { UnbondingDelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; +import { HistoricalInfo } from "./types/cosmos/staking/v1beta1/staking"; import { QueryValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { LastValidatorPower } from "./types/cosmos/staking/v1beta1/genesis"; +import { QueryRedelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryPoolRequest } from "./types/cosmos/staking/v1beta1/query"; +import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryRedelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { MsgEditValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryHistoricalInfoRequest } from "./types/cosmos/staking/v1beta1/query"; +import { Commission } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryHistoricalInfoResponse } from "./types/cosmos/staking/v1beta1/query"; +import { DVVTriplet } from "./types/cosmos/staking/v1beta1/staking"; +import { DVVTriplets } from "./types/cosmos/staking/v1beta1/staking"; +import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { StakeAuthorization } from "./types/cosmos/staking/v1beta1/authz"; +import { GenesisState } from "./types/cosmos/staking/v1beta1/genesis"; +import { QueryDelegatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryPoolResponse } from "./types/cosmos/staking/v1beta1/query"; -import { UnbondingDelegation } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryParamsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgDelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -export { ValAddresses, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponse, MsgEditValidatorResponse, MsgCreateValidator, MsgCancelUnbondingDelegationResponse, LastValidatorPower, DVVTriplet, QueryDelegatorValidatorResponse, QueryPoolRequest, DelegationResponse, MsgCreateValidatorResponse, MsgUpdateParamsResponse, StakeAuthorization, QueryDelegatorValidatorRequest, QueryDelegationResponse, QueryUnbondingDelegationRequest, MsgEditValidator, MsgBeginRedelegateResponse, MsgUndelegateResponse, Commission, Pool, QueryDelegatorUnbondingDelegationsRequest, QueryRedelegationsResponse, QueryDelegatorValidatorsRequest, MsgDelegate, MsgUpdateParams, RedelegationEntry, GenesisState, Validator, DVVTriplets, RedelegationEntryResponse, QueryValidatorUnbondingDelegationsRequest, Params, HistoricalInfo, DVPair, QueryValidatorsRequest, QueryValidatorUnbondingDelegationsResponse, QueryDelegationRequest, QueryRedelegationsRequest, CommissionRates, QueryValidatorResponse, QueryDelegatorUnbondingDelegationsResponse, MsgBeginRedelegate, Redelegation, RedelegationResponse, ValidatorUpdates, QueryUnbondingDelegationResponse, QueryHistoricalInfoRequest, DVPairs, QueryDelegatorValidatorsResponse, MsgUndelegate, MsgCancelUnbondingDelegation, UnbondingDelegationEntry, Description, QueryParamsResponse, Delegation, QueryDelegatorDelegationsRequest, StakeAuthorization_Validators, QueryValidatorsResponse, QueryValidatorRequest, QueryDelegatorDelegationsResponse, QueryHistoricalInfoResponse, QueryPoolResponse, UnbondingDelegation, QueryParamsRequest, MsgDelegateResponse }; -type sendValAddressesParams = { - value: ValAddresses; +export { Validator, MsgBeginRedelegateResponse, RedelegationEntry, QueryValidatorResponse, QueryValidatorDelegationsResponse, QueryParamsRequest, QueryParamsResponse, QueryValidatorUnbondingDelegationsRequest, QueryUnbondingDelegationRequest, MsgDelegateResponse, MsgUndelegate, Redelegation, QueryValidatorsRequest, MsgEditValidator, MsgCancelUnbondingDelegationResponse, StakeAuthorization_Validators, QueryUnbondingDelegationResponse, QueryDelegatorValidatorsRequest, MsgUpdateParamsResponse, DelegationResponse, QueryValidatorUnbondingDelegationsResponse, MsgDelegate, MsgCancelUnbondingDelegation, MsgUpdateParams, QueryDelegationRequest, QueryDelegatorDelegationsRequest, QueryDelegatorValidatorResponse, Description, Pool, UnbondingDelegation, QueryDelegatorUnbondingDelegationsResponse, ValAddresses, DVPairs, MsgCreateValidator, QueryValidatorDelegationsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorRequest, CommissionRates, QueryDelegationResponse, DVPair, ValidatorUpdates, MsgCreateValidatorResponse, MsgUndelegateResponse, Params, Delegation, UnbondingDelegationEntry, HistoricalInfo, QueryValidatorsResponse, QueryDelegatorDelegationsResponse, MsgBeginRedelegate, LastValidatorPower, QueryRedelegationsRequest, QueryPoolRequest, RedelegationResponse, QueryRedelegationsResponse, MsgEditValidatorResponse, QueryHistoricalInfoRequest, Commission, QueryValidatorRequest, QueryHistoricalInfoResponse, DVVTriplet, DVVTriplets, RedelegationEntryResponse, StakeAuthorization, GenesisState, QueryDelegatorUnbondingDelegationsRequest, QueryPoolResponse }; +type sendValidatorParams = { + value: Validator; fee?: StdFee; memo?: string; }; -type sendQueryValidatorDelegationsRequestParams = { - value: QueryValidatorDelegationsRequest; +type sendMsgBeginRedelegateResponseParams = { + value: MsgBeginRedelegateResponse; fee?: StdFee; memo?: string; }; -type sendQueryValidatorDelegationsResponseParams = { - value: QueryValidatorDelegationsResponse; +type sendRedelegationEntryParams = { + value: RedelegationEntry; fee?: StdFee; memo?: string; }; -type sendMsgEditValidatorResponseParams = { - value: MsgEditValidatorResponse; +type sendQueryValidatorResponseParams = { + value: QueryValidatorResponse; fee?: StdFee; memo?: string; }; -type sendMsgCreateValidatorParams = { - value: MsgCreateValidator; +type sendQueryValidatorDelegationsResponseParams = { + value: QueryValidatorDelegationsResponse; fee?: StdFee; memo?: string; }; -type sendMsgCancelUnbondingDelegationResponseParams = { - value: MsgCancelUnbondingDelegationResponse; +type sendQueryParamsRequestParams = { + value: QueryParamsRequest; fee?: StdFee; memo?: string; }; -type sendLastValidatorPowerParams = { - value: LastValidatorPower; +type sendQueryParamsResponseParams = { + value: QueryParamsResponse; fee?: StdFee; memo?: string; }; -type sendDVVTripletParams = { - value: DVVTriplet; +type sendQueryValidatorUnbondingDelegationsRequestParams = { + value: QueryValidatorUnbondingDelegationsRequest; fee?: StdFee; memo?: string; }; -type sendQueryDelegatorValidatorResponseParams = { - value: QueryDelegatorValidatorResponse; +type sendQueryUnbondingDelegationRequestParams = { + value: QueryUnbondingDelegationRequest; fee?: StdFee; memo?: string; }; -type sendQueryPoolRequestParams = { - value: QueryPoolRequest; +type sendMsgDelegateResponseParams = { + value: MsgDelegateResponse; fee?: StdFee; memo?: string; }; -type sendDelegationResponseParams = { - value: DelegationResponse; +type sendMsgUndelegateParams = { + value: MsgUndelegate; fee?: StdFee; memo?: string; }; -type sendMsgCreateValidatorResponseParams = { - value: MsgCreateValidatorResponse; +type sendRedelegationParams = { + value: Redelegation; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type sendQueryValidatorsRequestParams = { + value: QueryValidatorsRequest; fee?: StdFee; memo?: string; }; -type sendStakeAuthorizationParams = { - value: StakeAuthorization; +type sendMsgEditValidatorParams = { + value: MsgEditValidator; fee?: StdFee; memo?: string; }; -type sendQueryDelegatorValidatorRequestParams = { - value: QueryDelegatorValidatorRequest; +type sendMsgCancelUnbondingDelegationResponseParams = { + value: MsgCancelUnbondingDelegationResponse; fee?: StdFee; memo?: string; }; -type sendQueryDelegationResponseParams = { - value: QueryDelegationResponse; +type sendStakeAuthorization_ValidatorsParams = { + value: StakeAuthorization_Validators; fee?: StdFee; memo?: string; }; -type sendQueryUnbondingDelegationRequestParams = { - value: QueryUnbondingDelegationRequest; +type sendQueryUnbondingDelegationResponseParams = { + value: QueryUnbondingDelegationResponse; fee?: StdFee; memo?: string; }; -type sendMsgEditValidatorParams = { - value: MsgEditValidator; +type sendQueryDelegatorValidatorsRequestParams = { + value: QueryDelegatorValidatorsRequest; fee?: StdFee; memo?: string; }; -type sendMsgBeginRedelegateResponseParams = { - value: MsgBeginRedelegateResponse; +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; fee?: StdFee; memo?: string; }; -type sendMsgUndelegateResponseParams = { - value: MsgUndelegateResponse; +type sendDelegationResponseParams = { + value: DelegationResponse; fee?: StdFee; memo?: string; }; -type sendCommissionParams = { - value: Commission; +type sendQueryValidatorUnbondingDelegationsResponseParams = { + value: QueryValidatorUnbondingDelegationsResponse; fee?: StdFee; memo?: string; }; -type sendPoolParams = { - value: Pool; +type sendMsgDelegateParams = { + value: MsgDelegate; fee?: StdFee; memo?: string; }; -type sendQueryDelegatorUnbondingDelegationsRequestParams = { - value: QueryDelegatorUnbondingDelegationsRequest; +type sendMsgCancelUnbondingDelegationParams = { + value: MsgCancelUnbondingDelegation; fee?: StdFee; memo?: string; }; -type sendQueryRedelegationsResponseParams = { - value: QueryRedelegationsResponse; +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams; fee?: StdFee; memo?: string; }; -type sendQueryDelegatorValidatorsRequestParams = { - value: QueryDelegatorValidatorsRequest; +type sendQueryDelegationRequestParams = { + value: QueryDelegationRequest; fee?: StdFee; memo?: string; }; -type sendMsgDelegateParams = { - value: MsgDelegate; +type sendQueryDelegatorDelegationsRequestParams = { + value: QueryDelegatorDelegationsRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams; +type sendQueryDelegatorValidatorResponseParams = { + value: QueryDelegatorValidatorResponse; fee?: StdFee; memo?: string; }; -type sendRedelegationEntryParams = { - value: RedelegationEntry; +type sendDescriptionParams = { + value: Description; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendPoolParams = { + value: Pool; fee?: StdFee; memo?: string; }; -type sendValidatorParams = { - value: Validator; +type sendUnbondingDelegationParams = { + value: UnbondingDelegation; fee?: StdFee; memo?: string; }; -type sendDVVTripletsParams = { - value: DVVTriplets; +type sendQueryDelegatorUnbondingDelegationsResponseParams = { + value: QueryDelegatorUnbondingDelegationsResponse; fee?: StdFee; memo?: string; }; -type sendRedelegationEntryResponseParams = { - value: RedelegationEntryResponse; +type sendValAddressesParams = { + value: ValAddresses; fee?: StdFee; memo?: string; }; -type sendQueryValidatorUnbondingDelegationsRequestParams = { - value: QueryValidatorUnbondingDelegationsRequest; +type sendDVPairsParams = { + value: DVPairs; fee?: StdFee; memo?: string; }; -type sendParamsParams = { - value: Params; +type sendMsgCreateValidatorParams = { + value: MsgCreateValidator; fee?: StdFee; memo?: string; }; -type sendHistoricalInfoParams = { - value: HistoricalInfo; +type sendQueryValidatorDelegationsRequestParams = { + value: QueryValidatorDelegationsRequest; fee?: StdFee; memo?: string; }; -type sendDVPairParams = { - value: DVPair; +type sendQueryDelegatorValidatorsResponseParams = { + value: QueryDelegatorValidatorsResponse; fee?: StdFee; memo?: string; }; -type sendQueryValidatorsRequestParams = { - value: QueryValidatorsRequest; +type sendQueryDelegatorValidatorRequestParams = { + value: QueryDelegatorValidatorRequest; fee?: StdFee; memo?: string; }; -type sendQueryValidatorUnbondingDelegationsResponseParams = { - value: QueryValidatorUnbondingDelegationsResponse; +type sendCommissionRatesParams = { + value: CommissionRates; fee?: StdFee; memo?: string; }; -type sendQueryDelegationRequestParams = { - value: QueryDelegationRequest; +type sendQueryDelegationResponseParams = { + value: QueryDelegationResponse; fee?: StdFee; memo?: string; }; -type sendQueryRedelegationsRequestParams = { - value: QueryRedelegationsRequest; +type sendDVPairParams = { + value: DVPair; fee?: StdFee; memo?: string; }; -type sendCommissionRatesParams = { - value: CommissionRates; +type sendValidatorUpdatesParams = { + value: ValidatorUpdates; fee?: StdFee; memo?: string; }; -type sendQueryValidatorResponseParams = { - value: QueryValidatorResponse; +type sendMsgCreateValidatorResponseParams = { + value: MsgCreateValidatorResponse; fee?: StdFee; memo?: string; }; -type sendQueryDelegatorUnbondingDelegationsResponseParams = { - value: QueryDelegatorUnbondingDelegationsResponse; +type sendMsgUndelegateResponseParams = { + value: MsgUndelegateResponse; fee?: StdFee; memo?: string; }; -type sendMsgBeginRedelegateParams = { - value: MsgBeginRedelegate; +type sendParamsParams = { + value: Params; fee?: StdFee; memo?: string; }; -type sendRedelegationParams = { - value: Redelegation; +type sendDelegationParams = { + value: Delegation; fee?: StdFee; memo?: string; }; -type sendRedelegationResponseParams = { - value: RedelegationResponse; +type sendUnbondingDelegationEntryParams = { + value: UnbondingDelegationEntry; fee?: StdFee; memo?: string; }; -type sendValidatorUpdatesParams = { - value: ValidatorUpdates; +type sendHistoricalInfoParams = { + value: HistoricalInfo; fee?: StdFee; memo?: string; }; -type sendQueryUnbondingDelegationResponseParams = { - value: QueryUnbondingDelegationResponse; +type sendQueryValidatorsResponseParams = { + value: QueryValidatorsResponse; fee?: StdFee; memo?: string; }; -type sendQueryHistoricalInfoRequestParams = { - value: QueryHistoricalInfoRequest; +type sendQueryDelegatorDelegationsResponseParams = { + value: QueryDelegatorDelegationsResponse; fee?: StdFee; memo?: string; }; -type sendDVPairsParams = { - value: DVPairs; +type sendMsgBeginRedelegateParams = { + value: MsgBeginRedelegate; fee?: StdFee; memo?: string; }; -type sendQueryDelegatorValidatorsResponseParams = { - value: QueryDelegatorValidatorsResponse; +type sendLastValidatorPowerParams = { + value: LastValidatorPower; fee?: StdFee; memo?: string; }; -type sendMsgUndelegateParams = { - value: MsgUndelegate; +type sendQueryRedelegationsRequestParams = { + value: QueryRedelegationsRequest; fee?: StdFee; memo?: string; }; -type sendMsgCancelUnbondingDelegationParams = { - value: MsgCancelUnbondingDelegation; +type sendQueryPoolRequestParams = { + value: QueryPoolRequest; fee?: StdFee; memo?: string; }; -type sendUnbondingDelegationEntryParams = { - value: UnbondingDelegationEntry; +type sendRedelegationResponseParams = { + value: RedelegationResponse; fee?: StdFee; memo?: string; }; -type sendDescriptionParams = { - value: Description; +type sendQueryRedelegationsResponseParams = { + value: QueryRedelegationsResponse; fee?: StdFee; memo?: string; }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse; +type sendMsgEditValidatorResponseParams = { + value: MsgEditValidatorResponse; fee?: StdFee; memo?: string; }; -type sendDelegationParams = { - value: Delegation; +type sendQueryHistoricalInfoRequestParams = { + value: QueryHistoricalInfoRequest; fee?: StdFee; memo?: string; }; -type sendQueryDelegatorDelegationsRequestParams = { - value: QueryDelegatorDelegationsRequest; +type sendCommissionParams = { + value: Commission; fee?: StdFee; memo?: string; }; -type sendStakeAuthorization_ValidatorsParams = { - value: StakeAuthorization_Validators; +type sendQueryValidatorRequestParams = { + value: QueryValidatorRequest; fee?: StdFee; memo?: string; }; -type sendQueryValidatorsResponseParams = { - value: QueryValidatorsResponse; +type sendQueryHistoricalInfoResponseParams = { + value: QueryHistoricalInfoResponse; fee?: StdFee; memo?: string; }; -type sendQueryValidatorRequestParams = { - value: QueryValidatorRequest; +type sendDVVTripletParams = { + value: DVVTriplet; fee?: StdFee; memo?: string; }; -type sendQueryDelegatorDelegationsResponseParams = { - value: QueryDelegatorDelegationsResponse; +type sendDVVTripletsParams = { + value: DVVTriplets; fee?: StdFee; memo?: string; }; -type sendQueryHistoricalInfoResponseParams = { - value: QueryHistoricalInfoResponse; +type sendRedelegationEntryResponseParams = { + value: RedelegationEntryResponse; fee?: StdFee; memo?: string; }; -type sendQueryPoolResponseParams = { - value: QueryPoolResponse; +type sendStakeAuthorizationParams = { + value: StakeAuthorization; fee?: StdFee; memo?: string; }; -type sendUnbondingDelegationParams = { - value: UnbondingDelegation; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest; +type sendQueryDelegatorUnbondingDelegationsRequestParams = { + value: QueryDelegatorUnbondingDelegationsRequest; fee?: StdFee; memo?: string; }; -type sendMsgDelegateResponseParams = { - value: MsgDelegateResponse; +type sendQueryPoolResponseParams = { + value: QueryPoolResponse; fee?: StdFee; memo?: string; }; -type valAddressesParams = { - value: ValAddresses; -}; -type queryValidatorDelegationsRequestParams = { - value: QueryValidatorDelegationsRequest; -}; -type queryValidatorDelegationsResponseParams = { - value: QueryValidatorDelegationsResponse; -}; -type msgEditValidatorResponseParams = { - value: MsgEditValidatorResponse; -}; -type msgCreateValidatorParams = { - value: MsgCreateValidator; +type validatorParams = { + value: Validator; }; -type msgCancelUnbondingDelegationResponseParams = { - value: MsgCancelUnbondingDelegationResponse; +type msgBeginRedelegateResponseParams = { + value: MsgBeginRedelegateResponse; }; -type lastValidatorPowerParams = { - value: LastValidatorPower; +type redelegationEntryParams = { + value: RedelegationEntry; }; -type dvvtripletParams = { - value: DVVTriplet; +type queryValidatorResponseParams = { + value: QueryValidatorResponse; }; -type queryDelegatorValidatorResponseParams = { - value: QueryDelegatorValidatorResponse; +type queryValidatorDelegationsResponseParams = { + value: QueryValidatorDelegationsResponse; }; -type queryPoolRequestParams = { - value: QueryPoolRequest; +type queryParamsRequestParams = { + value: QueryParamsRequest; }; -type delegationResponseParams = { - value: DelegationResponse; +type queryParamsResponseParams = { + value: QueryParamsResponse; }; -type msgCreateValidatorResponseParams = { - value: MsgCreateValidatorResponse; +type queryValidatorUnbondingDelegationsRequestParams = { + value: QueryValidatorUnbondingDelegationsRequest; }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type queryUnbondingDelegationRequestParams = { + value: QueryUnbondingDelegationRequest; }; -type stakeAuthorizationParams = { - value: StakeAuthorization; +type msgDelegateResponseParams = { + value: MsgDelegateResponse; }; -type queryDelegatorValidatorRequestParams = { - value: QueryDelegatorValidatorRequest; +type msgUndelegateParams = { + value: MsgUndelegate; }; -type queryDelegationResponseParams = { - value: QueryDelegationResponse; +type redelegationParams = { + value: Redelegation; }; -type queryUnbondingDelegationRequestParams = { - value: QueryUnbondingDelegationRequest; +type queryValidatorsRequestParams = { + value: QueryValidatorsRequest; }; type msgEditValidatorParams = { value: MsgEditValidator; }; -type msgBeginRedelegateResponseParams = { - value: MsgBeginRedelegateResponse; +type msgCancelUnbondingDelegationResponseParams = { + value: MsgCancelUnbondingDelegationResponse; }; -type msgUndelegateResponseParams = { - value: MsgUndelegateResponse; +type stakeAuthorizationValidatorsParams = { + value: StakeAuthorization_Validators; }; -type commissionParams = { - value: Commission; +type queryUnbondingDelegationResponseParams = { + value: QueryUnbondingDelegationResponse; }; -type poolParams = { - value: Pool; +type queryDelegatorValidatorsRequestParams = { + value: QueryDelegatorValidatorsRequest; }; -type queryDelegatorUnbondingDelegationsRequestParams = { - value: QueryDelegatorUnbondingDelegationsRequest; +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; }; -type queryRedelegationsResponseParams = { - value: QueryRedelegationsResponse; +type delegationResponseParams = { + value: DelegationResponse; }; -type queryDelegatorValidatorsRequestParams = { - value: QueryDelegatorValidatorsRequest; +type queryValidatorUnbondingDelegationsResponseParams = { + value: QueryValidatorUnbondingDelegationsResponse; }; type msgDelegateParams = { value: MsgDelegate; }; +type msgCancelUnbondingDelegationParams = { + value: MsgCancelUnbondingDelegation; +}; type msgUpdateParamsParams = { value: MsgUpdateParams; }; -type redelegationEntryParams = { - value: RedelegationEntry; +type queryDelegationRequestParams = { + value: QueryDelegationRequest; }; -type genesisStateParams = { - value: GenesisState; +type queryDelegatorDelegationsRequestParams = { + value: QueryDelegatorDelegationsRequest; }; -type validatorParams = { - value: Validator; +type queryDelegatorValidatorResponseParams = { + value: QueryDelegatorValidatorResponse; }; -type dvvtripletsParams = { - value: DVVTriplets; +type descriptionParams = { + value: Description; }; -type redelegationEntryResponseParams = { - value: RedelegationEntryResponse; +type poolParams = { + value: Pool; }; -type queryValidatorUnbondingDelegationsRequestParams = { - value: QueryValidatorUnbondingDelegationsRequest; +type unbondingDelegationParams = { + value: UnbondingDelegation; }; -type paramsParams = { - value: Params; +type queryDelegatorUnbondingDelegationsResponseParams = { + value: QueryDelegatorUnbondingDelegationsResponse; }; -type historicalInfoParams = { - value: HistoricalInfo; +type valAddressesParams = { + value: ValAddresses; }; -type dvpairParams = { - value: DVPair; +type dvpairsParams = { + value: DVPairs; }; -type queryValidatorsRequestParams = { - value: QueryValidatorsRequest; +type msgCreateValidatorParams = { + value: MsgCreateValidator; }; -type queryValidatorUnbondingDelegationsResponseParams = { - value: QueryValidatorUnbondingDelegationsResponse; +type queryValidatorDelegationsRequestParams = { + value: QueryValidatorDelegationsRequest; }; -type queryDelegationRequestParams = { - value: QueryDelegationRequest; +type queryDelegatorValidatorsResponseParams = { + value: QueryDelegatorValidatorsResponse; }; -type queryRedelegationsRequestParams = { - value: QueryRedelegationsRequest; +type queryDelegatorValidatorRequestParams = { + value: QueryDelegatorValidatorRequest; }; type commissionRatesParams = { value: CommissionRates; }; -type queryValidatorResponseParams = { - value: QueryValidatorResponse; +type queryDelegationResponseParams = { + value: QueryDelegationResponse; }; -type queryDelegatorUnbondingDelegationsResponseParams = { - value: QueryDelegatorUnbondingDelegationsResponse; +type dvpairParams = { + value: DVPair; }; -type msgBeginRedelegateParams = { - value: MsgBeginRedelegate; +type validatorUpdatesParams = { + value: ValidatorUpdates; }; -type redelegationParams = { - value: Redelegation; +type msgCreateValidatorResponseParams = { + value: MsgCreateValidatorResponse; }; -type redelegationResponseParams = { - value: RedelegationResponse; +type msgUndelegateResponseParams = { + value: MsgUndelegateResponse; }; -type validatorUpdatesParams = { - value: ValidatorUpdates; +type paramsParams = { + value: Params; }; -type queryUnbondingDelegationResponseParams = { - value: QueryUnbondingDelegationResponse; +type delegationParams = { + value: Delegation; }; -type queryHistoricalInfoRequestParams = { - value: QueryHistoricalInfoRequest; +type unbondingDelegationEntryParams = { + value: UnbondingDelegationEntry; }; -type dvpairsParams = { - value: DVPairs; +type historicalInfoParams = { + value: HistoricalInfo; }; -type queryDelegatorValidatorsResponseParams = { - value: QueryDelegatorValidatorsResponse; +type queryValidatorsResponseParams = { + value: QueryValidatorsResponse; }; -type msgUndelegateParams = { - value: MsgUndelegate; +type queryDelegatorDelegationsResponseParams = { + value: QueryDelegatorDelegationsResponse; }; -type msgCancelUnbondingDelegationParams = { - value: MsgCancelUnbondingDelegation; +type msgBeginRedelegateParams = { + value: MsgBeginRedelegate; }; -type unbondingDelegationEntryParams = { - value: UnbondingDelegationEntry; +type lastValidatorPowerParams = { + value: LastValidatorPower; }; -type descriptionParams = { - value: Description; +type queryRedelegationsRequestParams = { + value: QueryRedelegationsRequest; }; -type queryParamsResponseParams = { - value: QueryParamsResponse; +type queryPoolRequestParams = { + value: QueryPoolRequest; }; -type delegationParams = { - value: Delegation; +type redelegationResponseParams = { + value: RedelegationResponse; }; -type queryDelegatorDelegationsRequestParams = { - value: QueryDelegatorDelegationsRequest; +type queryRedelegationsResponseParams = { + value: QueryRedelegationsResponse; }; -type stakeAuthorizationValidatorsParams = { - value: StakeAuthorization_Validators; +type msgEditValidatorResponseParams = { + value: MsgEditValidatorResponse; }; -type queryValidatorsResponseParams = { - value: QueryValidatorsResponse; +type queryHistoricalInfoRequestParams = { + value: QueryHistoricalInfoRequest; +}; +type commissionParams = { + value: Commission; }; type queryValidatorRequestParams = { value: QueryValidatorRequest; }; -type queryDelegatorDelegationsResponseParams = { - value: QueryDelegatorDelegationsResponse; -}; type queryHistoricalInfoResponseParams = { value: QueryHistoricalInfoResponse; }; -type queryPoolResponseParams = { - value: QueryPoolResponse; +type dvvtripletParams = { + value: DVVTriplet; }; -type unbondingDelegationParams = { - value: UnbondingDelegation; +type dvvtripletsParams = { + value: DVVTriplets; }; -type queryParamsRequestParams = { - value: QueryParamsRequest; +type redelegationEntryResponseParams = { + value: RedelegationEntryResponse; }; -type msgDelegateResponseParams = { - value: MsgDelegateResponse; +type stakeAuthorizationParams = { + value: StakeAuthorization; +}; +type genesisStateParams = { + value: GenesisState; +}; +type queryDelegatorUnbondingDelegationsRequestParams = { + value: QueryDelegatorUnbondingDelegationsRequest; +}; +type queryPoolResponseParams = { + value: QueryPoolResponse; }; export declare const registry: Registry; interface TxClientOptions { @@ -613,140 +613,140 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendValAddresses({ value, fee, memo }: sendValAddressesParams): Promise; - sendQueryValidatorDelegationsRequest({ value, fee, memo }: sendQueryValidatorDelegationsRequestParams): Promise; + sendValidator({ value, fee, memo }: sendValidatorParams): Promise; + sendMsgBeginRedelegateResponse({ value, fee, memo }: sendMsgBeginRedelegateResponseParams): Promise; + sendRedelegationEntry({ value, fee, memo }: sendRedelegationEntryParams): Promise; + sendQueryValidatorResponse({ value, fee, memo }: sendQueryValidatorResponseParams): Promise; sendQueryValidatorDelegationsResponse({ value, fee, memo }: sendQueryValidatorDelegationsResponseParams): Promise; - sendMsgEditValidatorResponse({ value, fee, memo }: sendMsgEditValidatorResponseParams): Promise; - sendMsgCreateValidator({ value, fee, memo }: sendMsgCreateValidatorParams): Promise; - sendMsgCancelUnbondingDelegationResponse({ value, fee, memo }: sendMsgCancelUnbondingDelegationResponseParams): Promise; - sendLastValidatorPower({ value, fee, memo }: sendLastValidatorPowerParams): Promise; - sendDVVTriplet({ value, fee, memo }: sendDVVTripletParams): Promise; - sendQueryDelegatorValidatorResponse({ value, fee, memo }: sendQueryDelegatorValidatorResponseParams): Promise; - sendQueryPoolRequest({ value, fee, memo }: sendQueryPoolRequestParams): Promise; - sendDelegationResponse({ value, fee, memo }: sendDelegationResponseParams): Promise; - sendMsgCreateValidatorResponse({ value, fee, memo }: sendMsgCreateValidatorResponseParams): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; - sendStakeAuthorization({ value, fee, memo }: sendStakeAuthorizationParams): Promise; - sendQueryDelegatorValidatorRequest({ value, fee, memo }: sendQueryDelegatorValidatorRequestParams): Promise; - sendQueryDelegationResponse({ value, fee, memo }: sendQueryDelegationResponseParams): Promise; + sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; + sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; + sendQueryValidatorUnbondingDelegationsRequest({ value, fee, memo }: sendQueryValidatorUnbondingDelegationsRequestParams): Promise; sendQueryUnbondingDelegationRequest({ value, fee, memo }: sendQueryUnbondingDelegationRequestParams): Promise; + sendMsgDelegateResponse({ value, fee, memo }: sendMsgDelegateResponseParams): Promise; + sendMsgUndelegate({ value, fee, memo }: sendMsgUndelegateParams): Promise; + sendRedelegation({ value, fee, memo }: sendRedelegationParams): Promise; + sendQueryValidatorsRequest({ value, fee, memo }: sendQueryValidatorsRequestParams): Promise; sendMsgEditValidator({ value, fee, memo }: sendMsgEditValidatorParams): Promise; - sendMsgBeginRedelegateResponse({ value, fee, memo }: sendMsgBeginRedelegateResponseParams): Promise; - sendMsgUndelegateResponse({ value, fee, memo }: sendMsgUndelegateResponseParams): Promise; - sendCommission({ value, fee, memo }: sendCommissionParams): Promise; - sendPool({ value, fee, memo }: sendPoolParams): Promise; - sendQueryDelegatorUnbondingDelegationsRequest({ value, fee, memo }: sendQueryDelegatorUnbondingDelegationsRequestParams): Promise; - sendQueryRedelegationsResponse({ value, fee, memo }: sendQueryRedelegationsResponseParams): Promise; + sendMsgCancelUnbondingDelegationResponse({ value, fee, memo }: sendMsgCancelUnbondingDelegationResponseParams): Promise; + sendStakeAuthorization_Validators({ value, fee, memo }: sendStakeAuthorization_ValidatorsParams): Promise; + sendQueryUnbondingDelegationResponse({ value, fee, memo }: sendQueryUnbondingDelegationResponseParams): Promise; sendQueryDelegatorValidatorsRequest({ value, fee, memo }: sendQueryDelegatorValidatorsRequestParams): Promise; + sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; + sendDelegationResponse({ value, fee, memo }: sendDelegationResponseParams): Promise; + sendQueryValidatorUnbondingDelegationsResponse({ value, fee, memo }: sendQueryValidatorUnbondingDelegationsResponseParams): Promise; sendMsgDelegate({ value, fee, memo }: sendMsgDelegateParams): Promise; + sendMsgCancelUnbondingDelegation({ value, fee, memo }: sendMsgCancelUnbondingDelegationParams): Promise; sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; - sendRedelegationEntry({ value, fee, memo }: sendRedelegationEntryParams): Promise; - sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendValidator({ value, fee, memo }: sendValidatorParams): Promise; - sendDVVTriplets({ value, fee, memo }: sendDVVTripletsParams): Promise; - sendRedelegationEntryResponse({ value, fee, memo }: sendRedelegationEntryResponseParams): Promise; - sendQueryValidatorUnbondingDelegationsRequest({ value, fee, memo }: sendQueryValidatorUnbondingDelegationsRequestParams): Promise; - sendParams({ value, fee, memo }: sendParamsParams): Promise; - sendHistoricalInfo({ value, fee, memo }: sendHistoricalInfoParams): Promise; - sendDVPair({ value, fee, memo }: sendDVPairParams): Promise; - sendQueryValidatorsRequest({ value, fee, memo }: sendQueryValidatorsRequestParams): Promise; - sendQueryValidatorUnbondingDelegationsResponse({ value, fee, memo }: sendQueryValidatorUnbondingDelegationsResponseParams): Promise; sendQueryDelegationRequest({ value, fee, memo }: sendQueryDelegationRequestParams): Promise; - sendQueryRedelegationsRequest({ value, fee, memo }: sendQueryRedelegationsRequestParams): Promise; - sendCommissionRates({ value, fee, memo }: sendCommissionRatesParams): Promise; - sendQueryValidatorResponse({ value, fee, memo }: sendQueryValidatorResponseParams): Promise; + sendQueryDelegatorDelegationsRequest({ value, fee, memo }: sendQueryDelegatorDelegationsRequestParams): Promise; + sendQueryDelegatorValidatorResponse({ value, fee, memo }: sendQueryDelegatorValidatorResponseParams): Promise; + sendDescription({ value, fee, memo }: sendDescriptionParams): Promise; + sendPool({ value, fee, memo }: sendPoolParams): Promise; + sendUnbondingDelegation({ value, fee, memo }: sendUnbondingDelegationParams): Promise; sendQueryDelegatorUnbondingDelegationsResponse({ value, fee, memo }: sendQueryDelegatorUnbondingDelegationsResponseParams): Promise; - sendMsgBeginRedelegate({ value, fee, memo }: sendMsgBeginRedelegateParams): Promise; - sendRedelegation({ value, fee, memo }: sendRedelegationParams): Promise; - sendRedelegationResponse({ value, fee, memo }: sendRedelegationResponseParams): Promise; - sendValidatorUpdates({ value, fee, memo }: sendValidatorUpdatesParams): Promise; - sendQueryUnbondingDelegationResponse({ value, fee, memo }: sendQueryUnbondingDelegationResponseParams): Promise; - sendQueryHistoricalInfoRequest({ value, fee, memo }: sendQueryHistoricalInfoRequestParams): Promise; + sendValAddresses({ value, fee, memo }: sendValAddressesParams): Promise; sendDVPairs({ value, fee, memo }: sendDVPairsParams): Promise; + sendMsgCreateValidator({ value, fee, memo }: sendMsgCreateValidatorParams): Promise; + sendQueryValidatorDelegationsRequest({ value, fee, memo }: sendQueryValidatorDelegationsRequestParams): Promise; sendQueryDelegatorValidatorsResponse({ value, fee, memo }: sendQueryDelegatorValidatorsResponseParams): Promise; - sendMsgUndelegate({ value, fee, memo }: sendMsgUndelegateParams): Promise; - sendMsgCancelUnbondingDelegation({ value, fee, memo }: sendMsgCancelUnbondingDelegationParams): Promise; - sendUnbondingDelegationEntry({ value, fee, memo }: sendUnbondingDelegationEntryParams): Promise; - sendDescription({ value, fee, memo }: sendDescriptionParams): Promise; - sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; + sendQueryDelegatorValidatorRequest({ value, fee, memo }: sendQueryDelegatorValidatorRequestParams): Promise; + sendCommissionRates({ value, fee, memo }: sendCommissionRatesParams): Promise; + sendQueryDelegationResponse({ value, fee, memo }: sendQueryDelegationResponseParams): Promise; + sendDVPair({ value, fee, memo }: sendDVPairParams): Promise; + sendValidatorUpdates({ value, fee, memo }: sendValidatorUpdatesParams): Promise; + sendMsgCreateValidatorResponse({ value, fee, memo }: sendMsgCreateValidatorResponseParams): Promise; + sendMsgUndelegateResponse({ value, fee, memo }: sendMsgUndelegateResponseParams): Promise; + sendParams({ value, fee, memo }: sendParamsParams): Promise; sendDelegation({ value, fee, memo }: sendDelegationParams): Promise; - sendQueryDelegatorDelegationsRequest({ value, fee, memo }: sendQueryDelegatorDelegationsRequestParams): Promise; - sendStakeAuthorization_Validators({ value, fee, memo }: sendStakeAuthorization_ValidatorsParams): Promise; + sendUnbondingDelegationEntry({ value, fee, memo }: sendUnbondingDelegationEntryParams): Promise; + sendHistoricalInfo({ value, fee, memo }: sendHistoricalInfoParams): Promise; sendQueryValidatorsResponse({ value, fee, memo }: sendQueryValidatorsResponseParams): Promise; - sendQueryValidatorRequest({ value, fee, memo }: sendQueryValidatorRequestParams): Promise; sendQueryDelegatorDelegationsResponse({ value, fee, memo }: sendQueryDelegatorDelegationsResponseParams): Promise; + sendMsgBeginRedelegate({ value, fee, memo }: sendMsgBeginRedelegateParams): Promise; + sendLastValidatorPower({ value, fee, memo }: sendLastValidatorPowerParams): Promise; + sendQueryRedelegationsRequest({ value, fee, memo }: sendQueryRedelegationsRequestParams): Promise; + sendQueryPoolRequest({ value, fee, memo }: sendQueryPoolRequestParams): Promise; + sendRedelegationResponse({ value, fee, memo }: sendRedelegationResponseParams): Promise; + sendQueryRedelegationsResponse({ value, fee, memo }: sendQueryRedelegationsResponseParams): Promise; + sendMsgEditValidatorResponse({ value, fee, memo }: sendMsgEditValidatorResponseParams): Promise; + sendQueryHistoricalInfoRequest({ value, fee, memo }: sendQueryHistoricalInfoRequestParams): Promise; + sendCommission({ value, fee, memo }: sendCommissionParams): Promise; + sendQueryValidatorRequest({ value, fee, memo }: sendQueryValidatorRequestParams): Promise; sendQueryHistoricalInfoResponse({ value, fee, memo }: sendQueryHistoricalInfoResponseParams): Promise; + sendDVVTriplet({ value, fee, memo }: sendDVVTripletParams): Promise; + sendDVVTriplets({ value, fee, memo }: sendDVVTripletsParams): Promise; + sendRedelegationEntryResponse({ value, fee, memo }: sendRedelegationEntryResponseParams): Promise; + sendStakeAuthorization({ value, fee, memo }: sendStakeAuthorizationParams): Promise; + sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; + sendQueryDelegatorUnbondingDelegationsRequest({ value, fee, memo }: sendQueryDelegatorUnbondingDelegationsRequestParams): Promise; sendQueryPoolResponse({ value, fee, memo }: sendQueryPoolResponseParams): Promise; - sendUnbondingDelegation({ value, fee, memo }: sendUnbondingDelegationParams): Promise; - sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; - sendMsgDelegateResponse({ value, fee, memo }: sendMsgDelegateResponseParams): Promise; - valAddresses({ value }: valAddressesParams): EncodeObject; - queryValidatorDelegationsRequest({ value }: queryValidatorDelegationsRequestParams): EncodeObject; + validator({ value }: validatorParams): EncodeObject; + msgBeginRedelegateResponse({ value }: msgBeginRedelegateResponseParams): EncodeObject; + redelegationEntry({ value }: redelegationEntryParams): EncodeObject; + queryValidatorResponse({ value }: queryValidatorResponseParams): EncodeObject; queryValidatorDelegationsResponse({ value }: queryValidatorDelegationsResponseParams): EncodeObject; - msgEditValidatorResponse({ value }: msgEditValidatorResponseParams): EncodeObject; - msgCreateValidator({ value }: msgCreateValidatorParams): EncodeObject; - msgCancelUnbondingDelegationResponse({ value }: msgCancelUnbondingDelegationResponseParams): EncodeObject; - lastValidatorPower({ value }: lastValidatorPowerParams): EncodeObject; - dvvtriplet({ value }: dvvtripletParams): EncodeObject; - queryDelegatorValidatorResponse({ value }: queryDelegatorValidatorResponseParams): EncodeObject; - queryPoolRequest({ value }: queryPoolRequestParams): EncodeObject; - delegationResponse({ value }: delegationResponseParams): EncodeObject; - msgCreateValidatorResponse({ value }: msgCreateValidatorResponseParams): EncodeObject; - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; - stakeAuthorization({ value }: stakeAuthorizationParams): EncodeObject; - queryDelegatorValidatorRequest({ value }: queryDelegatorValidatorRequestParams): EncodeObject; - queryDelegationResponse({ value }: queryDelegationResponseParams): EncodeObject; + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; + queryValidatorUnbondingDelegationsRequest({ value }: queryValidatorUnbondingDelegationsRequestParams): EncodeObject; queryUnbondingDelegationRequest({ value }: queryUnbondingDelegationRequestParams): EncodeObject; + msgDelegateResponse({ value }: msgDelegateResponseParams): EncodeObject; + msgUndelegate({ value }: msgUndelegateParams): EncodeObject; + redelegation({ value }: redelegationParams): EncodeObject; + queryValidatorsRequest({ value }: queryValidatorsRequestParams): EncodeObject; msgEditValidator({ value }: msgEditValidatorParams): EncodeObject; - msgBeginRedelegateResponse({ value }: msgBeginRedelegateResponseParams): EncodeObject; - msgUndelegateResponse({ value }: msgUndelegateResponseParams): EncodeObject; - commission({ value }: commissionParams): EncodeObject; - pool({ value }: poolParams): EncodeObject; - queryDelegatorUnbondingDelegationsRequest({ value }: queryDelegatorUnbondingDelegationsRequestParams): EncodeObject; - queryRedelegationsResponse({ value }: queryRedelegationsResponseParams): EncodeObject; + msgCancelUnbondingDelegationResponse({ value }: msgCancelUnbondingDelegationResponseParams): EncodeObject; + stakeAuthorizationValidators({ value }: stakeAuthorizationValidatorsParams): EncodeObject; + queryUnbondingDelegationResponse({ value }: queryUnbondingDelegationResponseParams): EncodeObject; queryDelegatorValidatorsRequest({ value }: queryDelegatorValidatorsRequestParams): EncodeObject; + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; + delegationResponse({ value }: delegationResponseParams): EncodeObject; + queryValidatorUnbondingDelegationsResponse({ value }: queryValidatorUnbondingDelegationsResponseParams): EncodeObject; msgDelegate({ value }: msgDelegateParams): EncodeObject; + msgCancelUnbondingDelegation({ value }: msgCancelUnbondingDelegationParams): EncodeObject; msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; - redelegationEntry({ value }: redelegationEntryParams): EncodeObject; - genesisState({ value }: genesisStateParams): EncodeObject; - validator({ value }: validatorParams): EncodeObject; - dvvtriplets({ value }: dvvtripletsParams): EncodeObject; - redelegationEntryResponse({ value }: redelegationEntryResponseParams): EncodeObject; - queryValidatorUnbondingDelegationsRequest({ value }: queryValidatorUnbondingDelegationsRequestParams): EncodeObject; - params({ value }: paramsParams): EncodeObject; - historicalInfo({ value }: historicalInfoParams): EncodeObject; - dvpair({ value }: dvpairParams): EncodeObject; - queryValidatorsRequest({ value }: queryValidatorsRequestParams): EncodeObject; - queryValidatorUnbondingDelegationsResponse({ value }: queryValidatorUnbondingDelegationsResponseParams): EncodeObject; queryDelegationRequest({ value }: queryDelegationRequestParams): EncodeObject; - queryRedelegationsRequest({ value }: queryRedelegationsRequestParams): EncodeObject; - commissionRates({ value }: commissionRatesParams): EncodeObject; - queryValidatorResponse({ value }: queryValidatorResponseParams): EncodeObject; + queryDelegatorDelegationsRequest({ value }: queryDelegatorDelegationsRequestParams): EncodeObject; + queryDelegatorValidatorResponse({ value }: queryDelegatorValidatorResponseParams): EncodeObject; + description({ value }: descriptionParams): EncodeObject; + pool({ value }: poolParams): EncodeObject; + unbondingDelegation({ value }: unbondingDelegationParams): EncodeObject; queryDelegatorUnbondingDelegationsResponse({ value }: queryDelegatorUnbondingDelegationsResponseParams): EncodeObject; - msgBeginRedelegate({ value }: msgBeginRedelegateParams): EncodeObject; - redelegation({ value }: redelegationParams): EncodeObject; - redelegationResponse({ value }: redelegationResponseParams): EncodeObject; - validatorUpdates({ value }: validatorUpdatesParams): EncodeObject; - queryUnbondingDelegationResponse({ value }: queryUnbondingDelegationResponseParams): EncodeObject; - queryHistoricalInfoRequest({ value }: queryHistoricalInfoRequestParams): EncodeObject; + valAddresses({ value }: valAddressesParams): EncodeObject; dvpairs({ value }: dvpairsParams): EncodeObject; + msgCreateValidator({ value }: msgCreateValidatorParams): EncodeObject; + queryValidatorDelegationsRequest({ value }: queryValidatorDelegationsRequestParams): EncodeObject; queryDelegatorValidatorsResponse({ value }: queryDelegatorValidatorsResponseParams): EncodeObject; - msgUndelegate({ value }: msgUndelegateParams): EncodeObject; - msgCancelUnbondingDelegation({ value }: msgCancelUnbondingDelegationParams): EncodeObject; - unbondingDelegationEntry({ value }: unbondingDelegationEntryParams): EncodeObject; - description({ value }: descriptionParams): EncodeObject; - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; + queryDelegatorValidatorRequest({ value }: queryDelegatorValidatorRequestParams): EncodeObject; + commissionRates({ value }: commissionRatesParams): EncodeObject; + queryDelegationResponse({ value }: queryDelegationResponseParams): EncodeObject; + dvpair({ value }: dvpairParams): EncodeObject; + validatorUpdates({ value }: validatorUpdatesParams): EncodeObject; + msgCreateValidatorResponse({ value }: msgCreateValidatorResponseParams): EncodeObject; + msgUndelegateResponse({ value }: msgUndelegateResponseParams): EncodeObject; + params({ value }: paramsParams): EncodeObject; delegation({ value }: delegationParams): EncodeObject; - queryDelegatorDelegationsRequest({ value }: queryDelegatorDelegationsRequestParams): EncodeObject; - stakeAuthorizationValidators({ value }: stakeAuthorizationValidatorsParams): EncodeObject; + unbondingDelegationEntry({ value }: unbondingDelegationEntryParams): EncodeObject; + historicalInfo({ value }: historicalInfoParams): EncodeObject; queryValidatorsResponse({ value }: queryValidatorsResponseParams): EncodeObject; - queryValidatorRequest({ value }: queryValidatorRequestParams): EncodeObject; queryDelegatorDelegationsResponse({ value }: queryDelegatorDelegationsResponseParams): EncodeObject; + msgBeginRedelegate({ value }: msgBeginRedelegateParams): EncodeObject; + lastValidatorPower({ value }: lastValidatorPowerParams): EncodeObject; + queryRedelegationsRequest({ value }: queryRedelegationsRequestParams): EncodeObject; + queryPoolRequest({ value }: queryPoolRequestParams): EncodeObject; + redelegationResponse({ value }: redelegationResponseParams): EncodeObject; + queryRedelegationsResponse({ value }: queryRedelegationsResponseParams): EncodeObject; + msgEditValidatorResponse({ value }: msgEditValidatorResponseParams): EncodeObject; + queryHistoricalInfoRequest({ value }: queryHistoricalInfoRequestParams): EncodeObject; + commission({ value }: commissionParams): EncodeObject; + queryValidatorRequest({ value }: queryValidatorRequestParams): EncodeObject; queryHistoricalInfoResponse({ value }: queryHistoricalInfoResponseParams): EncodeObject; + dvvtriplet({ value }: dvvtripletParams): EncodeObject; + dvvtriplets({ value }: dvvtripletsParams): EncodeObject; + redelegationEntryResponse({ value }: redelegationEntryResponseParams): EncodeObject; + stakeAuthorization({ value }: stakeAuthorizationParams): EncodeObject; + genesisState({ value }: genesisStateParams): EncodeObject; + queryDelegatorUnbondingDelegationsRequest({ value }: queryDelegatorUnbondingDelegationsRequestParams): EncodeObject; queryPoolResponse({ value }: queryPoolResponseParams): EncodeObject; - unbondingDelegation({ value }: unbondingDelegationParams): EncodeObject; - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; - msgDelegateResponse({ value }: msgDelegateResponseParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.staking.v1beta1/module.js b/ts-client/lib/cosmos.staking.v1beta1/module.js index 59f48d87a..ad44b16c0 100644 --- a/ts-client/lib/cosmos.staking.v1beta1/module.js +++ b/ts-client/lib/cosmos.staking.v1beta1/module.js @@ -3,74 +3,74 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { ValAddresses } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { Validator } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgBeginRedelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { RedelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryValidatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgEditValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgCancelUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { LastValidatorPower } from "./types/cosmos/staking/v1beta1/genesis"; -import { DVVTriplet } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegatorValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryPoolRequest } from "./types/cosmos/staking/v1beta1/query"; -import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { MsgCreateValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgUpdateParamsResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { StakeAuthorization } from "./types/cosmos/staking/v1beta1/authz"; -import { QueryDelegatorValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryParamsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryValidatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryUnbondingDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgDelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { Redelegation } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgBeginRedelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgUndelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { Commission } from "./types/cosmos/staking/v1beta1/staking"; -import { Pool } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryRedelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { MsgCancelUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { StakeAuthorization_Validators } from "./types/cosmos/staking/v1beta1/authz"; +import { QueryUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx"; import { MsgUpdateParams } from "./types/cosmos/staking/v1beta1/tx"; -import { RedelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; -import { GenesisState } from "./types/cosmos/staking/v1beta1/genesis"; -import { Validator } from "./types/cosmos/staking/v1beta1/staking"; -import { DVVTriplets } from "./types/cosmos/staking/v1beta1/staking"; -import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { Params } from "./types/cosmos/staking/v1beta1/staking"; -import { HistoricalInfo } from "./types/cosmos/staking/v1beta1/staking"; -import { DVPair } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryValidatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryRedelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { CommissionRates } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; +import { Description } from "./types/cosmos/staking/v1beta1/staking"; +import { Pool } from "./types/cosmos/staking/v1beta1/staking"; +import { UnbondingDelegation } from "./types/cosmos/staking/v1beta1/staking"; import { QueryDelegatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { Redelegation } from "./types/cosmos/staking/v1beta1/staking"; -import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { ValidatorUpdates } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryHistoricalInfoRequest } from "./types/cosmos/staking/v1beta1/query"; +import { ValAddresses } from "./types/cosmos/staking/v1beta1/staking"; import { DVPairs } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryValidatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx"; -import { UnbondingDelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; -import { Description } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryParamsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; +import { CommissionRates } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; +import { DVPair } from "./types/cosmos/staking/v1beta1/staking"; +import { ValidatorUpdates } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgCreateValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUndelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { Params } from "./types/cosmos/staking/v1beta1/staking"; import { Delegation } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { StakeAuthorization_Validators } from "./types/cosmos/staking/v1beta1/authz"; +import { UnbondingDelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; +import { HistoricalInfo } from "./types/cosmos/staking/v1beta1/staking"; import { QueryValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { LastValidatorPower } from "./types/cosmos/staking/v1beta1/genesis"; +import { QueryRedelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryPoolRequest } from "./types/cosmos/staking/v1beta1/query"; +import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryRedelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { MsgEditValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryHistoricalInfoRequest } from "./types/cosmos/staking/v1beta1/query"; +import { Commission } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryHistoricalInfoResponse } from "./types/cosmos/staking/v1beta1/query"; +import { DVVTriplet } from "./types/cosmos/staking/v1beta1/staking"; +import { DVVTriplets } from "./types/cosmos/staking/v1beta1/staking"; +import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { StakeAuthorization } from "./types/cosmos/staking/v1beta1/authz"; +import { GenesisState } from "./types/cosmos/staking/v1beta1/genesis"; +import { QueryDelegatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryPoolResponse } from "./types/cosmos/staking/v1beta1/query"; -import { UnbondingDelegation } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryParamsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgDelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -export { ValAddresses, QueryValidatorDelegationsRequest, QueryValidatorDelegationsResponse, MsgEditValidatorResponse, MsgCreateValidator, MsgCancelUnbondingDelegationResponse, LastValidatorPower, DVVTriplet, QueryDelegatorValidatorResponse, QueryPoolRequest, DelegationResponse, MsgCreateValidatorResponse, MsgUpdateParamsResponse, StakeAuthorization, QueryDelegatorValidatorRequest, QueryDelegationResponse, QueryUnbondingDelegationRequest, MsgEditValidator, MsgBeginRedelegateResponse, MsgUndelegateResponse, Commission, Pool, QueryDelegatorUnbondingDelegationsRequest, QueryRedelegationsResponse, QueryDelegatorValidatorsRequest, MsgDelegate, MsgUpdateParams, RedelegationEntry, GenesisState, Validator, DVVTriplets, RedelegationEntryResponse, QueryValidatorUnbondingDelegationsRequest, Params, HistoricalInfo, DVPair, QueryValidatorsRequest, QueryValidatorUnbondingDelegationsResponse, QueryDelegationRequest, QueryRedelegationsRequest, CommissionRates, QueryValidatorResponse, QueryDelegatorUnbondingDelegationsResponse, MsgBeginRedelegate, Redelegation, RedelegationResponse, ValidatorUpdates, QueryUnbondingDelegationResponse, QueryHistoricalInfoRequest, DVPairs, QueryDelegatorValidatorsResponse, MsgUndelegate, MsgCancelUnbondingDelegation, UnbondingDelegationEntry, Description, QueryParamsResponse, Delegation, QueryDelegatorDelegationsRequest, StakeAuthorization_Validators, QueryValidatorsResponse, QueryValidatorRequest, QueryDelegatorDelegationsResponse, QueryHistoricalInfoResponse, QueryPoolResponse, UnbondingDelegation, QueryParamsRequest, MsgDelegateResponse }; +export { Validator, MsgBeginRedelegateResponse, RedelegationEntry, QueryValidatorResponse, QueryValidatorDelegationsResponse, QueryParamsRequest, QueryParamsResponse, QueryValidatorUnbondingDelegationsRequest, QueryUnbondingDelegationRequest, MsgDelegateResponse, MsgUndelegate, Redelegation, QueryValidatorsRequest, MsgEditValidator, MsgCancelUnbondingDelegationResponse, StakeAuthorization_Validators, QueryUnbondingDelegationResponse, QueryDelegatorValidatorsRequest, MsgUpdateParamsResponse, DelegationResponse, QueryValidatorUnbondingDelegationsResponse, MsgDelegate, MsgCancelUnbondingDelegation, MsgUpdateParams, QueryDelegationRequest, QueryDelegatorDelegationsRequest, QueryDelegatorValidatorResponse, Description, Pool, UnbondingDelegation, QueryDelegatorUnbondingDelegationsResponse, ValAddresses, DVPairs, MsgCreateValidator, QueryValidatorDelegationsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorValidatorRequest, CommissionRates, QueryDelegationResponse, DVPair, ValidatorUpdates, MsgCreateValidatorResponse, MsgUndelegateResponse, Params, Delegation, UnbondingDelegationEntry, HistoricalInfo, QueryValidatorsResponse, QueryDelegatorDelegationsResponse, MsgBeginRedelegate, LastValidatorPower, QueryRedelegationsRequest, QueryPoolRequest, RedelegationResponse, QueryRedelegationsResponse, MsgEditValidatorResponse, QueryHistoricalInfoRequest, Commission, QueryValidatorRequest, QueryHistoricalInfoResponse, DVVTriplet, DVVTriplets, RedelegationEntryResponse, StakeAuthorization, GenesisState, QueryDelegatorUnbondingDelegationsRequest, QueryPoolResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -86,1478 +86,1478 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendValAddresses({ value, fee, memo }) { + async sendValidator({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValAddresses: 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.valAddresses({ value: ValAddresses.fromPartial(value) }); + let msg = this.validator({ value: Validator.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValAddresses: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidator: Could not broadcast Tx: ' + e.message); } }, - async sendQueryValidatorDelegationsRequest({ value, fee, memo }) { + async sendMsgBeginRedelegateResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryValidatorDelegationsRequest: 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.queryValidatorDelegationsRequest({ value: QueryValidatorDelegationsRequest.fromPartial(value) }); + let msg = this.msgBeginRedelegateResponse({ value: MsgBeginRedelegateResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryValidatorDelegationsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgBeginRedelegateResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryValidatorDelegationsResponse({ value, fee, memo }) { + async sendRedelegationEntry({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryValidatorDelegationsResponse: 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.queryValidatorDelegationsResponse({ value: QueryValidatorDelegationsResponse.fromPartial(value) }); + let msg = this.redelegationEntry({ value: RedelegationEntry.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryValidatorDelegationsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendRedelegationEntry: Could not broadcast Tx: ' + e.message); } }, - async sendMsgEditValidatorResponse({ value, fee, memo }) { + async sendQueryValidatorResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgEditValidatorResponse: 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.msgEditValidatorResponse({ value: MsgEditValidatorResponse.fromPartial(value) }); + let msg = this.queryValidatorResponse({ value: QueryValidatorResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgEditValidatorResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryValidatorResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCreateValidator({ value, fee, memo }) { + async sendQueryValidatorDelegationsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCreateValidator: 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.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) }); + let msg = this.queryValidatorDelegationsResponse({ value: QueryValidatorDelegationsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryValidatorDelegationsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCancelUnbondingDelegationResponse({ value, fee, memo }) { + async sendQueryParamsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCancelUnbondingDelegationResponse: 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.msgCancelUnbondingDelegationResponse({ value: MsgCancelUnbondingDelegationResponse.fromPartial(value) }); + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCancelUnbondingDelegationResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendLastValidatorPower({ value, fee, memo }) { + async sendQueryParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendLastValidatorPower: 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.lastValidatorPower({ value: LastValidatorPower.fromPartial(value) }); + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendLastValidatorPower: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendDVVTriplet({ value, fee, memo }) { + async sendQueryValidatorUnbondingDelegationsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDVVTriplet: 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.dvvtriplet({ value: DVVTriplet.fromPartial(value) }); + let msg = this.queryValidatorUnbondingDelegationsRequest({ value: QueryValidatorUnbondingDelegationsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDVVTriplet: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegatorValidatorResponse({ value, fee, memo }) { + async sendQueryUnbondingDelegationRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorResponse: 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.queryDelegatorValidatorResponse({ value: QueryDelegatorValidatorResponse.fromPartial(value) }); + let msg = this.queryUnbondingDelegationRequest({ value: QueryUnbondingDelegationRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegatorValidatorResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryUnbondingDelegationRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryPoolRequest({ value, fee, memo }) { + async sendMsgDelegateResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryPoolRequest: 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.queryPoolRequest({ value: QueryPoolRequest.fromPartial(value) }); + let msg = this.msgDelegateResponse({ value: MsgDelegateResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryPoolRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgDelegateResponse: Could not broadcast Tx: ' + e.message); } }, - async sendDelegationResponse({ value, fee, memo }) { + async sendMsgUndelegate({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDelegationResponse: 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.delegationResponse({ value: DelegationResponse.fromPartial(value) }); + let msg = this.msgUndelegate({ value: MsgUndelegate.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDelegationResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUndelegate: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCreateValidatorResponse({ value, fee, memo }) { + async sendRedelegation({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCreateValidatorResponse: 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.msgCreateValidatorResponse({ value: MsgCreateValidatorResponse.fromPartial(value) }); + let msg = this.redelegation({ value: Redelegation.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCreateValidatorResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendRedelegation: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }) { + async sendQueryValidatorsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: 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.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); + let msg = this.queryValidatorsRequest({ value: QueryValidatorsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryValidatorsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendStakeAuthorization({ value, fee, memo }) { + async sendMsgEditValidator({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendStakeAuthorization: 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.stakeAuthorization({ value: StakeAuthorization.fromPartial(value) }); + let msg = this.msgEditValidator({ value: MsgEditValidator.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendStakeAuthorization: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegatorValidatorRequest({ value, fee, memo }) { + async sendMsgCancelUnbondingDelegationResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorRequest: 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.queryDelegatorValidatorRequest({ value: QueryDelegatorValidatorRequest.fromPartial(value) }); + let msg = this.msgCancelUnbondingDelegationResponse({ value: MsgCancelUnbondingDelegationResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegatorValidatorRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCancelUnbondingDelegationResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegationResponse({ value, fee, memo }) { + async sendStakeAuthorization_Validators({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegationResponse: 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.queryDelegationResponse({ value: QueryDelegationResponse.fromPartial(value) }); + let msg = this.stakeAuthorizationValidators({ value: StakeAuthorization_Validators.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegationResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendStakeAuthorization_Validators: Could not broadcast Tx: ' + e.message); } }, - async sendQueryUnbondingDelegationRequest({ value, fee, memo }) { + async sendQueryUnbondingDelegationResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryUnbondingDelegationRequest: 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.queryUnbondingDelegationRequest({ value: QueryUnbondingDelegationRequest.fromPartial(value) }); + let msg = this.queryUnbondingDelegationResponse({ value: QueryUnbondingDelegationResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryUnbondingDelegationRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryUnbondingDelegationResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgEditValidator({ value, fee, memo }) { + async sendQueryDelegatorValidatorsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgEditValidator: 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.msgEditValidator({ value: MsgEditValidator.fromPartial(value) }); + let msg = this.queryDelegatorValidatorsRequest({ value: QueryDelegatorValidatorsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgEditValidator: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgBeginRedelegateResponse({ value, fee, memo }) { + async sendMsgUpdateParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgBeginRedelegateResponse: 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.msgBeginRedelegateResponse({ value: MsgBeginRedelegateResponse.fromPartial(value) }); + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgBeginRedelegateResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUndelegateResponse({ value, fee, memo }) { + async sendDelegationResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUndelegateResponse: 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.msgUndelegateResponse({ value: MsgUndelegateResponse.fromPartial(value) }); + let msg = this.delegationResponse({ value: DelegationResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUndelegateResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDelegationResponse: Could not broadcast Tx: ' + e.message); } }, - async sendCommission({ value, fee, memo }) { + async sendQueryValidatorUnbondingDelegationsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendCommission: 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.commission({ value: Commission.fromPartial(value) }); + let msg = this.queryValidatorUnbondingDelegationsResponse({ value: QueryValidatorUnbondingDelegationsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendCommission: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendPool({ value, fee, memo }) { + async sendMsgDelegate({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendPool: 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.pool({ value: Pool.fromPartial(value) }); + let msg = this.msgDelegate({ value: MsgDelegate.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendPool: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgDelegate: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegatorUnbondingDelegationsRequest({ value, fee, memo }) { + async sendMsgCancelUnbondingDelegation({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsRequest: 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.queryDelegatorUnbondingDelegationsRequest({ value: QueryDelegatorUnbondingDelegationsRequest.fromPartial(value) }); + let msg = this.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: ' + e.message); } }, - async sendQueryRedelegationsResponse({ value, fee, memo }) { + async sendMsgUpdateParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryRedelegationsResponse: 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.queryRedelegationsResponse({ value: QueryRedelegationsResponse.fromPartial(value) }); + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryRedelegationsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegatorValidatorsRequest({ value, fee, memo }) { + async sendQueryDelegationRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: 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.queryDelegatorValidatorsRequest({ value: QueryDelegatorValidatorsRequest.fromPartial(value) }); + let msg = this.queryDelegationRequest({ value: QueryDelegationRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegatorValidatorsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegationRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgDelegate({ value, fee, memo }) { + async sendQueryDelegatorDelegationsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgDelegate: 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.msgDelegate({ value: MsgDelegate.fromPartial(value) }); + let msg = this.queryDelegatorDelegationsRequest({ value: QueryDelegatorDelegationsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgDelegate: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegatorDelegationsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParams({ value, fee, memo }) { + async sendQueryDelegatorValidatorResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); + let msg = this.queryDelegatorValidatorResponse({ value: QueryDelegatorValidatorResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegatorValidatorResponse: Could not broadcast Tx: ' + e.message); } }, - async sendRedelegationEntry({ value, fee, memo }) { + async sendDescription({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendRedelegationEntry: 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.redelegationEntry({ value: RedelegationEntry.fromPartial(value) }); + let msg = this.description({ value: Description.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendRedelegationEntry: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDescription: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendPool({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.fromPartial(value) }); + let msg = this.pool({ value: Pool.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendPool: Could not broadcast Tx: ' + e.message); } }, - async sendValidator({ value, fee, memo }) { + async sendUnbondingDelegation({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidator: 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.validator({ value: Validator.fromPartial(value) }); + let msg = this.unbondingDelegation({ value: UnbondingDelegation.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidator: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendUnbondingDelegation: Could not broadcast Tx: ' + e.message); } }, - async sendDVVTriplets({ value, fee, memo }) { + async sendQueryDelegatorUnbondingDelegationsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDVVTriplets: 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.dvvtriplets({ value: DVVTriplets.fromPartial(value) }); + let msg = this.queryDelegatorUnbondingDelegationsResponse({ value: QueryDelegatorUnbondingDelegationsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDVVTriplets: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendRedelegationEntryResponse({ value, fee, memo }) { + async sendValAddresses({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendRedelegationEntryResponse: 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.redelegationEntryResponse({ value: RedelegationEntryResponse.fromPartial(value) }); + let msg = this.valAddresses({ value: ValAddresses.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendRedelegationEntryResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValAddresses: Could not broadcast Tx: ' + e.message); } }, - async sendQueryValidatorUnbondingDelegationsRequest({ value, fee, memo }) { + async sendDVPairs({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsRequest: 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.queryValidatorUnbondingDelegationsRequest({ value: QueryValidatorUnbondingDelegationsRequest.fromPartial(value) }); + let msg = this.dvpairs({ value: DVPairs.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDVPairs: Could not broadcast Tx: ' + e.message); } }, - async sendParams({ value, fee, memo }) { + async sendMsgCreateValidator({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendParams: 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.params({ value: Params.fromPartial(value) }); + let msg = this.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: ' + e.message); } }, - async sendHistoricalInfo({ value, fee, memo }) { + async sendQueryValidatorDelegationsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendHistoricalInfo: 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.historicalInfo({ value: HistoricalInfo.fromPartial(value) }); + let msg = this.queryValidatorDelegationsRequest({ value: QueryValidatorDelegationsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendHistoricalInfo: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryValidatorDelegationsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendDVPair({ value, fee, memo }) { + async sendQueryDelegatorValidatorsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDVPair: 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.dvpair({ value: DVPair.fromPartial(value) }); + let msg = this.queryDelegatorValidatorsResponse({ value: QueryDelegatorValidatorsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDVPair: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryValidatorsRequest({ value, fee, memo }) { + async sendQueryDelegatorValidatorRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryValidatorsRequest: 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.queryValidatorsRequest({ value: QueryValidatorsRequest.fromPartial(value) }); + let msg = this.queryDelegatorValidatorRequest({ value: QueryDelegatorValidatorRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryValidatorsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegatorValidatorRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryValidatorUnbondingDelegationsResponse({ value, fee, memo }) { + async sendCommissionRates({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsResponse: 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.queryValidatorUnbondingDelegationsResponse({ value: QueryValidatorUnbondingDelegationsResponse.fromPartial(value) }); + let msg = this.commissionRates({ value: CommissionRates.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryValidatorUnbondingDelegationsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendCommissionRates: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegationRequest({ value, fee, memo }) { + async sendQueryDelegationResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegationRequest: 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.queryDelegationRequest({ value: QueryDelegationRequest.fromPartial(value) }); + let msg = this.queryDelegationResponse({ value: QueryDelegationResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegationRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegationResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryRedelegationsRequest({ value, fee, memo }) { + async sendDVPair({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryRedelegationsRequest: 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.queryRedelegationsRequest({ value: QueryRedelegationsRequest.fromPartial(value) }); + let msg = this.dvpair({ value: DVPair.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryRedelegationsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDVPair: Could not broadcast Tx: ' + e.message); } }, - async sendCommissionRates({ value, fee, memo }) { + async sendValidatorUpdates({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendCommissionRates: 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.commissionRates({ value: CommissionRates.fromPartial(value) }); + let msg = this.validatorUpdates({ value: ValidatorUpdates.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendCommissionRates: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendValidatorUpdates: Could not broadcast Tx: ' + e.message); } }, - async sendQueryValidatorResponse({ value, fee, memo }) { + async sendMsgCreateValidatorResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryValidatorResponse: 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.queryValidatorResponse({ value: QueryValidatorResponse.fromPartial(value) }); + let msg = this.msgCreateValidatorResponse({ value: MsgCreateValidatorResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryValidatorResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCreateValidatorResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegatorUnbondingDelegationsResponse({ value, fee, memo }) { + async sendMsgUndelegateResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsResponse: 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.queryDelegatorUnbondingDelegationsResponse({ value: QueryDelegatorUnbondingDelegationsResponse.fromPartial(value) }); + let msg = this.msgUndelegateResponse({ value: MsgUndelegateResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUndelegateResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgBeginRedelegate({ value, fee, memo }) { + async sendParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgBeginRedelegate: 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.msgBeginRedelegate({ value: MsgBeginRedelegate.fromPartial(value) }); + let msg = this.params({ value: Params.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgBeginRedelegate: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); } }, - async sendRedelegation({ value, fee, memo }) { + async sendDelegation({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendRedelegation: 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.redelegation({ value: Redelegation.fromPartial(value) }); + let msg = this.delegation({ value: Delegation.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendRedelegation: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDelegation: Could not broadcast Tx: ' + e.message); } }, - async sendRedelegationResponse({ value, fee, memo }) { + async sendUnbondingDelegationEntry({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendRedelegationResponse: 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.redelegationResponse({ value: RedelegationResponse.fromPartial(value) }); + let msg = this.unbondingDelegationEntry({ value: UnbondingDelegationEntry.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendRedelegationResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendUnbondingDelegationEntry: Could not broadcast Tx: ' + e.message); } }, - async sendValidatorUpdates({ value, fee, memo }) { + async sendHistoricalInfo({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendValidatorUpdates: 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.validatorUpdates({ value: ValidatorUpdates.fromPartial(value) }); + let msg = this.historicalInfo({ value: HistoricalInfo.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendValidatorUpdates: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendHistoricalInfo: Could not broadcast Tx: ' + e.message); } }, - async sendQueryUnbondingDelegationResponse({ value, fee, memo }) { + async sendQueryValidatorsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryUnbondingDelegationResponse: 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.queryUnbondingDelegationResponse({ value: QueryUnbondingDelegationResponse.fromPartial(value) }); + let msg = this.queryValidatorsResponse({ value: QueryValidatorsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryUnbondingDelegationResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryValidatorsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryHistoricalInfoRequest({ value, fee, memo }) { + async sendQueryDelegatorDelegationsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryHistoricalInfoRequest: 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.queryHistoricalInfoRequest({ value: QueryHistoricalInfoRequest.fromPartial(value) }); + let msg = this.queryDelegatorDelegationsResponse({ value: QueryDelegatorDelegationsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryHistoricalInfoRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegatorDelegationsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendDVPairs({ value, fee, memo }) { + async sendMsgBeginRedelegate({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDVPairs: 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.dvpairs({ value: DVPairs.fromPartial(value) }); + let msg = this.msgBeginRedelegate({ value: MsgBeginRedelegate.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDVPairs: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgBeginRedelegate: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegatorValidatorsResponse({ value, fee, memo }) { + async sendLastValidatorPower({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: 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.queryDelegatorValidatorsResponse({ value: QueryDelegatorValidatorsResponse.fromPartial(value) }); + let msg = this.lastValidatorPower({ value: LastValidatorPower.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegatorValidatorsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendLastValidatorPower: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUndelegate({ value, fee, memo }) { + async sendQueryRedelegationsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUndelegate: 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.msgUndelegate({ value: MsgUndelegate.fromPartial(value) }); + let msg = this.queryRedelegationsRequest({ value: QueryRedelegationsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUndelegate: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryRedelegationsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCancelUnbondingDelegation({ value, fee, memo }) { + async sendQueryPoolRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCancelUnbondingDelegation: 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.msgCancelUnbondingDelegation({ value: MsgCancelUnbondingDelegation.fromPartial(value) }); + let msg = this.queryPoolRequest({ value: QueryPoolRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCancelUnbondingDelegation: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryPoolRequest: Could not broadcast Tx: ' + e.message); } }, - async sendUnbondingDelegationEntry({ value, fee, memo }) { + async sendRedelegationResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendUnbondingDelegationEntry: 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.unbondingDelegationEntry({ value: UnbondingDelegationEntry.fromPartial(value) }); + let msg = this.redelegationResponse({ value: RedelegationResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendUnbondingDelegationEntry: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendRedelegationResponse: Could not broadcast Tx: ' + e.message); } }, - async sendDescription({ value, fee, memo }) { + async sendQueryRedelegationsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDescription: 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.description({ value: Description.fromPartial(value) }); + let msg = this.queryRedelegationsResponse({ value: QueryRedelegationsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDescription: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryRedelegationsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsResponse({ value, fee, memo }) { + async sendMsgEditValidatorResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgEditValidatorResponse: Unable to 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.msgEditValidatorResponse({ value: MsgEditValidatorResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgEditValidatorResponse: Could not broadcast Tx: ' + e.message); } }, - async sendDelegation({ value, fee, memo }) { + async sendQueryHistoricalInfoRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDelegation: 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.delegation({ value: Delegation.fromPartial(value) }); + let msg = this.queryHistoricalInfoRequest({ value: QueryHistoricalInfoRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDelegation: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryHistoricalInfoRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegatorDelegationsRequest({ value, fee, memo }) { + async sendCommission({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorDelegationsRequest: 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.queryDelegatorDelegationsRequest({ value: QueryDelegatorDelegationsRequest.fromPartial(value) }); + let msg = this.commission({ value: Commission.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegatorDelegationsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendCommission: Could not broadcast Tx: ' + e.message); } }, - async sendStakeAuthorization_Validators({ value, fee, memo }) { + async sendQueryValidatorRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendStakeAuthorization_Validators: 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.stakeAuthorizationValidators({ value: StakeAuthorization_Validators.fromPartial(value) }); + let msg = this.queryValidatorRequest({ value: QueryValidatorRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendStakeAuthorization_Validators: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryValidatorRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryValidatorsResponse({ value, fee, memo }) { + async sendQueryHistoricalInfoResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryValidatorsResponse: 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.queryValidatorsResponse({ value: QueryValidatorsResponse.fromPartial(value) }); + let msg = this.queryHistoricalInfoResponse({ value: QueryHistoricalInfoResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryValidatorsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryHistoricalInfoResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryValidatorRequest({ value, fee, memo }) { + async sendDVVTriplet({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryValidatorRequest: 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.queryValidatorRequest({ value: QueryValidatorRequest.fromPartial(value) }); + let msg = this.dvvtriplet({ value: DVVTriplet.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryValidatorRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDVVTriplet: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDelegatorDelegationsResponse({ value, fee, memo }) { + async sendDVVTriplets({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDelegatorDelegationsResponse: 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.queryDelegatorDelegationsResponse({ value: QueryDelegatorDelegationsResponse.fromPartial(value) }); + let msg = this.dvvtriplets({ value: DVVTriplets.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDelegatorDelegationsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDVVTriplets: Could not broadcast Tx: ' + e.message); } }, - async sendQueryHistoricalInfoResponse({ value, fee, memo }) { + async sendRedelegationEntryResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryHistoricalInfoResponse: 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.queryHistoricalInfoResponse({ value: QueryHistoricalInfoResponse.fromPartial(value) }); + let msg = this.redelegationEntryResponse({ value: RedelegationEntryResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryHistoricalInfoResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendRedelegationEntryResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryPoolResponse({ value, fee, memo }) { + async sendStakeAuthorization({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryPoolResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendStakeAuthorization: Unable to 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.stakeAuthorization({ value: StakeAuthorization.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryPoolResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendStakeAuthorization: Could not broadcast Tx: ' + e.message); } }, - async sendUnbondingDelegation({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendUnbondingDelegation: 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.unbondingDelegation({ value: UnbondingDelegation.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendUnbondingDelegation: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsRequest({ value, fee, memo }) { + async sendQueryDelegatorUnbondingDelegationsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: 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.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); + let msg = this.queryDelegatorUnbondingDelegationsRequest({ value: QueryDelegatorUnbondingDelegationsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDelegatorUnbondingDelegationsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgDelegateResponse({ value, fee, memo }) { + async sendQueryPoolResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgDelegateResponse: 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.msgDelegateResponse({ value: MsgDelegateResponse.fromPartial(value) }); + let msg = this.queryPoolResponse({ value: QueryPoolResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgDelegateResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryPoolResponse: Could not broadcast Tx: ' + e.message); } }, - valAddresses({ value }) { + validator({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.ValAddresses", value: ValAddresses.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.Validator", value: Validator.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ValAddresses: Could not create message: ' + e.message); + throw new Error('TxClient:Validator: Could not create message: ' + e.message); } }, - queryValidatorDelegationsRequest({ value }) { + msgBeginRedelegateResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", value: QueryValidatorDelegationsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", value: MsgBeginRedelegateResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryValidatorDelegationsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgBeginRedelegateResponse: Could not create message: ' + e.message); } }, - queryValidatorDelegationsResponse({ value }) { + redelegationEntry({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", value: QueryValidatorDelegationsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", value: RedelegationEntry.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryValidatorDelegationsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:RedelegationEntry: Could not create message: ' + e.message); } }, - msgEditValidatorResponse({ value }) { + queryValidatorResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", value: MsgEditValidatorResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", value: QueryValidatorResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgEditValidatorResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryValidatorResponse: Could not create message: ' + e.message); } }, - msgCreateValidator({ value }) { + queryValidatorDelegationsResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", value: QueryValidatorDelegationsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message); + throw new Error('TxClient:QueryValidatorDelegationsResponse: Could not create message: ' + e.message); } }, - msgCancelUnbondingDelegationResponse({ value }) { + queryParamsRequest({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", value: MsgCancelUnbondingDelegationResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCancelUnbondingDelegationResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); } }, - lastValidatorPower({ value }) { + queryParamsResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", value: LastValidatorPower.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:LastValidatorPower: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); } }, - dvvtriplet({ value }) { + queryValidatorUnbondingDelegationsRequest({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", value: DVVTriplet.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", value: QueryValidatorUnbondingDelegationsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DVVTriplet: Could not create message: ' + e.message); + throw new Error('TxClient:QueryValidatorUnbondingDelegationsRequest: Could not create message: ' + e.message); } }, - queryDelegatorValidatorResponse({ value }) { + queryUnbondingDelegationRequest({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", value: QueryDelegatorValidatorResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", value: QueryUnbondingDelegationRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegatorValidatorResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryUnbondingDelegationRequest: Could not create message: ' + e.message); } }, - queryPoolRequest({ value }) { + msgDelegateResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", value: QueryPoolRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", value: MsgDelegateResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryPoolRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgDelegateResponse: Could not create message: ' + e.message); } }, - delegationResponse({ value }) { + msgUndelegate({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", value: DelegationResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DelegationResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUndelegate: Could not create message: ' + e.message); } }, - msgCreateValidatorResponse({ value }) { + redelegation({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", value: MsgCreateValidatorResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.Redelegation", value: Redelegation.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCreateValidatorResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Redelegation: Could not create message: ' + e.message); } }, - msgUpdateParamsResponse({ value }) { + queryValidatorsRequest({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", value: QueryValidatorsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryValidatorsRequest: Could not create message: ' + e.message); } }, - stakeAuthorization({ value }) { + msgEditValidator({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", value: StakeAuthorization.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:StakeAuthorization: Could not create message: ' + e.message); + throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message); } }, - queryDelegatorValidatorRequest({ value }) { + msgCancelUnbondingDelegationResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", value: QueryDelegatorValidatorRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", value: MsgCancelUnbondingDelegationResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegatorValidatorRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCancelUnbondingDelegationResponse: Could not create message: ' + e.message); } }, - queryDelegationResponse({ value }) { + stakeAuthorizationValidators({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", value: QueryDelegationResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization_Validators", value: StakeAuthorization_Validators.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegationResponse: Could not create message: ' + e.message); + throw new Error('TxClient:StakeAuthorization_Validators: Could not create message: ' + e.message); } }, - queryUnbondingDelegationRequest({ value }) { + queryUnbondingDelegationResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", value: QueryUnbondingDelegationRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", value: QueryUnbondingDelegationResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryUnbondingDelegationRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryUnbondingDelegationResponse: Could not create message: ' + e.message); } }, - msgEditValidator({ value }) { + queryDelegatorValidatorsRequest({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidator", value: MsgEditValidator.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", value: QueryDelegatorValidatorsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgEditValidator: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegatorValidatorsRequest: Could not create message: ' + e.message); } }, - msgBeginRedelegateResponse({ value }) { + msgUpdateParamsResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", value: MsgBeginRedelegateResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgBeginRedelegateResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); } }, - msgUndelegateResponse({ value }) { + delegationResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", value: MsgUndelegateResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.DelegationResponse", value: DelegationResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUndelegateResponse: Could not create message: ' + e.message); + throw new Error('TxClient:DelegationResponse: Could not create message: ' + e.message); } }, - commission({ value }) { + queryValidatorUnbondingDelegationsResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.Commission", value: Commission.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", value: QueryValidatorUnbondingDelegationsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Commission: Could not create message: ' + e.message); + throw new Error('TxClient:QueryValidatorUnbondingDelegationsResponse: Could not create message: ' + e.message); } }, - pool({ value }) { + msgDelegate({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.Pool", value: Pool.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: MsgDelegate.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Pool: Could not create message: ' + e.message); + throw new Error('TxClient:MsgDelegate: Could not create message: ' + e.message); } }, - queryDelegatorUnbondingDelegationsRequest({ value }) { + msgCancelUnbondingDelegation({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", value: QueryDelegatorUnbondingDelegationsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegatorUnbondingDelegationsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message); } }, - queryRedelegationsResponse({ value }) { + msgUpdateParams({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", value: QueryRedelegationsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryRedelegationsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); } }, - queryDelegatorValidatorsRequest({ value }) { + queryDelegationRequest({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", value: QueryDelegatorValidatorsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", value: QueryDelegationRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegatorValidatorsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegationRequest: Could not create message: ' + e.message); } }, - msgDelegate({ value }) { + queryDelegatorDelegationsRequest({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegate", value: MsgDelegate.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", value: QueryDelegatorDelegationsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgDelegate: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegatorDelegationsRequest: Could not create message: ' + e.message); } }, - msgUpdateParams({ value }) { + queryDelegatorValidatorResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", value: QueryDelegatorValidatorResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegatorValidatorResponse: Could not create message: ' + e.message); } }, - redelegationEntry({ value }) { + description({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.RedelegationEntry", value: RedelegationEntry.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.Description", value: Description.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:RedelegationEntry: Could not create message: ' + e.message); + throw new Error('TxClient:Description: Could not create message: ' + e.message); } }, - genesisState({ value }) { + pool({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.Pool", value: Pool.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:Pool: Could not create message: ' + e.message); } }, - validator({ value }) { + unbondingDelegation({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.Validator", value: Validator.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", value: UnbondingDelegation.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Validator: Could not create message: ' + e.message); + throw new Error('TxClient:UnbondingDelegation: Could not create message: ' + e.message); } }, - dvvtriplets({ value }) { + queryDelegatorUnbondingDelegationsResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", value: DVVTriplets.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", value: QueryDelegatorUnbondingDelegationsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DVVTriplets: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegatorUnbondingDelegationsResponse: Could not create message: ' + e.message); } }, - redelegationEntryResponse({ value }) { + valAddresses({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", value: RedelegationEntryResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.ValAddresses", value: ValAddresses.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:RedelegationEntryResponse: Could not create message: ' + e.message); + throw new Error('TxClient:ValAddresses: Could not create message: ' + e.message); } }, - queryValidatorUnbondingDelegationsRequest({ value }) { + dvpairs({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", value: QueryValidatorUnbondingDelegationsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.DVPairs", value: DVPairs.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryValidatorUnbondingDelegationsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:DVPairs: Could not create message: ' + e.message); } }, - params({ value }) { + msgCreateValidator({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.Params", value: Params.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidator", value: MsgCreateValidator.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Params: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreateValidator: Could not create message: ' + e.message); } }, - historicalInfo({ value }) { + queryValidatorDelegationsRequest({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", value: HistoricalInfo.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", value: QueryValidatorDelegationsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:HistoricalInfo: Could not create message: ' + e.message); + throw new Error('TxClient:QueryValidatorDelegationsRequest: Could not create message: ' + e.message); } }, - dvpair({ value }) { + queryDelegatorValidatorsResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.DVPair", value: DVPair.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", value: QueryDelegatorValidatorsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DVPair: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegatorValidatorsResponse: Could not create message: ' + e.message); } }, - queryValidatorsRequest({ value }) { + queryDelegatorValidatorRequest({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsRequest", value: QueryValidatorsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", value: QueryDelegatorValidatorRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryValidatorsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegatorValidatorRequest: Could not create message: ' + e.message); } }, - queryValidatorUnbondingDelegationsResponse({ value }) { + commissionRates({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", value: QueryValidatorUnbondingDelegationsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.CommissionRates", value: CommissionRates.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryValidatorUnbondingDelegationsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:CommissionRates: Could not create message: ' + e.message); } }, - queryDelegationRequest({ value }) { + queryDelegationResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegationRequest", value: QueryDelegationRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegationResponse", value: QueryDelegationResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegationRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegationResponse: Could not create message: ' + e.message); } }, - queryRedelegationsRequest({ value }) { + dvpair({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", value: QueryRedelegationsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.DVPair", value: DVPair.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryRedelegationsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:DVPair: Could not create message: ' + e.message); } }, - commissionRates({ value }) { + validatorUpdates({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.CommissionRates", value: CommissionRates.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.ValidatorUpdates", value: ValidatorUpdates.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:CommissionRates: Could not create message: ' + e.message); + throw new Error('TxClient:ValidatorUpdates: Could not create message: ' + e.message); } }, - queryValidatorResponse({ value }) { + msgCreateValidatorResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorResponse", value: QueryValidatorResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.MsgCreateValidatorResponse", value: MsgCreateValidatorResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryValidatorResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreateValidatorResponse: Could not create message: ' + e.message); } }, - queryDelegatorUnbondingDelegationsResponse({ value }) { + msgUndelegateResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", value: QueryDelegatorUnbondingDelegationsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegateResponse", value: MsgUndelegateResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegatorUnbondingDelegationsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUndelegateResponse: Could not create message: ' + e.message); } }, - msgBeginRedelegate({ value }) { + params({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.Params", value: Params.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message); + throw new Error('TxClient:Params: Could not create message: ' + e.message); } }, - redelegation({ value }) { + delegation({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.Redelegation", value: Redelegation.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.Delegation", value: Delegation.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Redelegation: Could not create message: ' + e.message); + throw new Error('TxClient:Delegation: Could not create message: ' + e.message); } }, - redelegationResponse({ value }) { + unbondingDelegationEntry({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", value: RedelegationResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", value: UnbondingDelegationEntry.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:RedelegationResponse: Could not create message: ' + e.message); + throw new Error('TxClient:UnbondingDelegationEntry: Could not create message: ' + e.message); } }, - validatorUpdates({ value }) { + historicalInfo({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.ValidatorUpdates", value: ValidatorUpdates.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.HistoricalInfo", value: HistoricalInfo.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ValidatorUpdates: Could not create message: ' + e.message); + throw new Error('TxClient:HistoricalInfo: Could not create message: ' + e.message); } }, - queryUnbondingDelegationResponse({ value }) { + queryValidatorsResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", value: QueryUnbondingDelegationResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", value: QueryValidatorsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryUnbondingDelegationResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryValidatorsResponse: Could not create message: ' + e.message); } }, - queryHistoricalInfoRequest({ value }) { + queryDelegatorDelegationsResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", value: QueryHistoricalInfoRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", value: QueryDelegatorDelegationsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryHistoricalInfoRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegatorDelegationsResponse: Could not create message: ' + e.message); } }, - dvpairs({ value }) { + msgBeginRedelegate({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.DVPairs", value: DVPairs.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: MsgBeginRedelegate.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DVPairs: Could not create message: ' + e.message); + throw new Error('TxClient:MsgBeginRedelegate: Could not create message: ' + e.message); } }, - queryDelegatorValidatorsResponse({ value }) { + lastValidatorPower({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", value: QueryDelegatorValidatorsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower", value: LastValidatorPower.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegatorValidatorsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:LastValidatorPower: Could not create message: ' + e.message); } }, - msgUndelegate({ value }) { + queryRedelegationsRequest({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgUndelegate", value: MsgUndelegate.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsRequest", value: QueryRedelegationsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUndelegate: Could not create message: ' + e.message); + throw new Error('TxClient:QueryRedelegationsRequest: Could not create message: ' + e.message); } }, - msgCancelUnbondingDelegation({ value }) { + queryPoolRequest({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", value: MsgCancelUnbondingDelegation.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryPoolRequest", value: QueryPoolRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCancelUnbondingDelegation: Could not create message: ' + e.message); + throw new Error('TxClient:QueryPoolRequest: Could not create message: ' + e.message); } }, - unbondingDelegationEntry({ value }) { + redelegationResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegationEntry", value: UnbondingDelegationEntry.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.RedelegationResponse", value: RedelegationResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:UnbondingDelegationEntry: Could not create message: ' + e.message); + throw new Error('TxClient:RedelegationResponse: Could not create message: ' + e.message); } }, - description({ value }) { + queryRedelegationsResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.Description", value: Description.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryRedelegationsResponse", value: QueryRedelegationsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Description: Could not create message: ' + e.message); + throw new Error('TxClient:QueryRedelegationsResponse: Could not create message: ' + e.message); } }, - queryParamsResponse({ value }) { + msgEditValidatorResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.MsgEditValidatorResponse", value: MsgEditValidatorResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgEditValidatorResponse: Could not create message: ' + e.message); } }, - delegation({ value }) { + queryHistoricalInfoRequest({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.Delegation", value: Delegation.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", value: QueryHistoricalInfoRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Delegation: Could not create message: ' + e.message); + throw new Error('TxClient:QueryHistoricalInfoRequest: Could not create message: ' + e.message); } }, - queryDelegatorDelegationsRequest({ value }) { + commission({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", value: QueryDelegatorDelegationsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.Commission", value: Commission.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegatorDelegationsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:Commission: Could not create message: ' + e.message); } }, - stakeAuthorizationValidators({ value }) { + queryValidatorRequest({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization_Validators", value: StakeAuthorization_Validators.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", value: QueryValidatorRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:StakeAuthorization_Validators: Could not create message: ' + e.message); + throw new Error('TxClient:QueryValidatorRequest: Could not create message: ' + e.message); } }, - queryValidatorsResponse({ value }) { + queryHistoricalInfoResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorsResponse", value: QueryValidatorsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", value: QueryHistoricalInfoResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryValidatorsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryHistoricalInfoResponse: Could not create message: ' + e.message); } }, - queryValidatorRequest({ value }) { + dvvtriplet({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryValidatorRequest", value: QueryValidatorRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.DVVTriplet", value: DVVTriplet.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryValidatorRequest: Could not create message: ' + e.message); + throw new Error('TxClient:DVVTriplet: Could not create message: ' + e.message); } }, - queryDelegatorDelegationsResponse({ value }) { + dvvtriplets({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", value: QueryDelegatorDelegationsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.DVVTriplets", value: DVVTriplets.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDelegatorDelegationsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:DVVTriplets: Could not create message: ' + e.message); } }, - queryHistoricalInfoResponse({ value }) { + redelegationEntryResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", value: QueryHistoricalInfoResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.RedelegationEntryResponse", value: RedelegationEntryResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryHistoricalInfoResponse: Could not create message: ' + e.message); + throw new Error('TxClient:RedelegationEntryResponse: Could not create message: ' + e.message); } }, - queryPoolResponse({ value }) { + stakeAuthorization({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", value: QueryPoolResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.StakeAuthorization", value: StakeAuthorization.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryPoolResponse: Could not create message: ' + e.message); + throw new Error('TxClient:StakeAuthorization: Could not create message: ' + e.message); } }, - unbondingDelegation({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.UnbondingDelegation", value: UnbondingDelegation.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:UnbondingDelegation: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - queryParamsRequest({ value }) { + queryDelegatorUnbondingDelegationsRequest({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", value: QueryDelegatorUnbondingDelegationsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDelegatorUnbondingDelegationsRequest: Could not create message: ' + e.message); } }, - msgDelegateResponse({ value }) { + queryPoolResponse({ value }) { try { - return { typeUrl: "/cosmos.staking.v1beta1.MsgDelegateResponse", value: MsgDelegateResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.staking.v1beta1.QueryPoolResponse", value: QueryPoolResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgDelegateResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryPoolResponse: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.staking.v1beta1/registry.js b/ts-client/lib/cosmos.staking.v1beta1/registry.js index acba62dbf..5ef29d6d1 100644 --- a/ts-client/lib/cosmos.staking.v1beta1/registry.js +++ b/ts-client/lib/cosmos.staking.v1beta1/registry.js @@ -1,137 +1,137 @@ -import { ValAddresses } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { Validator } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgBeginRedelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { RedelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryValidatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgEditValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgCancelUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { LastValidatorPower } from "./types/cosmos/staking/v1beta1/genesis"; -import { DVVTriplet } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegatorValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryPoolRequest } from "./types/cosmos/staking/v1beta1/query"; -import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { MsgCreateValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgUpdateParamsResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { StakeAuthorization } from "./types/cosmos/staking/v1beta1/authz"; -import { QueryDelegatorValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryParamsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryParamsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryValidatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryUnbondingDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgDelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { Redelegation } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; import { MsgEditValidator } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgBeginRedelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgUndelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; -import { Commission } from "./types/cosmos/staking/v1beta1/staking"; -import { Pool } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryRedelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { MsgCancelUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { StakeAuthorization_Validators } from "./types/cosmos/staking/v1beta1/authz"; +import { QueryUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { DelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; import { MsgDelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx"; import { MsgUpdateParams } from "./types/cosmos/staking/v1beta1/tx"; -import { RedelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; -import { GenesisState } from "./types/cosmos/staking/v1beta1/genesis"; -import { Validator } from "./types/cosmos/staking/v1beta1/staking"; -import { DVVTriplets } from "./types/cosmos/staking/v1beta1/staking"; -import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { Params } from "./types/cosmos/staking/v1beta1/staking"; -import { HistoricalInfo } from "./types/cosmos/staking/v1beta1/staking"; -import { DVPair } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryValidatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegationRequest } from "./types/cosmos/staking/v1beta1/query"; -import { QueryRedelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { CommissionRates } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorValidatorResponse } from "./types/cosmos/staking/v1beta1/query"; +import { Description } from "./types/cosmos/staking/v1beta1/staking"; +import { Pool } from "./types/cosmos/staking/v1beta1/staking"; +import { UnbondingDelegation } from "./types/cosmos/staking/v1beta1/staking"; import { QueryDelegatorUnbondingDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { Redelegation } from "./types/cosmos/staking/v1beta1/staking"; -import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; -import { ValidatorUpdates } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryUnbondingDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryHistoricalInfoRequest } from "./types/cosmos/staking/v1beta1/query"; +import { ValAddresses } from "./types/cosmos/staking/v1beta1/staking"; import { DVPairs } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgCreateValidator } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryValidatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { MsgUndelegate } from "./types/cosmos/staking/v1beta1/tx"; -import { MsgCancelUnbondingDelegation } from "./types/cosmos/staking/v1beta1/tx"; -import { UnbondingDelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; -import { Description } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryParamsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { QueryDelegatorValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; +import { CommissionRates } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryDelegationResponse } from "./types/cosmos/staking/v1beta1/query"; +import { DVPair } from "./types/cosmos/staking/v1beta1/staking"; +import { ValidatorUpdates } from "./types/cosmos/staking/v1beta1/staking"; +import { MsgCreateValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { MsgUndelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { Params } from "./types/cosmos/staking/v1beta1/staking"; import { Delegation } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryDelegatorDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { StakeAuthorization_Validators } from "./types/cosmos/staking/v1beta1/authz"; +import { UnbondingDelegationEntry } from "./types/cosmos/staking/v1beta1/staking"; +import { HistoricalInfo } from "./types/cosmos/staking/v1beta1/staking"; import { QueryValidatorsResponse } from "./types/cosmos/staking/v1beta1/query"; -import { QueryValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryDelegatorDelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { MsgBeginRedelegate } from "./types/cosmos/staking/v1beta1/tx"; +import { LastValidatorPower } from "./types/cosmos/staking/v1beta1/genesis"; +import { QueryRedelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; +import { QueryPoolRequest } from "./types/cosmos/staking/v1beta1/query"; +import { RedelegationResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryRedelegationsResponse } from "./types/cosmos/staking/v1beta1/query"; +import { MsgEditValidatorResponse } from "./types/cosmos/staking/v1beta1/tx"; +import { QueryHistoricalInfoRequest } from "./types/cosmos/staking/v1beta1/query"; +import { Commission } from "./types/cosmos/staking/v1beta1/staking"; +import { QueryValidatorRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryHistoricalInfoResponse } from "./types/cosmos/staking/v1beta1/query"; +import { DVVTriplet } from "./types/cosmos/staking/v1beta1/staking"; +import { DVVTriplets } from "./types/cosmos/staking/v1beta1/staking"; +import { RedelegationEntryResponse } from "./types/cosmos/staking/v1beta1/staking"; +import { StakeAuthorization } from "./types/cosmos/staking/v1beta1/authz"; +import { GenesisState } from "./types/cosmos/staking/v1beta1/genesis"; +import { QueryDelegatorUnbondingDelegationsRequest } from "./types/cosmos/staking/v1beta1/query"; import { QueryPoolResponse } from "./types/cosmos/staking/v1beta1/query"; -import { UnbondingDelegation } from "./types/cosmos/staking/v1beta1/staking"; -import { QueryParamsRequest } from "./types/cosmos/staking/v1beta1/query"; -import { MsgDelegateResponse } from "./types/cosmos/staking/v1beta1/tx"; const msgTypes = [ - ["/cosmos.staking.v1beta1.ValAddresses", ValAddresses], - ["/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", QueryValidatorDelegationsRequest], + ["/cosmos.staking.v1beta1.Validator", Validator], + ["/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", MsgBeginRedelegateResponse], + ["/cosmos.staking.v1beta1.RedelegationEntry", RedelegationEntry], + ["/cosmos.staking.v1beta1.QueryValidatorResponse", QueryValidatorResponse], ["/cosmos.staking.v1beta1.QueryValidatorDelegationsResponse", QueryValidatorDelegationsResponse], - ["/cosmos.staking.v1beta1.MsgEditValidatorResponse", MsgEditValidatorResponse], - ["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], - ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", MsgCancelUnbondingDelegationResponse], - ["/cosmos.staking.v1beta1.LastValidatorPower", LastValidatorPower], - ["/cosmos.staking.v1beta1.DVVTriplet", DVVTriplet], - ["/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", QueryDelegatorValidatorResponse], - ["/cosmos.staking.v1beta1.QueryPoolRequest", QueryPoolRequest], - ["/cosmos.staking.v1beta1.DelegationResponse", DelegationResponse], - ["/cosmos.staking.v1beta1.MsgCreateValidatorResponse", MsgCreateValidatorResponse], - ["/cosmos.staking.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/cosmos.staking.v1beta1.StakeAuthorization", StakeAuthorization], - ["/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", QueryDelegatorValidatorRequest], - ["/cosmos.staking.v1beta1.QueryDelegationResponse", QueryDelegationResponse], + ["/cosmos.staking.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/cosmos.staking.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", QueryValidatorUnbondingDelegationsRequest], ["/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest", QueryUnbondingDelegationRequest], + ["/cosmos.staking.v1beta1.MsgDelegateResponse", MsgDelegateResponse], + ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], + ["/cosmos.staking.v1beta1.Redelegation", Redelegation], + ["/cosmos.staking.v1beta1.QueryValidatorsRequest", QueryValidatorsRequest], ["/cosmos.staking.v1beta1.MsgEditValidator", MsgEditValidator], - ["/cosmos.staking.v1beta1.MsgBeginRedelegateResponse", MsgBeginRedelegateResponse], - ["/cosmos.staking.v1beta1.MsgUndelegateResponse", MsgUndelegateResponse], - ["/cosmos.staking.v1beta1.Commission", Commission], - ["/cosmos.staking.v1beta1.Pool", Pool], - ["/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", QueryDelegatorUnbondingDelegationsRequest], - ["/cosmos.staking.v1beta1.QueryRedelegationsResponse", QueryRedelegationsResponse], + ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegationResponse", MsgCancelUnbondingDelegationResponse], + ["/cosmos.staking.v1beta1.StakeAuthorization_Validators", StakeAuthorization_Validators], + ["/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", QueryUnbondingDelegationResponse], ["/cosmos.staking.v1beta1.QueryDelegatorValidatorsRequest", QueryDelegatorValidatorsRequest], + ["/cosmos.staking.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/cosmos.staking.v1beta1.DelegationResponse", DelegationResponse], + ["/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", QueryValidatorUnbondingDelegationsResponse], ["/cosmos.staking.v1beta1.MsgDelegate", MsgDelegate], + ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation], ["/cosmos.staking.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/cosmos.staking.v1beta1.RedelegationEntry", RedelegationEntry], - ["/cosmos.staking.v1beta1.GenesisState", GenesisState], - ["/cosmos.staking.v1beta1.Validator", Validator], - ["/cosmos.staking.v1beta1.DVVTriplets", DVVTriplets], - ["/cosmos.staking.v1beta1.RedelegationEntryResponse", RedelegationEntryResponse], - ["/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsRequest", QueryValidatorUnbondingDelegationsRequest], - ["/cosmos.staking.v1beta1.Params", Params], - ["/cosmos.staking.v1beta1.HistoricalInfo", HistoricalInfo], - ["/cosmos.staking.v1beta1.DVPair", DVPair], - ["/cosmos.staking.v1beta1.QueryValidatorsRequest", QueryValidatorsRequest], - ["/cosmos.staking.v1beta1.QueryValidatorUnbondingDelegationsResponse", QueryValidatorUnbondingDelegationsResponse], ["/cosmos.staking.v1beta1.QueryDelegationRequest", QueryDelegationRequest], - ["/cosmos.staking.v1beta1.QueryRedelegationsRequest", QueryRedelegationsRequest], - ["/cosmos.staking.v1beta1.CommissionRates", CommissionRates], - ["/cosmos.staking.v1beta1.QueryValidatorResponse", QueryValidatorResponse], + ["/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", QueryDelegatorDelegationsRequest], + ["/cosmos.staking.v1beta1.QueryDelegatorValidatorResponse", QueryDelegatorValidatorResponse], + ["/cosmos.staking.v1beta1.Description", Description], + ["/cosmos.staking.v1beta1.Pool", Pool], + ["/cosmos.staking.v1beta1.UnbondingDelegation", UnbondingDelegation], ["/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse", QueryDelegatorUnbondingDelegationsResponse], - ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], - ["/cosmos.staking.v1beta1.Redelegation", Redelegation], - ["/cosmos.staking.v1beta1.RedelegationResponse", RedelegationResponse], - ["/cosmos.staking.v1beta1.ValidatorUpdates", ValidatorUpdates], - ["/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse", QueryUnbondingDelegationResponse], - ["/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", QueryHistoricalInfoRequest], + ["/cosmos.staking.v1beta1.ValAddresses", ValAddresses], ["/cosmos.staking.v1beta1.DVPairs", DVPairs], + ["/cosmos.staking.v1beta1.MsgCreateValidator", MsgCreateValidator], + ["/cosmos.staking.v1beta1.QueryValidatorDelegationsRequest", QueryValidatorDelegationsRequest], ["/cosmos.staking.v1beta1.QueryDelegatorValidatorsResponse", QueryDelegatorValidatorsResponse], - ["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate], - ["/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation", MsgCancelUnbondingDelegation], - ["/cosmos.staking.v1beta1.UnbondingDelegationEntry", UnbondingDelegationEntry], - ["/cosmos.staking.v1beta1.Description", Description], - ["/cosmos.staking.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/cosmos.staking.v1beta1.QueryDelegatorValidatorRequest", QueryDelegatorValidatorRequest], + ["/cosmos.staking.v1beta1.CommissionRates", CommissionRates], + ["/cosmos.staking.v1beta1.QueryDelegationResponse", QueryDelegationResponse], + ["/cosmos.staking.v1beta1.DVPair", DVPair], + ["/cosmos.staking.v1beta1.ValidatorUpdates", ValidatorUpdates], + ["/cosmos.staking.v1beta1.MsgCreateValidatorResponse", MsgCreateValidatorResponse], + ["/cosmos.staking.v1beta1.MsgUndelegateResponse", MsgUndelegateResponse], + ["/cosmos.staking.v1beta1.Params", Params], ["/cosmos.staking.v1beta1.Delegation", Delegation], - ["/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest", QueryDelegatorDelegationsRequest], - ["/cosmos.staking.v1beta1.StakeAuthorization_Validators", StakeAuthorization_Validators], + ["/cosmos.staking.v1beta1.UnbondingDelegationEntry", UnbondingDelegationEntry], + ["/cosmos.staking.v1beta1.HistoricalInfo", HistoricalInfo], ["/cosmos.staking.v1beta1.QueryValidatorsResponse", QueryValidatorsResponse], - ["/cosmos.staking.v1beta1.QueryValidatorRequest", QueryValidatorRequest], ["/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse", QueryDelegatorDelegationsResponse], + ["/cosmos.staking.v1beta1.MsgBeginRedelegate", MsgBeginRedelegate], + ["/cosmos.staking.v1beta1.LastValidatorPower", LastValidatorPower], + ["/cosmos.staking.v1beta1.QueryRedelegationsRequest", QueryRedelegationsRequest], + ["/cosmos.staking.v1beta1.QueryPoolRequest", QueryPoolRequest], + ["/cosmos.staking.v1beta1.RedelegationResponse", RedelegationResponse], + ["/cosmos.staking.v1beta1.QueryRedelegationsResponse", QueryRedelegationsResponse], + ["/cosmos.staking.v1beta1.MsgEditValidatorResponse", MsgEditValidatorResponse], + ["/cosmos.staking.v1beta1.QueryHistoricalInfoRequest", QueryHistoricalInfoRequest], + ["/cosmos.staking.v1beta1.Commission", Commission], + ["/cosmos.staking.v1beta1.QueryValidatorRequest", QueryValidatorRequest], ["/cosmos.staking.v1beta1.QueryHistoricalInfoResponse", QueryHistoricalInfoResponse], + ["/cosmos.staking.v1beta1.DVVTriplet", DVVTriplet], + ["/cosmos.staking.v1beta1.DVVTriplets", DVVTriplets], + ["/cosmos.staking.v1beta1.RedelegationEntryResponse", RedelegationEntryResponse], + ["/cosmos.staking.v1beta1.StakeAuthorization", StakeAuthorization], + ["/cosmos.staking.v1beta1.GenesisState", GenesisState], + ["/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest", QueryDelegatorUnbondingDelegationsRequest], ["/cosmos.staking.v1beta1.QueryPoolResponse", QueryPoolResponse], - ["/cosmos.staking.v1beta1.UnbondingDelegation", UnbondingDelegation], - ["/cosmos.staking.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/cosmos.staking.v1beta1.MsgDelegateResponse", MsgDelegateResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.tx.v1beta1/module.d.ts b/ts-client/lib/cosmos.tx.v1beta1/module.d.ts index 19f981be3..9e834448b 100644 --- a/ts-client/lib/cosmos.tx.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.tx.v1beta1/module.d.ts @@ -2,65 +2,65 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { BroadcastTxResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeResponse } from "./types/cosmos/tx/v1beta1/service"; -import { SignDoc } from "./types/cosmos/tx/v1beta1/tx"; import { TxBody } from "./types/cosmos/tx/v1beta1/tx"; -import { SignDocDirectAux } from "./types/cosmos/tx/v1beta1/tx"; -import { AuxSignerData } from "./types/cosmos/tx/v1beta1/tx"; -import { GetBlockWithTxsRequest } from "./types/cosmos/tx/v1beta1/service"; -import { GetTxRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; import { SignerInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { ModeInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { GetTxResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxDecodeRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxEncodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; -import { ModeInfo_Multi } from "./types/cosmos/tx/v1beta1/tx"; -import { Tip } from "./types/cosmos/tx/v1beta1/tx"; -import { SimulateRequest } from "./types/cosmos/tx/v1beta1/service"; -import { AuthInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { TxDecodeResponse } from "./types/cosmos/tx/v1beta1/service"; +import { BroadcastTxRequest } from "./types/cosmos/tx/v1beta1/service"; +import { SimulateResponse } from "./types/cosmos/tx/v1beta1/service"; +import { GetBlockWithTxsRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxEncodeRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; -import { Tx } from "./types/cosmos/tx/v1beta1/tx"; import { GetTxsEventRequest } from "./types/cosmos/tx/v1beta1/service"; -import { BroadcastTxRequest } from "./types/cosmos/tx/v1beta1/service"; -import { GetBlockWithTxsResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxDecodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; +import { ModeInfo } from "./types/cosmos/tx/v1beta1/tx"; +import { Fee } from "./types/cosmos/tx/v1beta1/tx"; import { ModeInfo_Single } from "./types/cosmos/tx/v1beta1/tx"; +import { Tx } from "./types/cosmos/tx/v1beta1/tx"; +import { GetTxRequest } from "./types/cosmos/tx/v1beta1/service"; +import { SignDocDirectAux } from "./types/cosmos/tx/v1beta1/tx"; +import { TxDecodeResponse } from "./types/cosmos/tx/v1beta1/service"; +import { SignDoc } from "./types/cosmos/tx/v1beta1/tx"; +import { Tip } from "./types/cosmos/tx/v1beta1/tx"; +import { AuxSignerData } from "./types/cosmos/tx/v1beta1/tx"; +import { TxEncodeResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxDecodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; import { TxRaw } from "./types/cosmos/tx/v1beta1/tx"; -import { Fee } from "./types/cosmos/tx/v1beta1/tx"; +import { ModeInfo_Multi } from "./types/cosmos/tx/v1beta1/tx"; import { GetTxsEventResponse } from "./types/cosmos/tx/v1beta1/service"; -import { SimulateResponse } from "./types/cosmos/tx/v1beta1/service"; -export { BroadcastTxResponse, TxEncodeResponse, SignDoc, TxBody, SignDocDirectAux, AuxSignerData, GetBlockWithTxsRequest, GetTxRequest, TxDecodeRequest, TxDecodeAminoResponse, SignerInfo, ModeInfo, GetTxResponse, TxEncodeAminoResponse, TxDecodeAminoRequest, ModeInfo_Multi, Tip, SimulateRequest, AuthInfo, TxDecodeResponse, TxEncodeRequest, TxEncodeAminoRequest, Tx, GetTxsEventRequest, BroadcastTxRequest, GetBlockWithTxsResponse, ModeInfo_Single, TxRaw, Fee, GetTxsEventResponse, SimulateResponse }; -type sendBroadcastTxResponseParams = { - value: BroadcastTxResponse; +import { BroadcastTxResponse } from "./types/cosmos/tx/v1beta1/service"; +import { GetBlockWithTxsResponse } from "./types/cosmos/tx/v1beta1/service"; +import { AuthInfo } from "./types/cosmos/tx/v1beta1/tx"; +import { SimulateRequest } from "./types/cosmos/tx/v1beta1/service"; +import { GetTxResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxEncodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; +export { TxBody, SignerInfo, TxDecodeRequest, TxEncodeAminoResponse, BroadcastTxRequest, SimulateResponse, GetBlockWithTxsRequest, TxEncodeRequest, GetTxsEventRequest, TxDecodeAminoRequest, ModeInfo, Fee, ModeInfo_Single, Tx, GetTxRequest, SignDocDirectAux, TxDecodeResponse, SignDoc, Tip, AuxSignerData, TxEncodeResponse, TxDecodeAminoResponse, TxRaw, ModeInfo_Multi, GetTxsEventResponse, BroadcastTxResponse, GetBlockWithTxsResponse, AuthInfo, SimulateRequest, GetTxResponse, TxEncodeAminoRequest }; +type sendTxBodyParams = { + value: TxBody; fee?: StdFee; memo?: string; }; -type sendTxEncodeResponseParams = { - value: TxEncodeResponse; +type sendSignerInfoParams = { + value: SignerInfo; fee?: StdFee; memo?: string; }; -type sendSignDocParams = { - value: SignDoc; +type sendTxDecodeRequestParams = { + value: TxDecodeRequest; fee?: StdFee; memo?: string; }; -type sendTxBodyParams = { - value: TxBody; +type sendTxEncodeAminoResponseParams = { + value: TxEncodeAminoResponse; fee?: StdFee; memo?: string; }; -type sendSignDocDirectAuxParams = { - value: SignDocDirectAux; +type sendBroadcastTxRequestParams = { + value: BroadcastTxRequest; fee?: StdFee; memo?: string; }; -type sendAuxSignerDataParams = { - value: AuxSignerData; +type sendSimulateResponseParams = { + value: SimulateResponse; fee?: StdFee; memo?: string; }; @@ -69,218 +69,218 @@ type sendGetBlockWithTxsRequestParams = { fee?: StdFee; memo?: string; }; -type sendGetTxRequestParams = { - value: GetTxRequest; +type sendTxEncodeRequestParams = { + value: TxEncodeRequest; fee?: StdFee; memo?: string; }; -type sendTxDecodeRequestParams = { - value: TxDecodeRequest; +type sendGetTxsEventRequestParams = { + value: GetTxsEventRequest; fee?: StdFee; memo?: string; }; -type sendTxDecodeAminoResponseParams = { - value: TxDecodeAminoResponse; +type sendTxDecodeAminoRequestParams = { + value: TxDecodeAminoRequest; fee?: StdFee; memo?: string; }; -type sendSignerInfoParams = { - value: SignerInfo; +type sendModeInfoParams = { + value: ModeInfo; fee?: StdFee; memo?: string; }; -type sendModeInfoParams = { - value: ModeInfo; +type sendFeeParams = { + value: Fee; fee?: StdFee; memo?: string; }; -type sendGetTxResponseParams = { - value: GetTxResponse; +type sendModeInfo_SingleParams = { + value: ModeInfo_Single; fee?: StdFee; memo?: string; }; -type sendTxEncodeAminoResponseParams = { - value: TxEncodeAminoResponse; +type sendTxParams = { + value: Tx; fee?: StdFee; memo?: string; }; -type sendTxDecodeAminoRequestParams = { - value: TxDecodeAminoRequest; +type sendGetTxRequestParams = { + value: GetTxRequest; fee?: StdFee; memo?: string; }; -type sendModeInfo_MultiParams = { - value: ModeInfo_Multi; +type sendSignDocDirectAuxParams = { + value: SignDocDirectAux; fee?: StdFee; memo?: string; }; -type sendTipParams = { - value: Tip; +type sendTxDecodeResponseParams = { + value: TxDecodeResponse; fee?: StdFee; memo?: string; }; -type sendSimulateRequestParams = { - value: SimulateRequest; +type sendSignDocParams = { + value: SignDoc; fee?: StdFee; memo?: string; }; -type sendAuthInfoParams = { - value: AuthInfo; +type sendTipParams = { + value: Tip; fee?: StdFee; memo?: string; }; -type sendTxDecodeResponseParams = { - value: TxDecodeResponse; +type sendAuxSignerDataParams = { + value: AuxSignerData; fee?: StdFee; memo?: string; }; -type sendTxEncodeRequestParams = { - value: TxEncodeRequest; +type sendTxEncodeResponseParams = { + value: TxEncodeResponse; fee?: StdFee; memo?: string; }; -type sendTxEncodeAminoRequestParams = { - value: TxEncodeAminoRequest; +type sendTxDecodeAminoResponseParams = { + value: TxDecodeAminoResponse; fee?: StdFee; memo?: string; }; -type sendTxParams = { - value: Tx; +type sendTxRawParams = { + value: TxRaw; fee?: StdFee; memo?: string; }; -type sendGetTxsEventRequestParams = { - value: GetTxsEventRequest; +type sendModeInfo_MultiParams = { + value: ModeInfo_Multi; fee?: StdFee; memo?: string; }; -type sendBroadcastTxRequestParams = { - value: BroadcastTxRequest; +type sendGetTxsEventResponseParams = { + value: GetTxsEventResponse; fee?: StdFee; memo?: string; }; -type sendGetBlockWithTxsResponseParams = { - value: GetBlockWithTxsResponse; +type sendBroadcastTxResponseParams = { + value: BroadcastTxResponse; fee?: StdFee; memo?: string; }; -type sendModeInfo_SingleParams = { - value: ModeInfo_Single; +type sendGetBlockWithTxsResponseParams = { + value: GetBlockWithTxsResponse; fee?: StdFee; memo?: string; }; -type sendTxRawParams = { - value: TxRaw; +type sendAuthInfoParams = { + value: AuthInfo; fee?: StdFee; memo?: string; }; -type sendFeeParams = { - value: Fee; +type sendSimulateRequestParams = { + value: SimulateRequest; fee?: StdFee; memo?: string; }; -type sendGetTxsEventResponseParams = { - value: GetTxsEventResponse; +type sendGetTxResponseParams = { + value: GetTxResponse; fee?: StdFee; memo?: string; }; -type sendSimulateResponseParams = { - value: SimulateResponse; +type sendTxEncodeAminoRequestParams = { + value: TxEncodeAminoRequest; fee?: StdFee; memo?: string; }; -type broadcastTxResponseParams = { - value: BroadcastTxResponse; +type txBodyParams = { + value: TxBody; }; -type txEncodeResponseParams = { - value: TxEncodeResponse; +type signerInfoParams = { + value: SignerInfo; }; -type signDocParams = { - value: SignDoc; +type txDecodeRequestParams = { + value: TxDecodeRequest; }; -type txBodyParams = { - value: TxBody; +type txEncodeAminoResponseParams = { + value: TxEncodeAminoResponse; }; -type signDocDirectAuxParams = { - value: SignDocDirectAux; +type broadcastTxRequestParams = { + value: BroadcastTxRequest; }; -type auxSignerDataParams = { - value: AuxSignerData; +type simulateResponseParams = { + value: SimulateResponse; }; type getBlockWithTxsRequestParams = { value: GetBlockWithTxsRequest; }; -type getTxRequestParams = { - value: GetTxRequest; -}; -type txDecodeRequestParams = { - value: TxDecodeRequest; +type txEncodeRequestParams = { + value: TxEncodeRequest; }; -type txDecodeAminoResponseParams = { - value: TxDecodeAminoResponse; +type getTxsEventRequestParams = { + value: GetTxsEventRequest; }; -type signerInfoParams = { - value: SignerInfo; +type txDecodeAminoRequestParams = { + value: TxDecodeAminoRequest; }; type modeInfoParams = { value: ModeInfo; }; -type getTxResponseParams = { - value: GetTxResponse; -}; -type txEncodeAminoResponseParams = { - value: TxEncodeAminoResponse; -}; -type txDecodeAminoRequestParams = { - value: TxDecodeAminoRequest; +type feeParams = { + value: Fee; }; -type modeInfoMultiParams = { - value: ModeInfo_Multi; +type modeInfoSingleParams = { + value: ModeInfo_Single; }; -type tipParams = { - value: Tip; +type txParams = { + value: Tx; }; -type simulateRequestParams = { - value: SimulateRequest; +type getTxRequestParams = { + value: GetTxRequest; }; -type authInfoParams = { - value: AuthInfo; +type signDocDirectAuxParams = { + value: SignDocDirectAux; }; type txDecodeResponseParams = { value: TxDecodeResponse; }; -type txEncodeRequestParams = { - value: TxEncodeRequest; -}; -type txEncodeAminoRequestParams = { - value: TxEncodeAminoRequest; -}; -type txParams = { - value: Tx; +type signDocParams = { + value: SignDoc; }; -type getTxsEventRequestParams = { - value: GetTxsEventRequest; +type tipParams = { + value: Tip; }; -type broadcastTxRequestParams = { - value: BroadcastTxRequest; +type auxSignerDataParams = { + value: AuxSignerData; }; -type getBlockWithTxsResponseParams = { - value: GetBlockWithTxsResponse; +type txEncodeResponseParams = { + value: TxEncodeResponse; }; -type modeInfoSingleParams = { - value: ModeInfo_Single; +type txDecodeAminoResponseParams = { + value: TxDecodeAminoResponse; }; type txRawParams = { value: TxRaw; }; -type feeParams = { - value: Fee; +type modeInfoMultiParams = { + value: ModeInfo_Multi; }; type getTxsEventResponseParams = { value: GetTxsEventResponse; }; -type simulateResponseParams = { - value: SimulateResponse; +type broadcastTxResponseParams = { + value: BroadcastTxResponse; +}; +type getBlockWithTxsResponseParams = { + value: GetBlockWithTxsResponse; +}; +type authInfoParams = { + value: AuthInfo; +}; +type simulateRequestParams = { + value: SimulateRequest; +}; +type getTxResponseParams = { + value: GetTxResponse; +}; +type txEncodeAminoRequestParams = { + value: TxEncodeAminoRequest; }; export declare const registry: Registry; interface TxClientOptions { @@ -289,68 +289,68 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendBroadcastTxResponse({ value, fee, memo }: sendBroadcastTxResponseParams): Promise; - sendTxEncodeResponse({ value, fee, memo }: sendTxEncodeResponseParams): Promise; - sendSignDoc({ value, fee, memo }: sendSignDocParams): Promise; sendTxBody({ value, fee, memo }: sendTxBodyParams): Promise; - sendSignDocDirectAux({ value, fee, memo }: sendSignDocDirectAuxParams): Promise; - sendAuxSignerData({ value, fee, memo }: sendAuxSignerDataParams): Promise; - sendGetBlockWithTxsRequest({ value, fee, memo }: sendGetBlockWithTxsRequestParams): Promise; - sendGetTxRequest({ value, fee, memo }: sendGetTxRequestParams): Promise; - sendTxDecodeRequest({ value, fee, memo }: sendTxDecodeRequestParams): Promise; - sendTxDecodeAminoResponse({ value, fee, memo }: sendTxDecodeAminoResponseParams): Promise; sendSignerInfo({ value, fee, memo }: sendSignerInfoParams): Promise; - sendModeInfo({ value, fee, memo }: sendModeInfoParams): Promise; - sendGetTxResponse({ value, fee, memo }: sendGetTxResponseParams): Promise; + sendTxDecodeRequest({ value, fee, memo }: sendTxDecodeRequestParams): Promise; sendTxEncodeAminoResponse({ value, fee, memo }: sendTxEncodeAminoResponseParams): Promise; - sendTxDecodeAminoRequest({ value, fee, memo }: sendTxDecodeAminoRequestParams): Promise; - sendModeInfo_Multi({ value, fee, memo }: sendModeInfo_MultiParams): Promise; - sendTip({ value, fee, memo }: sendTipParams): Promise; - sendSimulateRequest({ value, fee, memo }: sendSimulateRequestParams): Promise; - sendAuthInfo({ value, fee, memo }: sendAuthInfoParams): Promise; - sendTxDecodeResponse({ value, fee, memo }: sendTxDecodeResponseParams): Promise; + sendBroadcastTxRequest({ value, fee, memo }: sendBroadcastTxRequestParams): Promise; + sendSimulateResponse({ value, fee, memo }: sendSimulateResponseParams): Promise; + sendGetBlockWithTxsRequest({ value, fee, memo }: sendGetBlockWithTxsRequestParams): Promise; sendTxEncodeRequest({ value, fee, memo }: sendTxEncodeRequestParams): Promise; - sendTxEncodeAminoRequest({ value, fee, memo }: sendTxEncodeAminoRequestParams): Promise; - sendTx({ value, fee, memo }: sendTxParams): Promise; sendGetTxsEventRequest({ value, fee, memo }: sendGetTxsEventRequestParams): Promise; - sendBroadcastTxRequest({ value, fee, memo }: sendBroadcastTxRequestParams): Promise; - sendGetBlockWithTxsResponse({ value, fee, memo }: sendGetBlockWithTxsResponseParams): Promise; + sendTxDecodeAminoRequest({ value, fee, memo }: sendTxDecodeAminoRequestParams): Promise; + sendModeInfo({ value, fee, memo }: sendModeInfoParams): Promise; + sendFee({ value, fee, memo }: sendFeeParams): Promise; sendModeInfo_Single({ value, fee, memo }: sendModeInfo_SingleParams): Promise; + sendTx({ value, fee, memo }: sendTxParams): Promise; + sendGetTxRequest({ value, fee, memo }: sendGetTxRequestParams): Promise; + sendSignDocDirectAux({ value, fee, memo }: sendSignDocDirectAuxParams): Promise; + sendTxDecodeResponse({ value, fee, memo }: sendTxDecodeResponseParams): Promise; + sendSignDoc({ value, fee, memo }: sendSignDocParams): Promise; + sendTip({ value, fee, memo }: sendTipParams): Promise; + sendAuxSignerData({ value, fee, memo }: sendAuxSignerDataParams): Promise; + sendTxEncodeResponse({ value, fee, memo }: sendTxEncodeResponseParams): Promise; + sendTxDecodeAminoResponse({ value, fee, memo }: sendTxDecodeAminoResponseParams): Promise; sendTxRaw({ value, fee, memo }: sendTxRawParams): Promise; - sendFee({ value, fee, memo }: sendFeeParams): Promise; + sendModeInfo_Multi({ value, fee, memo }: sendModeInfo_MultiParams): Promise; sendGetTxsEventResponse({ value, fee, memo }: sendGetTxsEventResponseParams): Promise; - sendSimulateResponse({ value, fee, memo }: sendSimulateResponseParams): Promise; - broadcastTxResponse({ value }: broadcastTxResponseParams): EncodeObject; - txEncodeResponse({ value }: txEncodeResponseParams): EncodeObject; - signDoc({ value }: signDocParams): EncodeObject; + sendBroadcastTxResponse({ value, fee, memo }: sendBroadcastTxResponseParams): Promise; + sendGetBlockWithTxsResponse({ value, fee, memo }: sendGetBlockWithTxsResponseParams): Promise; + sendAuthInfo({ value, fee, memo }: sendAuthInfoParams): Promise; + sendSimulateRequest({ value, fee, memo }: sendSimulateRequestParams): Promise; + sendGetTxResponse({ value, fee, memo }: sendGetTxResponseParams): Promise; + sendTxEncodeAminoRequest({ value, fee, memo }: sendTxEncodeAminoRequestParams): Promise; txBody({ value }: txBodyParams): EncodeObject; - signDocDirectAux({ value }: signDocDirectAuxParams): EncodeObject; - auxSignerData({ value }: auxSignerDataParams): EncodeObject; - getBlockWithTxsRequest({ value }: getBlockWithTxsRequestParams): EncodeObject; - getTxRequest({ value }: getTxRequestParams): EncodeObject; - txDecodeRequest({ value }: txDecodeRequestParams): EncodeObject; - txDecodeAminoResponse({ value }: txDecodeAminoResponseParams): EncodeObject; signerInfo({ value }: signerInfoParams): EncodeObject; - modeInfo({ value }: modeInfoParams): EncodeObject; - getTxResponse({ value }: getTxResponseParams): EncodeObject; + txDecodeRequest({ value }: txDecodeRequestParams): EncodeObject; txEncodeAminoResponse({ value }: txEncodeAminoResponseParams): EncodeObject; - txDecodeAminoRequest({ value }: txDecodeAminoRequestParams): EncodeObject; - modeInfoMulti({ value }: modeInfoMultiParams): EncodeObject; - tip({ value }: tipParams): EncodeObject; - simulateRequest({ value }: simulateRequestParams): EncodeObject; - authInfo({ value }: authInfoParams): EncodeObject; - txDecodeResponse({ value }: txDecodeResponseParams): EncodeObject; + broadcastTxRequest({ value }: broadcastTxRequestParams): EncodeObject; + simulateResponse({ value }: simulateResponseParams): EncodeObject; + getBlockWithTxsRequest({ value }: getBlockWithTxsRequestParams): EncodeObject; txEncodeRequest({ value }: txEncodeRequestParams): EncodeObject; - txEncodeAminoRequest({ value }: txEncodeAminoRequestParams): EncodeObject; - tx({ value }: txParams): EncodeObject; getTxsEventRequest({ value }: getTxsEventRequestParams): EncodeObject; - broadcastTxRequest({ value }: broadcastTxRequestParams): EncodeObject; - getBlockWithTxsResponse({ value }: getBlockWithTxsResponseParams): EncodeObject; + txDecodeAminoRequest({ value }: txDecodeAminoRequestParams): EncodeObject; + modeInfo({ value }: modeInfoParams): EncodeObject; + fee({ value }: feeParams): EncodeObject; modeInfoSingle({ value }: modeInfoSingleParams): EncodeObject; + tx({ value }: txParams): EncodeObject; + getTxRequest({ value }: getTxRequestParams): EncodeObject; + signDocDirectAux({ value }: signDocDirectAuxParams): EncodeObject; + txDecodeResponse({ value }: txDecodeResponseParams): EncodeObject; + signDoc({ value }: signDocParams): EncodeObject; + tip({ value }: tipParams): EncodeObject; + auxSignerData({ value }: auxSignerDataParams): EncodeObject; + txEncodeResponse({ value }: txEncodeResponseParams): EncodeObject; + txDecodeAminoResponse({ value }: txDecodeAminoResponseParams): EncodeObject; txRaw({ value }: txRawParams): EncodeObject; - fee({ value }: feeParams): EncodeObject; + modeInfoMulti({ value }: modeInfoMultiParams): EncodeObject; getTxsEventResponse({ value }: getTxsEventResponseParams): EncodeObject; - simulateResponse({ value }: simulateResponseParams): EncodeObject; + broadcastTxResponse({ value }: broadcastTxResponseParams): EncodeObject; + getBlockWithTxsResponse({ value }: getBlockWithTxsResponseParams): EncodeObject; + authInfo({ value }: authInfoParams): EncodeObject; + simulateRequest({ value }: simulateRequestParams): EncodeObject; + getTxResponse({ value }: getTxResponseParams): EncodeObject; + txEncodeAminoRequest({ value }: txEncodeAminoRequestParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.tx.v1beta1/module.js b/ts-client/lib/cosmos.tx.v1beta1/module.js index 92fc9bb58..eec639668 100644 --- a/ts-client/lib/cosmos.tx.v1beta1/module.js +++ b/ts-client/lib/cosmos.tx.v1beta1/module.js @@ -3,38 +3,38 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { BroadcastTxResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeResponse } from "./types/cosmos/tx/v1beta1/service"; -import { SignDoc } from "./types/cosmos/tx/v1beta1/tx"; import { TxBody } from "./types/cosmos/tx/v1beta1/tx"; -import { SignDocDirectAux } from "./types/cosmos/tx/v1beta1/tx"; -import { AuxSignerData } from "./types/cosmos/tx/v1beta1/tx"; -import { GetBlockWithTxsRequest } from "./types/cosmos/tx/v1beta1/service"; -import { GetTxRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; import { SignerInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { ModeInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { GetTxResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxDecodeRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxEncodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; -import { ModeInfo_Multi } from "./types/cosmos/tx/v1beta1/tx"; -import { Tip } from "./types/cosmos/tx/v1beta1/tx"; -import { SimulateRequest } from "./types/cosmos/tx/v1beta1/service"; -import { AuthInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { TxDecodeResponse } from "./types/cosmos/tx/v1beta1/service"; +import { BroadcastTxRequest } from "./types/cosmos/tx/v1beta1/service"; +import { SimulateResponse } from "./types/cosmos/tx/v1beta1/service"; +import { GetBlockWithTxsRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxEncodeRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; -import { Tx } from "./types/cosmos/tx/v1beta1/tx"; import { GetTxsEventRequest } from "./types/cosmos/tx/v1beta1/service"; -import { BroadcastTxRequest } from "./types/cosmos/tx/v1beta1/service"; -import { GetBlockWithTxsResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxDecodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; +import { ModeInfo } from "./types/cosmos/tx/v1beta1/tx"; +import { Fee } from "./types/cosmos/tx/v1beta1/tx"; import { ModeInfo_Single } from "./types/cosmos/tx/v1beta1/tx"; +import { Tx } from "./types/cosmos/tx/v1beta1/tx"; +import { GetTxRequest } from "./types/cosmos/tx/v1beta1/service"; +import { SignDocDirectAux } from "./types/cosmos/tx/v1beta1/tx"; +import { TxDecodeResponse } from "./types/cosmos/tx/v1beta1/service"; +import { SignDoc } from "./types/cosmos/tx/v1beta1/tx"; +import { Tip } from "./types/cosmos/tx/v1beta1/tx"; +import { AuxSignerData } from "./types/cosmos/tx/v1beta1/tx"; +import { TxEncodeResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxDecodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; import { TxRaw } from "./types/cosmos/tx/v1beta1/tx"; -import { Fee } from "./types/cosmos/tx/v1beta1/tx"; +import { ModeInfo_Multi } from "./types/cosmos/tx/v1beta1/tx"; import { GetTxsEventResponse } from "./types/cosmos/tx/v1beta1/service"; -import { SimulateResponse } from "./types/cosmos/tx/v1beta1/service"; -export { BroadcastTxResponse, TxEncodeResponse, SignDoc, TxBody, SignDocDirectAux, AuxSignerData, GetBlockWithTxsRequest, GetTxRequest, TxDecodeRequest, TxDecodeAminoResponse, SignerInfo, ModeInfo, GetTxResponse, TxEncodeAminoResponse, TxDecodeAminoRequest, ModeInfo_Multi, Tip, SimulateRequest, AuthInfo, TxDecodeResponse, TxEncodeRequest, TxEncodeAminoRequest, Tx, GetTxsEventRequest, BroadcastTxRequest, GetBlockWithTxsResponse, ModeInfo_Single, TxRaw, Fee, GetTxsEventResponse, SimulateResponse }; +import { BroadcastTxResponse } from "./types/cosmos/tx/v1beta1/service"; +import { GetBlockWithTxsResponse } from "./types/cosmos/tx/v1beta1/service"; +import { AuthInfo } from "./types/cosmos/tx/v1beta1/tx"; +import { SimulateRequest } from "./types/cosmos/tx/v1beta1/service"; +import { GetTxResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxEncodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; +export { TxBody, SignerInfo, TxDecodeRequest, TxEncodeAminoResponse, BroadcastTxRequest, SimulateResponse, GetBlockWithTxsRequest, TxEncodeRequest, GetTxsEventRequest, TxDecodeAminoRequest, ModeInfo, Fee, ModeInfo_Single, Tx, GetTxRequest, SignDocDirectAux, TxDecodeResponse, SignDoc, Tip, AuxSignerData, TxEncodeResponse, TxDecodeAminoResponse, TxRaw, ModeInfo_Multi, GetTxsEventResponse, BroadcastTxResponse, GetBlockWithTxsResponse, AuthInfo, SimulateRequest, GetTxResponse, TxEncodeAminoRequest }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -50,88 +50,88 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendBroadcastTxResponse({ value, fee, memo }) { + async sendTxBody({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendBroadcastTxResponse: 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.broadcastTxResponse({ value: BroadcastTxResponse.fromPartial(value) }); + let msg = this.txBody({ value: TxBody.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendBroadcastTxResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTxBody: Could not broadcast Tx: ' + e.message); } }, - async sendTxEncodeResponse({ value, fee, memo }) { + async sendSignerInfo({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTxEncodeResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendSignerInfo: Unable to 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.signerInfo({ value: SignerInfo.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTxEncodeResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSignerInfo: Could not broadcast Tx: ' + e.message); } }, - async sendSignDoc({ value, fee, memo }) { + async sendTxDecodeRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSignDoc: 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.signDoc({ value: SignDoc.fromPartial(value) }); + let msg = this.txDecodeRequest({ value: TxDecodeRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSignDoc: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTxDecodeRequest: Could not broadcast Tx: ' + e.message); } }, - async sendTxBody({ value, fee, memo }) { + async sendTxEncodeAminoResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTxBody: 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.txBody({ value: TxBody.fromPartial(value) }); + let msg = this.txEncodeAminoResponse({ value: TxEncodeAminoResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTxBody: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTxEncodeAminoResponse: Could not broadcast Tx: ' + e.message); } }, - async sendSignDocDirectAux({ value, fee, memo }) { + async sendBroadcastTxRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSignDocDirectAux: 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.signDocDirectAux({ value: SignDocDirectAux.fromPartial(value) }); + let msg = this.broadcastTxRequest({ value: BroadcastTxRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSignDocDirectAux: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendBroadcastTxRequest: Could not broadcast Tx: ' + e.message); } }, - async sendAuxSignerData({ value, fee, memo }) { + async sendSimulateResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendAuxSignerData: 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.auxSignerData({ value: AuxSignerData.fromPartial(value) }); + let msg = this.simulateResponse({ value: SimulateResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendAuxSignerData: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSimulateResponse: Could not broadcast Tx: ' + e.message); } }, async sendGetBlockWithTxsRequest({ value, fee, memo }) { @@ -148,388 +148,388 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendGetBlockWithTxsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendGetTxRequest({ value, fee, memo }) { + async sendTxEncodeRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGetTxRequest: 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.getTxRequest({ value: GetTxRequest.fromPartial(value) }); + let msg = this.txEncodeRequest({ value: TxEncodeRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGetTxRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTxEncodeRequest: Could not broadcast Tx: ' + e.message); } }, - async sendTxDecodeRequest({ value, fee, memo }) { + async sendGetTxsEventRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTxDecodeRequest: 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.txDecodeRequest({ value: TxDecodeRequest.fromPartial(value) }); + let msg = this.getTxsEventRequest({ value: GetTxsEventRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTxDecodeRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetTxsEventRequest: Could not broadcast Tx: ' + e.message); } }, - async sendTxDecodeAminoResponse({ value, fee, memo }) { + async sendTxDecodeAminoRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTxDecodeAminoResponse: 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.txDecodeAminoResponse({ value: TxDecodeAminoResponse.fromPartial(value) }); + let msg = this.txDecodeAminoRequest({ value: TxDecodeAminoRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTxDecodeAminoResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTxDecodeAminoRequest: Could not broadcast Tx: ' + e.message); } }, - async sendSignerInfo({ value, fee, memo }) { + async sendModeInfo({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSignerInfo: 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.signerInfo({ value: SignerInfo.fromPartial(value) }); + let msg = this.modeInfo({ value: ModeInfo.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSignerInfo: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendModeInfo: Could not broadcast Tx: ' + e.message); } }, - async sendModeInfo({ value, fee, memo }) { + async sendFee({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendModeInfo: 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.modeInfo({ value: ModeInfo.fromPartial(value) }); + let msg = this.fee({ value: Fee.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendModeInfo: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendFee: Could not broadcast Tx: ' + e.message); } }, - async sendGetTxResponse({ value, fee, memo }) { + async sendModeInfo_Single({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGetTxResponse: 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.getTxResponse({ value: GetTxResponse.fromPartial(value) }); + let msg = this.modeInfoSingle({ value: ModeInfo_Single.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGetTxResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendModeInfo_Single: Could not broadcast Tx: ' + e.message); } }, - async sendTxEncodeAminoResponse({ value, fee, memo }) { + async sendTx({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTxEncodeAminoResponse: 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.txEncodeAminoResponse({ value: TxEncodeAminoResponse.fromPartial(value) }); + let msg = this.tx({ value: Tx.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTxEncodeAminoResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTx: Could not broadcast Tx: ' + e.message); } }, - async sendTxDecodeAminoRequest({ value, fee, memo }) { + async sendGetTxRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTxDecodeAminoRequest: 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.txDecodeAminoRequest({ value: TxDecodeAminoRequest.fromPartial(value) }); + let msg = this.getTxRequest({ value: GetTxRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTxDecodeAminoRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetTxRequest: Could not broadcast Tx: ' + e.message); } }, - async sendModeInfo_Multi({ value, fee, memo }) { + async sendSignDocDirectAux({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendModeInfo_Multi: 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.modeInfoMulti({ value: ModeInfo_Multi.fromPartial(value) }); + let msg = this.signDocDirectAux({ value: SignDocDirectAux.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendModeInfo_Multi: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSignDocDirectAux: Could not broadcast Tx: ' + e.message); } }, - async sendTip({ value, fee, memo }) { + async sendTxDecodeResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTip: Unable to sign Tx. Signer is not present.'); + 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.tip({ value: Tip.fromPartial(value) }); + let msg = this.txDecodeResponse({ value: TxDecodeResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTip: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTxDecodeResponse: Could not broadcast Tx: ' + e.message); } }, - async sendSimulateRequest({ value, fee, memo }) { + async sendSignDoc({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSimulateRequest: 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.simulateRequest({ value: SimulateRequest.fromPartial(value) }); + let msg = this.signDoc({ value: SignDoc.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSimulateRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSignDoc: Could not broadcast Tx: ' + e.message); } }, - async sendAuthInfo({ value, fee, memo }) { + async sendTip({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendAuthInfo: 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.authInfo({ value: AuthInfo.fromPartial(value) }); + let msg = this.tip({ value: Tip.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendAuthInfo: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTip: Could not broadcast Tx: ' + e.message); } }, - async sendTxDecodeResponse({ value, fee, memo }) { + async sendAuxSignerData({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTxDecodeResponse: 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.txDecodeResponse({ value: TxDecodeResponse.fromPartial(value) }); + let msg = this.auxSignerData({ value: AuxSignerData.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTxDecodeResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendAuxSignerData: Could not broadcast Tx: ' + e.message); } }, - async sendTxEncodeRequest({ value, fee, memo }) { + async sendTxEncodeResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTxEncodeRequest: 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.txEncodeRequest({ value: TxEncodeRequest.fromPartial(value) }); + let msg = this.txEncodeResponse({ value: TxEncodeResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTxEncodeRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTxEncodeResponse: Could not broadcast Tx: ' + e.message); } }, - async sendTxEncodeAminoRequest({ value, fee, memo }) { + async sendTxDecodeAminoResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTxEncodeAminoRequest: 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.txEncodeAminoRequest({ value: TxEncodeAminoRequest.fromPartial(value) }); + let msg = this.txDecodeAminoResponse({ value: TxDecodeAminoResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTxEncodeAminoRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTxDecodeAminoResponse: Could not broadcast Tx: ' + e.message); } }, - async sendTx({ value, fee, memo }) { + async sendTxRaw({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTx: 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.tx({ value: Tx.fromPartial(value) }); + let msg = this.txRaw({ value: TxRaw.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTx: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTxRaw: Could not broadcast Tx: ' + e.message); } }, - async sendGetTxsEventRequest({ value, fee, memo }) { + async sendModeInfo_Multi({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGetTxsEventRequest: 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.getTxsEventRequest({ value: GetTxsEventRequest.fromPartial(value) }); + let msg = this.modeInfoMulti({ value: ModeInfo_Multi.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGetTxsEventRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendModeInfo_Multi: Could not broadcast Tx: ' + e.message); } }, - async sendBroadcastTxRequest({ value, fee, memo }) { + async sendGetTxsEventResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendBroadcastTxRequest: 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.broadcastTxRequest({ value: BroadcastTxRequest.fromPartial(value) }); + let msg = this.getTxsEventResponse({ value: GetTxsEventResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendBroadcastTxRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetTxsEventResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGetBlockWithTxsResponse({ value, fee, memo }) { + async sendBroadcastTxResponse({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendGetBlockWithTxsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendBroadcastTxResponse: Could not broadcast Tx: ' + e.message); } }, - async sendModeInfo_Single({ value, fee, memo }) { + async sendGetBlockWithTxsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendModeInfo_Single: 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.modeInfoSingle({ value: ModeInfo_Single.fromPartial(value) }); + let msg = this.getBlockWithTxsResponse({ value: GetBlockWithTxsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendModeInfo_Single: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetBlockWithTxsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendTxRaw({ value, fee, memo }) { + async sendAuthInfo({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTxRaw: 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.txRaw({ value: TxRaw.fromPartial(value) }); + let msg = this.authInfo({ value: AuthInfo.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTxRaw: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendAuthInfo: Could not broadcast Tx: ' + e.message); } }, - async sendFee({ value, fee, memo }) { + async sendSimulateRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendFee: 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.fee({ value: Fee.fromPartial(value) }); + let msg = this.simulateRequest({ value: SimulateRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendFee: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSimulateRequest: Could not broadcast Tx: ' + e.message); } }, - async sendGetTxsEventResponse({ value, fee, memo }) { + async sendGetTxResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGetTxsEventResponse: 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.getTxsEventResponse({ value: GetTxsEventResponse.fromPartial(value) }); + let msg = this.getTxResponse({ value: GetTxResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGetTxsEventResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGetTxResponse: Could not broadcast Tx: ' + e.message); } }, - async sendSimulateResponse({ value, fee, memo }) { + async sendTxEncodeAminoRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSimulateResponse: 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.simulateResponse({ value: SimulateResponse.fromPartial(value) }); + let msg = this.txEncodeAminoRequest({ value: TxEncodeAminoRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSimulateResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTxEncodeAminoRequest: Could not broadcast Tx: ' + e.message); } }, - broadcastTxResponse({ value }) { + txBody({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", value: BroadcastTxResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.TxBody", value: TxBody.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:BroadcastTxResponse: Could not create message: ' + e.message); + throw new Error('TxClient:TxBody: Could not create message: ' + e.message); } }, - txEncodeResponse({ value }) { + signerInfo({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeResponse", value: TxEncodeResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.SignerInfo", value: SignerInfo.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TxEncodeResponse: Could not create message: ' + e.message); + throw new Error('TxClient:SignerInfo: Could not create message: ' + e.message); } }, - signDoc({ value }) { + txDecodeRequest({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.SignDoc", value: SignDoc.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeRequest", value: TxDecodeRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:SignDoc: Could not create message: ' + e.message); + throw new Error('TxClient:TxDecodeRequest: Could not create message: ' + e.message); } }, - txBody({ value }) { + txEncodeAminoResponse({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxBody", value: TxBody.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoResponse", value: TxEncodeAminoResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TxBody: Could not create message: ' + e.message); + throw new Error('TxClient:TxEncodeAminoResponse: Could not create message: ' + e.message); } }, - signDocDirectAux({ value }) { + broadcastTxRequest({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", value: SignDocDirectAux.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", value: BroadcastTxRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:SignDocDirectAux: Could not create message: ' + e.message); + throw new Error('TxClient:BroadcastTxRequest: Could not create message: ' + e.message); } }, - auxSignerData({ value }) { + simulateResponse({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", value: AuxSignerData.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", value: SimulateResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:AuxSignerData: Could not create message: ' + e.message); + throw new Error('TxClient:SimulateResponse: Could not create message: ' + e.message); } }, getBlockWithTxsRequest({ value }) { @@ -540,196 +540,196 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:GetBlockWithTxsRequest: Could not create message: ' + e.message); } }, - getTxRequest({ value }) { + txEncodeRequest({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", value: GetTxRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeRequest", value: TxEncodeRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GetTxRequest: Could not create message: ' + e.message); + throw new Error('TxClient:TxEncodeRequest: Could not create message: ' + e.message); } }, - txDecodeRequest({ value }) { + getTxsEventRequest({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeRequest", value: TxDecodeRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", value: GetTxsEventRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TxDecodeRequest: Could not create message: ' + e.message); + throw new Error('TxClient:GetTxsEventRequest: Could not create message: ' + e.message); } }, - txDecodeAminoResponse({ value }) { + txDecodeAminoRequest({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoResponse", value: TxDecodeAminoResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoRequest", value: TxDecodeAminoRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TxDecodeAminoResponse: Could not create message: ' + e.message); + throw new Error('TxClient:TxDecodeAminoRequest: Could not create message: ' + e.message); } }, - signerInfo({ value }) { + modeInfo({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.SignerInfo", value: SignerInfo.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo", value: ModeInfo.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:SignerInfo: Could not create message: ' + e.message); + throw new Error('TxClient:ModeInfo: Could not create message: ' + e.message); } }, - modeInfo({ value }) { + fee({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo", value: ModeInfo.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.Fee", value: Fee.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ModeInfo: Could not create message: ' + e.message); + throw new Error('TxClient:Fee: Could not create message: ' + e.message); } }, - getTxResponse({ value }) { + modeInfoSingle({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", value: GetTxResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo_Single", value: ModeInfo_Single.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GetTxResponse: Could not create message: ' + e.message); + throw new Error('TxClient:ModeInfo_Single: Could not create message: ' + e.message); } }, - txEncodeAminoResponse({ value }) { + tx({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoResponse", value: TxEncodeAminoResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.Tx", value: Tx.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TxEncodeAminoResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Tx: Could not create message: ' + e.message); } }, - txDecodeAminoRequest({ value }) { + getTxRequest({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoRequest", value: TxDecodeAminoRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.GetTxRequest", value: GetTxRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TxDecodeAminoRequest: Could not create message: ' + e.message); + throw new Error('TxClient:GetTxRequest: Could not create message: ' + e.message); } }, - modeInfoMulti({ value }) { + signDocDirectAux({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo_Multi", value: ModeInfo_Multi.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.SignDocDirectAux", value: SignDocDirectAux.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ModeInfo_Multi: Could not create message: ' + e.message); + throw new Error('TxClient:SignDocDirectAux: Could not create message: ' + e.message); } }, - tip({ value }) { + txDecodeResponse({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.Tip", value: Tip.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeResponse", value: TxDecodeResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Tip: Could not create message: ' + e.message); + throw new Error('TxClient:TxDecodeResponse: Could not create message: ' + e.message); } }, - simulateRequest({ value }) { + signDoc({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", value: SimulateRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.SignDoc", value: SignDoc.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:SimulateRequest: Could not create message: ' + e.message); + throw new Error('TxClient:SignDoc: Could not create message: ' + e.message); } }, - authInfo({ value }) { + tip({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.AuthInfo", value: AuthInfo.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.Tip", value: Tip.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:AuthInfo: Could not create message: ' + e.message); + throw new Error('TxClient:Tip: Could not create message: ' + e.message); } }, - txDecodeResponse({ value }) { + auxSignerData({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeResponse", value: TxDecodeResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.AuxSignerData", value: AuxSignerData.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TxDecodeResponse: Could not create message: ' + e.message); + throw new Error('TxClient:AuxSignerData: Could not create message: ' + e.message); } }, - txEncodeRequest({ value }) { + txEncodeResponse({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeRequest", value: TxEncodeRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeResponse", value: TxEncodeResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TxEncodeRequest: Could not create message: ' + e.message); + throw new Error('TxClient:TxEncodeResponse: Could not create message: ' + e.message); } }, - txEncodeAminoRequest({ value }) { + txDecodeAminoResponse({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoRequest", value: TxEncodeAminoRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.TxDecodeAminoResponse", value: TxDecodeAminoResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TxEncodeAminoRequest: Could not create message: ' + e.message); + throw new Error('TxClient:TxDecodeAminoResponse: Could not create message: ' + e.message); } }, - tx({ value }) { + txRaw({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.Tx", value: Tx.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.TxRaw", value: TxRaw.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Tx: Could not create message: ' + e.message); + throw new Error('TxClient:TxRaw: Could not create message: ' + e.message); } }, - getTxsEventRequest({ value }) { + modeInfoMulti({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.GetTxsEventRequest", value: GetTxsEventRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo_Multi", value: ModeInfo_Multi.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GetTxsEventRequest: Could not create message: ' + e.message); + throw new Error('TxClient:ModeInfo_Multi: Could not create message: ' + e.message); } }, - broadcastTxRequest({ value }) { + getTxsEventResponse({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.BroadcastTxRequest", value: BroadcastTxRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", value: GetTxsEventResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:BroadcastTxRequest: Could not create message: ' + e.message); + throw new Error('TxClient:GetTxsEventResponse: Could not create message: ' + e.message); } }, - getBlockWithTxsResponse({ value }) { + broadcastTxResponse({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", value: GetBlockWithTxsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.BroadcastTxResponse", value: BroadcastTxResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GetBlockWithTxsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:BroadcastTxResponse: Could not create message: ' + e.message); } }, - modeInfoSingle({ value }) { + getBlockWithTxsResponse({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.ModeInfo_Single", value: ModeInfo_Single.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.GetBlockWithTxsResponse", value: GetBlockWithTxsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ModeInfo_Single: Could not create message: ' + e.message); + throw new Error('TxClient:GetBlockWithTxsResponse: Could not create message: ' + e.message); } }, - txRaw({ value }) { + authInfo({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.TxRaw", value: TxRaw.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.AuthInfo", value: AuthInfo.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TxRaw: Could not create message: ' + e.message); + throw new Error('TxClient:AuthInfo: Could not create message: ' + e.message); } }, - fee({ value }) { + simulateRequest({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.Fee", value: Fee.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.SimulateRequest", value: SimulateRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Fee: Could not create message: ' + e.message); + throw new Error('TxClient:SimulateRequest: Could not create message: ' + e.message); } }, - getTxsEventResponse({ value }) { + getTxResponse({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.GetTxsEventResponse", value: GetTxsEventResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.GetTxResponse", value: GetTxResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GetTxsEventResponse: Could not create message: ' + e.message); + throw new Error('TxClient:GetTxResponse: Could not create message: ' + e.message); } }, - simulateResponse({ value }) { + txEncodeAminoRequest({ value }) { try { - return { typeUrl: "/cosmos.tx.v1beta1.SimulateResponse", value: SimulateResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.tx.v1beta1.TxEncodeAminoRequest", value: TxEncodeAminoRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:SimulateResponse: Could not create message: ' + e.message); + throw new Error('TxClient:TxEncodeAminoRequest: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.tx.v1beta1/registry.js b/ts-client/lib/cosmos.tx.v1beta1/registry.js index 649920502..f8f2cfd4d 100644 --- a/ts-client/lib/cosmos.tx.v1beta1/registry.js +++ b/ts-client/lib/cosmos.tx.v1beta1/registry.js @@ -1,65 +1,65 @@ -import { BroadcastTxResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeResponse } from "./types/cosmos/tx/v1beta1/service"; -import { SignDoc } from "./types/cosmos/tx/v1beta1/tx"; import { TxBody } from "./types/cosmos/tx/v1beta1/tx"; -import { SignDocDirectAux } from "./types/cosmos/tx/v1beta1/tx"; -import { AuxSignerData } from "./types/cosmos/tx/v1beta1/tx"; -import { GetBlockWithTxsRequest } from "./types/cosmos/tx/v1beta1/service"; -import { GetTxRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; import { SignerInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { ModeInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { GetTxResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxDecodeRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxEncodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; -import { TxDecodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; -import { ModeInfo_Multi } from "./types/cosmos/tx/v1beta1/tx"; -import { Tip } from "./types/cosmos/tx/v1beta1/tx"; -import { SimulateRequest } from "./types/cosmos/tx/v1beta1/service"; -import { AuthInfo } from "./types/cosmos/tx/v1beta1/tx"; -import { TxDecodeResponse } from "./types/cosmos/tx/v1beta1/service"; +import { BroadcastTxRequest } from "./types/cosmos/tx/v1beta1/service"; +import { SimulateResponse } from "./types/cosmos/tx/v1beta1/service"; +import { GetBlockWithTxsRequest } from "./types/cosmos/tx/v1beta1/service"; import { TxEncodeRequest } from "./types/cosmos/tx/v1beta1/service"; -import { TxEncodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; -import { Tx } from "./types/cosmos/tx/v1beta1/tx"; import { GetTxsEventRequest } from "./types/cosmos/tx/v1beta1/service"; -import { BroadcastTxRequest } from "./types/cosmos/tx/v1beta1/service"; -import { GetBlockWithTxsResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxDecodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; +import { ModeInfo } from "./types/cosmos/tx/v1beta1/tx"; +import { Fee } from "./types/cosmos/tx/v1beta1/tx"; import { ModeInfo_Single } from "./types/cosmos/tx/v1beta1/tx"; +import { Tx } from "./types/cosmos/tx/v1beta1/tx"; +import { GetTxRequest } from "./types/cosmos/tx/v1beta1/service"; +import { SignDocDirectAux } from "./types/cosmos/tx/v1beta1/tx"; +import { TxDecodeResponse } from "./types/cosmos/tx/v1beta1/service"; +import { SignDoc } from "./types/cosmos/tx/v1beta1/tx"; +import { Tip } from "./types/cosmos/tx/v1beta1/tx"; +import { AuxSignerData } from "./types/cosmos/tx/v1beta1/tx"; +import { TxEncodeResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxDecodeAminoResponse } from "./types/cosmos/tx/v1beta1/service"; import { TxRaw } from "./types/cosmos/tx/v1beta1/tx"; -import { Fee } from "./types/cosmos/tx/v1beta1/tx"; +import { ModeInfo_Multi } from "./types/cosmos/tx/v1beta1/tx"; import { GetTxsEventResponse } from "./types/cosmos/tx/v1beta1/service"; -import { SimulateResponse } from "./types/cosmos/tx/v1beta1/service"; +import { BroadcastTxResponse } from "./types/cosmos/tx/v1beta1/service"; +import { GetBlockWithTxsResponse } from "./types/cosmos/tx/v1beta1/service"; +import { AuthInfo } from "./types/cosmos/tx/v1beta1/tx"; +import { SimulateRequest } from "./types/cosmos/tx/v1beta1/service"; +import { GetTxResponse } from "./types/cosmos/tx/v1beta1/service"; +import { TxEncodeAminoRequest } from "./types/cosmos/tx/v1beta1/service"; const msgTypes = [ - ["/cosmos.tx.v1beta1.BroadcastTxResponse", BroadcastTxResponse], - ["/cosmos.tx.v1beta1.TxEncodeResponse", TxEncodeResponse], - ["/cosmos.tx.v1beta1.SignDoc", SignDoc], ["/cosmos.tx.v1beta1.TxBody", TxBody], - ["/cosmos.tx.v1beta1.SignDocDirectAux", SignDocDirectAux], - ["/cosmos.tx.v1beta1.AuxSignerData", AuxSignerData], - ["/cosmos.tx.v1beta1.GetBlockWithTxsRequest", GetBlockWithTxsRequest], - ["/cosmos.tx.v1beta1.GetTxRequest", GetTxRequest], - ["/cosmos.tx.v1beta1.TxDecodeRequest", TxDecodeRequest], - ["/cosmos.tx.v1beta1.TxDecodeAminoResponse", TxDecodeAminoResponse], ["/cosmos.tx.v1beta1.SignerInfo", SignerInfo], - ["/cosmos.tx.v1beta1.ModeInfo", ModeInfo], - ["/cosmos.tx.v1beta1.GetTxResponse", GetTxResponse], + ["/cosmos.tx.v1beta1.TxDecodeRequest", TxDecodeRequest], ["/cosmos.tx.v1beta1.TxEncodeAminoResponse", TxEncodeAminoResponse], - ["/cosmos.tx.v1beta1.TxDecodeAminoRequest", TxDecodeAminoRequest], - ["/cosmos.tx.v1beta1.ModeInfo_Multi", ModeInfo_Multi], - ["/cosmos.tx.v1beta1.Tip", Tip], - ["/cosmos.tx.v1beta1.SimulateRequest", SimulateRequest], - ["/cosmos.tx.v1beta1.AuthInfo", AuthInfo], - ["/cosmos.tx.v1beta1.TxDecodeResponse", TxDecodeResponse], + ["/cosmos.tx.v1beta1.BroadcastTxRequest", BroadcastTxRequest], + ["/cosmos.tx.v1beta1.SimulateResponse", SimulateResponse], + ["/cosmos.tx.v1beta1.GetBlockWithTxsRequest", GetBlockWithTxsRequest], ["/cosmos.tx.v1beta1.TxEncodeRequest", TxEncodeRequest], - ["/cosmos.tx.v1beta1.TxEncodeAminoRequest", TxEncodeAminoRequest], - ["/cosmos.tx.v1beta1.Tx", Tx], ["/cosmos.tx.v1beta1.GetTxsEventRequest", GetTxsEventRequest], - ["/cosmos.tx.v1beta1.BroadcastTxRequest", BroadcastTxRequest], - ["/cosmos.tx.v1beta1.GetBlockWithTxsResponse", GetBlockWithTxsResponse], + ["/cosmos.tx.v1beta1.TxDecodeAminoRequest", TxDecodeAminoRequest], + ["/cosmos.tx.v1beta1.ModeInfo", ModeInfo], + ["/cosmos.tx.v1beta1.Fee", Fee], ["/cosmos.tx.v1beta1.ModeInfo_Single", ModeInfo_Single], + ["/cosmos.tx.v1beta1.Tx", Tx], + ["/cosmos.tx.v1beta1.GetTxRequest", GetTxRequest], + ["/cosmos.tx.v1beta1.SignDocDirectAux", SignDocDirectAux], + ["/cosmos.tx.v1beta1.TxDecodeResponse", TxDecodeResponse], + ["/cosmos.tx.v1beta1.SignDoc", SignDoc], + ["/cosmos.tx.v1beta1.Tip", Tip], + ["/cosmos.tx.v1beta1.AuxSignerData", AuxSignerData], + ["/cosmos.tx.v1beta1.TxEncodeResponse", TxEncodeResponse], + ["/cosmos.tx.v1beta1.TxDecodeAminoResponse", TxDecodeAminoResponse], ["/cosmos.tx.v1beta1.TxRaw", TxRaw], - ["/cosmos.tx.v1beta1.Fee", Fee], + ["/cosmos.tx.v1beta1.ModeInfo_Multi", ModeInfo_Multi], ["/cosmos.tx.v1beta1.GetTxsEventResponse", GetTxsEventResponse], - ["/cosmos.tx.v1beta1.SimulateResponse", SimulateResponse], + ["/cosmos.tx.v1beta1.BroadcastTxResponse", BroadcastTxResponse], + ["/cosmos.tx.v1beta1.GetBlockWithTxsResponse", GetBlockWithTxsResponse], + ["/cosmos.tx.v1beta1.AuthInfo", AuthInfo], + ["/cosmos.tx.v1beta1.SimulateRequest", SimulateRequest], + ["/cosmos.tx.v1beta1.GetTxResponse", GetTxResponse], + ["/cosmos.tx.v1beta1.TxEncodeAminoRequest", TxEncodeAminoRequest], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.upgrade.v1beta1/module.d.ts b/ts-client/lib/cosmos.upgrade.v1beta1/module.d.ts index 477187c5d..7b11746c2 100644 --- a/ts-client/lib/cosmos.upgrade.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.upgrade.v1beta1/module.d.ts @@ -2,52 +2,52 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { QueryModuleVersionsRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryModuleVersionsResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { SoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { CancelSoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { ModuleVersion } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { MsgSoftwareUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; -import { Plan } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { QueryUpgradedConsensusStateRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { MsgCancelUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; -import { QueryUpgradedConsensusStateResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryAuthorityResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryAuthorityRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; import { MsgCancelUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; +import { MsgCancelUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; import { QueryCurrentPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; import { QueryAppliedPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; +import { QueryModuleVersionsResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { Plan } from "./types/cosmos/upgrade/v1beta1/upgrade"; import { QueryCurrentPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; import { QueryAppliedPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; -export { QueryModuleVersionsRequest, QueryModuleVersionsResponse, SoftwareUpgradeProposal, CancelSoftwareUpgradeProposal, ModuleVersion, MsgSoftwareUpgradeResponse, Plan, QueryUpgradedConsensusStateRequest, MsgCancelUpgradeResponse, QueryUpgradedConsensusStateResponse, QueryAuthorityResponse, QueryAuthorityRequest, MsgSoftwareUpgrade, MsgCancelUpgrade, QueryCurrentPlanResponse, QueryAppliedPlanRequest, QueryCurrentPlanRequest, QueryAppliedPlanResponse }; -type sendQueryModuleVersionsRequestParams = { - value: QueryModuleVersionsRequest; +import { QueryUpgradedConsensusStateRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryUpgradedConsensusStateResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryModuleVersionsRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { SoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; +import { MsgSoftwareUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; +import { QueryAuthorityRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryAuthorityResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { CancelSoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; +import { ModuleVersion } from "./types/cosmos/upgrade/v1beta1/upgrade"; +export { MsgCancelUpgrade, MsgCancelUpgradeResponse, QueryCurrentPlanResponse, QueryAppliedPlanRequest, MsgSoftwareUpgrade, QueryModuleVersionsResponse, Plan, QueryCurrentPlanRequest, QueryAppliedPlanResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryModuleVersionsRequest, SoftwareUpgradeProposal, MsgSoftwareUpgradeResponse, QueryAuthorityRequest, QueryAuthorityResponse, CancelSoftwareUpgradeProposal, ModuleVersion }; +type sendMsgCancelUpgradeParams = { + value: MsgCancelUpgrade; fee?: StdFee; memo?: string; }; -type sendQueryModuleVersionsResponseParams = { - value: QueryModuleVersionsResponse; +type sendMsgCancelUpgradeResponseParams = { + value: MsgCancelUpgradeResponse; fee?: StdFee; memo?: string; }; -type sendSoftwareUpgradeProposalParams = { - value: SoftwareUpgradeProposal; +type sendQueryCurrentPlanResponseParams = { + value: QueryCurrentPlanResponse; fee?: StdFee; memo?: string; }; -type sendCancelSoftwareUpgradeProposalParams = { - value: CancelSoftwareUpgradeProposal; +type sendQueryAppliedPlanRequestParams = { + value: QueryAppliedPlanRequest; fee?: StdFee; memo?: string; }; -type sendModuleVersionParams = { - value: ModuleVersion; +type sendMsgSoftwareUpgradeParams = { + value: MsgSoftwareUpgrade; fee?: StdFee; memo?: string; }; -type sendMsgSoftwareUpgradeResponseParams = { - value: MsgSoftwareUpgradeResponse; +type sendQueryModuleVersionsResponseParams = { + value: QueryModuleVersionsResponse; fee?: StdFee; memo?: string; }; @@ -56,114 +56,114 @@ type sendPlanParams = { fee?: StdFee; memo?: string; }; -type sendQueryUpgradedConsensusStateRequestParams = { - value: QueryUpgradedConsensusStateRequest; +type sendQueryCurrentPlanRequestParams = { + value: QueryCurrentPlanRequest; fee?: StdFee; memo?: string; }; -type sendMsgCancelUpgradeResponseParams = { - value: MsgCancelUpgradeResponse; +type sendQueryAppliedPlanResponseParams = { + value: QueryAppliedPlanResponse; fee?: StdFee; memo?: string; }; -type sendQueryUpgradedConsensusStateResponseParams = { - value: QueryUpgradedConsensusStateResponse; +type sendQueryUpgradedConsensusStateRequestParams = { + value: QueryUpgradedConsensusStateRequest; fee?: StdFee; memo?: string; }; -type sendQueryAuthorityResponseParams = { - value: QueryAuthorityResponse; +type sendQueryUpgradedConsensusStateResponseParams = { + value: QueryUpgradedConsensusStateResponse; fee?: StdFee; memo?: string; }; -type sendQueryAuthorityRequestParams = { - value: QueryAuthorityRequest; +type sendQueryModuleVersionsRequestParams = { + value: QueryModuleVersionsRequest; fee?: StdFee; memo?: string; }; -type sendMsgSoftwareUpgradeParams = { - value: MsgSoftwareUpgrade; +type sendSoftwareUpgradeProposalParams = { + value: SoftwareUpgradeProposal; fee?: StdFee; memo?: string; }; -type sendMsgCancelUpgradeParams = { - value: MsgCancelUpgrade; +type sendMsgSoftwareUpgradeResponseParams = { + value: MsgSoftwareUpgradeResponse; fee?: StdFee; memo?: string; }; -type sendQueryCurrentPlanResponseParams = { - value: QueryCurrentPlanResponse; +type sendQueryAuthorityRequestParams = { + value: QueryAuthorityRequest; fee?: StdFee; memo?: string; }; -type sendQueryAppliedPlanRequestParams = { - value: QueryAppliedPlanRequest; +type sendQueryAuthorityResponseParams = { + value: QueryAuthorityResponse; fee?: StdFee; memo?: string; }; -type sendQueryCurrentPlanRequestParams = { - value: QueryCurrentPlanRequest; +type sendCancelSoftwareUpgradeProposalParams = { + value: CancelSoftwareUpgradeProposal; fee?: StdFee; memo?: string; }; -type sendQueryAppliedPlanResponseParams = { - value: QueryAppliedPlanResponse; +type sendModuleVersionParams = { + value: ModuleVersion; fee?: StdFee; memo?: string; }; -type queryModuleVersionsRequestParams = { - value: QueryModuleVersionsRequest; +type msgCancelUpgradeParams = { + value: MsgCancelUpgrade; }; -type queryModuleVersionsResponseParams = { - value: QueryModuleVersionsResponse; +type msgCancelUpgradeResponseParams = { + value: MsgCancelUpgradeResponse; }; -type softwareUpgradeProposalParams = { - value: SoftwareUpgradeProposal; +type queryCurrentPlanResponseParams = { + value: QueryCurrentPlanResponse; }; -type cancelSoftwareUpgradeProposalParams = { - value: CancelSoftwareUpgradeProposal; +type queryAppliedPlanRequestParams = { + value: QueryAppliedPlanRequest; }; -type moduleVersionParams = { - value: ModuleVersion; +type msgSoftwareUpgradeParams = { + value: MsgSoftwareUpgrade; }; -type msgSoftwareUpgradeResponseParams = { - value: MsgSoftwareUpgradeResponse; +type queryModuleVersionsResponseParams = { + value: QueryModuleVersionsResponse; }; type planParams = { value: Plan; }; +type queryCurrentPlanRequestParams = { + value: QueryCurrentPlanRequest; +}; +type queryAppliedPlanResponseParams = { + value: QueryAppliedPlanResponse; +}; type queryUpgradedConsensusStateRequestParams = { value: QueryUpgradedConsensusStateRequest; }; -type msgCancelUpgradeResponseParams = { - value: MsgCancelUpgradeResponse; -}; type queryUpgradedConsensusStateResponseParams = { value: QueryUpgradedConsensusStateResponse; }; -type queryAuthorityResponseParams = { - value: QueryAuthorityResponse; -}; -type queryAuthorityRequestParams = { - value: QueryAuthorityRequest; +type queryModuleVersionsRequestParams = { + value: QueryModuleVersionsRequest; }; -type msgSoftwareUpgradeParams = { - value: MsgSoftwareUpgrade; +type softwareUpgradeProposalParams = { + value: SoftwareUpgradeProposal; }; -type msgCancelUpgradeParams = { - value: MsgCancelUpgrade; +type msgSoftwareUpgradeResponseParams = { + value: MsgSoftwareUpgradeResponse; }; -type queryCurrentPlanResponseParams = { - value: QueryCurrentPlanResponse; +type queryAuthorityRequestParams = { + value: QueryAuthorityRequest; }; -type queryAppliedPlanRequestParams = { - value: QueryAppliedPlanRequest; +type queryAuthorityResponseParams = { + value: QueryAuthorityResponse; }; -type queryCurrentPlanRequestParams = { - value: QueryCurrentPlanRequest; +type cancelSoftwareUpgradeProposalParams = { + value: CancelSoftwareUpgradeProposal; }; -type queryAppliedPlanResponseParams = { - value: QueryAppliedPlanResponse; +type moduleVersionParams = { + value: ModuleVersion; }; export declare const registry: Registry; interface TxClientOptions { @@ -172,42 +172,42 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendQueryModuleVersionsRequest({ value, fee, memo }: sendQueryModuleVersionsRequestParams): Promise; - sendQueryModuleVersionsResponse({ value, fee, memo }: sendQueryModuleVersionsResponseParams): Promise; - sendSoftwareUpgradeProposal({ value, fee, memo }: sendSoftwareUpgradeProposalParams): Promise; - sendCancelSoftwareUpgradeProposal({ value, fee, memo }: sendCancelSoftwareUpgradeProposalParams): Promise; - sendModuleVersion({ value, fee, memo }: sendModuleVersionParams): Promise; - sendMsgSoftwareUpgradeResponse({ value, fee, memo }: sendMsgSoftwareUpgradeResponseParams): Promise; - sendPlan({ value, fee, memo }: sendPlanParams): Promise; - sendQueryUpgradedConsensusStateRequest({ value, fee, memo }: sendQueryUpgradedConsensusStateRequestParams): Promise; - sendMsgCancelUpgradeResponse({ value, fee, memo }: sendMsgCancelUpgradeResponseParams): Promise; - sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: sendQueryUpgradedConsensusStateResponseParams): Promise; - sendQueryAuthorityResponse({ value, fee, memo }: sendQueryAuthorityResponseParams): Promise; - sendQueryAuthorityRequest({ value, fee, memo }: sendQueryAuthorityRequestParams): Promise; - sendMsgSoftwareUpgrade({ value, fee, memo }: sendMsgSoftwareUpgradeParams): Promise; sendMsgCancelUpgrade({ value, fee, memo }: sendMsgCancelUpgradeParams): Promise; + sendMsgCancelUpgradeResponse({ value, fee, memo }: sendMsgCancelUpgradeResponseParams): Promise; sendQueryCurrentPlanResponse({ value, fee, memo }: sendQueryCurrentPlanResponseParams): Promise; sendQueryAppliedPlanRequest({ value, fee, memo }: sendQueryAppliedPlanRequestParams): Promise; + sendMsgSoftwareUpgrade({ value, fee, memo }: sendMsgSoftwareUpgradeParams): Promise; + sendQueryModuleVersionsResponse({ value, fee, memo }: sendQueryModuleVersionsResponseParams): Promise; + sendPlan({ value, fee, memo }: sendPlanParams): Promise; sendQueryCurrentPlanRequest({ value, fee, memo }: sendQueryCurrentPlanRequestParams): Promise; sendQueryAppliedPlanResponse({ value, fee, memo }: sendQueryAppliedPlanResponseParams): Promise; - queryModuleVersionsRequest({ value }: queryModuleVersionsRequestParams): EncodeObject; - queryModuleVersionsResponse({ value }: queryModuleVersionsResponseParams): EncodeObject; - softwareUpgradeProposal({ value }: softwareUpgradeProposalParams): EncodeObject; - cancelSoftwareUpgradeProposal({ value }: cancelSoftwareUpgradeProposalParams): EncodeObject; - moduleVersion({ value }: moduleVersionParams): EncodeObject; - msgSoftwareUpgradeResponse({ value }: msgSoftwareUpgradeResponseParams): EncodeObject; - plan({ value }: planParams): EncodeObject; - queryUpgradedConsensusStateRequest({ value }: queryUpgradedConsensusStateRequestParams): EncodeObject; - msgCancelUpgradeResponse({ value }: msgCancelUpgradeResponseParams): EncodeObject; - queryUpgradedConsensusStateResponse({ value }: queryUpgradedConsensusStateResponseParams): EncodeObject; - queryAuthorityResponse({ value }: queryAuthorityResponseParams): EncodeObject; - queryAuthorityRequest({ value }: queryAuthorityRequestParams): EncodeObject; - msgSoftwareUpgrade({ value }: msgSoftwareUpgradeParams): EncodeObject; + sendQueryUpgradedConsensusStateRequest({ value, fee, memo }: sendQueryUpgradedConsensusStateRequestParams): Promise; + sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: sendQueryUpgradedConsensusStateResponseParams): Promise; + sendQueryModuleVersionsRequest({ value, fee, memo }: sendQueryModuleVersionsRequestParams): Promise; + sendSoftwareUpgradeProposal({ value, fee, memo }: sendSoftwareUpgradeProposalParams): Promise; + sendMsgSoftwareUpgradeResponse({ value, fee, memo }: sendMsgSoftwareUpgradeResponseParams): Promise; + sendQueryAuthorityRequest({ value, fee, memo }: sendQueryAuthorityRequestParams): Promise; + sendQueryAuthorityResponse({ value, fee, memo }: sendQueryAuthorityResponseParams): Promise; + sendCancelSoftwareUpgradeProposal({ value, fee, memo }: sendCancelSoftwareUpgradeProposalParams): Promise; + sendModuleVersion({ value, fee, memo }: sendModuleVersionParams): Promise; msgCancelUpgrade({ value }: msgCancelUpgradeParams): EncodeObject; + msgCancelUpgradeResponse({ value }: msgCancelUpgradeResponseParams): EncodeObject; queryCurrentPlanResponse({ value }: queryCurrentPlanResponseParams): EncodeObject; queryAppliedPlanRequest({ value }: queryAppliedPlanRequestParams): EncodeObject; + msgSoftwareUpgrade({ value }: msgSoftwareUpgradeParams): EncodeObject; + queryModuleVersionsResponse({ value }: queryModuleVersionsResponseParams): EncodeObject; + plan({ value }: planParams): EncodeObject; queryCurrentPlanRequest({ value }: queryCurrentPlanRequestParams): EncodeObject; queryAppliedPlanResponse({ value }: queryAppliedPlanResponseParams): EncodeObject; + queryUpgradedConsensusStateRequest({ value }: queryUpgradedConsensusStateRequestParams): EncodeObject; + queryUpgradedConsensusStateResponse({ value }: queryUpgradedConsensusStateResponseParams): EncodeObject; + queryModuleVersionsRequest({ value }: queryModuleVersionsRequestParams): EncodeObject; + softwareUpgradeProposal({ value }: softwareUpgradeProposalParams): EncodeObject; + msgSoftwareUpgradeResponse({ value }: msgSoftwareUpgradeResponseParams): EncodeObject; + queryAuthorityRequest({ value }: queryAuthorityRequestParams): EncodeObject; + queryAuthorityResponse({ value }: queryAuthorityResponseParams): EncodeObject; + cancelSoftwareUpgradeProposal({ value }: cancelSoftwareUpgradeProposalParams): EncodeObject; + moduleVersion({ value }: moduleVersionParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.upgrade.v1beta1/module.js b/ts-client/lib/cosmos.upgrade.v1beta1/module.js index c406383e2..182c4e319 100644 --- a/ts-client/lib/cosmos.upgrade.v1beta1/module.js +++ b/ts-client/lib/cosmos.upgrade.v1beta1/module.js @@ -3,25 +3,25 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { QueryModuleVersionsRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryModuleVersionsResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { SoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { CancelSoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { ModuleVersion } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { MsgSoftwareUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; -import { Plan } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { QueryUpgradedConsensusStateRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { MsgCancelUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; -import { QueryUpgradedConsensusStateResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryAuthorityResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryAuthorityRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; import { MsgCancelUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; +import { MsgCancelUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; import { QueryCurrentPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; import { QueryAppliedPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; +import { QueryModuleVersionsResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { Plan } from "./types/cosmos/upgrade/v1beta1/upgrade"; import { QueryCurrentPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; import { QueryAppliedPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; -export { QueryModuleVersionsRequest, QueryModuleVersionsResponse, SoftwareUpgradeProposal, CancelSoftwareUpgradeProposal, ModuleVersion, MsgSoftwareUpgradeResponse, Plan, QueryUpgradedConsensusStateRequest, MsgCancelUpgradeResponse, QueryUpgradedConsensusStateResponse, QueryAuthorityResponse, QueryAuthorityRequest, MsgSoftwareUpgrade, MsgCancelUpgrade, QueryCurrentPlanResponse, QueryAppliedPlanRequest, QueryCurrentPlanRequest, QueryAppliedPlanResponse }; +import { QueryUpgradedConsensusStateRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryUpgradedConsensusStateResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryModuleVersionsRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { SoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; +import { MsgSoftwareUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; +import { QueryAuthorityRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryAuthorityResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { CancelSoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; +import { ModuleVersion } from "./types/cosmos/upgrade/v1beta1/upgrade"; +export { MsgCancelUpgrade, MsgCancelUpgradeResponse, QueryCurrentPlanResponse, QueryAppliedPlanRequest, MsgSoftwareUpgrade, QueryModuleVersionsResponse, Plan, QueryCurrentPlanRequest, QueryAppliedPlanResponse, QueryUpgradedConsensusStateRequest, QueryUpgradedConsensusStateResponse, QueryModuleVersionsRequest, SoftwareUpgradeProposal, MsgSoftwareUpgradeResponse, QueryAuthorityRequest, QueryAuthorityResponse, CancelSoftwareUpgradeProposal, ModuleVersion }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -37,88 +37,88 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendQueryModuleVersionsRequest({ value, fee, memo }) { + async sendMsgCancelUpgrade({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryModuleVersionsRequest: 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.queryModuleVersionsRequest({ value: QueryModuleVersionsRequest.fromPartial(value) }); + let msg = this.msgCancelUpgrade({ value: MsgCancelUpgrade.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryModuleVersionsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCancelUpgrade: Could not broadcast Tx: ' + e.message); } }, - async sendQueryModuleVersionsResponse({ value, fee, memo }) { + async sendMsgCancelUpgradeResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryModuleVersionsResponse: 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.queryModuleVersionsResponse({ value: QueryModuleVersionsResponse.fromPartial(value) }); + let msg = this.msgCancelUpgradeResponse({ value: MsgCancelUpgradeResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryModuleVersionsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCancelUpgradeResponse: Could not broadcast Tx: ' + e.message); } }, - async sendSoftwareUpgradeProposal({ value, fee, memo }) { + async sendQueryCurrentPlanResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSoftwareUpgradeProposal: 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.softwareUpgradeProposal({ value: SoftwareUpgradeProposal.fromPartial(value) }); + let msg = this.queryCurrentPlanResponse({ value: QueryCurrentPlanResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSoftwareUpgradeProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryCurrentPlanResponse: Could not broadcast Tx: ' + e.message); } }, - async sendCancelSoftwareUpgradeProposal({ value, fee, memo }) { + async sendQueryAppliedPlanRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendCancelSoftwareUpgradeProposal: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryAppliedPlanRequest: Unable to 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.queryAppliedPlanRequest({ value: QueryAppliedPlanRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendCancelSoftwareUpgradeProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAppliedPlanRequest: Could not broadcast Tx: ' + e.message); } }, - async sendModuleVersion({ value, fee, memo }) { + async sendMsgSoftwareUpgrade({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendModuleVersion: 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.moduleVersion({ value: ModuleVersion.fromPartial(value) }); + let msg = this.msgSoftwareUpgrade({ value: MsgSoftwareUpgrade.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendModuleVersion: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSoftwareUpgrade: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSoftwareUpgradeResponse({ value, fee, memo }) { + async sendQueryModuleVersionsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSoftwareUpgradeResponse: 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.msgSoftwareUpgradeResponse({ value: MsgSoftwareUpgradeResponse.fromPartial(value) }); + let msg = this.queryModuleVersionsResponse({ value: QueryModuleVersionsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSoftwareUpgradeResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryModuleVersionsResponse: Could not broadcast Tx: ' + e.message); } }, async sendPlan({ value, fee, memo }) { @@ -135,206 +135,206 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendPlan: Could not broadcast Tx: ' + e.message); } }, - async sendQueryUpgradedConsensusStateRequest({ value, fee, memo }) { + async sendQueryCurrentPlanRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryCurrentPlanRequest: Unable to 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.queryCurrentPlanRequest({ value: QueryCurrentPlanRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryCurrentPlanRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCancelUpgradeResponse({ value, fee, memo }) { + async sendQueryAppliedPlanResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCancelUpgradeResponse: 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.msgCancelUpgradeResponse({ value: MsgCancelUpgradeResponse.fromPartial(value) }); + let msg = this.queryAppliedPlanResponse({ value: QueryAppliedPlanResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCancelUpgradeResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAppliedPlanResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryUpgradedConsensusStateResponse({ value, fee, memo }) { + async sendQueryUpgradedConsensusStateRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: 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.queryUpgradedConsensusStateResponse({ value: QueryUpgradedConsensusStateResponse.fromPartial(value) }); + let msg = this.queryUpgradedConsensusStateRequest({ value: QueryUpgradedConsensusStateRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAuthorityResponse({ value, fee, memo }) { + async sendQueryUpgradedConsensusStateResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAuthorityResponse: 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.queryAuthorityResponse({ value: QueryAuthorityResponse.fromPartial(value) }); + let msg = this.queryUpgradedConsensusStateResponse({ value: QueryUpgradedConsensusStateResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAuthorityResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAuthorityRequest({ value, fee, memo }) { + async sendQueryModuleVersionsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAuthorityRequest: 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.queryAuthorityRequest({ value: QueryAuthorityRequest.fromPartial(value) }); + let msg = this.queryModuleVersionsRequest({ value: QueryModuleVersionsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAuthorityRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryModuleVersionsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSoftwareUpgrade({ value, fee, memo }) { + async sendSoftwareUpgradeProposal({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSoftwareUpgrade: 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.msgSoftwareUpgrade({ value: MsgSoftwareUpgrade.fromPartial(value) }); + let msg = this.softwareUpgradeProposal({ value: SoftwareUpgradeProposal.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSoftwareUpgrade: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSoftwareUpgradeProposal: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCancelUpgrade({ value, fee, memo }) { + async sendMsgSoftwareUpgradeResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCancelUpgrade: 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.msgCancelUpgrade({ value: MsgCancelUpgrade.fromPartial(value) }); + let msg = this.msgSoftwareUpgradeResponse({ value: MsgSoftwareUpgradeResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCancelUpgrade: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSoftwareUpgradeResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryCurrentPlanResponse({ value, fee, memo }) { + async sendQueryAuthorityRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryCurrentPlanResponse: 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.queryCurrentPlanResponse({ value: QueryCurrentPlanResponse.fromPartial(value) }); + let msg = this.queryAuthorityRequest({ value: QueryAuthorityRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryCurrentPlanResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAuthorityRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAppliedPlanRequest({ value, fee, memo }) { + async sendQueryAuthorityResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAppliedPlanRequest: 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.queryAppliedPlanRequest({ value: QueryAppliedPlanRequest.fromPartial(value) }); + let msg = this.queryAuthorityResponse({ value: QueryAuthorityResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAppliedPlanRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAuthorityResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryCurrentPlanRequest({ value, fee, memo }) { + async sendCancelSoftwareUpgradeProposal({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryCurrentPlanRequest: Unable to sign Tx. Signer is not present.'); + 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.queryCurrentPlanRequest({ value: QueryCurrentPlanRequest.fromPartial(value) }); + let msg = this.cancelSoftwareUpgradeProposal({ value: CancelSoftwareUpgradeProposal.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryCurrentPlanRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendCancelSoftwareUpgradeProposal: Could not broadcast Tx: ' + e.message); } }, - async sendQueryAppliedPlanResponse({ value, fee, memo }) { + async sendModuleVersion({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryAppliedPlanResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendModuleVersion: Unable to 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.moduleVersion({ value: ModuleVersion.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryAppliedPlanResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendModuleVersion: Could not broadcast Tx: ' + e.message); } }, - queryModuleVersionsRequest({ value }) { + msgCancelUpgrade({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", value: QueryModuleVersionsRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", value: MsgCancelUpgrade.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryModuleVersionsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCancelUpgrade: Could not create message: ' + e.message); } }, - queryModuleVersionsResponse({ value }) { + msgCancelUpgradeResponse({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", value: QueryModuleVersionsResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", value: MsgCancelUpgradeResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryModuleVersionsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCancelUpgradeResponse: Could not create message: ' + e.message); } }, - softwareUpgradeProposal({ value }) { + queryCurrentPlanResponse({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", value: SoftwareUpgradeProposal.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", value: QueryCurrentPlanResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:SoftwareUpgradeProposal: Could not create message: ' + e.message); + throw new Error('TxClient:QueryCurrentPlanResponse: Could not create message: ' + e.message); } }, - cancelSoftwareUpgradeProposal({ value }) { + queryAppliedPlanRequest({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", value: CancelSoftwareUpgradeProposal.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", value: QueryAppliedPlanRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:CancelSoftwareUpgradeProposal: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAppliedPlanRequest: Could not create message: ' + e.message); } }, - moduleVersion({ value }) { + msgSoftwareUpgrade({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", value: ModuleVersion.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", value: MsgSoftwareUpgrade.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ModuleVersion: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSoftwareUpgrade: Could not create message: ' + e.message); } }, - msgSoftwareUpgradeResponse({ value }) { + queryModuleVersionsResponse({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", value: MsgSoftwareUpgradeResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", value: QueryModuleVersionsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSoftwareUpgradeResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryModuleVersionsResponse: Could not create message: ' + e.message); } }, plan({ value }) { @@ -345,92 +345,92 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:Plan: Could not create message: ' + e.message); } }, - queryUpgradedConsensusStateRequest({ value }) { + queryCurrentPlanRequest({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", value: QueryUpgradedConsensusStateRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", value: QueryCurrentPlanRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryUpgradedConsensusStateRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryCurrentPlanRequest: Could not create message: ' + e.message); } }, - msgCancelUpgradeResponse({ value }) { + queryAppliedPlanResponse({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", value: MsgCancelUpgradeResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", value: QueryAppliedPlanResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCancelUpgradeResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAppliedPlanResponse: Could not create message: ' + e.message); } }, - queryUpgradedConsensusStateResponse({ value }) { + queryUpgradedConsensusStateRequest({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", value: QueryUpgradedConsensusStateResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", value: QueryUpgradedConsensusStateRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryUpgradedConsensusStateResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryUpgradedConsensusStateRequest: Could not create message: ' + e.message); } }, - queryAuthorityResponse({ value }) { + queryUpgradedConsensusStateResponse({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", value: QueryAuthorityResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", value: QueryUpgradedConsensusStateResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAuthorityResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryUpgradedConsensusStateResponse: Could not create message: ' + e.message); } }, - queryAuthorityRequest({ value }) { + queryModuleVersionsRequest({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", value: QueryAuthorityRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", value: QueryModuleVersionsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAuthorityRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryModuleVersionsRequest: Could not create message: ' + e.message); } }, - msgSoftwareUpgrade({ value }) { + softwareUpgradeProposal({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", value: MsgSoftwareUpgrade.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", value: SoftwareUpgradeProposal.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSoftwareUpgrade: Could not create message: ' + e.message); + throw new Error('TxClient:SoftwareUpgradeProposal: Could not create message: ' + e.message); } }, - msgCancelUpgrade({ value }) { + msgSoftwareUpgradeResponse({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.MsgCancelUpgrade", value: MsgCancelUpgrade.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", value: MsgSoftwareUpgradeResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCancelUpgrade: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSoftwareUpgradeResponse: Could not create message: ' + e.message); } }, - queryCurrentPlanResponse({ value }) { + queryAuthorityRequest({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", value: QueryCurrentPlanResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityRequest", value: QueryAuthorityRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryCurrentPlanResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAuthorityRequest: Could not create message: ' + e.message); } }, - queryAppliedPlanRequest({ value }) { + queryAuthorityResponse({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", value: QueryAppliedPlanRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAuthorityResponse", value: QueryAuthorityResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAppliedPlanRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryAuthorityResponse: Could not create message: ' + e.message); } }, - queryCurrentPlanRequest({ value }) { + cancelSoftwareUpgradeProposal({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", value: QueryCurrentPlanRequest.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", value: CancelSoftwareUpgradeProposal.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryCurrentPlanRequest: Could not create message: ' + e.message); + throw new Error('TxClient:CancelSoftwareUpgradeProposal: Could not create message: ' + e.message); } }, - queryAppliedPlanResponse({ value }) { + moduleVersion({ value }) { try { - return { typeUrl: "/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", value: QueryAppliedPlanResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion", value: ModuleVersion.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryAppliedPlanResponse: Could not create message: ' + e.message); + throw new Error('TxClient:ModuleVersion: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.upgrade.v1beta1/registry.js b/ts-client/lib/cosmos.upgrade.v1beta1/registry.js index dba6d799a..cb216bb7a 100644 --- a/ts-client/lib/cosmos.upgrade.v1beta1/registry.js +++ b/ts-client/lib/cosmos.upgrade.v1beta1/registry.js @@ -1,39 +1,39 @@ -import { QueryModuleVersionsRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryModuleVersionsResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { SoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { CancelSoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { ModuleVersion } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { MsgSoftwareUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; -import { Plan } from "./types/cosmos/upgrade/v1beta1/upgrade"; -import { QueryUpgradedConsensusStateRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { MsgCancelUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; -import { QueryUpgradedConsensusStateResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryAuthorityResponse } from "./types/cosmos/upgrade/v1beta1/query"; -import { QueryAuthorityRequest } from "./types/cosmos/upgrade/v1beta1/query"; -import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; import { MsgCancelUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; +import { MsgCancelUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; import { QueryCurrentPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; import { QueryAppliedPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { MsgSoftwareUpgrade } from "./types/cosmos/upgrade/v1beta1/tx"; +import { QueryModuleVersionsResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { Plan } from "./types/cosmos/upgrade/v1beta1/upgrade"; import { QueryCurrentPlanRequest } from "./types/cosmos/upgrade/v1beta1/query"; import { QueryAppliedPlanResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryUpgradedConsensusStateRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryUpgradedConsensusStateResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryModuleVersionsRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { SoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; +import { MsgSoftwareUpgradeResponse } from "./types/cosmos/upgrade/v1beta1/tx"; +import { QueryAuthorityRequest } from "./types/cosmos/upgrade/v1beta1/query"; +import { QueryAuthorityResponse } from "./types/cosmos/upgrade/v1beta1/query"; +import { CancelSoftwareUpgradeProposal } from "./types/cosmos/upgrade/v1beta1/upgrade"; +import { ModuleVersion } from "./types/cosmos/upgrade/v1beta1/upgrade"; const msgTypes = [ - ["/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", QueryModuleVersionsRequest], - ["/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", QueryModuleVersionsResponse], - ["/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", SoftwareUpgradeProposal], - ["/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", CancelSoftwareUpgradeProposal], - ["/cosmos.upgrade.v1beta1.ModuleVersion", ModuleVersion], - ["/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", MsgSoftwareUpgradeResponse], - ["/cosmos.upgrade.v1beta1.Plan", Plan], - ["/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", QueryUpgradedConsensusStateRequest], - ["/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", MsgCancelUpgradeResponse], - ["/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", QueryUpgradedConsensusStateResponse], - ["/cosmos.upgrade.v1beta1.QueryAuthorityResponse", QueryAuthorityResponse], - ["/cosmos.upgrade.v1beta1.QueryAuthorityRequest", QueryAuthorityRequest], - ["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade], ["/cosmos.upgrade.v1beta1.MsgCancelUpgrade", MsgCancelUpgrade], + ["/cosmos.upgrade.v1beta1.MsgCancelUpgradeResponse", MsgCancelUpgradeResponse], ["/cosmos.upgrade.v1beta1.QueryCurrentPlanResponse", QueryCurrentPlanResponse], ["/cosmos.upgrade.v1beta1.QueryAppliedPlanRequest", QueryAppliedPlanRequest], + ["/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade", MsgSoftwareUpgrade], + ["/cosmos.upgrade.v1beta1.QueryModuleVersionsResponse", QueryModuleVersionsResponse], + ["/cosmos.upgrade.v1beta1.Plan", Plan], ["/cosmos.upgrade.v1beta1.QueryCurrentPlanRequest", QueryCurrentPlanRequest], ["/cosmos.upgrade.v1beta1.QueryAppliedPlanResponse", QueryAppliedPlanResponse], + ["/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest", QueryUpgradedConsensusStateRequest], + ["/cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse", QueryUpgradedConsensusStateResponse], + ["/cosmos.upgrade.v1beta1.QueryModuleVersionsRequest", QueryModuleVersionsRequest], + ["/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", SoftwareUpgradeProposal], + ["/cosmos.upgrade.v1beta1.MsgSoftwareUpgradeResponse", MsgSoftwareUpgradeResponse], + ["/cosmos.upgrade.v1beta1.QueryAuthorityRequest", QueryAuthorityRequest], + ["/cosmos.upgrade.v1beta1.QueryAuthorityResponse", QueryAuthorityResponse], + ["/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", CancelSoftwareUpgradeProposal], + ["/cosmos.upgrade.v1beta1.ModuleVersion", ModuleVersion], ]; export { msgTypes }; diff --git a/ts-client/lib/cosmos.vesting.v1beta1/module.d.ts b/ts-client/lib/cosmos.vesting.v1beta1/module.d.ts index dd64e70c1..15f75a755 100644 --- a/ts-client/lib/cosmos.vesting.v1beta1/module.d.ts +++ b/ts-client/lib/cosmos.vesting.v1beta1/module.d.ts @@ -2,114 +2,114 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { DelayedVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { ContinuousVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { PeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreateVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreatePermanentLockedAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; import { MsgCreatePeriodicVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; -import { PeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; import { BaseVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -import { Period } from "./types/cosmos/vesting/v1beta1/vesting"; -import { ContinuousVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { DelayedVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; import { PermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -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 { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; -export { DelayedVestingAccount, MsgCreateVestingAccount, MsgCreatePeriodicVestingAccountResponse, PeriodicVestingAccount, BaseVestingAccount, Period, ContinuousVestingAccount, PermanentLockedAccount, MsgCreateVestingAccountResponse, MsgCreatePermanentLockedAccount, MsgCreatePermanentLockedAccountResponse, MsgCreatePeriodicVestingAccount }; -type sendDelayedVestingAccountParams = { - value: DelayedVestingAccount; +import { Period } from "./types/cosmos/vesting/v1beta1/vesting"; +export { ContinuousVestingAccount, PeriodicVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount, MsgCreateVestingAccount, MsgCreateVestingAccountResponse, MsgCreatePermanentLockedAccountResponse, MsgCreatePeriodicVestingAccountResponse, BaseVestingAccount, DelayedVestingAccount, PermanentLockedAccount, Period }; +type sendContinuousVestingAccountParams = { + value: ContinuousVestingAccount; fee?: StdFee; memo?: string; }; -type sendMsgCreateVestingAccountParams = { - value: MsgCreateVestingAccount; +type sendPeriodicVestingAccountParams = { + value: PeriodicVestingAccount; fee?: StdFee; memo?: string; }; -type sendMsgCreatePeriodicVestingAccountResponseParams = { - value: MsgCreatePeriodicVestingAccountResponse; +type sendMsgCreatePermanentLockedAccountParams = { + value: MsgCreatePermanentLockedAccount; fee?: StdFee; memo?: string; }; -type sendPeriodicVestingAccountParams = { - value: PeriodicVestingAccount; +type sendMsgCreatePeriodicVestingAccountParams = { + value: MsgCreatePeriodicVestingAccount; fee?: StdFee; memo?: string; }; -type sendBaseVestingAccountParams = { - value: BaseVestingAccount; +type sendMsgCreateVestingAccountParams = { + value: MsgCreateVestingAccount; fee?: StdFee; memo?: string; }; -type sendPeriodParams = { - value: Period; +type sendMsgCreateVestingAccountResponseParams = { + value: MsgCreateVestingAccountResponse; fee?: StdFee; memo?: string; }; -type sendContinuousVestingAccountParams = { - value: ContinuousVestingAccount; +type sendMsgCreatePermanentLockedAccountResponseParams = { + value: MsgCreatePermanentLockedAccountResponse; fee?: StdFee; memo?: string; }; -type sendPermanentLockedAccountParams = { - value: PermanentLockedAccount; +type sendMsgCreatePeriodicVestingAccountResponseParams = { + value: MsgCreatePeriodicVestingAccountResponse; fee?: StdFee; memo?: string; }; -type sendMsgCreateVestingAccountResponseParams = { - value: MsgCreateVestingAccountResponse; +type sendBaseVestingAccountParams = { + value: BaseVestingAccount; fee?: StdFee; memo?: string; }; -type sendMsgCreatePermanentLockedAccountParams = { - value: MsgCreatePermanentLockedAccount; +type sendDelayedVestingAccountParams = { + value: DelayedVestingAccount; fee?: StdFee; memo?: string; }; -type sendMsgCreatePermanentLockedAccountResponseParams = { - value: MsgCreatePermanentLockedAccountResponse; +type sendPermanentLockedAccountParams = { + value: PermanentLockedAccount; fee?: StdFee; memo?: string; }; -type sendMsgCreatePeriodicVestingAccountParams = { - value: MsgCreatePeriodicVestingAccount; +type sendPeriodParams = { + value: Period; fee?: StdFee; memo?: string; }; -type delayedVestingAccountParams = { - value: DelayedVestingAccount; +type continuousVestingAccountParams = { + value: ContinuousVestingAccount; +}; +type periodicVestingAccountParams = { + value: PeriodicVestingAccount; +}; +type msgCreatePermanentLockedAccountParams = { + value: MsgCreatePermanentLockedAccount; +}; +type msgCreatePeriodicVestingAccountParams = { + value: MsgCreatePeriodicVestingAccount; }; type msgCreateVestingAccountParams = { value: MsgCreateVestingAccount; }; +type msgCreateVestingAccountResponseParams = { + value: MsgCreateVestingAccountResponse; +}; +type msgCreatePermanentLockedAccountResponseParams = { + value: MsgCreatePermanentLockedAccountResponse; +}; type msgCreatePeriodicVestingAccountResponseParams = { value: MsgCreatePeriodicVestingAccountResponse; }; -type periodicVestingAccountParams = { - value: PeriodicVestingAccount; -}; type baseVestingAccountParams = { value: BaseVestingAccount; }; -type periodParams = { - value: Period; -}; -type continuousVestingAccountParams = { - value: ContinuousVestingAccount; +type delayedVestingAccountParams = { + value: DelayedVestingAccount; }; type permanentLockedAccountParams = { value: PermanentLockedAccount; }; -type msgCreateVestingAccountResponseParams = { - value: MsgCreateVestingAccountResponse; -}; -type msgCreatePermanentLockedAccountParams = { - value: MsgCreatePermanentLockedAccount; -}; -type msgCreatePermanentLockedAccountResponseParams = { - value: MsgCreatePermanentLockedAccountResponse; -}; -type msgCreatePeriodicVestingAccountParams = { - value: MsgCreatePeriodicVestingAccount; +type periodParams = { + value: Period; }; export declare const registry: Registry; interface TxClientOptions { @@ -118,30 +118,30 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendDelayedVestingAccount({ value, fee, memo }: sendDelayedVestingAccountParams): Promise; + sendContinuousVestingAccount({ value, fee, memo }: sendContinuousVestingAccountParams): Promise; + sendPeriodicVestingAccount({ value, fee, memo }: sendPeriodicVestingAccountParams): Promise; + sendMsgCreatePermanentLockedAccount({ value, fee, memo }: sendMsgCreatePermanentLockedAccountParams): Promise; + sendMsgCreatePeriodicVestingAccount({ value, fee, memo }: sendMsgCreatePeriodicVestingAccountParams): Promise; sendMsgCreateVestingAccount({ value, fee, memo }: sendMsgCreateVestingAccountParams): Promise; + sendMsgCreateVestingAccountResponse({ value, fee, memo }: sendMsgCreateVestingAccountResponseParams): Promise; + sendMsgCreatePermanentLockedAccountResponse({ value, fee, memo }: sendMsgCreatePermanentLockedAccountResponseParams): Promise; sendMsgCreatePeriodicVestingAccountResponse({ value, fee, memo }: sendMsgCreatePeriodicVestingAccountResponseParams): Promise; - sendPeriodicVestingAccount({ value, fee, memo }: sendPeriodicVestingAccountParams): Promise; sendBaseVestingAccount({ value, fee, memo }: sendBaseVestingAccountParams): Promise; - sendPeriod({ value, fee, memo }: sendPeriodParams): Promise; - sendContinuousVestingAccount({ value, fee, memo }: sendContinuousVestingAccountParams): Promise; + sendDelayedVestingAccount({ value, fee, memo }: sendDelayedVestingAccountParams): Promise; sendPermanentLockedAccount({ value, fee, memo }: sendPermanentLockedAccountParams): Promise; - sendMsgCreateVestingAccountResponse({ value, fee, memo }: sendMsgCreateVestingAccountResponseParams): Promise; - sendMsgCreatePermanentLockedAccount({ value, fee, memo }: sendMsgCreatePermanentLockedAccountParams): Promise; - sendMsgCreatePermanentLockedAccountResponse({ value, fee, memo }: sendMsgCreatePermanentLockedAccountResponseParams): Promise; - sendMsgCreatePeriodicVestingAccount({ value, fee, memo }: sendMsgCreatePeriodicVestingAccountParams): Promise; - delayedVestingAccount({ value }: delayedVestingAccountParams): EncodeObject; + sendPeriod({ value, fee, memo }: sendPeriodParams): Promise; + continuousVestingAccount({ value }: continuousVestingAccountParams): EncodeObject; + periodicVestingAccount({ value }: periodicVestingAccountParams): EncodeObject; + msgCreatePermanentLockedAccount({ value }: msgCreatePermanentLockedAccountParams): EncodeObject; + msgCreatePeriodicVestingAccount({ value }: msgCreatePeriodicVestingAccountParams): EncodeObject; msgCreateVestingAccount({ value }: msgCreateVestingAccountParams): EncodeObject; + msgCreateVestingAccountResponse({ value }: msgCreateVestingAccountResponseParams): EncodeObject; + msgCreatePermanentLockedAccountResponse({ value }: msgCreatePermanentLockedAccountResponseParams): EncodeObject; msgCreatePeriodicVestingAccountResponse({ value }: msgCreatePeriodicVestingAccountResponseParams): EncodeObject; - periodicVestingAccount({ value }: periodicVestingAccountParams): EncodeObject; baseVestingAccount({ value }: baseVestingAccountParams): EncodeObject; - period({ value }: periodParams): EncodeObject; - continuousVestingAccount({ value }: continuousVestingAccountParams): EncodeObject; + delayedVestingAccount({ value }: delayedVestingAccountParams): EncodeObject; permanentLockedAccount({ value }: permanentLockedAccountParams): EncodeObject; - msgCreateVestingAccountResponse({ value }: msgCreateVestingAccountResponseParams): EncodeObject; - msgCreatePermanentLockedAccount({ value }: msgCreatePermanentLockedAccountParams): EncodeObject; - msgCreatePermanentLockedAccountResponse({ value }: msgCreatePermanentLockedAccountResponseParams): EncodeObject; - msgCreatePeriodicVestingAccount({ value }: msgCreatePeriodicVestingAccountParams): EncodeObject; + period({ value }: periodParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/cosmos.vesting.v1beta1/module.js b/ts-client/lib/cosmos.vesting.v1beta1/module.js index 39c1928a2..42ca2acbb 100644 --- a/ts-client/lib/cosmos.vesting.v1beta1/module.js +++ b/ts-client/lib/cosmos.vesting.v1beta1/module.js @@ -3,19 +3,19 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { DelayedVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { ContinuousVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { PeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreateVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreatePermanentLockedAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; import { MsgCreatePeriodicVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; -import { PeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; import { BaseVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -import { Period } from "./types/cosmos/vesting/v1beta1/vesting"; -import { ContinuousVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { DelayedVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; import { PermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -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 { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; -export { DelayedVestingAccount, MsgCreateVestingAccount, MsgCreatePeriodicVestingAccountResponse, PeriodicVestingAccount, BaseVestingAccount, Period, ContinuousVestingAccount, PermanentLockedAccount, MsgCreateVestingAccountResponse, MsgCreatePermanentLockedAccount, MsgCreatePermanentLockedAccountResponse, MsgCreatePeriodicVestingAccount }; +import { Period } from "./types/cosmos/vesting/v1beta1/vesting"; +export { ContinuousVestingAccount, PeriodicVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount, MsgCreateVestingAccount, MsgCreateVestingAccountResponse, MsgCreatePermanentLockedAccountResponse, MsgCreatePeriodicVestingAccountResponse, BaseVestingAccount, DelayedVestingAccount, PermanentLockedAccount, Period }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -31,268 +31,268 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendDelayedVestingAccount({ value, fee, memo }) { + async sendContinuousVestingAccount({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDelayedVestingAccount: 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.delayedVestingAccount({ value: DelayedVestingAccount.fromPartial(value) }); + let msg = this.continuousVestingAccount({ value: ContinuousVestingAccount.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDelayedVestingAccount: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendContinuousVestingAccount: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCreateVestingAccount({ value, fee, memo }) { + async sendPeriodicVestingAccount({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCreateVestingAccount: 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.msgCreateVestingAccount({ value: MsgCreateVestingAccount.fromPartial(value) }); + let msg = this.periodicVestingAccount({ value: PeriodicVestingAccount.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCreateVestingAccount: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendPeriodicVestingAccount: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCreatePeriodicVestingAccountResponse({ value, fee, memo }) { + async sendMsgCreatePermanentLockedAccount({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCreatePeriodicVestingAccountResponse: 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.msgCreatePeriodicVestingAccountResponse({ value: MsgCreatePeriodicVestingAccountResponse.fromPartial(value) }); + let msg = this.msgCreatePermanentLockedAccount({ value: MsgCreatePermanentLockedAccount.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCreatePeriodicVestingAccountResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Could not broadcast Tx: ' + e.message); } }, - async sendPeriodicVestingAccount({ value, fee, memo }) { + async sendMsgCreatePeriodicVestingAccount({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendPeriodicVestingAccount: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCreatePeriodicVestingAccount: Could not broadcast Tx: ' + e.message); } }, - async sendBaseVestingAccount({ value, fee, memo }) { + async sendMsgCreateVestingAccount({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendBaseVestingAccount: 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.baseVestingAccount({ value: BaseVestingAccount.fromPartial(value) }); + let msg = this.msgCreateVestingAccount({ value: MsgCreateVestingAccount.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendBaseVestingAccount: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCreateVestingAccount: Could not broadcast Tx: ' + e.message); } }, - async sendPeriod({ value, fee, memo }) { + async sendMsgCreateVestingAccountResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendPeriod: 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.period({ value: Period.fromPartial(value) }); + let msg = this.msgCreateVestingAccountResponse({ value: MsgCreateVestingAccountResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendPeriod: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCreateVestingAccountResponse: Could not broadcast Tx: ' + e.message); } }, - async sendContinuousVestingAccount({ value, fee, memo }) { + async sendMsgCreatePermanentLockedAccountResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendContinuousVestingAccount: 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.continuousVestingAccount({ value: ContinuousVestingAccount.fromPartial(value) }); + let msg = this.msgCreatePermanentLockedAccountResponse({ value: MsgCreatePermanentLockedAccountResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendContinuousVestingAccount: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCreatePermanentLockedAccountResponse: Could not broadcast Tx: ' + e.message); } }, - async sendPermanentLockedAccount({ value, fee, memo }) { + async sendMsgCreatePeriodicVestingAccountResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendPermanentLockedAccount: 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.permanentLockedAccount({ value: PermanentLockedAccount.fromPartial(value) }); + let msg = this.msgCreatePeriodicVestingAccountResponse({ value: MsgCreatePeriodicVestingAccountResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendPermanentLockedAccount: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCreatePeriodicVestingAccountResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCreateVestingAccountResponse({ value, fee, memo }) { + async sendBaseVestingAccount({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCreateVestingAccountResponse: 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.msgCreateVestingAccountResponse({ value: MsgCreateVestingAccountResponse.fromPartial(value) }); + let msg = this.baseVestingAccount({ value: BaseVestingAccount.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCreateVestingAccountResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendBaseVestingAccount: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCreatePermanentLockedAccount({ value, fee, memo }) { + async sendDelayedVestingAccount({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: 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.msgCreatePermanentLockedAccount({ value: MsgCreatePermanentLockedAccount.fromPartial(value) }); + let msg = this.delayedVestingAccount({ value: DelayedVestingAccount.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDelayedVestingAccount: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCreatePermanentLockedAccountResponse({ value, fee, memo }) { + async sendPermanentLockedAccount({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCreatePermanentLockedAccountResponse: 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.msgCreatePermanentLockedAccountResponse({ value: MsgCreatePermanentLockedAccountResponse.fromPartial(value) }); + let msg = this.permanentLockedAccount({ value: PermanentLockedAccount.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCreatePermanentLockedAccountResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendPermanentLockedAccount: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCreatePeriodicVestingAccount({ value, fee, memo }) { + async sendPeriod({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCreatePeriodicVestingAccount: 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.msgCreatePeriodicVestingAccount({ value: MsgCreatePeriodicVestingAccount.fromPartial(value) }); + let msg = this.period({ value: Period.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCreatePeriodicVestingAccount: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendPeriod: Could not broadcast Tx: ' + e.message); } }, - delayedVestingAccount({ value }) { + continuousVestingAccount({ value }) { try { - return { typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", value: DelayedVestingAccount.fromPartial(value) }; + return { typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", value: ContinuousVestingAccount.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DelayedVestingAccount: Could not create message: ' + e.message); + throw new Error('TxClient:ContinuousVestingAccount: Could not create message: ' + e.message); } }, - msgCreateVestingAccount({ value }) { + periodicVestingAccount({ value }) { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", value: MsgCreateVestingAccount.fromPartial(value) }; + return { typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", value: PeriodicVestingAccount.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCreateVestingAccount: Could not create message: ' + e.message); + throw new Error('TxClient:PeriodicVestingAccount: Could not create message: ' + e.message); } }, - msgCreatePeriodicVestingAccountResponse({ value }) { + msgCreatePermanentLockedAccount({ value }) { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", value: MsgCreatePeriodicVestingAccountResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", value: MsgCreatePermanentLockedAccount.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCreatePeriodicVestingAccountResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreatePermanentLockedAccount: Could not create message: ' + e.message); } }, - periodicVestingAccount({ value }) { + msgCreatePeriodicVestingAccount({ value }) { try { - return { typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", value: PeriodicVestingAccount.fromPartial(value) }; + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", value: MsgCreatePeriodicVestingAccount.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:PeriodicVestingAccount: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreatePeriodicVestingAccount: Could not create message: ' + e.message); } }, - baseVestingAccount({ value }) { + msgCreateVestingAccount({ value }) { try { - return { typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", value: BaseVestingAccount.fromPartial(value) }; + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", value: MsgCreateVestingAccount.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:BaseVestingAccount: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreateVestingAccount: Could not create message: ' + e.message); } }, - period({ value }) { + msgCreateVestingAccountResponse({ value }) { try { - return { typeUrl: "/cosmos.vesting.v1beta1.Period", value: Period.fromPartial(value) }; + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", value: MsgCreateVestingAccountResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Period: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreateVestingAccountResponse: Could not create message: ' + e.message); } }, - continuousVestingAccount({ value }) { + msgCreatePermanentLockedAccountResponse({ value }) { try { - return { typeUrl: "/cosmos.vesting.v1beta1.ContinuousVestingAccount", value: ContinuousVestingAccount.fromPartial(value) }; + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", value: MsgCreatePermanentLockedAccountResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ContinuousVestingAccount: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreatePermanentLockedAccountResponse: Could not create message: ' + e.message); } }, - permanentLockedAccount({ value }) { + msgCreatePeriodicVestingAccountResponse({ value }) { try { - return { typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", value: PermanentLockedAccount.fromPartial(value) }; + return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", value: MsgCreatePeriodicVestingAccountResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:PermanentLockedAccount: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreatePeriodicVestingAccountResponse: Could not create message: ' + e.message); } }, - msgCreateVestingAccountResponse({ value }) { + baseVestingAccount({ value }) { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", value: MsgCreateVestingAccountResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.vesting.v1beta1.BaseVestingAccount", value: BaseVestingAccount.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCreateVestingAccountResponse: Could not create message: ' + e.message); + throw new Error('TxClient:BaseVestingAccount: Could not create message: ' + e.message); } }, - msgCreatePermanentLockedAccount({ value }) { + delayedVestingAccount({ value }) { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", value: MsgCreatePermanentLockedAccount.fromPartial(value) }; + return { typeUrl: "/cosmos.vesting.v1beta1.DelayedVestingAccount", value: DelayedVestingAccount.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCreatePermanentLockedAccount: Could not create message: ' + e.message); + throw new Error('TxClient:DelayedVestingAccount: Could not create message: ' + e.message); } }, - msgCreatePermanentLockedAccountResponse({ value }) { + permanentLockedAccount({ value }) { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", value: MsgCreatePermanentLockedAccountResponse.fromPartial(value) }; + return { typeUrl: "/cosmos.vesting.v1beta1.PermanentLockedAccount", value: PermanentLockedAccount.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCreatePermanentLockedAccountResponse: Could not create message: ' + e.message); + throw new Error('TxClient:PermanentLockedAccount: Could not create message: ' + e.message); } }, - msgCreatePeriodicVestingAccount({ value }) { + period({ value }) { try { - return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", value: MsgCreatePeriodicVestingAccount.fromPartial(value) }; + return { typeUrl: "/cosmos.vesting.v1beta1.Period", value: Period.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCreatePeriodicVestingAccount: Could not create message: ' + e.message); + throw new Error('TxClient:Period: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/cosmos.vesting.v1beta1/registry.js b/ts-client/lib/cosmos.vesting.v1beta1/registry.js index c618aa489..c68f4f8ba 100644 --- a/ts-client/lib/cosmos.vesting.v1beta1/registry.js +++ b/ts-client/lib/cosmos.vesting.v1beta1/registry.js @@ -1,27 +1,27 @@ -import { DelayedVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { ContinuousVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { PeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreateVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; +import { MsgCreatePermanentLockedAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; import { MsgCreatePeriodicVestingAccountResponse } from "./types/cosmos/vesting/v1beta1/tx"; -import { PeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; import { BaseVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -import { Period } from "./types/cosmos/vesting/v1beta1/vesting"; -import { ContinuousVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; +import { DelayedVestingAccount } from "./types/cosmos/vesting/v1beta1/vesting"; import { PermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/vesting"; -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 { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx"; +import { Period } from "./types/cosmos/vesting/v1beta1/vesting"; const msgTypes = [ - ["/cosmos.vesting.v1beta1.DelayedVestingAccount", DelayedVestingAccount], + ["/cosmos.vesting.v1beta1.ContinuousVestingAccount", ContinuousVestingAccount], + ["/cosmos.vesting.v1beta1.PeriodicVestingAccount", PeriodicVestingAccount], + ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount], + ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount], ["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount], + ["/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", MsgCreateVestingAccountResponse], + ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", MsgCreatePermanentLockedAccountResponse], ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccountResponse", MsgCreatePeriodicVestingAccountResponse], - ["/cosmos.vesting.v1beta1.PeriodicVestingAccount", PeriodicVestingAccount], ["/cosmos.vesting.v1beta1.BaseVestingAccount", BaseVestingAccount], - ["/cosmos.vesting.v1beta1.Period", Period], - ["/cosmos.vesting.v1beta1.ContinuousVestingAccount", ContinuousVestingAccount], + ["/cosmos.vesting.v1beta1.DelayedVestingAccount", DelayedVestingAccount], ["/cosmos.vesting.v1beta1.PermanentLockedAccount", PermanentLockedAccount], - ["/cosmos.vesting.v1beta1.MsgCreateVestingAccountResponse", MsgCreateVestingAccountResponse], - ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount], - ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccountResponse", MsgCreatePermanentLockedAccountResponse], - ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount], + ["/cosmos.vesting.v1beta1.Period", Period], ]; export { msgTypes }; diff --git a/ts-client/lib/ibc.applications.fee.v1/module.d.ts b/ts-client/lib/ibc.applications.fee.v1/module.d.ts index 35ebfece6..ad86a5833 100644 --- a/ts-client/lib/ibc.applications.fee.v1/module.d.ts +++ b/ts-client/lib/ibc.applications.fee.v1/module.d.ts @@ -2,98 +2,93 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { GenesisState } from "./types/ibc/applications/fee/v1/genesis"; -import { QueryCounterpartyPayeeRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryFeeEnabledChannelsResponse } from "./types/ibc/applications/fee/v1/query"; -import { MsgRegisterPayee } from "./types/ibc/applications/fee/v1/tx"; -import { IncentivizedAcknowledgement } from "./types/ibc/applications/fee/v1/ack"; -import { QueryIncentivizedPacketRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalRecvFeesResponse } from "./types/ibc/applications/fee/v1/query"; -import { PacketFees } from "./types/ibc/applications/fee/v1/fee"; -import { IdentifiedPacketFees } from "./types/ibc/applications/fee/v1/fee"; -import { MsgRegisterCounterpartyPayee } from "./types/ibc/applications/fee/v1/tx"; -import { MsgPayPacketFeeAsync } from "./types/ibc/applications/fee/v1/tx"; -import { RegisteredPayee } from "./types/ibc/applications/fee/v1/genesis"; -import { QueryFeeEnabledChannelResponse } from "./types/ibc/applications/fee/v1/query"; -import { Fee } from "./types/ibc/applications/fee/v1/fee"; -import { QueryPayeeResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryFeeEnabledChannelRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalAckFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketsForChannelRequest } from "./types/ibc/applications/fee/v1/query"; import { QueryPayeeRequest } from "./types/ibc/applications/fee/v1/query"; -import { Metadata } from "./types/ibc/applications/fee/v1/metadata"; -import { MsgPayPacketFeeResponse } from "./types/ibc/applications/fee/v1/tx"; -import { QueryIncentivizedPacketResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryIncentivizedPacketsForChannelResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryIncentivizedPacketsRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/query"; +import { MsgPayPacketFeeAsyncResponse } from "./types/ibc/applications/fee/v1/tx"; +import { GenesisState } 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 { QueryIncentivizedPacketsForChannelRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalAckFeesResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalTimeoutFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketsForChannelResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalAckFeesRequest } from "./types/ibc/applications/fee/v1/query"; import { QueryTotalTimeoutFeesResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryFeeEnabledChannelsRequest } from "./types/ibc/applications/fee/v1/query"; -import { MsgPayPacketFee } from "./types/ibc/applications/fee/v1/tx"; -import { PacketFee } from "./types/ibc/applications/fee/v1/fee"; -import { MsgRegisterPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { RegisteredPayee } 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 { QueryCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/query"; +import { IncentivizedAcknowledgement } from "./types/ibc/applications/fee/v1/ack"; +import { Metadata } from "./types/ibc/applications/fee/v1/metadata"; +import { MsgRegisterPayee } from "./types/ibc/applications/fee/v1/tx"; +import { Fee } from "./types/ibc/applications/fee/v1/fee"; +import { QueryTotalRecvFeesRequest } from "./types/ibc/applications/fee/v1/query"; import { FeeEnabledChannel } from "./types/ibc/applications/fee/v1/genesis"; import { RegisteredCounterpartyPayee } from "./types/ibc/applications/fee/v1/genesis"; +import { MsgRegisterCounterpartyPayee } from "./types/ibc/applications/fee/v1/tx"; +import { PacketFees } from "./types/ibc/applications/fee/v1/fee"; +import { QueryTotalRecvFeesResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalAckFeesResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalTimeoutFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelsResponse } from "./types/ibc/applications/fee/v1/query"; import { ForwardRelayerAddress } from "./types/ibc/applications/fee/v1/genesis"; -import { MsgPayPacketFeeAsyncResponse } from "./types/ibc/applications/fee/v1/tx"; -import { QueryTotalRecvFeesRequest } from "./types/ibc/applications/fee/v1/query"; -export { GenesisState, QueryCounterpartyPayeeRequest, QueryFeeEnabledChannelsResponse, MsgRegisterPayee, IncentivizedAcknowledgement, QueryIncentivizedPacketRequest, QueryTotalRecvFeesResponse, PacketFees, IdentifiedPacketFees, MsgRegisterCounterpartyPayee, MsgPayPacketFeeAsync, RegisteredPayee, QueryFeeEnabledChannelResponse, Fee, QueryPayeeResponse, QueryFeeEnabledChannelRequest, QueryTotalAckFeesRequest, QueryPayeeRequest, Metadata, MsgPayPacketFeeResponse, QueryIncentivizedPacketResponse, QueryIncentivizedPacketsForChannelResponse, QueryIncentivizedPacketsRequest, QueryIncentivizedPacketsResponse, QueryIncentivizedPacketsForChannelRequest, QueryTotalAckFeesResponse, QueryTotalTimeoutFeesRequest, QueryTotalTimeoutFeesResponse, QueryFeeEnabledChannelsRequest, MsgPayPacketFee, PacketFee, MsgRegisterPayeeResponse, MsgRegisterCounterpartyPayeeResponse, QueryCounterpartyPayeeResponse, FeeEnabledChannel, RegisteredCounterpartyPayee, ForwardRelayerAddress, MsgPayPacketFeeAsyncResponse, QueryTotalRecvFeesRequest }; -type sendGenesisStateParams = { - value: GenesisState; - fee?: StdFee; - memo?: string; -}; -type sendQueryCounterpartyPayeeRequestParams = { - value: QueryCounterpartyPayeeRequest; +import { MsgRegisterPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { MsgPayPacketFeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { QueryIncentivizedPacketsRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryPayeeResponse } from "./types/ibc/applications/fee/v1/query"; +import { MsgPayPacketFee } from "./types/ibc/applications/fee/v1/tx"; +import { QueryIncentivizedPacketRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryCounterpartyPayeeRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelsRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelResponse } from "./types/ibc/applications/fee/v1/query"; +import { IdentifiedPacketFees } from "./types/ibc/applications/fee/v1/fee"; +export { QueryIncentivizedPacketsForChannelRequest, QueryPayeeRequest, QueryCounterpartyPayeeResponse, MsgPayPacketFeeAsyncResponse, GenesisState, PacketFee, QueryIncentivizedPacketsResponse, QueryIncentivizedPacketsForChannelResponse, QueryTotalAckFeesRequest, QueryTotalTimeoutFeesResponse, RegisteredPayee, MsgPayPacketFeeAsync, MsgRegisterCounterpartyPayeeResponse, IncentivizedAcknowledgement, Metadata, MsgRegisterPayee, Fee, QueryTotalRecvFeesRequest, FeeEnabledChannel, RegisteredCounterpartyPayee, MsgRegisterCounterpartyPayee, PacketFees, QueryTotalRecvFeesResponse, QueryTotalAckFeesResponse, QueryTotalTimeoutFeesRequest, QueryFeeEnabledChannelsResponse, ForwardRelayerAddress, MsgRegisterPayeeResponse, MsgPayPacketFeeResponse, QueryIncentivizedPacketsRequest, QueryPayeeResponse, MsgPayPacketFee, QueryIncentivizedPacketRequest, QueryIncentivizedPacketResponse, QueryCounterpartyPayeeRequest, QueryFeeEnabledChannelsRequest, QueryFeeEnabledChannelRequest, QueryFeeEnabledChannelResponse, IdentifiedPacketFees }; +type sendQueryIncentivizedPacketsForChannelRequestParams = { + value: QueryIncentivizedPacketsForChannelRequest; fee?: StdFee; memo?: string; }; -type sendQueryFeeEnabledChannelsResponseParams = { - value: QueryFeeEnabledChannelsResponse; +type sendQueryPayeeRequestParams = { + value: QueryPayeeRequest; fee?: StdFee; memo?: string; }; -type sendMsgRegisterPayeeParams = { - value: MsgRegisterPayee; +type sendQueryCounterpartyPayeeResponseParams = { + value: QueryCounterpartyPayeeResponse; fee?: StdFee; memo?: string; }; -type sendIncentivizedAcknowledgementParams = { - value: IncentivizedAcknowledgement; +type sendMsgPayPacketFeeAsyncResponseParams = { + value: MsgPayPacketFeeAsyncResponse; fee?: StdFee; memo?: string; }; -type sendQueryIncentivizedPacketRequestParams = { - value: QueryIncentivizedPacketRequest; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendQueryTotalRecvFeesResponseParams = { - value: QueryTotalRecvFeesResponse; +type sendPacketFeeParams = { + value: PacketFee; fee?: StdFee; memo?: string; }; -type sendPacketFeesParams = { - value: PacketFees; +type sendQueryIncentivizedPacketsResponseParams = { + value: QueryIncentivizedPacketsResponse; fee?: StdFee; memo?: string; }; -type sendIdentifiedPacketFeesParams = { - value: IdentifiedPacketFees; +type sendQueryIncentivizedPacketsForChannelResponseParams = { + value: QueryIncentivizedPacketsForChannelResponse; fee?: StdFee; memo?: string; }; -type sendMsgRegisterCounterpartyPayeeParams = { - value: MsgRegisterCounterpartyPayee; +type sendQueryTotalAckFeesRequestParams = { + value: QueryTotalAckFeesRequest; fee?: StdFee; memo?: string; }; -type sendMsgPayPacketFeeAsyncParams = { - value: MsgPayPacketFeeAsync; +type sendQueryTotalTimeoutFeesResponseParams = { + value: QueryTotalTimeoutFeesResponse; fee?: StdFee; memo?: string; }; @@ -102,68 +97,63 @@ type sendRegisteredPayeeParams = { fee?: StdFee; memo?: string; }; -type sendQueryFeeEnabledChannelResponseParams = { - value: QueryFeeEnabledChannelResponse; - fee?: StdFee; - memo?: string; -}; -type sendFeeParams = { - value: Fee; +type sendMsgPayPacketFeeAsyncParams = { + value: MsgPayPacketFeeAsync; fee?: StdFee; memo?: string; }; -type sendQueryPayeeResponseParams = { - value: QueryPayeeResponse; +type sendMsgRegisterCounterpartyPayeeResponseParams = { + value: MsgRegisterCounterpartyPayeeResponse; fee?: StdFee; memo?: string; }; -type sendQueryFeeEnabledChannelRequestParams = { - value: QueryFeeEnabledChannelRequest; +type sendIncentivizedAcknowledgementParams = { + value: IncentivizedAcknowledgement; fee?: StdFee; memo?: string; }; -type sendQueryTotalAckFeesRequestParams = { - value: QueryTotalAckFeesRequest; +type sendMetadataParams = { + value: Metadata; fee?: StdFee; memo?: string; }; -type sendQueryPayeeRequestParams = { - value: QueryPayeeRequest; +type sendMsgRegisterPayeeParams = { + value: MsgRegisterPayee; fee?: StdFee; memo?: string; }; -type sendMetadataParams = { - value: Metadata; +type sendFeeParams = { + value: Fee; fee?: StdFee; memo?: string; }; -type sendMsgPayPacketFeeResponseParams = { - value: MsgPayPacketFeeResponse; +type sendQueryTotalRecvFeesRequestParams = { + value: QueryTotalRecvFeesRequest; fee?: StdFee; memo?: string; }; -type sendQueryIncentivizedPacketResponseParams = { - value: QueryIncentivizedPacketResponse; +type sendFeeEnabledChannelParams = { + value: FeeEnabledChannel; fee?: StdFee; memo?: string; }; -type sendQueryIncentivizedPacketsForChannelResponseParams = { - value: QueryIncentivizedPacketsForChannelResponse; +type sendRegisteredCounterpartyPayeeParams = { + value: RegisteredCounterpartyPayee; fee?: StdFee; memo?: string; }; -type sendQueryIncentivizedPacketsRequestParams = { - value: QueryIncentivizedPacketsRequest; +type sendMsgRegisterCounterpartyPayeeParams = { + value: MsgRegisterCounterpartyPayee; fee?: StdFee; memo?: string; }; -type sendQueryIncentivizedPacketsResponseParams = { - value: QueryIncentivizedPacketsResponse; +type sendPacketFeesParams = { + value: PacketFees; fee?: StdFee; memo?: string; }; -type sendQueryIncentivizedPacketsForChannelRequestParams = { - value: QueryIncentivizedPacketsForChannelRequest; +type sendQueryTotalRecvFeesResponseParams = { + value: QueryTotalRecvFeesResponse; fee?: StdFee; memo?: string; }; @@ -177,140 +167,144 @@ type sendQueryTotalTimeoutFeesRequestParams = { fee?: StdFee; memo?: string; }; -type sendQueryTotalTimeoutFeesResponseParams = { - value: QueryTotalTimeoutFeesResponse; +type sendQueryFeeEnabledChannelsResponseParams = { + value: QueryFeeEnabledChannelsResponse; fee?: StdFee; memo?: string; }; -type sendQueryFeeEnabledChannelsRequestParams = { - value: QueryFeeEnabledChannelsRequest; +type sendForwardRelayerAddressParams = { + value: ForwardRelayerAddress; fee?: StdFee; memo?: string; }; -type sendMsgPayPacketFeeParams = { - value: MsgPayPacketFee; +type sendMsgRegisterPayeeResponseParams = { + value: MsgRegisterPayeeResponse; fee?: StdFee; memo?: string; }; -type sendPacketFeeParams = { - value: PacketFee; +type sendMsgPayPacketFeeResponseParams = { + value: MsgPayPacketFeeResponse; fee?: StdFee; memo?: string; }; -type sendMsgRegisterPayeeResponseParams = { - value: MsgRegisterPayeeResponse; +type sendQueryIncentivizedPacketsRequestParams = { + value: QueryIncentivizedPacketsRequest; fee?: StdFee; memo?: string; }; -type sendMsgRegisterCounterpartyPayeeResponseParams = { - value: MsgRegisterCounterpartyPayeeResponse; +type sendQueryPayeeResponseParams = { + value: QueryPayeeResponse; fee?: StdFee; memo?: string; }; -type sendQueryCounterpartyPayeeResponseParams = { - value: QueryCounterpartyPayeeResponse; +type sendMsgPayPacketFeeParams = { + value: MsgPayPacketFee; fee?: StdFee; memo?: string; }; -type sendFeeEnabledChannelParams = { - value: FeeEnabledChannel; +type sendQueryIncentivizedPacketRequestParams = { + value: QueryIncentivizedPacketRequest; fee?: StdFee; memo?: string; }; -type sendRegisteredCounterpartyPayeeParams = { - value: RegisteredCounterpartyPayee; +type sendQueryIncentivizedPacketResponseParams = { + value: QueryIncentivizedPacketResponse; fee?: StdFee; memo?: string; }; -type sendForwardRelayerAddressParams = { - value: ForwardRelayerAddress; +type sendQueryCounterpartyPayeeRequestParams = { + value: QueryCounterpartyPayeeRequest; fee?: StdFee; memo?: string; }; -type sendMsgPayPacketFeeAsyncResponseParams = { - value: MsgPayPacketFeeAsyncResponse; +type sendQueryFeeEnabledChannelsRequestParams = { + value: QueryFeeEnabledChannelsRequest; fee?: StdFee; memo?: string; }; -type sendQueryTotalRecvFeesRequestParams = { - value: QueryTotalRecvFeesRequest; +type sendQueryFeeEnabledChannelRequestParams = { + value: QueryFeeEnabledChannelRequest; fee?: StdFee; memo?: string; }; -type genesisStateParams = { - value: GenesisState; +type sendQueryFeeEnabledChannelResponseParams = { + value: QueryFeeEnabledChannelResponse; + fee?: StdFee; + memo?: string; }; -type queryCounterpartyPayeeRequestParams = { - value: QueryCounterpartyPayeeRequest; +type sendIdentifiedPacketFeesParams = { + value: IdentifiedPacketFees; + fee?: StdFee; + memo?: string; }; -type queryFeeEnabledChannelsResponseParams = { - value: QueryFeeEnabledChannelsResponse; +type queryIncentivizedPacketsForChannelRequestParams = { + value: QueryIncentivizedPacketsForChannelRequest; }; -type msgRegisterPayeeParams = { - value: MsgRegisterPayee; +type queryPayeeRequestParams = { + value: QueryPayeeRequest; }; -type incentivizedAcknowledgementParams = { - value: IncentivizedAcknowledgement; +type queryCounterpartyPayeeResponseParams = { + value: QueryCounterpartyPayeeResponse; }; -type queryIncentivizedPacketRequestParams = { - value: QueryIncentivizedPacketRequest; +type msgPayPacketFeeAsyncResponseParams = { + value: MsgPayPacketFeeAsyncResponse; }; -type queryTotalRecvFeesResponseParams = { - value: QueryTotalRecvFeesResponse; +type genesisStateParams = { + value: GenesisState; }; -type packetFeesParams = { - value: PacketFees; +type packetFeeParams = { + value: PacketFee; }; -type identifiedPacketFeesParams = { - value: IdentifiedPacketFees; +type queryIncentivizedPacketsResponseParams = { + value: QueryIncentivizedPacketsResponse; }; -type msgRegisterCounterpartyPayeeParams = { - value: MsgRegisterCounterpartyPayee; +type queryIncentivizedPacketsForChannelResponseParams = { + value: QueryIncentivizedPacketsForChannelResponse; }; -type msgPayPacketFeeAsyncParams = { - value: MsgPayPacketFeeAsync; +type queryTotalAckFeesRequestParams = { + value: QueryTotalAckFeesRequest; +}; +type queryTotalTimeoutFeesResponseParams = { + value: QueryTotalTimeoutFeesResponse; }; type registeredPayeeParams = { value: RegisteredPayee; }; -type queryFeeEnabledChannelResponseParams = { - value: QueryFeeEnabledChannelResponse; -}; -type feeParams = { - value: Fee; -}; -type queryPayeeResponseParams = { - value: QueryPayeeResponse; -}; -type queryFeeEnabledChannelRequestParams = { - value: QueryFeeEnabledChannelRequest; +type msgPayPacketFeeAsyncParams = { + value: MsgPayPacketFeeAsync; }; -type queryTotalAckFeesRequestParams = { - value: QueryTotalAckFeesRequest; +type msgRegisterCounterpartyPayeeResponseParams = { + value: MsgRegisterCounterpartyPayeeResponse; }; -type queryPayeeRequestParams = { - value: QueryPayeeRequest; +type incentivizedAcknowledgementParams = { + value: IncentivizedAcknowledgement; }; type metadataParams = { value: Metadata; }; -type msgPayPacketFeeResponseParams = { - value: MsgPayPacketFeeResponse; +type msgRegisterPayeeParams = { + value: MsgRegisterPayee; }; -type queryIncentivizedPacketResponseParams = { - value: QueryIncentivizedPacketResponse; +type feeParams = { + value: Fee; }; -type queryIncentivizedPacketsForChannelResponseParams = { - value: QueryIncentivizedPacketsForChannelResponse; +type queryTotalRecvFeesRequestParams = { + value: QueryTotalRecvFeesRequest; }; -type queryIncentivizedPacketsRequestParams = { - value: QueryIncentivizedPacketsRequest; +type feeEnabledChannelParams = { + value: FeeEnabledChannel; }; -type queryIncentivizedPacketsResponseParams = { - value: QueryIncentivizedPacketsResponse; +type registeredCounterpartyPayeeParams = { + value: RegisteredCounterpartyPayee; }; -type queryIncentivizedPacketsForChannelRequestParams = { - value: QueryIncentivizedPacketsForChannelRequest; +type msgRegisterCounterpartyPayeeParams = { + value: MsgRegisterCounterpartyPayee; +}; +type packetFeesParams = { + value: PacketFees; +}; +type queryTotalRecvFeesResponseParams = { + value: QueryTotalRecvFeesResponse; }; type queryTotalAckFeesResponseParams = { value: QueryTotalAckFeesResponse; @@ -318,41 +312,47 @@ type queryTotalAckFeesResponseParams = { type queryTotalTimeoutFeesRequestParams = { value: QueryTotalTimeoutFeesRequest; }; -type queryTotalTimeoutFeesResponseParams = { - value: QueryTotalTimeoutFeesResponse; -}; -type queryFeeEnabledChannelsRequestParams = { - value: QueryFeeEnabledChannelsRequest; -}; -type msgPayPacketFeeParams = { - value: MsgPayPacketFee; +type queryFeeEnabledChannelsResponseParams = { + value: QueryFeeEnabledChannelsResponse; }; -type packetFeeParams = { - value: PacketFee; +type forwardRelayerAddressParams = { + value: ForwardRelayerAddress; }; type msgRegisterPayeeResponseParams = { value: MsgRegisterPayeeResponse; }; -type msgRegisterCounterpartyPayeeResponseParams = { - value: MsgRegisterCounterpartyPayeeResponse; +type msgPayPacketFeeResponseParams = { + value: MsgPayPacketFeeResponse; }; -type queryCounterpartyPayeeResponseParams = { - value: QueryCounterpartyPayeeResponse; +type queryIncentivizedPacketsRequestParams = { + value: QueryIncentivizedPacketsRequest; }; -type feeEnabledChannelParams = { - value: FeeEnabledChannel; +type queryPayeeResponseParams = { + value: QueryPayeeResponse; }; -type registeredCounterpartyPayeeParams = { - value: RegisteredCounterpartyPayee; +type msgPayPacketFeeParams = { + value: MsgPayPacketFee; }; -type forwardRelayerAddressParams = { - value: ForwardRelayerAddress; +type queryIncentivizedPacketRequestParams = { + value: QueryIncentivizedPacketRequest; }; -type msgPayPacketFeeAsyncResponseParams = { - value: MsgPayPacketFeeAsyncResponse; +type queryIncentivizedPacketResponseParams = { + value: QueryIncentivizedPacketResponse; }; -type queryTotalRecvFeesRequestParams = { - value: QueryTotalRecvFeesRequest; +type queryCounterpartyPayeeRequestParams = { + value: QueryCounterpartyPayeeRequest; +}; +type queryFeeEnabledChannelsRequestParams = { + value: QueryFeeEnabledChannelsRequest; +}; +type queryFeeEnabledChannelRequestParams = { + value: QueryFeeEnabledChannelRequest; +}; +type queryFeeEnabledChannelResponseParams = { + value: QueryFeeEnabledChannelResponse; +}; +type identifiedPacketFeesParams = { + value: IdentifiedPacketFees; }; export declare const registry: Registry; interface TxClientOptions { @@ -361,84 +361,84 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendQueryCounterpartyPayeeRequest({ value, fee, memo }: sendQueryCounterpartyPayeeRequestParams): Promise; - sendQueryFeeEnabledChannelsResponse({ value, fee, memo }: sendQueryFeeEnabledChannelsResponseParams): Promise; - sendMsgRegisterPayee({ value, fee, memo }: sendMsgRegisterPayeeParams): Promise; - sendIncentivizedAcknowledgement({ value, fee, memo }: sendIncentivizedAcknowledgementParams): Promise; - sendQueryIncentivizedPacketRequest({ value, fee, memo }: sendQueryIncentivizedPacketRequestParams): Promise; - sendQueryTotalRecvFeesResponse({ value, fee, memo }: sendQueryTotalRecvFeesResponseParams): Promise; - sendPacketFees({ value, fee, memo }: sendPacketFeesParams): Promise; - sendIdentifiedPacketFees({ value, fee, memo }: sendIdentifiedPacketFeesParams): Promise; - sendMsgRegisterCounterpartyPayee({ value, fee, memo }: sendMsgRegisterCounterpartyPayeeParams): Promise; - sendMsgPayPacketFeeAsync({ value, fee, memo }: sendMsgPayPacketFeeAsyncParams): Promise; - sendRegisteredPayee({ value, fee, memo }: sendRegisteredPayeeParams): Promise; - sendQueryFeeEnabledChannelResponse({ value, fee, memo }: sendQueryFeeEnabledChannelResponseParams): Promise; - sendFee({ value, fee, memo }: sendFeeParams): Promise; - sendQueryPayeeResponse({ value, fee, memo }: sendQueryPayeeResponseParams): Promise; - sendQueryFeeEnabledChannelRequest({ value, fee, memo }: sendQueryFeeEnabledChannelRequestParams): Promise; - sendQueryTotalAckFeesRequest({ value, fee, memo }: sendQueryTotalAckFeesRequestParams): Promise; + sendQueryIncentivizedPacketsForChannelRequest({ value, fee, memo }: sendQueryIncentivizedPacketsForChannelRequestParams): Promise; sendQueryPayeeRequest({ value, fee, memo }: sendQueryPayeeRequestParams): Promise; - sendMetadata({ value, fee, memo }: sendMetadataParams): Promise; - sendMsgPayPacketFeeResponse({ value, fee, memo }: sendMsgPayPacketFeeResponseParams): Promise; - sendQueryIncentivizedPacketResponse({ value, fee, memo }: sendQueryIncentivizedPacketResponseParams): Promise; - sendQueryIncentivizedPacketsForChannelResponse({ value, fee, memo }: sendQueryIncentivizedPacketsForChannelResponseParams): Promise; - sendQueryIncentivizedPacketsRequest({ value, fee, memo }: sendQueryIncentivizedPacketsRequestParams): Promise; + sendQueryCounterpartyPayeeResponse({ value, fee, memo }: sendQueryCounterpartyPayeeResponseParams): Promise; + sendMsgPayPacketFeeAsyncResponse({ value, fee, memo }: sendMsgPayPacketFeeAsyncResponseParams): Promise; + sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; + sendPacketFee({ value, fee, memo }: sendPacketFeeParams): Promise; sendQueryIncentivizedPacketsResponse({ value, fee, memo }: sendQueryIncentivizedPacketsResponseParams): Promise; - sendQueryIncentivizedPacketsForChannelRequest({ value, fee, memo }: sendQueryIncentivizedPacketsForChannelRequestParams): Promise; - sendQueryTotalAckFeesResponse({ value, fee, memo }: sendQueryTotalAckFeesResponseParams): Promise; - sendQueryTotalTimeoutFeesRequest({ value, fee, memo }: sendQueryTotalTimeoutFeesRequestParams): Promise; + sendQueryIncentivizedPacketsForChannelResponse({ value, fee, memo }: sendQueryIncentivizedPacketsForChannelResponseParams): Promise; + sendQueryTotalAckFeesRequest({ value, fee, memo }: sendQueryTotalAckFeesRequestParams): Promise; sendQueryTotalTimeoutFeesResponse({ value, fee, memo }: sendQueryTotalTimeoutFeesResponseParams): Promise; - sendQueryFeeEnabledChannelsRequest({ value, fee, memo }: sendQueryFeeEnabledChannelsRequestParams): Promise; - sendMsgPayPacketFee({ value, fee, memo }: sendMsgPayPacketFeeParams): Promise; - sendPacketFee({ value, fee, memo }: sendPacketFeeParams): Promise; - sendMsgRegisterPayeeResponse({ value, fee, memo }: sendMsgRegisterPayeeResponseParams): Promise; + sendRegisteredPayee({ value, fee, memo }: sendRegisteredPayeeParams): Promise; + sendMsgPayPacketFeeAsync({ value, fee, memo }: sendMsgPayPacketFeeAsyncParams): Promise; sendMsgRegisterCounterpartyPayeeResponse({ value, fee, memo }: sendMsgRegisterCounterpartyPayeeResponseParams): Promise; - sendQueryCounterpartyPayeeResponse({ value, fee, memo }: sendQueryCounterpartyPayeeResponseParams): Promise; + sendIncentivizedAcknowledgement({ value, fee, memo }: sendIncentivizedAcknowledgementParams): Promise; + sendMetadata({ value, fee, memo }: sendMetadataParams): Promise; + sendMsgRegisterPayee({ value, fee, memo }: sendMsgRegisterPayeeParams): Promise; + sendFee({ value, fee, memo }: sendFeeParams): Promise; + sendQueryTotalRecvFeesRequest({ value, fee, memo }: sendQueryTotalRecvFeesRequestParams): Promise; sendFeeEnabledChannel({ value, fee, memo }: sendFeeEnabledChannelParams): Promise; sendRegisteredCounterpartyPayee({ value, fee, memo }: sendRegisteredCounterpartyPayeeParams): Promise; + sendMsgRegisterCounterpartyPayee({ value, fee, memo }: sendMsgRegisterCounterpartyPayeeParams): Promise; + sendPacketFees({ value, fee, memo }: sendPacketFeesParams): Promise; + sendQueryTotalRecvFeesResponse({ value, fee, memo }: sendQueryTotalRecvFeesResponseParams): Promise; + sendQueryTotalAckFeesResponse({ value, fee, memo }: sendQueryTotalAckFeesResponseParams): Promise; + sendQueryTotalTimeoutFeesRequest({ value, fee, memo }: sendQueryTotalTimeoutFeesRequestParams): Promise; + sendQueryFeeEnabledChannelsResponse({ value, fee, memo }: sendQueryFeeEnabledChannelsResponseParams): Promise; sendForwardRelayerAddress({ value, fee, memo }: sendForwardRelayerAddressParams): Promise; - sendMsgPayPacketFeeAsyncResponse({ value, fee, memo }: sendMsgPayPacketFeeAsyncResponseParams): Promise; - sendQueryTotalRecvFeesRequest({ value, fee, memo }: sendQueryTotalRecvFeesRequestParams): Promise; - genesisState({ value }: genesisStateParams): EncodeObject; - queryCounterpartyPayeeRequest({ value }: queryCounterpartyPayeeRequestParams): EncodeObject; - queryFeeEnabledChannelsResponse({ value }: queryFeeEnabledChannelsResponseParams): EncodeObject; - msgRegisterPayee({ value }: msgRegisterPayeeParams): EncodeObject; - incentivizedAcknowledgement({ value }: incentivizedAcknowledgementParams): EncodeObject; - queryIncentivizedPacketRequest({ value }: queryIncentivizedPacketRequestParams): EncodeObject; - queryTotalRecvFeesResponse({ value }: queryTotalRecvFeesResponseParams): EncodeObject; - packetFees({ value }: packetFeesParams): EncodeObject; - identifiedPacketFees({ value }: identifiedPacketFeesParams): EncodeObject; - msgRegisterCounterpartyPayee({ value }: msgRegisterCounterpartyPayeeParams): EncodeObject; - msgPayPacketFeeAsync({ value }: msgPayPacketFeeAsyncParams): EncodeObject; - registeredPayee({ value }: registeredPayeeParams): EncodeObject; - queryFeeEnabledChannelResponse({ value }: queryFeeEnabledChannelResponseParams): EncodeObject; - fee({ value }: feeParams): EncodeObject; - queryPayeeResponse({ value }: queryPayeeResponseParams): EncodeObject; - queryFeeEnabledChannelRequest({ value }: queryFeeEnabledChannelRequestParams): EncodeObject; - queryTotalAckFeesRequest({ value }: queryTotalAckFeesRequestParams): EncodeObject; + sendMsgRegisterPayeeResponse({ value, fee, memo }: sendMsgRegisterPayeeResponseParams): Promise; + sendMsgPayPacketFeeResponse({ value, fee, memo }: sendMsgPayPacketFeeResponseParams): Promise; + sendQueryIncentivizedPacketsRequest({ value, fee, memo }: sendQueryIncentivizedPacketsRequestParams): Promise; + sendQueryPayeeResponse({ value, fee, memo }: sendQueryPayeeResponseParams): Promise; + sendMsgPayPacketFee({ value, fee, memo }: sendMsgPayPacketFeeParams): Promise; + sendQueryIncentivizedPacketRequest({ value, fee, memo }: sendQueryIncentivizedPacketRequestParams): Promise; + sendQueryIncentivizedPacketResponse({ value, fee, memo }: sendQueryIncentivizedPacketResponseParams): Promise; + sendQueryCounterpartyPayeeRequest({ value, fee, memo }: sendQueryCounterpartyPayeeRequestParams): Promise; + sendQueryFeeEnabledChannelsRequest({ value, fee, memo }: sendQueryFeeEnabledChannelsRequestParams): Promise; + sendQueryFeeEnabledChannelRequest({ value, fee, memo }: sendQueryFeeEnabledChannelRequestParams): Promise; + sendQueryFeeEnabledChannelResponse({ value, fee, memo }: sendQueryFeeEnabledChannelResponseParams): Promise; + sendIdentifiedPacketFees({ value, fee, memo }: sendIdentifiedPacketFeesParams): Promise; + queryIncentivizedPacketsForChannelRequest({ value }: queryIncentivizedPacketsForChannelRequestParams): EncodeObject; queryPayeeRequest({ value }: queryPayeeRequestParams): EncodeObject; - metadata({ value }: metadataParams): EncodeObject; - msgPayPacketFeeResponse({ value }: msgPayPacketFeeResponseParams): EncodeObject; - queryIncentivizedPacketResponse({ value }: queryIncentivizedPacketResponseParams): EncodeObject; - queryIncentivizedPacketsForChannelResponse({ value }: queryIncentivizedPacketsForChannelResponseParams): EncodeObject; - queryIncentivizedPacketsRequest({ value }: queryIncentivizedPacketsRequestParams): EncodeObject; + queryCounterpartyPayeeResponse({ value }: queryCounterpartyPayeeResponseParams): EncodeObject; + msgPayPacketFeeAsyncResponse({ value }: msgPayPacketFeeAsyncResponseParams): EncodeObject; + genesisState({ value }: genesisStateParams): EncodeObject; + packetFee({ value }: packetFeeParams): EncodeObject; queryIncentivizedPacketsResponse({ value }: queryIncentivizedPacketsResponseParams): EncodeObject; - queryIncentivizedPacketsForChannelRequest({ value }: queryIncentivizedPacketsForChannelRequestParams): EncodeObject; - queryTotalAckFeesResponse({ value }: queryTotalAckFeesResponseParams): EncodeObject; - queryTotalTimeoutFeesRequest({ value }: queryTotalTimeoutFeesRequestParams): EncodeObject; + queryIncentivizedPacketsForChannelResponse({ value }: queryIncentivizedPacketsForChannelResponseParams): EncodeObject; + queryTotalAckFeesRequest({ value }: queryTotalAckFeesRequestParams): EncodeObject; queryTotalTimeoutFeesResponse({ value }: queryTotalTimeoutFeesResponseParams): EncodeObject; - queryFeeEnabledChannelsRequest({ value }: queryFeeEnabledChannelsRequestParams): EncodeObject; - msgPayPacketFee({ value }: msgPayPacketFeeParams): EncodeObject; - packetFee({ value }: packetFeeParams): EncodeObject; - msgRegisterPayeeResponse({ value }: msgRegisterPayeeResponseParams): EncodeObject; + registeredPayee({ value }: registeredPayeeParams): EncodeObject; + msgPayPacketFeeAsync({ value }: msgPayPacketFeeAsyncParams): EncodeObject; msgRegisterCounterpartyPayeeResponse({ value }: msgRegisterCounterpartyPayeeResponseParams): EncodeObject; - queryCounterpartyPayeeResponse({ value }: queryCounterpartyPayeeResponseParams): EncodeObject; + incentivizedAcknowledgement({ value }: incentivizedAcknowledgementParams): EncodeObject; + metadata({ value }: metadataParams): EncodeObject; + msgRegisterPayee({ value }: msgRegisterPayeeParams): EncodeObject; + fee({ value }: feeParams): EncodeObject; + queryTotalRecvFeesRequest({ value }: queryTotalRecvFeesRequestParams): EncodeObject; feeEnabledChannel({ value }: feeEnabledChannelParams): EncodeObject; registeredCounterpartyPayee({ value }: registeredCounterpartyPayeeParams): EncodeObject; + msgRegisterCounterpartyPayee({ value }: msgRegisterCounterpartyPayeeParams): EncodeObject; + packetFees({ value }: packetFeesParams): EncodeObject; + queryTotalRecvFeesResponse({ value }: queryTotalRecvFeesResponseParams): EncodeObject; + queryTotalAckFeesResponse({ value }: queryTotalAckFeesResponseParams): EncodeObject; + queryTotalTimeoutFeesRequest({ value }: queryTotalTimeoutFeesRequestParams): EncodeObject; + queryFeeEnabledChannelsResponse({ value }: queryFeeEnabledChannelsResponseParams): EncodeObject; forwardRelayerAddress({ value }: forwardRelayerAddressParams): EncodeObject; - msgPayPacketFeeAsyncResponse({ value }: msgPayPacketFeeAsyncResponseParams): EncodeObject; - queryTotalRecvFeesRequest({ value }: queryTotalRecvFeesRequestParams): EncodeObject; + msgRegisterPayeeResponse({ value }: msgRegisterPayeeResponseParams): EncodeObject; + msgPayPacketFeeResponse({ value }: msgPayPacketFeeResponseParams): EncodeObject; + queryIncentivizedPacketsRequest({ value }: queryIncentivizedPacketsRequestParams): EncodeObject; + queryPayeeResponse({ value }: queryPayeeResponseParams): EncodeObject; + msgPayPacketFee({ value }: msgPayPacketFeeParams): EncodeObject; + queryIncentivizedPacketRequest({ value }: queryIncentivizedPacketRequestParams): EncodeObject; + queryIncentivizedPacketResponse({ value }: queryIncentivizedPacketResponseParams): EncodeObject; + queryCounterpartyPayeeRequest({ value }: queryCounterpartyPayeeRequestParams): EncodeObject; + queryFeeEnabledChannelsRequest({ value }: queryFeeEnabledChannelsRequestParams): EncodeObject; + queryFeeEnabledChannelRequest({ value }: queryFeeEnabledChannelRequestParams): EncodeObject; + queryFeeEnabledChannelResponse({ value }: queryFeeEnabledChannelResponseParams): EncodeObject; + identifiedPacketFees({ value }: identifiedPacketFeesParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/ibc.applications.fee.v1/module.js b/ts-client/lib/ibc.applications.fee.v1/module.js index f192173c6..34ba4f6b5 100644 --- a/ts-client/lib/ibc.applications.fee.v1/module.js +++ b/ts-client/lib/ibc.applications.fee.v1/module.js @@ -3,46 +3,46 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { GenesisState } from "./types/ibc/applications/fee/v1/genesis"; -import { QueryCounterpartyPayeeRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryFeeEnabledChannelsResponse } from "./types/ibc/applications/fee/v1/query"; -import { MsgRegisterPayee } from "./types/ibc/applications/fee/v1/tx"; -import { IncentivizedAcknowledgement } from "./types/ibc/applications/fee/v1/ack"; -import { QueryIncentivizedPacketRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalRecvFeesResponse } from "./types/ibc/applications/fee/v1/query"; -import { PacketFees } from "./types/ibc/applications/fee/v1/fee"; -import { IdentifiedPacketFees } from "./types/ibc/applications/fee/v1/fee"; -import { MsgRegisterCounterpartyPayee } from "./types/ibc/applications/fee/v1/tx"; -import { MsgPayPacketFeeAsync } from "./types/ibc/applications/fee/v1/tx"; -import { RegisteredPayee } from "./types/ibc/applications/fee/v1/genesis"; -import { QueryFeeEnabledChannelResponse } from "./types/ibc/applications/fee/v1/query"; -import { Fee } from "./types/ibc/applications/fee/v1/fee"; -import { QueryPayeeResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryFeeEnabledChannelRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalAckFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketsForChannelRequest } from "./types/ibc/applications/fee/v1/query"; import { QueryPayeeRequest } from "./types/ibc/applications/fee/v1/query"; -import { Metadata } from "./types/ibc/applications/fee/v1/metadata"; -import { MsgPayPacketFeeResponse } from "./types/ibc/applications/fee/v1/tx"; -import { QueryIncentivizedPacketResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryIncentivizedPacketsForChannelResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryIncentivizedPacketsRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/query"; +import { MsgPayPacketFeeAsyncResponse } from "./types/ibc/applications/fee/v1/tx"; +import { GenesisState } 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 { QueryIncentivizedPacketsForChannelRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalAckFeesResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalTimeoutFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketsForChannelResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalAckFeesRequest } from "./types/ibc/applications/fee/v1/query"; import { QueryTotalTimeoutFeesResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryFeeEnabledChannelsRequest } from "./types/ibc/applications/fee/v1/query"; -import { MsgPayPacketFee } from "./types/ibc/applications/fee/v1/tx"; -import { PacketFee } from "./types/ibc/applications/fee/v1/fee"; -import { MsgRegisterPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { RegisteredPayee } 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 { QueryCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/query"; +import { IncentivizedAcknowledgement } from "./types/ibc/applications/fee/v1/ack"; +import { Metadata } from "./types/ibc/applications/fee/v1/metadata"; +import { MsgRegisterPayee } from "./types/ibc/applications/fee/v1/tx"; +import { Fee } from "./types/ibc/applications/fee/v1/fee"; +import { QueryTotalRecvFeesRequest } from "./types/ibc/applications/fee/v1/query"; import { FeeEnabledChannel } from "./types/ibc/applications/fee/v1/genesis"; import { RegisteredCounterpartyPayee } from "./types/ibc/applications/fee/v1/genesis"; +import { MsgRegisterCounterpartyPayee } from "./types/ibc/applications/fee/v1/tx"; +import { PacketFees } from "./types/ibc/applications/fee/v1/fee"; +import { QueryTotalRecvFeesResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalAckFeesResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalTimeoutFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelsResponse } from "./types/ibc/applications/fee/v1/query"; import { ForwardRelayerAddress } from "./types/ibc/applications/fee/v1/genesis"; -import { MsgPayPacketFeeAsyncResponse } from "./types/ibc/applications/fee/v1/tx"; -import { QueryTotalRecvFeesRequest } from "./types/ibc/applications/fee/v1/query"; -export { GenesisState, QueryCounterpartyPayeeRequest, QueryFeeEnabledChannelsResponse, MsgRegisterPayee, IncentivizedAcknowledgement, QueryIncentivizedPacketRequest, QueryTotalRecvFeesResponse, PacketFees, IdentifiedPacketFees, MsgRegisterCounterpartyPayee, MsgPayPacketFeeAsync, RegisteredPayee, QueryFeeEnabledChannelResponse, Fee, QueryPayeeResponse, QueryFeeEnabledChannelRequest, QueryTotalAckFeesRequest, QueryPayeeRequest, Metadata, MsgPayPacketFeeResponse, QueryIncentivizedPacketResponse, QueryIncentivizedPacketsForChannelResponse, QueryIncentivizedPacketsRequest, QueryIncentivizedPacketsResponse, QueryIncentivizedPacketsForChannelRequest, QueryTotalAckFeesResponse, QueryTotalTimeoutFeesRequest, QueryTotalTimeoutFeesResponse, QueryFeeEnabledChannelsRequest, MsgPayPacketFee, PacketFee, MsgRegisterPayeeResponse, MsgRegisterCounterpartyPayeeResponse, QueryCounterpartyPayeeResponse, FeeEnabledChannel, RegisteredCounterpartyPayee, ForwardRelayerAddress, MsgPayPacketFeeAsyncResponse, QueryTotalRecvFeesRequest }; +import { MsgRegisterPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { MsgPayPacketFeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { QueryIncentivizedPacketsRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryPayeeResponse } from "./types/ibc/applications/fee/v1/query"; +import { MsgPayPacketFee } from "./types/ibc/applications/fee/v1/tx"; +import { QueryIncentivizedPacketRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryCounterpartyPayeeRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelsRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelResponse } from "./types/ibc/applications/fee/v1/query"; +import { IdentifiedPacketFees } from "./types/ibc/applications/fee/v1/fee"; +export { QueryIncentivizedPacketsForChannelRequest, QueryPayeeRequest, QueryCounterpartyPayeeResponse, MsgPayPacketFeeAsyncResponse, GenesisState, PacketFee, QueryIncentivizedPacketsResponse, QueryIncentivizedPacketsForChannelResponse, QueryTotalAckFeesRequest, QueryTotalTimeoutFeesResponse, RegisteredPayee, MsgPayPacketFeeAsync, MsgRegisterCounterpartyPayeeResponse, IncentivizedAcknowledgement, Metadata, MsgRegisterPayee, Fee, QueryTotalRecvFeesRequest, FeeEnabledChannel, RegisteredCounterpartyPayee, MsgRegisterCounterpartyPayee, PacketFees, QueryTotalRecvFeesResponse, QueryTotalAckFeesResponse, QueryTotalTimeoutFeesRequest, QueryFeeEnabledChannelsResponse, ForwardRelayerAddress, MsgRegisterPayeeResponse, MsgPayPacketFeeResponse, QueryIncentivizedPacketsRequest, QueryPayeeResponse, MsgPayPacketFee, QueryIncentivizedPacketRequest, QueryIncentivizedPacketResponse, QueryCounterpartyPayeeRequest, QueryFeeEnabledChannelsRequest, QueryFeeEnabledChannelRequest, QueryFeeEnabledChannelResponse, IdentifiedPacketFees }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -58,862 +58,862 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendGenesisState({ value, fee, memo }) { + async sendQueryIncentivizedPacketsForChannelRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.fromPartial(value) }); + let msg = this.queryIncentivizedPacketsForChannelRequest({ value: QueryIncentivizedPacketsForChannelRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryCounterpartyPayeeRequest({ value, fee, memo }) { + async sendQueryPayeeRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryCounterpartyPayeeRequest: Unable to sign Tx. Signer is not present.'); + 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.queryCounterpartyPayeeRequest({ value: QueryCounterpartyPayeeRequest.fromPartial(value) }); + let msg = this.queryPayeeRequest({ value: QueryPayeeRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryCounterpartyPayeeRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryPayeeRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryFeeEnabledChannelsResponse({ value, fee, memo }) { + async sendQueryCounterpartyPayeeResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryFeeEnabledChannelsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryCounterpartyPayeeResponse: Unable to 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.queryCounterpartyPayeeResponse({ value: QueryCounterpartyPayeeResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryFeeEnabledChannelsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryCounterpartyPayeeResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRegisterPayee({ value, fee, memo }) { + async sendMsgPayPacketFeeAsyncResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRegisterPayee: 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.msgRegisterPayee({ value: MsgRegisterPayee.fromPartial(value) }); + let msg = this.msgPayPacketFeeAsyncResponse({ value: MsgPayPacketFeeAsyncResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRegisterPayee: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgPayPacketFeeAsyncResponse: Could not broadcast Tx: ' + e.message); } }, - async sendIncentivizedAcknowledgement({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendIncentivizedAcknowledgement: 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.incentivizedAcknowledgement({ value: IncentivizedAcknowledgement.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendIncentivizedAcknowledgement: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendQueryIncentivizedPacketRequest({ value, fee, memo }) { + async sendPacketFee({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketRequest: 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.queryIncentivizedPacketRequest({ value: QueryIncentivizedPacketRequest.fromPartial(value) }); + let msg = this.packetFee({ value: PacketFee.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryIncentivizedPacketRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendPacketFee: Could not broadcast Tx: ' + e.message); } }, - async sendQueryTotalRecvFeesResponse({ value, fee, memo }) { + async sendQueryIncentivizedPacketsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTotalRecvFeesResponse: 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.queryTotalRecvFeesResponse({ value: QueryTotalRecvFeesResponse.fromPartial(value) }); + let msg = this.queryIncentivizedPacketsResponse({ value: QueryIncentivizedPacketsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTotalRecvFeesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryIncentivizedPacketsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendPacketFees({ value, fee, memo }) { + async sendQueryIncentivizedPacketsForChannelResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendPacketFees: 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.packetFees({ value: PacketFees.fromPartial(value) }); + let msg = this.queryIncentivizedPacketsForChannelResponse({ value: QueryIncentivizedPacketsForChannelResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendPacketFees: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelResponse: Could not broadcast Tx: ' + e.message); } }, - async sendIdentifiedPacketFees({ value, fee, memo }) { + async sendQueryTotalAckFeesRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendIdentifiedPacketFees: 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.identifiedPacketFees({ value: IdentifiedPacketFees.fromPartial(value) }); + let msg = this.queryTotalAckFeesRequest({ value: QueryTotalAckFeesRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendIdentifiedPacketFees: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTotalAckFeesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRegisterCounterpartyPayee({ value, fee, memo }) { + async sendQueryTotalTimeoutFeesResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRegisterCounterpartyPayee: 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.msgRegisterCounterpartyPayee({ value: MsgRegisterCounterpartyPayee.fromPartial(value) }); + let msg = this.queryTotalTimeoutFeesResponse({ value: QueryTotalTimeoutFeesResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRegisterCounterpartyPayee: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTotalTimeoutFeesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgPayPacketFeeAsync({ value, fee, memo }) { + async sendRegisteredPayee({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgPayPacketFeeAsync: 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.msgPayPacketFeeAsync({ value: MsgPayPacketFeeAsync.fromPartial(value) }); + let msg = this.registeredPayee({ value: RegisteredPayee.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgPayPacketFeeAsync: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendRegisteredPayee: Could not broadcast Tx: ' + e.message); } }, - async sendRegisteredPayee({ value, fee, memo }) { + async sendMsgPayPacketFeeAsync({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendRegisteredPayee: 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.registeredPayee({ value: RegisteredPayee.fromPartial(value) }); + let msg = this.msgPayPacketFeeAsync({ value: MsgPayPacketFeeAsync.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendRegisteredPayee: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgPayPacketFeeAsync: Could not broadcast Tx: ' + e.message); } }, - async sendQueryFeeEnabledChannelResponse({ value, fee, memo }) { + async sendMsgRegisterCounterpartyPayeeResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryFeeEnabledChannelResponse: 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.queryFeeEnabledChannelResponse({ value: QueryFeeEnabledChannelResponse.fromPartial(value) }); + let msg = this.msgRegisterCounterpartyPayeeResponse({ value: MsgRegisterCounterpartyPayeeResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryFeeEnabledChannelResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRegisterCounterpartyPayeeResponse: Could not broadcast Tx: ' + e.message); } }, - async sendFee({ value, fee, memo }) { + async sendIncentivizedAcknowledgement({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendFee: 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.fee({ value: Fee.fromPartial(value) }); + let msg = this.incentivizedAcknowledgement({ value: IncentivizedAcknowledgement.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendFee: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendIncentivizedAcknowledgement: Could not broadcast Tx: ' + e.message); } }, - async sendQueryPayeeResponse({ value, fee, memo }) { + async sendMetadata({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryPayeeResponse: 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.queryPayeeResponse({ value: QueryPayeeResponse.fromPartial(value) }); + let msg = this.metadata({ value: Metadata.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryPayeeResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMetadata: Could not broadcast Tx: ' + e.message); } }, - async sendQueryFeeEnabledChannelRequest({ value, fee, memo }) { + async sendMsgRegisterPayee({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryFeeEnabledChannelRequest: 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.queryFeeEnabledChannelRequest({ value: QueryFeeEnabledChannelRequest.fromPartial(value) }); + let msg = this.msgRegisterPayee({ value: MsgRegisterPayee.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryFeeEnabledChannelRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRegisterPayee: Could not broadcast Tx: ' + e.message); } }, - async sendQueryTotalAckFeesRequest({ value, fee, memo }) { + async sendFee({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTotalAckFeesRequest: 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.queryTotalAckFeesRequest({ value: QueryTotalAckFeesRequest.fromPartial(value) }); + let msg = this.fee({ value: Fee.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTotalAckFeesRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendFee: Could not broadcast Tx: ' + e.message); } }, - async sendQueryPayeeRequest({ value, fee, memo }) { + async sendQueryTotalRecvFeesRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryPayeeRequest: 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.queryPayeeRequest({ value: QueryPayeeRequest.fromPartial(value) }); + let msg = this.queryTotalRecvFeesRequest({ value: QueryTotalRecvFeesRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryPayeeRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTotalRecvFeesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMetadata({ value, fee, memo }) { + async sendFeeEnabledChannel({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMetadata: 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.metadata({ value: Metadata.fromPartial(value) }); + let msg = this.feeEnabledChannel({ value: FeeEnabledChannel.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMetadata: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendFeeEnabledChannel: Could not broadcast Tx: ' + e.message); } }, - async sendMsgPayPacketFeeResponse({ value, fee, memo }) { + async sendRegisteredCounterpartyPayee({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgPayPacketFeeResponse: 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.msgPayPacketFeeResponse({ value: MsgPayPacketFeeResponse.fromPartial(value) }); + let msg = this.registeredCounterpartyPayee({ value: RegisteredCounterpartyPayee.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgPayPacketFeeResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendRegisteredCounterpartyPayee: Could not broadcast Tx: ' + e.message); } }, - async sendQueryIncentivizedPacketResponse({ value, fee, memo }) { + async sendMsgRegisterCounterpartyPayee({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketResponse: 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.queryIncentivizedPacketResponse({ value: QueryIncentivizedPacketResponse.fromPartial(value) }); + let msg = this.msgRegisterCounterpartyPayee({ value: MsgRegisterCounterpartyPayee.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryIncentivizedPacketResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRegisterCounterpartyPayee: Could not broadcast Tx: ' + e.message); } }, - async sendQueryIncentivizedPacketsForChannelResponse({ value, fee, memo }) { + async sendPacketFees({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelResponse: 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.queryIncentivizedPacketsForChannelResponse({ value: QueryIncentivizedPacketsForChannelResponse.fromPartial(value) }); + let msg = this.packetFees({ value: PacketFees.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendPacketFees: Could not broadcast Tx: ' + e.message); } }, - async sendQueryIncentivizedPacketsRequest({ value, fee, memo }) { + async sendQueryTotalRecvFeesResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketsRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryTotalRecvFeesResponse: Unable to 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.queryTotalRecvFeesResponse({ value: QueryTotalRecvFeesResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryIncentivizedPacketsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTotalRecvFeesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryIncentivizedPacketsResponse({ value, fee, memo }) { + async sendQueryTotalAckFeesResponse({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendQueryIncentivizedPacketsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTotalAckFeesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryIncentivizedPacketsForChannelRequest({ value, fee, memo }) { + async sendQueryTotalTimeoutFeesRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelRequest: 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.queryIncentivizedPacketsForChannelRequest({ value: QueryIncentivizedPacketsForChannelRequest.fromPartial(value) }); + let msg = this.queryTotalTimeoutFeesRequest({ value: QueryTotalTimeoutFeesRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryIncentivizedPacketsForChannelRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTotalTimeoutFeesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryTotalAckFeesResponse({ value, fee, memo }) { + async sendQueryFeeEnabledChannelsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTotalAckFeesResponse: 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.queryTotalAckFeesResponse({ value: QueryTotalAckFeesResponse.fromPartial(value) }); + let msg = this.queryFeeEnabledChannelsResponse({ value: QueryFeeEnabledChannelsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTotalAckFeesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryFeeEnabledChannelsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryTotalTimeoutFeesRequest({ value, fee, memo }) { + async sendForwardRelayerAddress({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTotalTimeoutFeesRequest: 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.queryTotalTimeoutFeesRequest({ value: QueryTotalTimeoutFeesRequest.fromPartial(value) }); + let msg = this.forwardRelayerAddress({ value: ForwardRelayerAddress.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTotalTimeoutFeesRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendForwardRelayerAddress: Could not broadcast Tx: ' + e.message); } }, - async sendQueryTotalTimeoutFeesResponse({ value, fee, memo }) { + async sendMsgRegisterPayeeResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTotalTimeoutFeesResponse: 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.queryTotalTimeoutFeesResponse({ value: QueryTotalTimeoutFeesResponse.fromPartial(value) }); + let msg = this.msgRegisterPayeeResponse({ value: MsgRegisterPayeeResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTotalTimeoutFeesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRegisterPayeeResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryFeeEnabledChannelsRequest({ value, fee, memo }) { + async sendMsgPayPacketFeeResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryFeeEnabledChannelsRequest: 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.queryFeeEnabledChannelsRequest({ value: QueryFeeEnabledChannelsRequest.fromPartial(value) }); + let msg = this.msgPayPacketFeeResponse({ value: MsgPayPacketFeeResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryFeeEnabledChannelsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgPayPacketFeeResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgPayPacketFee({ value, fee, memo }) { + async sendQueryIncentivizedPacketsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgPayPacketFee: 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.msgPayPacketFee({ value: MsgPayPacketFee.fromPartial(value) }); + let msg = this.queryIncentivizedPacketsRequest({ value: QueryIncentivizedPacketsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgPayPacketFee: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryIncentivizedPacketsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendPacketFee({ value, fee, memo }) { + async sendQueryPayeeResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendPacketFee: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryPayeeResponse: Unable to 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.queryPayeeResponse({ value: QueryPayeeResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendPacketFee: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryPayeeResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRegisterPayeeResponse({ value, fee, memo }) { + async sendMsgPayPacketFee({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRegisterPayeeResponse: 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.msgRegisterPayeeResponse({ value: MsgRegisterPayeeResponse.fromPartial(value) }); + let msg = this.msgPayPacketFee({ value: MsgPayPacketFee.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRegisterPayeeResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgPayPacketFee: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRegisterCounterpartyPayeeResponse({ value, fee, memo }) { + async sendQueryIncentivizedPacketRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRegisterCounterpartyPayeeResponse: 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.msgRegisterCounterpartyPayeeResponse({ value: MsgRegisterCounterpartyPayeeResponse.fromPartial(value) }); + let msg = this.queryIncentivizedPacketRequest({ value: QueryIncentivizedPacketRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRegisterCounterpartyPayeeResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryIncentivizedPacketRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryCounterpartyPayeeResponse({ value, fee, memo }) { + async sendQueryIncentivizedPacketResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryCounterpartyPayeeResponse: 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.queryCounterpartyPayeeResponse({ value: QueryCounterpartyPayeeResponse.fromPartial(value) }); + let msg = this.queryIncentivizedPacketResponse({ value: QueryIncentivizedPacketResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryCounterpartyPayeeResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryIncentivizedPacketResponse: Could not broadcast Tx: ' + e.message); } }, - async sendFeeEnabledChannel({ value, fee, memo }) { + async sendQueryCounterpartyPayeeRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendFeeEnabledChannel: 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.feeEnabledChannel({ value: FeeEnabledChannel.fromPartial(value) }); + let msg = this.queryCounterpartyPayeeRequest({ value: QueryCounterpartyPayeeRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendFeeEnabledChannel: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryCounterpartyPayeeRequest: Could not broadcast Tx: ' + e.message); } }, - async sendRegisteredCounterpartyPayee({ value, fee, memo }) { + async sendQueryFeeEnabledChannelsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendRegisteredCounterpartyPayee: 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.registeredCounterpartyPayee({ value: RegisteredCounterpartyPayee.fromPartial(value) }); + let msg = this.queryFeeEnabledChannelsRequest({ value: QueryFeeEnabledChannelsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendRegisteredCounterpartyPayee: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryFeeEnabledChannelsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendForwardRelayerAddress({ value, fee, memo }) { + async sendQueryFeeEnabledChannelRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendForwardRelayerAddress: 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.forwardRelayerAddress({ value: ForwardRelayerAddress.fromPartial(value) }); + let msg = this.queryFeeEnabledChannelRequest({ value: QueryFeeEnabledChannelRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendForwardRelayerAddress: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryFeeEnabledChannelRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgPayPacketFeeAsyncResponse({ value, fee, memo }) { + async sendQueryFeeEnabledChannelResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgPayPacketFeeAsyncResponse: 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.msgPayPacketFeeAsyncResponse({ value: MsgPayPacketFeeAsyncResponse.fromPartial(value) }); + let msg = this.queryFeeEnabledChannelResponse({ value: QueryFeeEnabledChannelResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgPayPacketFeeAsyncResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryFeeEnabledChannelResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryTotalRecvFeesRequest({ value, fee, memo }) { + async sendIdentifiedPacketFees({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTotalRecvFeesRequest: 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.queryTotalRecvFeesRequest({ value: QueryTotalRecvFeesRequest.fromPartial(value) }); + let msg = this.identifiedPacketFees({ value: IdentifiedPacketFees.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTotalRecvFeesRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendIdentifiedPacketFees: Could not broadcast Tx: ' + e.message); } }, - genesisState({ value }) { + queryIncentivizedPacketsForChannelRequest({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest", value: QueryIncentivizedPacketsForChannelRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:QueryIncentivizedPacketsForChannelRequest: Could not create message: ' + e.message); } }, - queryCounterpartyPayeeRequest({ value }) { + queryPayeeRequest({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryCounterpartyPayeeRequest", value: QueryCounterpartyPayeeRequest.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryPayeeRequest", value: QueryPayeeRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryCounterpartyPayeeRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryPayeeRequest: Could not create message: ' + e.message); } }, - queryFeeEnabledChannelsResponse({ value }) { + queryCounterpartyPayeeResponse({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse", value: QueryFeeEnabledChannelsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryCounterpartyPayeeResponse", value: QueryCounterpartyPayeeResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryFeeEnabledChannelsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryCounterpartyPayeeResponse: Could not create message: ' + e.message); } }, - msgRegisterPayee({ value }) { + msgPayPacketFeeAsyncResponse({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterPayee", value: MsgRegisterPayee.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse", value: MsgPayPacketFeeAsyncResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRegisterPayee: Could not create message: ' + e.message); + throw new Error('TxClient:MsgPayPacketFeeAsyncResponse: Could not create message: ' + e.message); } }, - incentivizedAcknowledgement({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.IncentivizedAcknowledgement", value: IncentivizedAcknowledgement.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:IncentivizedAcknowledgement: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - queryIncentivizedPacketRequest({ value }) { + packetFee({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketRequest", value: QueryIncentivizedPacketRequest.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.PacketFee", value: PacketFee.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryIncentivizedPacketRequest: Could not create message: ' + e.message); + throw new Error('TxClient:PacketFee: Could not create message: ' + e.message); } }, - queryTotalRecvFeesResponse({ value }) { + queryIncentivizedPacketsResponse({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalRecvFeesResponse", value: QueryTotalRecvFeesResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsResponse", value: QueryIncentivizedPacketsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTotalRecvFeesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryIncentivizedPacketsResponse: Could not create message: ' + e.message); } }, - packetFees({ value }) { + queryIncentivizedPacketsForChannelResponse({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.PacketFees", value: PacketFees.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse", value: QueryIncentivizedPacketsForChannelResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:PacketFees: Could not create message: ' + e.message); + throw new Error('TxClient:QueryIncentivizedPacketsForChannelResponse: Could not create message: ' + e.message); } }, - identifiedPacketFees({ value }) { + queryTotalAckFeesRequest({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.IdentifiedPacketFees", value: IdentifiedPacketFees.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalAckFeesRequest", value: QueryTotalAckFeesRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:IdentifiedPacketFees: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTotalAckFeesRequest: Could not create message: ' + e.message); } }, - msgRegisterCounterpartyPayee({ value }) { + queryTotalTimeoutFeesResponse({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", value: MsgRegisterCounterpartyPayee.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse", value: QueryTotalTimeoutFeesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRegisterCounterpartyPayee: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTotalTimeoutFeesResponse: Could not create message: ' + e.message); } }, - msgPayPacketFeeAsync({ value }) { + registeredPayee({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeAsync", value: MsgPayPacketFeeAsync.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.RegisteredPayee", value: RegisteredPayee.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgPayPacketFeeAsync: Could not create message: ' + e.message); + throw new Error('TxClient:RegisteredPayee: Could not create message: ' + e.message); } }, - registeredPayee({ value }) { + msgPayPacketFeeAsync({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.RegisteredPayee", value: RegisteredPayee.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeAsync", value: MsgPayPacketFeeAsync.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:RegisteredPayee: Could not create message: ' + e.message); + throw new Error('TxClient:MsgPayPacketFeeAsync: Could not create message: ' + e.message); } }, - queryFeeEnabledChannelResponse({ value }) { + msgRegisterCounterpartyPayeeResponse({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelResponse", value: QueryFeeEnabledChannelResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse", value: MsgRegisterCounterpartyPayeeResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryFeeEnabledChannelResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRegisterCounterpartyPayeeResponse: Could not create message: ' + e.message); } }, - fee({ value }) { + incentivizedAcknowledgement({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.Fee", value: Fee.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.IncentivizedAcknowledgement", value: IncentivizedAcknowledgement.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Fee: Could not create message: ' + e.message); + throw new Error('TxClient:IncentivizedAcknowledgement: Could not create message: ' + e.message); } }, - queryPayeeResponse({ value }) { + metadata({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryPayeeResponse", value: QueryPayeeResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.Metadata", value: Metadata.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryPayeeResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Metadata: Could not create message: ' + e.message); } }, - queryFeeEnabledChannelRequest({ value }) { + msgRegisterPayee({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelRequest", value: QueryFeeEnabledChannelRequest.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterPayee", value: MsgRegisterPayee.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryFeeEnabledChannelRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRegisterPayee: Could not create message: ' + e.message); } }, - queryTotalAckFeesRequest({ value }) { + fee({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalAckFeesRequest", value: QueryTotalAckFeesRequest.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.Fee", value: Fee.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTotalAckFeesRequest: Could not create message: ' + e.message); + throw new Error('TxClient:Fee: Could not create message: ' + e.message); } }, - queryPayeeRequest({ value }) { + queryTotalRecvFeesRequest({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryPayeeRequest", value: QueryPayeeRequest.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalRecvFeesRequest", value: QueryTotalRecvFeesRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryPayeeRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTotalRecvFeesRequest: Could not create message: ' + e.message); } }, - metadata({ value }) { + feeEnabledChannel({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.Metadata", value: Metadata.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.FeeEnabledChannel", value: FeeEnabledChannel.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Metadata: Could not create message: ' + e.message); + throw new Error('TxClient:FeeEnabledChannel: Could not create message: ' + e.message); } }, - msgPayPacketFeeResponse({ value }) { + registeredCounterpartyPayee({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeResponse", value: MsgPayPacketFeeResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.RegisteredCounterpartyPayee", value: RegisteredCounterpartyPayee.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgPayPacketFeeResponse: Could not create message: ' + e.message); + throw new Error('TxClient:RegisteredCounterpartyPayee: Could not create message: ' + e.message); } }, - queryIncentivizedPacketResponse({ value }) { + msgRegisterCounterpartyPayee({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketResponse", value: QueryIncentivizedPacketResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", value: MsgRegisterCounterpartyPayee.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryIncentivizedPacketResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRegisterCounterpartyPayee: Could not create message: ' + e.message); } }, - queryIncentivizedPacketsForChannelResponse({ value }) { + packetFees({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse", value: QueryIncentivizedPacketsForChannelResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.PacketFees", value: PacketFees.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryIncentivizedPacketsForChannelResponse: Could not create message: ' + e.message); + throw new Error('TxClient:PacketFees: Could not create message: ' + e.message); } }, - queryIncentivizedPacketsRequest({ value }) { + queryTotalRecvFeesResponse({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsRequest", value: QueryIncentivizedPacketsRequest.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalRecvFeesResponse", value: QueryTotalRecvFeesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryIncentivizedPacketsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTotalRecvFeesResponse: Could not create message: ' + e.message); } }, - queryIncentivizedPacketsResponse({ value }) { + queryTotalAckFeesResponse({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsResponse", value: QueryIncentivizedPacketsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalAckFeesResponse", value: QueryTotalAckFeesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryIncentivizedPacketsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTotalAckFeesResponse: Could not create message: ' + e.message); } }, - queryIncentivizedPacketsForChannelRequest({ value }) { + queryTotalTimeoutFeesRequest({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest", value: QueryIncentivizedPacketsForChannelRequest.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest", value: QueryTotalTimeoutFeesRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryIncentivizedPacketsForChannelRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTotalTimeoutFeesRequest: Could not create message: ' + e.message); } }, - queryTotalAckFeesResponse({ value }) { + queryFeeEnabledChannelsResponse({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalAckFeesResponse", value: QueryTotalAckFeesResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse", value: QueryFeeEnabledChannelsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTotalAckFeesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryFeeEnabledChannelsResponse: Could not create message: ' + e.message); } }, - queryTotalTimeoutFeesRequest({ value }) { + forwardRelayerAddress({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest", value: QueryTotalTimeoutFeesRequest.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.ForwardRelayerAddress", value: ForwardRelayerAddress.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTotalTimeoutFeesRequest: Could not create message: ' + e.message); + throw new Error('TxClient:ForwardRelayerAddress: Could not create message: ' + e.message); } }, - queryTotalTimeoutFeesResponse({ value }) { + msgRegisterPayeeResponse({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse", value: QueryTotalTimeoutFeesResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterPayeeResponse", value: MsgRegisterPayeeResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTotalTimeoutFeesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRegisterPayeeResponse: Could not create message: ' + e.message); } }, - queryFeeEnabledChannelsRequest({ value }) { + msgPayPacketFeeResponse({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest", value: QueryFeeEnabledChannelsRequest.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeResponse", value: MsgPayPacketFeeResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryFeeEnabledChannelsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgPayPacketFeeResponse: Could not create message: ' + e.message); } }, - msgPayPacketFee({ value }) { + queryIncentivizedPacketsRequest({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFee", value: MsgPayPacketFee.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketsRequest", value: QueryIncentivizedPacketsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgPayPacketFee: Could not create message: ' + e.message); + throw new Error('TxClient:QueryIncentivizedPacketsRequest: Could not create message: ' + e.message); } }, - packetFee({ value }) { + queryPayeeResponse({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.PacketFee", value: PacketFee.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryPayeeResponse", value: QueryPayeeResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:PacketFee: Could not create message: ' + e.message); + throw new Error('TxClient:QueryPayeeResponse: Could not create message: ' + e.message); } }, - msgRegisterPayeeResponse({ value }) { + msgPayPacketFee({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterPayeeResponse", value: MsgRegisterPayeeResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFee", value: MsgPayPacketFee.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRegisterPayeeResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgPayPacketFee: Could not create message: ' + e.message); } }, - msgRegisterCounterpartyPayeeResponse({ value }) { + queryIncentivizedPacketRequest({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse", value: MsgRegisterCounterpartyPayeeResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketRequest", value: QueryIncentivizedPacketRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRegisterCounterpartyPayeeResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryIncentivizedPacketRequest: Could not create message: ' + e.message); } }, - queryCounterpartyPayeeResponse({ value }) { + queryIncentivizedPacketResponse({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryCounterpartyPayeeResponse", value: QueryCounterpartyPayeeResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryIncentivizedPacketResponse", value: QueryIncentivizedPacketResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryCounterpartyPayeeResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryIncentivizedPacketResponse: Could not create message: ' + e.message); } }, - feeEnabledChannel({ value }) { + queryCounterpartyPayeeRequest({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.FeeEnabledChannel", value: FeeEnabledChannel.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryCounterpartyPayeeRequest", value: QueryCounterpartyPayeeRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:FeeEnabledChannel: Could not create message: ' + e.message); + throw new Error('TxClient:QueryCounterpartyPayeeRequest: Could not create message: ' + e.message); } }, - registeredCounterpartyPayee({ value }) { + queryFeeEnabledChannelsRequest({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.RegisteredCounterpartyPayee", value: RegisteredCounterpartyPayee.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest", value: QueryFeeEnabledChannelsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:RegisteredCounterpartyPayee: Could not create message: ' + e.message); + throw new Error('TxClient:QueryFeeEnabledChannelsRequest: Could not create message: ' + e.message); } }, - forwardRelayerAddress({ value }) { + queryFeeEnabledChannelRequest({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.ForwardRelayerAddress", value: ForwardRelayerAddress.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelRequest", value: QueryFeeEnabledChannelRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ForwardRelayerAddress: Could not create message: ' + e.message); + throw new Error('TxClient:QueryFeeEnabledChannelRequest: Could not create message: ' + e.message); } }, - msgPayPacketFeeAsyncResponse({ value }) { + queryFeeEnabledChannelResponse({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse", value: MsgPayPacketFeeAsyncResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.QueryFeeEnabledChannelResponse", value: QueryFeeEnabledChannelResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgPayPacketFeeAsyncResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryFeeEnabledChannelResponse: Could not create message: ' + e.message); } }, - queryTotalRecvFeesRequest({ value }) { + identifiedPacketFees({ value }) { try { - return { typeUrl: "/ibc.applications.fee.v1.QueryTotalRecvFeesRequest", value: QueryTotalRecvFeesRequest.fromPartial(value) }; + return { typeUrl: "/ibc.applications.fee.v1.IdentifiedPacketFees", value: IdentifiedPacketFees.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTotalRecvFeesRequest: Could not create message: ' + e.message); + throw new Error('TxClient:IdentifiedPacketFees: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/ibc.applications.fee.v1/registry.js b/ts-client/lib/ibc.applications.fee.v1/registry.js index cfb82857c..0470a649e 100644 --- a/ts-client/lib/ibc.applications.fee.v1/registry.js +++ b/ts-client/lib/ibc.applications.fee.v1/registry.js @@ -1,81 +1,81 @@ -import { GenesisState } from "./types/ibc/applications/fee/v1/genesis"; -import { QueryCounterpartyPayeeRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryFeeEnabledChannelsResponse } from "./types/ibc/applications/fee/v1/query"; -import { MsgRegisterPayee } from "./types/ibc/applications/fee/v1/tx"; -import { IncentivizedAcknowledgement } from "./types/ibc/applications/fee/v1/ack"; -import { QueryIncentivizedPacketRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalRecvFeesResponse } from "./types/ibc/applications/fee/v1/query"; -import { PacketFees } from "./types/ibc/applications/fee/v1/fee"; -import { IdentifiedPacketFees } from "./types/ibc/applications/fee/v1/fee"; -import { MsgRegisterCounterpartyPayee } from "./types/ibc/applications/fee/v1/tx"; -import { MsgPayPacketFeeAsync } from "./types/ibc/applications/fee/v1/tx"; -import { RegisteredPayee } from "./types/ibc/applications/fee/v1/genesis"; -import { QueryFeeEnabledChannelResponse } from "./types/ibc/applications/fee/v1/query"; -import { Fee } from "./types/ibc/applications/fee/v1/fee"; -import { QueryPayeeResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryFeeEnabledChannelRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalAckFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketsForChannelRequest } from "./types/ibc/applications/fee/v1/query"; import { QueryPayeeRequest } from "./types/ibc/applications/fee/v1/query"; -import { Metadata } from "./types/ibc/applications/fee/v1/metadata"; -import { MsgPayPacketFeeResponse } from "./types/ibc/applications/fee/v1/tx"; -import { QueryIncentivizedPacketResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryIncentivizedPacketsForChannelResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryIncentivizedPacketsRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/query"; +import { MsgPayPacketFeeAsyncResponse } from "./types/ibc/applications/fee/v1/tx"; +import { GenesisState } 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 { QueryIncentivizedPacketsForChannelRequest } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalAckFeesResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryTotalTimeoutFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketsForChannelResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalAckFeesRequest } from "./types/ibc/applications/fee/v1/query"; import { QueryTotalTimeoutFeesResponse } from "./types/ibc/applications/fee/v1/query"; -import { QueryFeeEnabledChannelsRequest } from "./types/ibc/applications/fee/v1/query"; -import { MsgPayPacketFee } from "./types/ibc/applications/fee/v1/tx"; -import { PacketFee } from "./types/ibc/applications/fee/v1/fee"; -import { MsgRegisterPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { RegisteredPayee } 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 { QueryCounterpartyPayeeResponse } from "./types/ibc/applications/fee/v1/query"; +import { IncentivizedAcknowledgement } from "./types/ibc/applications/fee/v1/ack"; +import { Metadata } from "./types/ibc/applications/fee/v1/metadata"; +import { MsgRegisterPayee } from "./types/ibc/applications/fee/v1/tx"; +import { Fee } from "./types/ibc/applications/fee/v1/fee"; +import { QueryTotalRecvFeesRequest } from "./types/ibc/applications/fee/v1/query"; import { FeeEnabledChannel } from "./types/ibc/applications/fee/v1/genesis"; import { RegisteredCounterpartyPayee } from "./types/ibc/applications/fee/v1/genesis"; +import { MsgRegisterCounterpartyPayee } from "./types/ibc/applications/fee/v1/tx"; +import { PacketFees } from "./types/ibc/applications/fee/v1/fee"; +import { QueryTotalRecvFeesResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalAckFeesResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryTotalTimeoutFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelsResponse } from "./types/ibc/applications/fee/v1/query"; import { ForwardRelayerAddress } from "./types/ibc/applications/fee/v1/genesis"; -import { MsgPayPacketFeeAsyncResponse } from "./types/ibc/applications/fee/v1/tx"; -import { QueryTotalRecvFeesRequest } from "./types/ibc/applications/fee/v1/query"; +import { MsgRegisterPayeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { MsgPayPacketFeeResponse } from "./types/ibc/applications/fee/v1/tx"; +import { QueryIncentivizedPacketsRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryPayeeResponse } from "./types/ibc/applications/fee/v1/query"; +import { MsgPayPacketFee } from "./types/ibc/applications/fee/v1/tx"; +import { QueryIncentivizedPacketRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryIncentivizedPacketResponse } from "./types/ibc/applications/fee/v1/query"; +import { QueryCounterpartyPayeeRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelsRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelRequest } from "./types/ibc/applications/fee/v1/query"; +import { QueryFeeEnabledChannelResponse } from "./types/ibc/applications/fee/v1/query"; +import { IdentifiedPacketFees } from "./types/ibc/applications/fee/v1/fee"; const msgTypes = [ - ["/ibc.applications.fee.v1.GenesisState", GenesisState], - ["/ibc.applications.fee.v1.QueryCounterpartyPayeeRequest", QueryCounterpartyPayeeRequest], - ["/ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse", QueryFeeEnabledChannelsResponse], - ["/ibc.applications.fee.v1.MsgRegisterPayee", MsgRegisterPayee], - ["/ibc.applications.fee.v1.IncentivizedAcknowledgement", IncentivizedAcknowledgement], - ["/ibc.applications.fee.v1.QueryIncentivizedPacketRequest", QueryIncentivizedPacketRequest], - ["/ibc.applications.fee.v1.QueryTotalRecvFeesResponse", QueryTotalRecvFeesResponse], - ["/ibc.applications.fee.v1.PacketFees", PacketFees], - ["/ibc.applications.fee.v1.IdentifiedPacketFees", IdentifiedPacketFees], - ["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", MsgRegisterCounterpartyPayee], - ["/ibc.applications.fee.v1.MsgPayPacketFeeAsync", MsgPayPacketFeeAsync], - ["/ibc.applications.fee.v1.RegisteredPayee", RegisteredPayee], - ["/ibc.applications.fee.v1.QueryFeeEnabledChannelResponse", QueryFeeEnabledChannelResponse], - ["/ibc.applications.fee.v1.Fee", Fee], - ["/ibc.applications.fee.v1.QueryPayeeResponse", QueryPayeeResponse], - ["/ibc.applications.fee.v1.QueryFeeEnabledChannelRequest", QueryFeeEnabledChannelRequest], - ["/ibc.applications.fee.v1.QueryTotalAckFeesRequest", QueryTotalAckFeesRequest], + ["/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest", QueryIncentivizedPacketsForChannelRequest], ["/ibc.applications.fee.v1.QueryPayeeRequest", QueryPayeeRequest], - ["/ibc.applications.fee.v1.Metadata", Metadata], - ["/ibc.applications.fee.v1.MsgPayPacketFeeResponse", MsgPayPacketFeeResponse], - ["/ibc.applications.fee.v1.QueryIncentivizedPacketResponse", QueryIncentivizedPacketResponse], - ["/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse", QueryIncentivizedPacketsForChannelResponse], - ["/ibc.applications.fee.v1.QueryIncentivizedPacketsRequest", QueryIncentivizedPacketsRequest], + ["/ibc.applications.fee.v1.QueryCounterpartyPayeeResponse", QueryCounterpartyPayeeResponse], + ["/ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse", MsgPayPacketFeeAsyncResponse], + ["/ibc.applications.fee.v1.GenesisState", GenesisState], + ["/ibc.applications.fee.v1.PacketFee", PacketFee], ["/ibc.applications.fee.v1.QueryIncentivizedPacketsResponse", QueryIncentivizedPacketsResponse], - ["/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelRequest", QueryIncentivizedPacketsForChannelRequest], - ["/ibc.applications.fee.v1.QueryTotalAckFeesResponse", QueryTotalAckFeesResponse], - ["/ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest", QueryTotalTimeoutFeesRequest], + ["/ibc.applications.fee.v1.QueryIncentivizedPacketsForChannelResponse", QueryIncentivizedPacketsForChannelResponse], + ["/ibc.applications.fee.v1.QueryTotalAckFeesRequest", QueryTotalAckFeesRequest], ["/ibc.applications.fee.v1.QueryTotalTimeoutFeesResponse", QueryTotalTimeoutFeesResponse], - ["/ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest", QueryFeeEnabledChannelsRequest], - ["/ibc.applications.fee.v1.MsgPayPacketFee", MsgPayPacketFee], - ["/ibc.applications.fee.v1.PacketFee", PacketFee], - ["/ibc.applications.fee.v1.MsgRegisterPayeeResponse", MsgRegisterPayeeResponse], + ["/ibc.applications.fee.v1.RegisteredPayee", RegisteredPayee], + ["/ibc.applications.fee.v1.MsgPayPacketFeeAsync", MsgPayPacketFeeAsync], ["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse", MsgRegisterCounterpartyPayeeResponse], - ["/ibc.applications.fee.v1.QueryCounterpartyPayeeResponse", QueryCounterpartyPayeeResponse], + ["/ibc.applications.fee.v1.IncentivizedAcknowledgement", IncentivizedAcknowledgement], + ["/ibc.applications.fee.v1.Metadata", Metadata], + ["/ibc.applications.fee.v1.MsgRegisterPayee", MsgRegisterPayee], + ["/ibc.applications.fee.v1.Fee", Fee], + ["/ibc.applications.fee.v1.QueryTotalRecvFeesRequest", QueryTotalRecvFeesRequest], ["/ibc.applications.fee.v1.FeeEnabledChannel", FeeEnabledChannel], ["/ibc.applications.fee.v1.RegisteredCounterpartyPayee", RegisteredCounterpartyPayee], + ["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", MsgRegisterCounterpartyPayee], + ["/ibc.applications.fee.v1.PacketFees", PacketFees], + ["/ibc.applications.fee.v1.QueryTotalRecvFeesResponse", QueryTotalRecvFeesResponse], + ["/ibc.applications.fee.v1.QueryTotalAckFeesResponse", QueryTotalAckFeesResponse], + ["/ibc.applications.fee.v1.QueryTotalTimeoutFeesRequest", QueryTotalTimeoutFeesRequest], + ["/ibc.applications.fee.v1.QueryFeeEnabledChannelsResponse", QueryFeeEnabledChannelsResponse], ["/ibc.applications.fee.v1.ForwardRelayerAddress", ForwardRelayerAddress], - ["/ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse", MsgPayPacketFeeAsyncResponse], - ["/ibc.applications.fee.v1.QueryTotalRecvFeesRequest", QueryTotalRecvFeesRequest], + ["/ibc.applications.fee.v1.MsgRegisterPayeeResponse", MsgRegisterPayeeResponse], + ["/ibc.applications.fee.v1.MsgPayPacketFeeResponse", MsgPayPacketFeeResponse], + ["/ibc.applications.fee.v1.QueryIncentivizedPacketsRequest", QueryIncentivizedPacketsRequest], + ["/ibc.applications.fee.v1.QueryPayeeResponse", QueryPayeeResponse], + ["/ibc.applications.fee.v1.MsgPayPacketFee", MsgPayPacketFee], + ["/ibc.applications.fee.v1.QueryIncentivizedPacketRequest", QueryIncentivizedPacketRequest], + ["/ibc.applications.fee.v1.QueryIncentivizedPacketResponse", QueryIncentivizedPacketResponse], + ["/ibc.applications.fee.v1.QueryCounterpartyPayeeRequest", QueryCounterpartyPayeeRequest], + ["/ibc.applications.fee.v1.QueryFeeEnabledChannelsRequest", QueryFeeEnabledChannelsRequest], + ["/ibc.applications.fee.v1.QueryFeeEnabledChannelRequest", QueryFeeEnabledChannelRequest], + ["/ibc.applications.fee.v1.QueryFeeEnabledChannelResponse", QueryFeeEnabledChannelResponse], + ["/ibc.applications.fee.v1.IdentifiedPacketFees", IdentifiedPacketFees], ]; export { msgTypes }; diff --git a/ts-client/lib/ibc.applications.interchain_accounts.controller.v1/module.d.ts b/ts-client/lib/ibc.applications.interchain_accounts.controller.v1/module.d.ts index eb1813cf9..67cc11dfb 100644 --- a/ts-client/lib/ibc.applications.interchain_accounts.controller.v1/module.d.ts +++ b/ts-client/lib/ibc.applications.interchain_accounts.controller.v1/module.d.ts @@ -2,106 +2,106 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { MsgSendTxResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; import { Params } from "./types/ibc/applications/interchain_accounts/controller/v1/controller"; +import { MsgRegisterInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { QueryInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; +import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { MsgSendTxResponse } 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 { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; import { MsgRegisterInterchainAccount } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { QueryInterchainAccountRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { QueryInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { MsgRegisterInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; import { MsgSendTx } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -export { QueryParamsResponse, MsgSendTxResponse, MsgUpdateParams, Params, QueryParamsRequest, MsgRegisterInterchainAccount, MsgUpdateParamsResponse, QueryInterchainAccountRequest, QueryInterchainAccountResponse, MsgRegisterInterchainAccountResponse, MsgSendTx }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse; +import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +export { Params, MsgRegisterInterchainAccountResponse, QueryInterchainAccountResponse, MsgUpdateParams, MsgSendTxResponse, QueryInterchainAccountRequest, QueryParamsRequest, QueryParamsResponse, MsgRegisterInterchainAccount, MsgSendTx, MsgUpdateParamsResponse }; +type sendParamsParams = { + value: Params; fee?: StdFee; memo?: string; }; -type sendMsgSendTxResponseParams = { - value: MsgSendTxResponse; +type sendMsgRegisterInterchainAccountResponseParams = { + value: MsgRegisterInterchainAccountResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams; +type sendQueryInterchainAccountResponseParams = { + value: QueryInterchainAccountResponse; fee?: StdFee; memo?: string; }; -type sendParamsParams = { - value: Params; +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams; fee?: StdFee; memo?: string; }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest; +type sendMsgSendTxResponseParams = { + value: MsgSendTxResponse; fee?: StdFee; memo?: string; }; -type sendMsgRegisterInterchainAccountParams = { - value: MsgRegisterInterchainAccount; +type sendQueryInterchainAccountRequestParams = { + value: QueryInterchainAccountRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type sendQueryParamsRequestParams = { + value: QueryParamsRequest; fee?: StdFee; memo?: string; }; -type sendQueryInterchainAccountRequestParams = { - value: QueryInterchainAccountRequest; +type sendQueryParamsResponseParams = { + value: QueryParamsResponse; fee?: StdFee; memo?: string; }; -type sendQueryInterchainAccountResponseParams = { - value: QueryInterchainAccountResponse; +type sendMsgRegisterInterchainAccountParams = { + value: MsgRegisterInterchainAccount; fee?: StdFee; memo?: string; }; -type sendMsgRegisterInterchainAccountResponseParams = { - value: MsgRegisterInterchainAccountResponse; +type sendMsgSendTxParams = { + value: MsgSendTx; fee?: StdFee; memo?: string; }; -type sendMsgSendTxParams = { - value: MsgSendTx; +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; fee?: StdFee; memo?: string; }; -type queryParamsResponseParams = { - value: QueryParamsResponse; +type paramsParams = { + value: Params; }; -type msgSendTxResponseParams = { - value: MsgSendTxResponse; +type msgRegisterInterchainAccountResponseParams = { + value: MsgRegisterInterchainAccountResponse; +}; +type queryInterchainAccountResponseParams = { + value: QueryInterchainAccountResponse; }; type msgUpdateParamsParams = { value: MsgUpdateParams; }; -type paramsParams = { - value: Params; +type msgSendTxResponseParams = { + value: MsgSendTxResponse; +}; +type queryInterchainAccountRequestParams = { + value: QueryInterchainAccountRequest; }; type queryParamsRequestParams = { value: QueryParamsRequest; }; +type queryParamsResponseParams = { + value: QueryParamsResponse; +}; type msgRegisterInterchainAccountParams = { value: MsgRegisterInterchainAccount; }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; -}; -type queryInterchainAccountRequestParams = { - value: QueryInterchainAccountRequest; -}; -type queryInterchainAccountResponseParams = { - value: QueryInterchainAccountResponse; -}; -type msgRegisterInterchainAccountResponseParams = { - value: MsgRegisterInterchainAccountResponse; -}; type msgSendTxParams = { value: MsgSendTx; }; +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; +}; export declare const registry: Registry; interface TxClientOptions { addr: string; @@ -109,28 +109,28 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; - sendMsgSendTxResponse({ value, fee, memo }: sendMsgSendTxResponseParams): Promise; - sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; sendParams({ value, fee, memo }: sendParamsParams): Promise; + sendMsgRegisterInterchainAccountResponse({ value, fee, memo }: sendMsgRegisterInterchainAccountResponseParams): Promise; + sendQueryInterchainAccountResponse({ value, fee, memo }: sendQueryInterchainAccountResponseParams): Promise; + sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; + sendMsgSendTxResponse({ value, fee, memo }: sendMsgSendTxResponseParams): Promise; + sendQueryInterchainAccountRequest({ value, fee, memo }: sendQueryInterchainAccountRequestParams): Promise; sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; + sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; sendMsgRegisterInterchainAccount({ value, fee, memo }: sendMsgRegisterInterchainAccountParams): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; - sendQueryInterchainAccountRequest({ value, fee, memo }: sendQueryInterchainAccountRequestParams): Promise; - sendQueryInterchainAccountResponse({ value, fee, memo }: sendQueryInterchainAccountResponseParams): Promise; - sendMsgRegisterInterchainAccountResponse({ value, fee, memo }: sendMsgRegisterInterchainAccountResponseParams): Promise; sendMsgSendTx({ value, fee, memo }: sendMsgSendTxParams): Promise; - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; - msgSendTxResponse({ value }: msgSendTxResponseParams): EncodeObject; - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; + sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; params({ value }: paramsParams): EncodeObject; + msgRegisterInterchainAccountResponse({ value }: msgRegisterInterchainAccountResponseParams): EncodeObject; + queryInterchainAccountResponse({ value }: queryInterchainAccountResponseParams): EncodeObject; + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; + msgSendTxResponse({ value }: msgSendTxResponseParams): EncodeObject; + queryInterchainAccountRequest({ value }: queryInterchainAccountRequestParams): EncodeObject; queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; msgRegisterInterchainAccount({ value }: msgRegisterInterchainAccountParams): EncodeObject; - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; - queryInterchainAccountRequest({ value }: queryInterchainAccountRequestParams): EncodeObject; - queryInterchainAccountResponse({ value }: queryInterchainAccountResponseParams): EncodeObject; - msgRegisterInterchainAccountResponse({ value }: msgRegisterInterchainAccountResponseParams): EncodeObject; msgSendTx({ value }: msgSendTxParams): EncodeObject; + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/ibc.applications.interchain_accounts.controller.v1/module.js b/ts-client/lib/ibc.applications.interchain_accounts.controller.v1/module.js index 37cafc325..07bafa5b2 100644 --- a/ts-client/lib/ibc.applications.interchain_accounts.controller.v1/module.js +++ b/ts-client/lib/ibc.applications.interchain_accounts.controller.v1/module.js @@ -3,18 +3,18 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { MsgSendTxResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; import { Params } from "./types/ibc/applications/interchain_accounts/controller/v1/controller"; +import { MsgRegisterInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { QueryInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; +import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { MsgSendTxResponse } 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 { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; import { MsgRegisterInterchainAccount } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { QueryInterchainAccountRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { QueryInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { MsgRegisterInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; import { MsgSendTx } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -export { QueryParamsResponse, MsgSendTxResponse, MsgUpdateParams, Params, QueryParamsRequest, MsgRegisterInterchainAccount, MsgUpdateParamsResponse, QueryInterchainAccountRequest, QueryInterchainAccountResponse, MsgRegisterInterchainAccountResponse, MsgSendTx }; +import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +export { Params, MsgRegisterInterchainAccountResponse, QueryInterchainAccountResponse, MsgUpdateParams, MsgSendTxResponse, QueryInterchainAccountRequest, QueryParamsRequest, QueryParamsResponse, MsgRegisterInterchainAccount, MsgSendTx, MsgUpdateParamsResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -30,246 +30,246 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendQueryParamsResponse({ value, fee, memo }) { + async sendParams({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSendTxResponse({ value, fee, memo }) { + async sendMsgRegisterInterchainAccountResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSendTxResponse: 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.msgSendTxResponse({ value: MsgSendTxResponse.fromPartial(value) }); + let msg = this.msgRegisterInterchainAccountResponse({ value: MsgRegisterInterchainAccountResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSendTxResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRegisterInterchainAccountResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParams({ value, fee, memo }) { + async sendQueryInterchainAccountResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); + let msg = this.queryInterchainAccountResponse({ value: QueryInterchainAccountResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryInterchainAccountResponse: Could not broadcast Tx: ' + e.message); } }, - async sendParams({ value, fee, memo }) { + async sendMsgUpdateParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendParams: 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.params({ value: Params.fromPartial(value) }); + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsRequest({ value, fee, memo }) { + async sendMsgSendTxResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: 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.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); + let msg = this.msgSendTxResponse({ value: MsgSendTxResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSendTxResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRegisterInterchainAccount({ value, fee, memo }) { + async sendQueryInterchainAccountRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRegisterInterchainAccount: 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.msgRegisterInterchainAccount({ value: MsgRegisterInterchainAccount.fromPartial(value) }); + let msg = this.queryInterchainAccountRequest({ value: QueryInterchainAccountRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRegisterInterchainAccount: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryInterchainAccountRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }) { + async sendQueryParamsRequest({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryInterchainAccountRequest({ value, fee, memo }) { + async sendQueryParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryInterchainAccountRequest: 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.queryInterchainAccountRequest({ value: QueryInterchainAccountRequest.fromPartial(value) }); + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryInterchainAccountRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryInterchainAccountResponse({ value, fee, memo }) { + async sendMsgRegisterInterchainAccount({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryInterchainAccountResponse: 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.queryInterchainAccountResponse({ value: QueryInterchainAccountResponse.fromPartial(value) }); + let msg = this.msgRegisterInterchainAccount({ value: MsgRegisterInterchainAccount.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryInterchainAccountResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRegisterInterchainAccount: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRegisterInterchainAccountResponse({ value, fee, memo }) { + async sendMsgSendTx({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRegisterInterchainAccountResponse: 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.msgRegisterInterchainAccountResponse({ value: MsgRegisterInterchainAccountResponse.fromPartial(value) }); + let msg = this.msgSendTx({ value: MsgSendTx.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRegisterInterchainAccountResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSendTx: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSendTx({ value, fee, memo }) { + async sendMsgUpdateParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSendTx: 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.msgSendTx({ value: MsgSendTx.fromPartial(value) }); + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSendTx: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, - queryParamsResponse({ value }) { + params({ value }) { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.Params", value: Params.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Params: Could not create message: ' + e.message); } }, - msgSendTxResponse({ value }) { + msgRegisterInterchainAccountResponse({ value }) { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse", value: MsgSendTxResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse", value: MsgRegisterInterchainAccountResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSendTxResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRegisterInterchainAccountResponse: Could not create message: ' + e.message); } }, - msgUpdateParams({ value }) { + queryInterchainAccountResponse({ value }) { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse", value: QueryInterchainAccountResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); + throw new Error('TxClient:QueryInterchainAccountResponse: Could not create message: ' + e.message); } }, - params({ value }) { + msgUpdateParams({ value }) { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.Params", value: Params.fromPartial(value) }; + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Params: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); } }, - queryParamsRequest({ value }) { + msgSendTxResponse({ value }) { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse", value: MsgSendTxResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSendTxResponse: Could not create message: ' + e.message); } }, - msgRegisterInterchainAccount({ value }) { + queryInterchainAccountRequest({ value }) { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount", value: MsgRegisterInterchainAccount.fromPartial(value) }; + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest", value: QueryInterchainAccountRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRegisterInterchainAccount: Could not create message: ' + e.message); + throw new Error('TxClient:QueryInterchainAccountRequest: Could not create message: ' + e.message); } }, - msgUpdateParamsResponse({ value }) { + queryParamsRequest({ value }) { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); } }, - queryInterchainAccountRequest({ value }) { + queryParamsResponse({ value }) { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest", value: QueryInterchainAccountRequest.fromPartial(value) }; + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryInterchainAccountRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); } }, - queryInterchainAccountResponse({ value }) { + msgRegisterInterchainAccount({ value }) { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse", value: QueryInterchainAccountResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount", value: MsgRegisterInterchainAccount.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryInterchainAccountResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRegisterInterchainAccount: Could not create message: ' + e.message); } }, - msgRegisterInterchainAccountResponse({ value }) { + msgSendTx({ value }) { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse", value: MsgRegisterInterchainAccountResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx", value: MsgSendTx.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRegisterInterchainAccountResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSendTx: Could not create message: ' + e.message); } }, - msgSendTx({ value }) { + msgUpdateParamsResponse({ value }) { try { - return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx", value: MsgSendTx.fromPartial(value) }; + return { typeUrl: "/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSendTx: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/ibc.applications.interchain_accounts.controller.v1/registry.js b/ts-client/lib/ibc.applications.interchain_accounts.controller.v1/registry.js index f9bde88bf..88cf252f6 100644 --- a/ts-client/lib/ibc.applications.interchain_accounts.controller.v1/registry.js +++ b/ts-client/lib/ibc.applications.interchain_accounts.controller.v1/registry.js @@ -1,25 +1,25 @@ -import { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { MsgSendTxResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; import { Params } from "./types/ibc/applications/interchain_accounts/controller/v1/controller"; +import { MsgRegisterInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { QueryInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; +import { MsgUpdateParams } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { MsgSendTxResponse } 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 { QueryParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; import { MsgRegisterInterchainAccount } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; -import { QueryInterchainAccountRequest } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { QueryInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/query"; -import { MsgRegisterInterchainAccountResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; import { MsgSendTx } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; +import { MsgUpdateParamsResponse } from "./types/ibc/applications/interchain_accounts/controller/v1/tx"; const msgTypes = [ - ["/ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse", QueryParamsResponse], - ["/ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse", MsgSendTxResponse], - ["/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams", MsgUpdateParams], ["/ibc.applications.interchain_accounts.controller.v1.Params", Params], + ["/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse", MsgRegisterInterchainAccountResponse], + ["/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse", QueryInterchainAccountResponse], + ["/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParams", MsgUpdateParams], + ["/ibc.applications.interchain_accounts.controller.v1.MsgSendTxResponse", MsgSendTxResponse], + ["/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest", QueryInterchainAccountRequest], ["/ibc.applications.interchain_accounts.controller.v1.QueryParamsRequest", QueryParamsRequest], + ["/ibc.applications.interchain_accounts.controller.v1.QueryParamsResponse", QueryParamsResponse], ["/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount", MsgRegisterInterchainAccount], - ["/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountRequest", QueryInterchainAccountRequest], - ["/ibc.applications.interchain_accounts.controller.v1.QueryInterchainAccountResponse", QueryInterchainAccountResponse], - ["/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccountResponse", MsgRegisterInterchainAccountResponse], ["/ibc.applications.interchain_accounts.controller.v1.MsgSendTx", MsgSendTx], + ["/ibc.applications.interchain_accounts.controller.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/ibc.applications.transfer.v1/module.d.ts b/ts-client/lib/ibc.applications.transfer.v1/module.d.ts index 41d1d58da..6580ec1f2 100644 --- a/ts-client/lib/ibc.applications.transfer.v1/module.d.ts +++ b/ts-client/lib/ibc.applications.transfer.v1/module.d.ts @@ -4,26 +4,26 @@ import { IgniteClient } from "../client"; import { Api } from "./rest"; import { QueryDenomTraceResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryDenomTracesRequest } from "./types/ibc/applications/transfer/v1/query"; -import { QueryDenomTracesResponse } from "./types/ibc/applications/transfer/v1/query"; -import { QueryParamsResponse } from "./types/ibc/applications/transfer/v1/query"; -import { MsgUpdateParamsResponse } from "./types/ibc/applications/transfer/v1/tx"; +import { QueryDenomHashResponse } 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 { QueryParamsRequest } from "./types/ibc/applications/transfer/v1/query"; -import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz"; import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx"; +import { QueryParamsRequest } from "./types/ibc/applications/transfer/v1/query"; +import { Allocation } from "./types/ibc/applications/transfer/v1/authz"; import { QueryEscrowAddressResponse } from "./types/ibc/applications/transfer/v1/query"; -import { QueryTotalEscrowForDenomResponse } from "./types/ibc/applications/transfer/v1/query"; -import { DenomTrace } from "./types/ibc/applications/transfer/v1/transfer"; -import { QueryDenomTraceRequest } from "./types/ibc/applications/transfer/v1/query"; -import { QueryEscrowAddressRequest } from "./types/ibc/applications/transfer/v1/query"; -import { QueryTotalEscrowForDenomRequest } from "./types/ibc/applications/transfer/v1/query"; import { GenesisState } from "./types/ibc/applications/transfer/v1/genesis"; -import { QueryDenomHashResponse } from "./types/ibc/applications/transfer/v1/query"; -import { MsgUpdateParams } from "./types/ibc/applications/transfer/v1/tx"; -import { Allocation } from "./types/ibc/applications/transfer/v1/authz"; import { MsgTransferResponse } from "./types/ibc/applications/transfer/v1/tx"; +import { MsgUpdateParamsResponse } from "./types/ibc/applications/transfer/v1/tx"; +import { QueryDenomTraceRequest } from "./types/ibc/applications/transfer/v1/query"; +import { QueryDenomTracesResponse } from "./types/ibc/applications/transfer/v1/query"; +import { QueryParamsResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryDenomHashRequest } from "./types/ibc/applications/transfer/v1/query"; -export { QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomTracesResponse, QueryParamsResponse, MsgUpdateParamsResponse, Params, QueryParamsRequest, TransferAuthorization, MsgTransfer, QueryEscrowAddressResponse, QueryTotalEscrowForDenomResponse, DenomTrace, QueryDenomTraceRequest, QueryEscrowAddressRequest, QueryTotalEscrowForDenomRequest, GenesisState, QueryDenomHashResponse, MsgUpdateParams, Allocation, MsgTransferResponse, QueryDenomHashRequest }; +import { QueryEscrowAddressRequest } from "./types/ibc/applications/transfer/v1/query"; +import { DenomTrace } from "./types/ibc/applications/transfer/v1/transfer"; +import { QueryTotalEscrowForDenomResponse } from "./types/ibc/applications/transfer/v1/query"; +import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz"; +import { MsgUpdateParams } from "./types/ibc/applications/transfer/v1/tx"; +export { QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomHashResponse, QueryTotalEscrowForDenomRequest, Params, MsgTransfer, QueryParamsRequest, Allocation, QueryEscrowAddressResponse, GenesisState, MsgTransferResponse, MsgUpdateParamsResponse, QueryDenomTraceRequest, QueryDenomTracesResponse, QueryParamsResponse, QueryDenomHashRequest, QueryEscrowAddressRequest, DenomTrace, QueryTotalEscrowForDenomResponse, TransferAuthorization, MsgUpdateParams }; type sendQueryDenomTraceResponseParams = { value: QueryDenomTraceResponse; fee?: StdFee; @@ -34,23 +34,23 @@ type sendQueryDenomTracesRequestParams = { fee?: StdFee; memo?: string; }; -type sendQueryDenomTracesResponseParams = { - value: QueryDenomTracesResponse; +type sendQueryDenomHashResponseParams = { + value: QueryDenomHashResponse; fee?: StdFee; memo?: string; }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse; +type sendQueryTotalEscrowForDenomRequestParams = { + value: QueryTotalEscrowForDenomRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type sendParamsParams = { + value: Params; fee?: StdFee; memo?: string; }; -type sendParamsParams = { - value: Params; +type sendMsgTransferParams = { + value: MsgTransfer; fee?: StdFee; memo?: string; }; @@ -59,28 +59,28 @@ type sendQueryParamsRequestParams = { fee?: StdFee; memo?: string; }; -type sendTransferAuthorizationParams = { - value: TransferAuthorization; +type sendAllocationParams = { + value: Allocation; fee?: StdFee; memo?: string; }; -type sendMsgTransferParams = { - value: MsgTransfer; +type sendQueryEscrowAddressResponseParams = { + value: QueryEscrowAddressResponse; fee?: StdFee; memo?: string; }; -type sendQueryEscrowAddressResponseParams = { - value: QueryEscrowAddressResponse; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendQueryTotalEscrowForDenomResponseParams = { - value: QueryTotalEscrowForDenomResponse; +type sendMsgTransferResponseParams = { + value: MsgTransferResponse; fee?: StdFee; memo?: string; }; -type sendDenomTraceParams = { - value: DenomTrace; +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; fee?: StdFee; memo?: string; }; @@ -89,43 +89,43 @@ type sendQueryDenomTraceRequestParams = { fee?: StdFee; memo?: string; }; -type sendQueryEscrowAddressRequestParams = { - value: QueryEscrowAddressRequest; +type sendQueryDenomTracesResponseParams = { + value: QueryDenomTracesResponse; fee?: StdFee; memo?: string; }; -type sendQueryTotalEscrowForDenomRequestParams = { - value: QueryTotalEscrowForDenomRequest; +type sendQueryParamsResponseParams = { + value: QueryParamsResponse; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendQueryDenomHashRequestParams = { + value: QueryDenomHashRequest; fee?: StdFee; memo?: string; }; -type sendQueryDenomHashResponseParams = { - value: QueryDenomHashResponse; +type sendQueryEscrowAddressRequestParams = { + value: QueryEscrowAddressRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams; +type sendDenomTraceParams = { + value: DenomTrace; fee?: StdFee; memo?: string; }; -type sendAllocationParams = { - value: Allocation; +type sendQueryTotalEscrowForDenomResponseParams = { + value: QueryTotalEscrowForDenomResponse; fee?: StdFee; memo?: string; }; -type sendMsgTransferResponseParams = { - value: MsgTransferResponse; +type sendTransferAuthorizationParams = { + value: TransferAuthorization; fee?: StdFee; memo?: string; }; -type sendQueryDenomHashRequestParams = { - value: QueryDenomHashRequest; +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams; fee?: StdFee; memo?: string; }; @@ -135,63 +135,63 @@ type queryDenomTraceResponseParams = { type queryDenomTracesRequestParams = { value: QueryDenomTracesRequest; }; -type queryDenomTracesResponseParams = { - value: QueryDenomTracesResponse; -}; -type queryParamsResponseParams = { - value: QueryParamsResponse; +type queryDenomHashResponseParams = { + value: QueryDenomHashResponse; }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type queryTotalEscrowForDenomRequestParams = { + value: QueryTotalEscrowForDenomRequest; }; type paramsParams = { value: Params; }; +type msgTransferParams = { + value: MsgTransfer; +}; type queryParamsRequestParams = { value: QueryParamsRequest; }; -type transferAuthorizationParams = { - value: TransferAuthorization; -}; -type msgTransferParams = { - value: MsgTransfer; +type allocationParams = { + value: Allocation; }; type queryEscrowAddressResponseParams = { value: QueryEscrowAddressResponse; }; -type queryTotalEscrowForDenomResponseParams = { - value: QueryTotalEscrowForDenomResponse; +type genesisStateParams = { + value: GenesisState; }; -type denomTraceParams = { - value: DenomTrace; +type msgTransferResponseParams = { + value: MsgTransferResponse; +}; +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; }; type queryDenomTraceRequestParams = { value: QueryDenomTraceRequest; }; +type queryDenomTracesResponseParams = { + value: QueryDenomTracesResponse; +}; +type queryParamsResponseParams = { + value: QueryParamsResponse; +}; +type queryDenomHashRequestParams = { + value: QueryDenomHashRequest; +}; type queryEscrowAddressRequestParams = { value: QueryEscrowAddressRequest; }; -type queryTotalEscrowForDenomRequestParams = { - value: QueryTotalEscrowForDenomRequest; +type denomTraceParams = { + value: DenomTrace; }; -type genesisStateParams = { - value: GenesisState; +type queryTotalEscrowForDenomResponseParams = { + value: QueryTotalEscrowForDenomResponse; }; -type queryDenomHashResponseParams = { - value: QueryDenomHashResponse; +type transferAuthorizationParams = { + value: TransferAuthorization; }; type msgUpdateParamsParams = { value: MsgUpdateParams; }; -type allocationParams = { - value: Allocation; -}; -type msgTransferResponseParams = { - value: MsgTransferResponse; -}; -type queryDenomHashRequestParams = { - value: QueryDenomHashRequest; -}; export declare const registry: Registry; interface TxClientOptions { addr: string; @@ -201,46 +201,46 @@ interface TxClientOptions { export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { sendQueryDenomTraceResponse({ value, fee, memo }: sendQueryDenomTraceResponseParams): Promise; sendQueryDenomTracesRequest({ value, fee, memo }: sendQueryDenomTracesRequestParams): Promise; - sendQueryDenomTracesResponse({ value, fee, memo }: sendQueryDenomTracesResponseParams): Promise; - sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; + sendQueryDenomHashResponse({ value, fee, memo }: sendQueryDenomHashResponseParams): Promise; + sendQueryTotalEscrowForDenomRequest({ value, fee, memo }: sendQueryTotalEscrowForDenomRequestParams): Promise; sendParams({ value, fee, memo }: sendParamsParams): Promise; - sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; - sendTransferAuthorization({ value, fee, memo }: sendTransferAuthorizationParams): Promise; sendMsgTransfer({ value, fee, memo }: sendMsgTransferParams): Promise; + sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; + sendAllocation({ value, fee, memo }: sendAllocationParams): Promise; sendQueryEscrowAddressResponse({ value, fee, memo }: sendQueryEscrowAddressResponseParams): Promise; - sendQueryTotalEscrowForDenomResponse({ value, fee, memo }: sendQueryTotalEscrowForDenomResponseParams): Promise; - sendDenomTrace({ value, fee, memo }: sendDenomTraceParams): Promise; - sendQueryDenomTraceRequest({ value, fee, memo }: sendQueryDenomTraceRequestParams): Promise; - sendQueryEscrowAddressRequest({ value, fee, memo }: sendQueryEscrowAddressRequestParams): Promise; - sendQueryTotalEscrowForDenomRequest({ value, fee, memo }: sendQueryTotalEscrowForDenomRequestParams): Promise; sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendQueryDenomHashResponse({ value, fee, memo }: sendQueryDenomHashResponseParams): Promise; - sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; - sendAllocation({ value, fee, memo }: sendAllocationParams): Promise; sendMsgTransferResponse({ value, fee, memo }: sendMsgTransferResponseParams): Promise; + sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; + sendQueryDenomTraceRequest({ value, fee, memo }: sendQueryDenomTraceRequestParams): Promise; + sendQueryDenomTracesResponse({ value, fee, memo }: sendQueryDenomTracesResponseParams): Promise; + sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; sendQueryDenomHashRequest({ value, fee, memo }: sendQueryDenomHashRequestParams): Promise; + sendQueryEscrowAddressRequest({ value, fee, memo }: sendQueryEscrowAddressRequestParams): Promise; + sendDenomTrace({ value, fee, memo }: sendDenomTraceParams): Promise; + sendQueryTotalEscrowForDenomResponse({ value, fee, memo }: sendQueryTotalEscrowForDenomResponseParams): Promise; + sendTransferAuthorization({ value, fee, memo }: sendTransferAuthorizationParams): Promise; + sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; queryDenomTraceResponse({ value }: queryDenomTraceResponseParams): EncodeObject; queryDenomTracesRequest({ value }: queryDenomTracesRequestParams): EncodeObject; - queryDenomTracesResponse({ value }: queryDenomTracesResponseParams): EncodeObject; - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; + queryDenomHashResponse({ value }: queryDenomHashResponseParams): EncodeObject; + queryTotalEscrowForDenomRequest({ value }: queryTotalEscrowForDenomRequestParams): EncodeObject; params({ value }: paramsParams): EncodeObject; - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; - transferAuthorization({ value }: transferAuthorizationParams): EncodeObject; msgTransfer({ value }: msgTransferParams): EncodeObject; + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; + allocation({ value }: allocationParams): EncodeObject; queryEscrowAddressResponse({ value }: queryEscrowAddressResponseParams): EncodeObject; - queryTotalEscrowForDenomResponse({ value }: queryTotalEscrowForDenomResponseParams): EncodeObject; - denomTrace({ value }: denomTraceParams): EncodeObject; - queryDenomTraceRequest({ value }: queryDenomTraceRequestParams): EncodeObject; - queryEscrowAddressRequest({ value }: queryEscrowAddressRequestParams): EncodeObject; - queryTotalEscrowForDenomRequest({ value }: queryTotalEscrowForDenomRequestParams): EncodeObject; genesisState({ value }: genesisStateParams): EncodeObject; - queryDenomHashResponse({ value }: queryDenomHashResponseParams): EncodeObject; - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; - allocation({ value }: allocationParams): EncodeObject; msgTransferResponse({ value }: msgTransferResponseParams): EncodeObject; + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; + queryDenomTraceRequest({ value }: queryDenomTraceRequestParams): EncodeObject; + queryDenomTracesResponse({ value }: queryDenomTracesResponseParams): EncodeObject; + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; queryDenomHashRequest({ value }: queryDenomHashRequestParams): EncodeObject; + queryEscrowAddressRequest({ value }: queryEscrowAddressRequestParams): EncodeObject; + denomTrace({ value }: denomTraceParams): EncodeObject; + queryTotalEscrowForDenomResponse({ value }: queryTotalEscrowForDenomResponseParams): EncodeObject; + transferAuthorization({ value }: transferAuthorizationParams): EncodeObject; + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/ibc.applications.transfer.v1/module.js b/ts-client/lib/ibc.applications.transfer.v1/module.js index 76f4938d7..521f2642a 100644 --- a/ts-client/lib/ibc.applications.transfer.v1/module.js +++ b/ts-client/lib/ibc.applications.transfer.v1/module.js @@ -5,26 +5,26 @@ import { msgTypes } from './registry'; import { Api } from "./rest"; import { QueryDenomTraceResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryDenomTracesRequest } from "./types/ibc/applications/transfer/v1/query"; -import { QueryDenomTracesResponse } from "./types/ibc/applications/transfer/v1/query"; -import { QueryParamsResponse } from "./types/ibc/applications/transfer/v1/query"; -import { MsgUpdateParamsResponse } from "./types/ibc/applications/transfer/v1/tx"; +import { QueryDenomHashResponse } 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 { QueryParamsRequest } from "./types/ibc/applications/transfer/v1/query"; -import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz"; import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx"; +import { QueryParamsRequest } from "./types/ibc/applications/transfer/v1/query"; +import { Allocation } from "./types/ibc/applications/transfer/v1/authz"; import { QueryEscrowAddressResponse } from "./types/ibc/applications/transfer/v1/query"; -import { QueryTotalEscrowForDenomResponse } from "./types/ibc/applications/transfer/v1/query"; -import { DenomTrace } from "./types/ibc/applications/transfer/v1/transfer"; -import { QueryDenomTraceRequest } from "./types/ibc/applications/transfer/v1/query"; -import { QueryEscrowAddressRequest } from "./types/ibc/applications/transfer/v1/query"; -import { QueryTotalEscrowForDenomRequest } from "./types/ibc/applications/transfer/v1/query"; import { GenesisState } from "./types/ibc/applications/transfer/v1/genesis"; -import { QueryDenomHashResponse } from "./types/ibc/applications/transfer/v1/query"; -import { MsgUpdateParams } from "./types/ibc/applications/transfer/v1/tx"; -import { Allocation } from "./types/ibc/applications/transfer/v1/authz"; import { MsgTransferResponse } from "./types/ibc/applications/transfer/v1/tx"; +import { MsgUpdateParamsResponse } from "./types/ibc/applications/transfer/v1/tx"; +import { QueryDenomTraceRequest } from "./types/ibc/applications/transfer/v1/query"; +import { QueryDenomTracesResponse } from "./types/ibc/applications/transfer/v1/query"; +import { QueryParamsResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryDenomHashRequest } from "./types/ibc/applications/transfer/v1/query"; -export { QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomTracesResponse, QueryParamsResponse, MsgUpdateParamsResponse, Params, QueryParamsRequest, TransferAuthorization, MsgTransfer, QueryEscrowAddressResponse, QueryTotalEscrowForDenomResponse, DenomTrace, QueryDenomTraceRequest, QueryEscrowAddressRequest, QueryTotalEscrowForDenomRequest, GenesisState, QueryDenomHashResponse, MsgUpdateParams, Allocation, MsgTransferResponse, QueryDenomHashRequest }; +import { QueryEscrowAddressRequest } from "./types/ibc/applications/transfer/v1/query"; +import { DenomTrace } from "./types/ibc/applications/transfer/v1/transfer"; +import { QueryTotalEscrowForDenomResponse } from "./types/ibc/applications/transfer/v1/query"; +import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz"; +import { MsgUpdateParams } from "./types/ibc/applications/transfer/v1/tx"; +export { QueryDenomTraceResponse, QueryDenomTracesRequest, QueryDenomHashResponse, QueryTotalEscrowForDenomRequest, Params, MsgTransfer, QueryParamsRequest, Allocation, QueryEscrowAddressResponse, GenesisState, MsgTransferResponse, MsgUpdateParamsResponse, QueryDenomTraceRequest, QueryDenomTracesResponse, QueryParamsResponse, QueryDenomHashRequest, QueryEscrowAddressRequest, DenomTrace, QueryTotalEscrowForDenomResponse, TransferAuthorization, MsgUpdateParams }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -68,60 +68,60 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendQueryDenomTracesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDenomTracesResponse({ value, fee, memo }) { + async sendQueryDenomHashResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDenomTracesResponse: 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.queryDenomTracesResponse({ value: QueryDenomTracesResponse.fromPartial(value) }); + let msg = this.queryDenomHashResponse({ value: QueryDenomHashResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDenomTracesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDenomHashResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsResponse({ value, fee, memo }) { + async sendQueryTotalEscrowForDenomRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: 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.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); + let msg = this.queryTotalEscrowForDenomRequest({ value: QueryTotalEscrowForDenomRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTotalEscrowForDenomRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }) { + async sendParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: 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.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); + let msg = this.params({ value: Params.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); } }, - async sendParams({ value, fee, memo }) { + async sendMsgTransfer({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgTransfer: Could not broadcast Tx: ' + e.message); } }, async sendQueryParamsRequest({ value, fee, memo }) { @@ -138,74 +138,74 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendTransferAuthorization({ value, fee, memo }) { + async sendAllocation({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTransferAuthorization: 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.transferAuthorization({ value: TransferAuthorization.fromPartial(value) }); + let msg = this.allocation({ value: Allocation.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTransferAuthorization: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendAllocation: Could not broadcast Tx: ' + e.message); } }, - async sendMsgTransfer({ value, fee, memo }) { + async sendQueryEscrowAddressResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgTransfer: 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.msgTransfer({ value: MsgTransfer.fromPartial(value) }); + let msg = this.queryEscrowAddressResponse({ value: QueryEscrowAddressResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgTransfer: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryEscrowAddressResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryEscrowAddressResponse({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryEscrowAddressResponse: 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.queryEscrowAddressResponse({ value: QueryEscrowAddressResponse.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryEscrowAddressResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendQueryTotalEscrowForDenomResponse({ value, fee, memo }) { + async sendMsgTransferResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTotalEscrowForDenomResponse: 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.queryTotalEscrowForDenomResponse({ value: QueryTotalEscrowForDenomResponse.fromPartial(value) }); + let msg = this.msgTransferResponse({ value: MsgTransferResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTotalEscrowForDenomResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgTransferResponse: Could not broadcast Tx: ' + e.message); } }, - async sendDenomTrace({ value, fee, memo }) { + async sendMsgUpdateParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendDenomTrace: 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.denomTrace({ value: DenomTrace.fromPartial(value) }); + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendDenomTrace: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, async sendQueryDenomTraceRequest({ value, fee, memo }) { @@ -222,116 +222,116 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendQueryDenomTraceRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryEscrowAddressRequest({ value, fee, memo }) { + async sendQueryDenomTracesResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryEscrowAddressRequest: 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.queryEscrowAddressRequest({ value: QueryEscrowAddressRequest.fromPartial(value) }); + let msg = this.queryDenomTracesResponse({ value: QueryDenomTracesResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryEscrowAddressRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDenomTracesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryTotalEscrowForDenomRequest({ value, fee, memo }) { + async sendQueryParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryTotalEscrowForDenomRequest: 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.queryTotalEscrowForDenomRequest({ value: QueryTotalEscrowForDenomRequest.fromPartial(value) }); + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryTotalEscrowForDenomRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendQueryDenomHashRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.fromPartial(value) }); + let msg = this.queryDenomHashRequest({ value: QueryDenomHashRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryDenomHashRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDenomHashResponse({ value, fee, memo }) { + async sendQueryEscrowAddressRequest({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendQueryDenomHashResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryEscrowAddressRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParams({ value, fee, memo }) { + async sendDenomTrace({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendDenomTrace: Unable to 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.denomTrace({ value: DenomTrace.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendDenomTrace: Could not broadcast Tx: ' + e.message); } }, - async sendAllocation({ value, fee, memo }) { + async sendQueryTotalEscrowForDenomResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendAllocation: 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.allocation({ value: Allocation.fromPartial(value) }); + let msg = this.queryTotalEscrowForDenomResponse({ value: QueryTotalEscrowForDenomResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendAllocation: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryTotalEscrowForDenomResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgTransferResponse({ value, fee, memo }) { + async sendTransferAuthorization({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgTransferResponse: 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.msgTransferResponse({ value: MsgTransferResponse.fromPartial(value) }); + let msg = this.transferAuthorization({ value: TransferAuthorization.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgTransferResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTransferAuthorization: Could not broadcast Tx: ' + e.message); } }, - async sendQueryDenomHashRequest({ value, fee, memo }) { + async sendMsgUpdateParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryDenomHashRequest: 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.queryDenomHashRequest({ value: QueryDenomHashRequest.fromPartial(value) }); + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryDenomHashRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); } }, queryDenomTraceResponse({ value }) { @@ -350,36 +350,36 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:QueryDenomTracesRequest: Could not create message: ' + e.message); } }, - queryDenomTracesResponse({ value }) { + queryDenomHashResponse({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", value: QueryDenomTracesResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", value: QueryDenomHashResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDenomTracesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDenomHashResponse: Could not create message: ' + e.message); } }, - queryParamsResponse({ value }) { + queryTotalEscrowForDenomRequest({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest", value: QueryTotalEscrowForDenomRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTotalEscrowForDenomRequest: Could not create message: ' + e.message); } }, - msgUpdateParamsResponse({ value }) { + params({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.Params", value: Params.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Params: Could not create message: ' + e.message); } }, - params({ value }) { + msgTransfer({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.Params", value: Params.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", value: MsgTransfer.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Params: Could not create message: ' + e.message); + throw new Error('TxClient:MsgTransfer: Could not create message: ' + e.message); } }, queryParamsRequest({ value }) { @@ -390,44 +390,44 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); } }, - transferAuthorization({ value }) { + allocation({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.TransferAuthorization", value: TransferAuthorization.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.Allocation", value: Allocation.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:TransferAuthorization: Could not create message: ' + e.message); + throw new Error('TxClient:Allocation: Could not create message: ' + e.message); } }, - msgTransfer({ value }) { + queryEscrowAddressResponse({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.MsgTransfer", value: MsgTransfer.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", value: QueryEscrowAddressResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgTransfer: Could not create message: ' + e.message); + throw new Error('TxClient:QueryEscrowAddressResponse: Could not create message: ' + e.message); } }, - queryEscrowAddressResponse({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse", value: QueryEscrowAddressResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryEscrowAddressResponse: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - queryTotalEscrowForDenomResponse({ value }) { + msgTransferResponse({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse", value: QueryTotalEscrowForDenomResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", value: MsgTransferResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTotalEscrowForDenomResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgTransferResponse: Could not create message: ' + e.message); } }, - denomTrace({ value }) { + msgUpdateParamsResponse({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.DenomTrace", value: DenomTrace.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:DenomTrace: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); } }, queryDenomTraceRequest({ value }) { @@ -438,68 +438,68 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:QueryDenomTraceRequest: Could not create message: ' + e.message); } }, - queryEscrowAddressRequest({ value }) { + queryDenomTracesResponse({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", value: QueryEscrowAddressRequest.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomTracesResponse", value: QueryDenomTracesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryEscrowAddressRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDenomTracesResponse: Could not create message: ' + e.message); } }, - queryTotalEscrowForDenomRequest({ value }) { + queryParamsResponse({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest", value: QueryTotalEscrowForDenomRequest.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryTotalEscrowForDenomRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); } }, - genesisState({ value }) { + queryDenomHashRequest({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", value: QueryDenomHashRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:QueryDenomHashRequest: Could not create message: ' + e.message); } }, - queryDenomHashResponse({ value }) { + queryEscrowAddressRequest({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse", value: QueryDenomHashResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest", value: QueryEscrowAddressRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDenomHashResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryEscrowAddressRequest: Could not create message: ' + e.message); } }, - msgUpdateParams({ value }) { + denomTrace({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.DenomTrace", value: DenomTrace.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); + throw new Error('TxClient:DenomTrace: Could not create message: ' + e.message); } }, - allocation({ value }) { + queryTotalEscrowForDenomResponse({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.Allocation", value: Allocation.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse", value: QueryTotalEscrowForDenomResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Allocation: Could not create message: ' + e.message); + throw new Error('TxClient:QueryTotalEscrowForDenomResponse: Could not create message: ' + e.message); } }, - msgTransferResponse({ value }) { + transferAuthorization({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.MsgTransferResponse", value: MsgTransferResponse.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.TransferAuthorization", value: TransferAuthorization.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgTransferResponse: Could not create message: ' + e.message); + throw new Error('TxClient:TransferAuthorization: Could not create message: ' + e.message); } }, - queryDenomHashRequest({ value }) { + msgUpdateParams({ value }) { try { - return { typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest", value: QueryDenomHashRequest.fromPartial(value) }; + return { typeUrl: "/ibc.applications.transfer.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryDenomHashRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/ibc.applications.transfer.v1/registry.js b/ts-client/lib/ibc.applications.transfer.v1/registry.js index fe3a97895..fc0ce7d5a 100644 --- a/ts-client/lib/ibc.applications.transfer.v1/registry.js +++ b/ts-client/lib/ibc.applications.transfer.v1/registry.js @@ -1,45 +1,45 @@ import { QueryDenomTraceResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryDenomTracesRequest } from "./types/ibc/applications/transfer/v1/query"; -import { QueryDenomTracesResponse } from "./types/ibc/applications/transfer/v1/query"; -import { QueryParamsResponse } from "./types/ibc/applications/transfer/v1/query"; -import { MsgUpdateParamsResponse } from "./types/ibc/applications/transfer/v1/tx"; +import { QueryDenomHashResponse } 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 { QueryParamsRequest } from "./types/ibc/applications/transfer/v1/query"; -import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz"; import { MsgTransfer } from "./types/ibc/applications/transfer/v1/tx"; +import { QueryParamsRequest } from "./types/ibc/applications/transfer/v1/query"; +import { Allocation } from "./types/ibc/applications/transfer/v1/authz"; import { QueryEscrowAddressResponse } from "./types/ibc/applications/transfer/v1/query"; -import { QueryTotalEscrowForDenomResponse } from "./types/ibc/applications/transfer/v1/query"; -import { DenomTrace } from "./types/ibc/applications/transfer/v1/transfer"; -import { QueryDenomTraceRequest } from "./types/ibc/applications/transfer/v1/query"; -import { QueryEscrowAddressRequest } from "./types/ibc/applications/transfer/v1/query"; -import { QueryTotalEscrowForDenomRequest } from "./types/ibc/applications/transfer/v1/query"; import { GenesisState } from "./types/ibc/applications/transfer/v1/genesis"; -import { QueryDenomHashResponse } from "./types/ibc/applications/transfer/v1/query"; -import { MsgUpdateParams } from "./types/ibc/applications/transfer/v1/tx"; -import { Allocation } from "./types/ibc/applications/transfer/v1/authz"; import { MsgTransferResponse } from "./types/ibc/applications/transfer/v1/tx"; +import { MsgUpdateParamsResponse } from "./types/ibc/applications/transfer/v1/tx"; +import { QueryDenomTraceRequest } from "./types/ibc/applications/transfer/v1/query"; +import { QueryDenomTracesResponse } from "./types/ibc/applications/transfer/v1/query"; +import { QueryParamsResponse } from "./types/ibc/applications/transfer/v1/query"; import { QueryDenomHashRequest } from "./types/ibc/applications/transfer/v1/query"; +import { QueryEscrowAddressRequest } from "./types/ibc/applications/transfer/v1/query"; +import { DenomTrace } from "./types/ibc/applications/transfer/v1/transfer"; +import { QueryTotalEscrowForDenomResponse } from "./types/ibc/applications/transfer/v1/query"; +import { TransferAuthorization } from "./types/ibc/applications/transfer/v1/authz"; +import { MsgUpdateParams } from "./types/ibc/applications/transfer/v1/tx"; const msgTypes = [ ["/ibc.applications.transfer.v1.QueryDenomTraceResponse", QueryDenomTraceResponse], ["/ibc.applications.transfer.v1.QueryDenomTracesRequest", QueryDenomTracesRequest], - ["/ibc.applications.transfer.v1.QueryDenomTracesResponse", QueryDenomTracesResponse], - ["/ibc.applications.transfer.v1.QueryParamsResponse", QueryParamsResponse], - ["/ibc.applications.transfer.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/ibc.applications.transfer.v1.QueryDenomHashResponse", QueryDenomHashResponse], + ["/ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest", QueryTotalEscrowForDenomRequest], ["/ibc.applications.transfer.v1.Params", Params], - ["/ibc.applications.transfer.v1.QueryParamsRequest", QueryParamsRequest], - ["/ibc.applications.transfer.v1.TransferAuthorization", TransferAuthorization], ["/ibc.applications.transfer.v1.MsgTransfer", MsgTransfer], + ["/ibc.applications.transfer.v1.QueryParamsRequest", QueryParamsRequest], + ["/ibc.applications.transfer.v1.Allocation", Allocation], ["/ibc.applications.transfer.v1.QueryEscrowAddressResponse", QueryEscrowAddressResponse], - ["/ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse", QueryTotalEscrowForDenomResponse], - ["/ibc.applications.transfer.v1.DenomTrace", DenomTrace], - ["/ibc.applications.transfer.v1.QueryDenomTraceRequest", QueryDenomTraceRequest], - ["/ibc.applications.transfer.v1.QueryEscrowAddressRequest", QueryEscrowAddressRequest], - ["/ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest", QueryTotalEscrowForDenomRequest], ["/ibc.applications.transfer.v1.GenesisState", GenesisState], - ["/ibc.applications.transfer.v1.QueryDenomHashResponse", QueryDenomHashResponse], - ["/ibc.applications.transfer.v1.MsgUpdateParams", MsgUpdateParams], - ["/ibc.applications.transfer.v1.Allocation", Allocation], ["/ibc.applications.transfer.v1.MsgTransferResponse", MsgTransferResponse], + ["/ibc.applications.transfer.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/ibc.applications.transfer.v1.QueryDenomTraceRequest", QueryDenomTraceRequest], + ["/ibc.applications.transfer.v1.QueryDenomTracesResponse", QueryDenomTracesResponse], + ["/ibc.applications.transfer.v1.QueryParamsResponse", QueryParamsResponse], ["/ibc.applications.transfer.v1.QueryDenomHashRequest", QueryDenomHashRequest], + ["/ibc.applications.transfer.v1.QueryEscrowAddressRequest", QueryEscrowAddressRequest], + ["/ibc.applications.transfer.v1.DenomTrace", DenomTrace], + ["/ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse", QueryTotalEscrowForDenomResponse], + ["/ibc.applications.transfer.v1.TransferAuthorization", TransferAuthorization], + ["/ibc.applications.transfer.v1.MsgUpdateParams", MsgUpdateParams], ]; export { msgTypes }; diff --git a/ts-client/lib/ibc.core.channel.v1/module.d.ts b/ts-client/lib/ibc.core.channel.v1/module.d.ts index 8292936b2..f99bc5f5a 100644 --- a/ts-client/lib/ibc.core.channel.v1/module.d.ts +++ b/ts-client/lib/ibc.core.channel.v1/module.d.ts @@ -2,67 +2,67 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; +import { QueryUnreceivedPacketsRequest } from "./types/ibc/core/channel/v1/query"; import { QueryChannelClientStateResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryConnectionChannelsRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedAcksRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelCloseInitResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryPacketCommitmentRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUnreceivedAcksResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketReceiptResponse } from "./types/ibc/core/channel/v1/query"; import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelCloseConfirmResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenAckResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryChannelsRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelOpenInitResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketCommitmentResponse } from "./types/ibc/core/channel/v1/query"; +import { PacketSequence } from "./types/ibc/core/channel/v1/genesis"; +import { PacketId } from "./types/ibc/core/channel/v1/channel"; +import { QueryChannelConsensusStateResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketCommitmentsRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelOpenConfirm } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelClientStateRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryConnectionChannelsResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgTimeoutResponse } 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 { Channel } from "./types/ibc/core/channel/v1/channel"; +import { Counterparty } from "./types/ibc/core/channel/v1/channel"; +import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; +import { MsgTimeout } from "./types/ibc/core/channel/v1/tx"; +import { IdentifiedChannel } from "./types/ibc/core/channel/v1/channel"; import { QueryNextSequenceReceiveRequest } from "./types/ibc/core/channel/v1/query"; +import { PacketState } from "./types/ibc/core/channel/v1/channel"; +import { MsgAcknowledgementResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketAcknowledgementsResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedPacketsResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelCloseConfirmResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; +import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelOpenConfirmResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryNextSequenceSendResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgAcknowledgementResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryUnreceivedAcksRequest } from "./types/ibc/core/channel/v1/query"; -import { Acknowledgement } from "./types/ibc/core/channel/v1/channel"; -import { MsgChannelCloseInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { Counterparty } from "./types/ibc/core/channel/v1/channel"; -import { QueryPacketCommitmentsResponse } from "./types/ibc/core/channel/v1/query"; +import { GenesisState } from "./types/ibc/core/channel/v1/genesis"; import { QueryPacketReceiptRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketAcknowledgementResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryConnectionChannelsRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryConnectionChannelsResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenConfirm } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelConsensusStateResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedAcksResponse } from "./types/ibc/core/channel/v1/query"; +import { Acknowledgement } from "./types/ibc/core/channel/v1/channel"; +import { MsgChannelOpenTryResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryNextSequenceSendRequest } from "./types/ibc/core/channel/v1/query"; +import { Packet } from "./types/ibc/core/channel/v1/channel"; import { MsgTimeoutOnCloseResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryChannelsResponse } from "./types/ibc/core/channel/v1/query"; -import { PacketId } from "./types/ibc/core/channel/v1/channel"; -import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; -import { QueryUnreceivedPacketsResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryChannelClientStateRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryChannelConsensusStateRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUnreceivedPacketsRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeout } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenAckResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgRecvPacketResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketCommitmentResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketReceiptResponse } from "./types/ibc/core/channel/v1/query"; import { QueryNextSequenceReceiveResponse } from "./types/ibc/core/channel/v1/query"; import { Timeout } from "./types/ibc/core/channel/v1/channel"; -import { MsgTimeoutResponse } from "./types/ibc/core/channel/v1/tx"; -import { GenesisState } from "./types/ibc/core/channel/v1/genesis"; -import { Packet } from "./types/ibc/core/channel/v1/channel"; -import { QueryPacketCommitmentsRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; -import { QueryPacketAcknowledgementsResponse } from "./types/ibc/core/channel/v1/query"; -import { PacketState } from "./types/ibc/core/channel/v1/channel"; -import { IdentifiedChannel } from "./types/ibc/core/channel/v1/channel"; -import { QueryNextSequenceSendRequest } from "./types/ibc/core/channel/v1/query"; -import { PacketSequence } from "./types/ibc/core/channel/v1/genesis"; -import { Channel } from "./types/ibc/core/channel/v1/channel"; -import { MsgChannelOpenTryResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryPacketAcknowledgementRequest } from "./types/ibc/core/channel/v1/query"; -export { MsgChannelOpenTry, QueryChannelClientStateResponse, QueryPacketCommitmentRequest, QueryUnreceivedAcksResponse, MsgTimeoutOnClose, MsgChannelCloseConfirmResponse, QueryChannelsRequest, QueryPacketAcknowledgementsRequest, QueryNextSequenceReceiveRequest, MsgChannelOpenConfirmResponse, QueryNextSequenceSendResponse, MsgAcknowledgementResponse, QueryUnreceivedAcksRequest, Acknowledgement, MsgChannelCloseInitResponse, Counterparty, QueryPacketCommitmentsResponse, QueryPacketReceiptRequest, QueryPacketAcknowledgementResponse, QueryConnectionChannelsRequest, QueryConnectionChannelsResponse, MsgChannelOpenAck, MsgChannelOpenConfirm, QueryChannelConsensusStateResponse, MsgTimeoutOnCloseResponse, QueryChannelsResponse, PacketId, MsgRecvPacket, QueryUnreceivedPacketsResponse, QueryChannelClientStateRequest, QueryChannelConsensusStateRequest, QueryUnreceivedPacketsRequest, MsgChannelOpenInit, MsgChannelCloseInit, MsgTimeout, MsgChannelOpenAckResponse, MsgRecvPacketResponse, QueryChannelResponse, MsgAcknowledgement, QueryChannelRequest, QueryPacketCommitmentResponse, QueryPacketReceiptResponse, QueryNextSequenceReceiveResponse, Timeout, MsgTimeoutResponse, GenesisState, Packet, QueryPacketCommitmentsRequest, MsgChannelCloseConfirm, QueryPacketAcknowledgementsResponse, PacketState, IdentifiedChannel, QueryNextSequenceSendRequest, PacketSequence, Channel, MsgChannelOpenTryResponse, MsgChannelOpenInitResponse, QueryPacketAcknowledgementRequest }; -type sendMsgChannelOpenTryParams = { - value: MsgChannelOpenTry; +import { MsgRecvPacketResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelConsensusStateRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementResponse } from "./types/ibc/core/channel/v1/query"; +export { QueryUnreceivedPacketsRequest, QueryChannelClientStateResponse, QueryConnectionChannelsRequest, QueryUnreceivedAcksRequest, MsgChannelCloseInitResponse, QueryPacketCommitmentRequest, QueryPacketAcknowledgementRequest, MsgChannelCloseInit, QueryPacketReceiptResponse, MsgTimeoutOnClose, MsgChannelOpenAckResponse, QueryChannelsRequest, MsgChannelOpenInitResponse, QueryChannelResponse, QueryPacketCommitmentResponse, PacketSequence, PacketId, QueryChannelConsensusStateResponse, MsgRecvPacket, QueryPacketCommitmentsRequest, MsgChannelOpenConfirm, MsgChannelCloseConfirm, QueryChannelClientStateRequest, QueryConnectionChannelsResponse, MsgTimeoutResponse, QueryPacketCommitmentsResponse, QueryPacketAcknowledgementsRequest, Channel, Counterparty, MsgChannelOpenInit, MsgChannelOpenTry, MsgTimeout, IdentifiedChannel, QueryNextSequenceReceiveRequest, PacketState, MsgAcknowledgementResponse, QueryPacketAcknowledgementsResponse, QueryUnreceivedPacketsResponse, MsgChannelCloseConfirmResponse, QueryChannelRequest, MsgChannelOpenAck, MsgAcknowledgement, MsgChannelOpenConfirmResponse, QueryNextSequenceSendResponse, GenesisState, QueryPacketReceiptRequest, QueryUnreceivedAcksResponse, Acknowledgement, MsgChannelOpenTryResponse, QueryNextSequenceSendRequest, Packet, MsgTimeoutOnCloseResponse, QueryChannelsResponse, QueryNextSequenceReceiveResponse, Timeout, MsgRecvPacketResponse, QueryChannelConsensusStateRequest, QueryPacketAcknowledgementResponse }; +type sendQueryUnreceivedPacketsRequestParams = { + value: QueryUnreceivedPacketsRequest; fee?: StdFee; memo?: string; }; @@ -71,188 +71,188 @@ type sendQueryChannelClientStateResponseParams = { fee?: StdFee; memo?: string; }; -type sendQueryPacketCommitmentRequestParams = { - value: QueryPacketCommitmentRequest; +type sendQueryConnectionChannelsRequestParams = { + value: QueryConnectionChannelsRequest; fee?: StdFee; memo?: string; }; -type sendQueryUnreceivedAcksResponseParams = { - value: QueryUnreceivedAcksResponse; +type sendQueryUnreceivedAcksRequestParams = { + value: QueryUnreceivedAcksRequest; fee?: StdFee; memo?: string; }; -type sendMsgTimeoutOnCloseParams = { - value: MsgTimeoutOnClose; +type sendMsgChannelCloseInitResponseParams = { + value: MsgChannelCloseInitResponse; fee?: StdFee; memo?: string; }; -type sendMsgChannelCloseConfirmResponseParams = { - value: MsgChannelCloseConfirmResponse; +type sendQueryPacketCommitmentRequestParams = { + value: QueryPacketCommitmentRequest; fee?: StdFee; memo?: string; }; -type sendQueryChannelsRequestParams = { - value: QueryChannelsRequest; +type sendQueryPacketAcknowledgementRequestParams = { + value: QueryPacketAcknowledgementRequest; fee?: StdFee; memo?: string; }; -type sendQueryPacketAcknowledgementsRequestParams = { - value: QueryPacketAcknowledgementsRequest; +type sendMsgChannelCloseInitParams = { + value: MsgChannelCloseInit; fee?: StdFee; memo?: string; }; -type sendQueryNextSequenceReceiveRequestParams = { - value: QueryNextSequenceReceiveRequest; +type sendQueryPacketReceiptResponseParams = { + value: QueryPacketReceiptResponse; fee?: StdFee; memo?: string; }; -type sendMsgChannelOpenConfirmResponseParams = { - value: MsgChannelOpenConfirmResponse; +type sendMsgTimeoutOnCloseParams = { + value: MsgTimeoutOnClose; fee?: StdFee; memo?: string; }; -type sendQueryNextSequenceSendResponseParams = { - value: QueryNextSequenceSendResponse; +type sendMsgChannelOpenAckResponseParams = { + value: MsgChannelOpenAckResponse; fee?: StdFee; memo?: string; }; -type sendMsgAcknowledgementResponseParams = { - value: MsgAcknowledgementResponse; +type sendQueryChannelsRequestParams = { + value: QueryChannelsRequest; fee?: StdFee; memo?: string; }; -type sendQueryUnreceivedAcksRequestParams = { - value: QueryUnreceivedAcksRequest; +type sendMsgChannelOpenInitResponseParams = { + value: MsgChannelOpenInitResponse; fee?: StdFee; memo?: string; }; -type sendAcknowledgementParams = { - value: Acknowledgement; +type sendQueryChannelResponseParams = { + value: QueryChannelResponse; fee?: StdFee; memo?: string; }; -type sendMsgChannelCloseInitResponseParams = { - value: MsgChannelCloseInitResponse; +type sendQueryPacketCommitmentResponseParams = { + value: QueryPacketCommitmentResponse; fee?: StdFee; memo?: string; }; -type sendCounterpartyParams = { - value: Counterparty; +type sendPacketSequenceParams = { + value: PacketSequence; fee?: StdFee; memo?: string; }; -type sendQueryPacketCommitmentsResponseParams = { - value: QueryPacketCommitmentsResponse; +type sendPacketIdParams = { + value: PacketId; fee?: StdFee; memo?: string; }; -type sendQueryPacketReceiptRequestParams = { - value: QueryPacketReceiptRequest; +type sendQueryChannelConsensusStateResponseParams = { + value: QueryChannelConsensusStateResponse; fee?: StdFee; memo?: string; }; -type sendQueryPacketAcknowledgementResponseParams = { - value: QueryPacketAcknowledgementResponse; +type sendMsgRecvPacketParams = { + value: MsgRecvPacket; fee?: StdFee; memo?: string; }; -type sendQueryConnectionChannelsRequestParams = { - value: QueryConnectionChannelsRequest; +type sendQueryPacketCommitmentsRequestParams = { + value: QueryPacketCommitmentsRequest; fee?: StdFee; memo?: string; }; -type sendQueryConnectionChannelsResponseParams = { - value: QueryConnectionChannelsResponse; +type sendMsgChannelOpenConfirmParams = { + value: MsgChannelOpenConfirm; fee?: StdFee; memo?: string; }; -type sendMsgChannelOpenAckParams = { - value: MsgChannelOpenAck; +type sendMsgChannelCloseConfirmParams = { + value: MsgChannelCloseConfirm; fee?: StdFee; memo?: string; }; -type sendMsgChannelOpenConfirmParams = { - value: MsgChannelOpenConfirm; +type sendQueryChannelClientStateRequestParams = { + value: QueryChannelClientStateRequest; fee?: StdFee; memo?: string; }; -type sendQueryChannelConsensusStateResponseParams = { - value: QueryChannelConsensusStateResponse; +type sendQueryConnectionChannelsResponseParams = { + value: QueryConnectionChannelsResponse; fee?: StdFee; memo?: string; }; -type sendMsgTimeoutOnCloseResponseParams = { - value: MsgTimeoutOnCloseResponse; +type sendMsgTimeoutResponseParams = { + value: MsgTimeoutResponse; fee?: StdFee; memo?: string; }; -type sendQueryChannelsResponseParams = { - value: QueryChannelsResponse; +type sendQueryPacketCommitmentsResponseParams = { + value: QueryPacketCommitmentsResponse; fee?: StdFee; memo?: string; }; -type sendPacketIdParams = { - value: PacketId; +type sendQueryPacketAcknowledgementsRequestParams = { + value: QueryPacketAcknowledgementsRequest; fee?: StdFee; memo?: string; }; -type sendMsgRecvPacketParams = { - value: MsgRecvPacket; +type sendChannelParams = { + value: Channel; fee?: StdFee; memo?: string; }; -type sendQueryUnreceivedPacketsResponseParams = { - value: QueryUnreceivedPacketsResponse; +type sendCounterpartyParams = { + value: Counterparty; fee?: StdFee; memo?: string; }; -type sendQueryChannelClientStateRequestParams = { - value: QueryChannelClientStateRequest; +type sendMsgChannelOpenInitParams = { + value: MsgChannelOpenInit; fee?: StdFee; memo?: string; }; -type sendQueryChannelConsensusStateRequestParams = { - value: QueryChannelConsensusStateRequest; +type sendMsgChannelOpenTryParams = { + value: MsgChannelOpenTry; fee?: StdFee; memo?: string; }; -type sendQueryUnreceivedPacketsRequestParams = { - value: QueryUnreceivedPacketsRequest; +type sendMsgTimeoutParams = { + value: MsgTimeout; fee?: StdFee; memo?: string; }; -type sendMsgChannelOpenInitParams = { - value: MsgChannelOpenInit; +type sendIdentifiedChannelParams = { + value: IdentifiedChannel; fee?: StdFee; memo?: string; }; -type sendMsgChannelCloseInitParams = { - value: MsgChannelCloseInit; +type sendQueryNextSequenceReceiveRequestParams = { + value: QueryNextSequenceReceiveRequest; fee?: StdFee; memo?: string; }; -type sendMsgTimeoutParams = { - value: MsgTimeout; +type sendPacketStateParams = { + value: PacketState; fee?: StdFee; memo?: string; }; -type sendMsgChannelOpenAckResponseParams = { - value: MsgChannelOpenAckResponse; +type sendMsgAcknowledgementResponseParams = { + value: MsgAcknowledgementResponse; fee?: StdFee; memo?: string; }; -type sendMsgRecvPacketResponseParams = { - value: MsgRecvPacketResponse; +type sendQueryPacketAcknowledgementsResponseParams = { + value: QueryPacketAcknowledgementsResponse; fee?: StdFee; memo?: string; }; -type sendQueryChannelResponseParams = { - value: QueryChannelResponse; +type sendQueryUnreceivedPacketsResponseParams = { + value: QueryUnreceivedPacketsResponse; fee?: StdFee; memo?: string; }; -type sendMsgAcknowledgementParams = { - value: MsgAcknowledgement; +type sendMsgChannelCloseConfirmResponseParams = { + value: MsgChannelCloseConfirmResponse; fee?: StdFee; memo?: string; }; @@ -261,269 +261,269 @@ type sendQueryChannelRequestParams = { fee?: StdFee; memo?: string; }; -type sendQueryPacketCommitmentResponseParams = { - value: QueryPacketCommitmentResponse; +type sendMsgChannelOpenAckParams = { + value: MsgChannelOpenAck; fee?: StdFee; memo?: string; }; -type sendQueryPacketReceiptResponseParams = { - value: QueryPacketReceiptResponse; +type sendMsgAcknowledgementParams = { + value: MsgAcknowledgement; fee?: StdFee; memo?: string; }; -type sendQueryNextSequenceReceiveResponseParams = { - value: QueryNextSequenceReceiveResponse; +type sendMsgChannelOpenConfirmResponseParams = { + value: MsgChannelOpenConfirmResponse; fee?: StdFee; memo?: string; }; -type sendTimeoutParams = { - value: Timeout; +type sendQueryNextSequenceSendResponseParams = { + value: QueryNextSequenceSendResponse; fee?: StdFee; memo?: string; }; -type sendMsgTimeoutResponseParams = { - value: MsgTimeoutResponse; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendQueryPacketReceiptRequestParams = { + value: QueryPacketReceiptRequest; fee?: StdFee; memo?: string; }; -type sendPacketParams = { - value: Packet; +type sendQueryUnreceivedAcksResponseParams = { + value: QueryUnreceivedAcksResponse; fee?: StdFee; memo?: string; }; -type sendQueryPacketCommitmentsRequestParams = { - value: QueryPacketCommitmentsRequest; +type sendAcknowledgementParams = { + value: Acknowledgement; fee?: StdFee; memo?: string; }; -type sendMsgChannelCloseConfirmParams = { - value: MsgChannelCloseConfirm; +type sendMsgChannelOpenTryResponseParams = { + value: MsgChannelOpenTryResponse; fee?: StdFee; memo?: string; }; -type sendQueryPacketAcknowledgementsResponseParams = { - value: QueryPacketAcknowledgementsResponse; +type sendQueryNextSequenceSendRequestParams = { + value: QueryNextSequenceSendRequest; fee?: StdFee; memo?: string; }; -type sendPacketStateParams = { - value: PacketState; +type sendPacketParams = { + value: Packet; fee?: StdFee; memo?: string; }; -type sendIdentifiedChannelParams = { - value: IdentifiedChannel; +type sendMsgTimeoutOnCloseResponseParams = { + value: MsgTimeoutOnCloseResponse; fee?: StdFee; memo?: string; }; -type sendQueryNextSequenceSendRequestParams = { - value: QueryNextSequenceSendRequest; +type sendQueryChannelsResponseParams = { + value: QueryChannelsResponse; fee?: StdFee; memo?: string; }; -type sendPacketSequenceParams = { - value: PacketSequence; +type sendQueryNextSequenceReceiveResponseParams = { + value: QueryNextSequenceReceiveResponse; fee?: StdFee; memo?: string; }; -type sendChannelParams = { - value: Channel; +type sendTimeoutParams = { + value: Timeout; fee?: StdFee; memo?: string; }; -type sendMsgChannelOpenTryResponseParams = { - value: MsgChannelOpenTryResponse; +type sendMsgRecvPacketResponseParams = { + value: MsgRecvPacketResponse; fee?: StdFee; memo?: string; }; -type sendMsgChannelOpenInitResponseParams = { - value: MsgChannelOpenInitResponse; +type sendQueryChannelConsensusStateRequestParams = { + value: QueryChannelConsensusStateRequest; fee?: StdFee; memo?: string; }; -type sendQueryPacketAcknowledgementRequestParams = { - value: QueryPacketAcknowledgementRequest; +type sendQueryPacketAcknowledgementResponseParams = { + value: QueryPacketAcknowledgementResponse; fee?: StdFee; memo?: string; }; -type msgChannelOpenTryParams = { - value: MsgChannelOpenTry; +type queryUnreceivedPacketsRequestParams = { + value: QueryUnreceivedPacketsRequest; }; type queryChannelClientStateResponseParams = { value: QueryChannelClientStateResponse; }; -type queryPacketCommitmentRequestParams = { - value: QueryPacketCommitmentRequest; -}; -type queryUnreceivedAcksResponseParams = { - value: QueryUnreceivedAcksResponse; -}; -type msgTimeoutOnCloseParams = { - value: MsgTimeoutOnClose; -}; -type msgChannelCloseConfirmResponseParams = { - value: MsgChannelCloseConfirmResponse; -}; -type queryChannelsRequestParams = { - value: QueryChannelsRequest; -}; -type queryPacketAcknowledgementsRequestParams = { - value: QueryPacketAcknowledgementsRequest; -}; -type queryNextSequenceReceiveRequestParams = { - value: QueryNextSequenceReceiveRequest; -}; -type msgChannelOpenConfirmResponseParams = { - value: MsgChannelOpenConfirmResponse; -}; -type queryNextSequenceSendResponseParams = { - value: QueryNextSequenceSendResponse; -}; -type msgAcknowledgementResponseParams = { - value: MsgAcknowledgementResponse; +type queryConnectionChannelsRequestParams = { + value: QueryConnectionChannelsRequest; }; type queryUnreceivedAcksRequestParams = { value: QueryUnreceivedAcksRequest; }; -type acknowledgementParams = { - value: Acknowledgement; -}; type msgChannelCloseInitResponseParams = { value: MsgChannelCloseInitResponse; }; -type counterpartyParams = { - value: Counterparty; +type queryPacketCommitmentRequestParams = { + value: QueryPacketCommitmentRequest; }; -type queryPacketCommitmentsResponseParams = { - value: QueryPacketCommitmentsResponse; +type queryPacketAcknowledgementRequestParams = { + value: QueryPacketAcknowledgementRequest; }; -type queryPacketReceiptRequestParams = { - value: QueryPacketReceiptRequest; +type msgChannelCloseInitParams = { + value: MsgChannelCloseInit; }; -type queryPacketAcknowledgementResponseParams = { - value: QueryPacketAcknowledgementResponse; +type queryPacketReceiptResponseParams = { + value: QueryPacketReceiptResponse; }; -type queryConnectionChannelsRequestParams = { - value: QueryConnectionChannelsRequest; +type msgTimeoutOnCloseParams = { + value: MsgTimeoutOnClose; }; -type queryConnectionChannelsResponseParams = { - value: QueryConnectionChannelsResponse; +type msgChannelOpenAckResponseParams = { + value: MsgChannelOpenAckResponse; }; -type msgChannelOpenAckParams = { - value: MsgChannelOpenAck; +type queryChannelsRequestParams = { + value: QueryChannelsRequest; }; -type msgChannelOpenConfirmParams = { - value: MsgChannelOpenConfirm; +type msgChannelOpenInitResponseParams = { + value: MsgChannelOpenInitResponse; }; -type queryChannelConsensusStateResponseParams = { - value: QueryChannelConsensusStateResponse; +type queryChannelResponseParams = { + value: QueryChannelResponse; }; -type msgTimeoutOnCloseResponseParams = { - value: MsgTimeoutOnCloseResponse; +type queryPacketCommitmentResponseParams = { + value: QueryPacketCommitmentResponse; }; -type queryChannelsResponseParams = { - value: QueryChannelsResponse; +type packetSequenceParams = { + value: PacketSequence; }; type packetIdParams = { value: PacketId; }; +type queryChannelConsensusStateResponseParams = { + value: QueryChannelConsensusStateResponse; +}; type msgRecvPacketParams = { value: MsgRecvPacket; }; -type queryUnreceivedPacketsResponseParams = { - value: QueryUnreceivedPacketsResponse; +type queryPacketCommitmentsRequestParams = { + value: QueryPacketCommitmentsRequest; +}; +type msgChannelOpenConfirmParams = { + value: MsgChannelOpenConfirm; +}; +type msgChannelCloseConfirmParams = { + value: MsgChannelCloseConfirm; }; type queryChannelClientStateRequestParams = { value: QueryChannelClientStateRequest; }; -type queryChannelConsensusStateRequestParams = { - value: QueryChannelConsensusStateRequest; +type queryConnectionChannelsResponseParams = { + value: QueryConnectionChannelsResponse; }; -type queryUnreceivedPacketsRequestParams = { - value: QueryUnreceivedPacketsRequest; +type msgTimeoutResponseParams = { + value: MsgTimeoutResponse; +}; +type queryPacketCommitmentsResponseParams = { + value: QueryPacketCommitmentsResponse; +}; +type queryPacketAcknowledgementsRequestParams = { + value: QueryPacketAcknowledgementsRequest; +}; +type channelParams = { + value: Channel; +}; +type counterpartyParams = { + value: Counterparty; }; type msgChannelOpenInitParams = { value: MsgChannelOpenInit; }; -type msgChannelCloseInitParams = { - value: MsgChannelCloseInit; +type msgChannelOpenTryParams = { + value: MsgChannelOpenTry; }; type msgTimeoutParams = { value: MsgTimeout; }; -type msgChannelOpenAckResponseParams = { - value: MsgChannelOpenAckResponse; +type identifiedChannelParams = { + value: IdentifiedChannel; }; -type msgRecvPacketResponseParams = { - value: MsgRecvPacketResponse; +type queryNextSequenceReceiveRequestParams = { + value: QueryNextSequenceReceiveRequest; }; -type queryChannelResponseParams = { - value: QueryChannelResponse; +type packetStateParams = { + value: PacketState; }; -type msgAcknowledgementParams = { - value: MsgAcknowledgement; +type msgAcknowledgementResponseParams = { + value: MsgAcknowledgementResponse; +}; +type queryPacketAcknowledgementsResponseParams = { + value: QueryPacketAcknowledgementsResponse; +}; +type queryUnreceivedPacketsResponseParams = { + value: QueryUnreceivedPacketsResponse; +}; +type msgChannelCloseConfirmResponseParams = { + value: MsgChannelCloseConfirmResponse; }; type queryChannelRequestParams = { value: QueryChannelRequest; }; -type queryPacketCommitmentResponseParams = { - value: QueryPacketCommitmentResponse; -}; -type queryPacketReceiptResponseParams = { - value: QueryPacketReceiptResponse; +type msgChannelOpenAckParams = { + value: MsgChannelOpenAck; }; -type queryNextSequenceReceiveResponseParams = { - value: QueryNextSequenceReceiveResponse; +type msgAcknowledgementParams = { + value: MsgAcknowledgement; }; -type timeoutParams = { - value: Timeout; +type msgChannelOpenConfirmResponseParams = { + value: MsgChannelOpenConfirmResponse; }; -type msgTimeoutResponseParams = { - value: MsgTimeoutResponse; +type queryNextSequenceSendResponseParams = { + value: QueryNextSequenceSendResponse; }; type genesisStateParams = { value: GenesisState; }; -type packetParams = { - value: Packet; -}; -type queryPacketCommitmentsRequestParams = { - value: QueryPacketCommitmentsRequest; -}; -type msgChannelCloseConfirmParams = { - value: MsgChannelCloseConfirm; +type queryPacketReceiptRequestParams = { + value: QueryPacketReceiptRequest; }; -type queryPacketAcknowledgementsResponseParams = { - value: QueryPacketAcknowledgementsResponse; +type queryUnreceivedAcksResponseParams = { + value: QueryUnreceivedAcksResponse; }; -type packetStateParams = { - value: PacketState; +type acknowledgementParams = { + value: Acknowledgement; }; -type identifiedChannelParams = { - value: IdentifiedChannel; +type msgChannelOpenTryResponseParams = { + value: MsgChannelOpenTryResponse; }; type queryNextSequenceSendRequestParams = { value: QueryNextSequenceSendRequest; }; -type packetSequenceParams = { - value: PacketSequence; +type packetParams = { + value: Packet; }; -type channelParams = { - value: Channel; +type msgTimeoutOnCloseResponseParams = { + value: MsgTimeoutOnCloseResponse; }; -type msgChannelOpenTryResponseParams = { - value: MsgChannelOpenTryResponse; +type queryChannelsResponseParams = { + value: QueryChannelsResponse; }; -type msgChannelOpenInitResponseParams = { - value: MsgChannelOpenInitResponse; +type queryNextSequenceReceiveResponseParams = { + value: QueryNextSequenceReceiveResponse; }; -type queryPacketAcknowledgementRequestParams = { - value: QueryPacketAcknowledgementRequest; +type timeoutParams = { + value: Timeout; +}; +type msgRecvPacketResponseParams = { + value: MsgRecvPacketResponse; +}; +type queryChannelConsensusStateRequestParams = { + value: QueryChannelConsensusStateRequest; +}; +type queryPacketAcknowledgementResponseParams = { + value: QueryPacketAcknowledgementResponse; }; export declare const registry: Registry; interface TxClientOptions { @@ -532,122 +532,122 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendMsgChannelOpenTry({ value, fee, memo }: sendMsgChannelOpenTryParams): Promise; + sendQueryUnreceivedPacketsRequest({ value, fee, memo }: sendQueryUnreceivedPacketsRequestParams): Promise; sendQueryChannelClientStateResponse({ value, fee, memo }: sendQueryChannelClientStateResponseParams): Promise; + sendQueryConnectionChannelsRequest({ value, fee, memo }: sendQueryConnectionChannelsRequestParams): Promise; + sendQueryUnreceivedAcksRequest({ value, fee, memo }: sendQueryUnreceivedAcksRequestParams): Promise; + sendMsgChannelCloseInitResponse({ value, fee, memo }: sendMsgChannelCloseInitResponseParams): Promise; sendQueryPacketCommitmentRequest({ value, fee, memo }: sendQueryPacketCommitmentRequestParams): Promise; - sendQueryUnreceivedAcksResponse({ value, fee, memo }: sendQueryUnreceivedAcksResponseParams): Promise; + sendQueryPacketAcknowledgementRequest({ value, fee, memo }: sendQueryPacketAcknowledgementRequestParams): Promise; + sendMsgChannelCloseInit({ value, fee, memo }: sendMsgChannelCloseInitParams): Promise; + sendQueryPacketReceiptResponse({ value, fee, memo }: sendQueryPacketReceiptResponseParams): Promise; sendMsgTimeoutOnClose({ value, fee, memo }: sendMsgTimeoutOnCloseParams): Promise; - sendMsgChannelCloseConfirmResponse({ value, fee, memo }: sendMsgChannelCloseConfirmResponseParams): Promise; + sendMsgChannelOpenAckResponse({ value, fee, memo }: sendMsgChannelOpenAckResponseParams): Promise; sendQueryChannelsRequest({ value, fee, memo }: sendQueryChannelsRequestParams): Promise; + sendMsgChannelOpenInitResponse({ value, fee, memo }: sendMsgChannelOpenInitResponseParams): Promise; + sendQueryChannelResponse({ value, fee, memo }: sendQueryChannelResponseParams): Promise; + sendQueryPacketCommitmentResponse({ value, fee, memo }: sendQueryPacketCommitmentResponseParams): Promise; + sendPacketSequence({ value, fee, memo }: sendPacketSequenceParams): Promise; + sendPacketId({ value, fee, memo }: sendPacketIdParams): Promise; + sendQueryChannelConsensusStateResponse({ value, fee, memo }: sendQueryChannelConsensusStateResponseParams): Promise; + sendMsgRecvPacket({ value, fee, memo }: sendMsgRecvPacketParams): Promise; + sendQueryPacketCommitmentsRequest({ value, fee, memo }: sendQueryPacketCommitmentsRequestParams): Promise; + sendMsgChannelOpenConfirm({ value, fee, memo }: sendMsgChannelOpenConfirmParams): Promise; + sendMsgChannelCloseConfirm({ value, fee, memo }: sendMsgChannelCloseConfirmParams): Promise; + sendQueryChannelClientStateRequest({ value, fee, memo }: sendQueryChannelClientStateRequestParams): Promise; + sendQueryConnectionChannelsResponse({ value, fee, memo }: sendQueryConnectionChannelsResponseParams): Promise; + sendMsgTimeoutResponse({ value, fee, memo }: sendMsgTimeoutResponseParams): Promise; + sendQueryPacketCommitmentsResponse({ value, fee, memo }: sendQueryPacketCommitmentsResponseParams): Promise; sendQueryPacketAcknowledgementsRequest({ value, fee, memo }: sendQueryPacketAcknowledgementsRequestParams): Promise; + sendChannel({ value, fee, memo }: sendChannelParams): Promise; + sendCounterparty({ value, fee, memo }: sendCounterpartyParams): Promise; + sendMsgChannelOpenInit({ value, fee, memo }: sendMsgChannelOpenInitParams): Promise; + sendMsgChannelOpenTry({ value, fee, memo }: sendMsgChannelOpenTryParams): Promise; + sendMsgTimeout({ value, fee, memo }: sendMsgTimeoutParams): Promise; + sendIdentifiedChannel({ value, fee, memo }: sendIdentifiedChannelParams): Promise; sendQueryNextSequenceReceiveRequest({ value, fee, memo }: sendQueryNextSequenceReceiveRequestParams): Promise; + sendPacketState({ value, fee, memo }: sendPacketStateParams): Promise; + sendMsgAcknowledgementResponse({ value, fee, memo }: sendMsgAcknowledgementResponseParams): Promise; + sendQueryPacketAcknowledgementsResponse({ value, fee, memo }: sendQueryPacketAcknowledgementsResponseParams): Promise; + sendQueryUnreceivedPacketsResponse({ value, fee, memo }: sendQueryUnreceivedPacketsResponseParams): Promise; + sendMsgChannelCloseConfirmResponse({ value, fee, memo }: sendMsgChannelCloseConfirmResponseParams): Promise; + sendQueryChannelRequest({ value, fee, memo }: sendQueryChannelRequestParams): Promise; + sendMsgChannelOpenAck({ value, fee, memo }: sendMsgChannelOpenAckParams): Promise; + sendMsgAcknowledgement({ value, fee, memo }: sendMsgAcknowledgementParams): Promise; sendMsgChannelOpenConfirmResponse({ value, fee, memo }: sendMsgChannelOpenConfirmResponseParams): Promise; sendQueryNextSequenceSendResponse({ value, fee, memo }: sendQueryNextSequenceSendResponseParams): Promise; - sendMsgAcknowledgementResponse({ value, fee, memo }: sendMsgAcknowledgementResponseParams): Promise; - sendQueryUnreceivedAcksRequest({ value, fee, memo }: sendQueryUnreceivedAcksRequestParams): Promise; - sendAcknowledgement({ value, fee, memo }: sendAcknowledgementParams): Promise; - sendMsgChannelCloseInitResponse({ value, fee, memo }: sendMsgChannelCloseInitResponseParams): Promise; - sendCounterparty({ value, fee, memo }: sendCounterpartyParams): Promise; - sendQueryPacketCommitmentsResponse({ value, fee, memo }: sendQueryPacketCommitmentsResponseParams): Promise; + sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; sendQueryPacketReceiptRequest({ value, fee, memo }: sendQueryPacketReceiptRequestParams): Promise; - sendQueryPacketAcknowledgementResponse({ value, fee, memo }: sendQueryPacketAcknowledgementResponseParams): Promise; - sendQueryConnectionChannelsRequest({ value, fee, memo }: sendQueryConnectionChannelsRequestParams): Promise; - sendQueryConnectionChannelsResponse({ value, fee, memo }: sendQueryConnectionChannelsResponseParams): Promise; - sendMsgChannelOpenAck({ value, fee, memo }: sendMsgChannelOpenAckParams): Promise; - sendMsgChannelOpenConfirm({ value, fee, memo }: sendMsgChannelOpenConfirmParams): Promise; - sendQueryChannelConsensusStateResponse({ value, fee, memo }: sendQueryChannelConsensusStateResponseParams): Promise; + sendQueryUnreceivedAcksResponse({ value, fee, memo }: sendQueryUnreceivedAcksResponseParams): Promise; + sendAcknowledgement({ value, fee, memo }: sendAcknowledgementParams): Promise; + sendMsgChannelOpenTryResponse({ value, fee, memo }: sendMsgChannelOpenTryResponseParams): Promise; + sendQueryNextSequenceSendRequest({ value, fee, memo }: sendQueryNextSequenceSendRequestParams): Promise; + sendPacket({ value, fee, memo }: sendPacketParams): Promise; sendMsgTimeoutOnCloseResponse({ value, fee, memo }: sendMsgTimeoutOnCloseResponseParams): Promise; sendQueryChannelsResponse({ value, fee, memo }: sendQueryChannelsResponseParams): Promise; - sendPacketId({ value, fee, memo }: sendPacketIdParams): Promise; - sendMsgRecvPacket({ value, fee, memo }: sendMsgRecvPacketParams): Promise; - sendQueryUnreceivedPacketsResponse({ value, fee, memo }: sendQueryUnreceivedPacketsResponseParams): Promise; - sendQueryChannelClientStateRequest({ value, fee, memo }: sendQueryChannelClientStateRequestParams): Promise; - sendQueryChannelConsensusStateRequest({ value, fee, memo }: sendQueryChannelConsensusStateRequestParams): Promise; - sendQueryUnreceivedPacketsRequest({ value, fee, memo }: sendQueryUnreceivedPacketsRequestParams): Promise; - sendMsgChannelOpenInit({ value, fee, memo }: sendMsgChannelOpenInitParams): Promise; - sendMsgChannelCloseInit({ value, fee, memo }: sendMsgChannelCloseInitParams): Promise; - sendMsgTimeout({ value, fee, memo }: sendMsgTimeoutParams): Promise; - sendMsgChannelOpenAckResponse({ value, fee, memo }: sendMsgChannelOpenAckResponseParams): Promise; - sendMsgRecvPacketResponse({ value, fee, memo }: sendMsgRecvPacketResponseParams): Promise; - sendQueryChannelResponse({ value, fee, memo }: sendQueryChannelResponseParams): Promise; - sendMsgAcknowledgement({ value, fee, memo }: sendMsgAcknowledgementParams): Promise; - sendQueryChannelRequest({ value, fee, memo }: sendQueryChannelRequestParams): Promise; - sendQueryPacketCommitmentResponse({ value, fee, memo }: sendQueryPacketCommitmentResponseParams): Promise; - sendQueryPacketReceiptResponse({ value, fee, memo }: sendQueryPacketReceiptResponseParams): Promise; sendQueryNextSequenceReceiveResponse({ value, fee, memo }: sendQueryNextSequenceReceiveResponseParams): Promise; sendTimeout({ value, fee, memo }: sendTimeoutParams): Promise; - sendMsgTimeoutResponse({ value, fee, memo }: sendMsgTimeoutResponseParams): Promise; - sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendPacket({ value, fee, memo }: sendPacketParams): Promise; - sendQueryPacketCommitmentsRequest({ value, fee, memo }: sendQueryPacketCommitmentsRequestParams): Promise; - sendMsgChannelCloseConfirm({ value, fee, memo }: sendMsgChannelCloseConfirmParams): Promise; - sendQueryPacketAcknowledgementsResponse({ value, fee, memo }: sendQueryPacketAcknowledgementsResponseParams): Promise; - sendPacketState({ value, fee, memo }: sendPacketStateParams): Promise; - sendIdentifiedChannel({ value, fee, memo }: sendIdentifiedChannelParams): Promise; - sendQueryNextSequenceSendRequest({ value, fee, memo }: sendQueryNextSequenceSendRequestParams): Promise; - sendPacketSequence({ value, fee, memo }: sendPacketSequenceParams): Promise; - sendChannel({ value, fee, memo }: sendChannelParams): Promise; - sendMsgChannelOpenTryResponse({ value, fee, memo }: sendMsgChannelOpenTryResponseParams): Promise; - sendMsgChannelOpenInitResponse({ value, fee, memo }: sendMsgChannelOpenInitResponseParams): Promise; - sendQueryPacketAcknowledgementRequest({ value, fee, memo }: sendQueryPacketAcknowledgementRequestParams): Promise; - msgChannelOpenTry({ value }: msgChannelOpenTryParams): EncodeObject; + sendMsgRecvPacketResponse({ value, fee, memo }: sendMsgRecvPacketResponseParams): Promise; + sendQueryChannelConsensusStateRequest({ value, fee, memo }: sendQueryChannelConsensusStateRequestParams): Promise; + sendQueryPacketAcknowledgementResponse({ value, fee, memo }: sendQueryPacketAcknowledgementResponseParams): Promise; + queryUnreceivedPacketsRequest({ value }: queryUnreceivedPacketsRequestParams): EncodeObject; queryChannelClientStateResponse({ value }: queryChannelClientStateResponseParams): EncodeObject; + queryConnectionChannelsRequest({ value }: queryConnectionChannelsRequestParams): EncodeObject; + queryUnreceivedAcksRequest({ value }: queryUnreceivedAcksRequestParams): EncodeObject; + msgChannelCloseInitResponse({ value }: msgChannelCloseInitResponseParams): EncodeObject; queryPacketCommitmentRequest({ value }: queryPacketCommitmentRequestParams): EncodeObject; - queryUnreceivedAcksResponse({ value }: queryUnreceivedAcksResponseParams): EncodeObject; + queryPacketAcknowledgementRequest({ value }: queryPacketAcknowledgementRequestParams): EncodeObject; + msgChannelCloseInit({ value }: msgChannelCloseInitParams): EncodeObject; + queryPacketReceiptResponse({ value }: queryPacketReceiptResponseParams): EncodeObject; msgTimeoutOnClose({ value }: msgTimeoutOnCloseParams): EncodeObject; - msgChannelCloseConfirmResponse({ value }: msgChannelCloseConfirmResponseParams): EncodeObject; + msgChannelOpenAckResponse({ value }: msgChannelOpenAckResponseParams): EncodeObject; queryChannelsRequest({ value }: queryChannelsRequestParams): EncodeObject; + msgChannelOpenInitResponse({ value }: msgChannelOpenInitResponseParams): EncodeObject; + queryChannelResponse({ value }: queryChannelResponseParams): EncodeObject; + queryPacketCommitmentResponse({ value }: queryPacketCommitmentResponseParams): EncodeObject; + packetSequence({ value }: packetSequenceParams): EncodeObject; + packetId({ value }: packetIdParams): EncodeObject; + queryChannelConsensusStateResponse({ value }: queryChannelConsensusStateResponseParams): EncodeObject; + msgRecvPacket({ value }: msgRecvPacketParams): EncodeObject; + queryPacketCommitmentsRequest({ value }: queryPacketCommitmentsRequestParams): EncodeObject; + msgChannelOpenConfirm({ value }: msgChannelOpenConfirmParams): EncodeObject; + msgChannelCloseConfirm({ value }: msgChannelCloseConfirmParams): EncodeObject; + queryChannelClientStateRequest({ value }: queryChannelClientStateRequestParams): EncodeObject; + queryConnectionChannelsResponse({ value }: queryConnectionChannelsResponseParams): EncodeObject; + msgTimeoutResponse({ value }: msgTimeoutResponseParams): EncodeObject; + queryPacketCommitmentsResponse({ value }: queryPacketCommitmentsResponseParams): EncodeObject; queryPacketAcknowledgementsRequest({ value }: queryPacketAcknowledgementsRequestParams): EncodeObject; + channel({ value }: channelParams): EncodeObject; + counterparty({ value }: counterpartyParams): EncodeObject; + msgChannelOpenInit({ value }: msgChannelOpenInitParams): EncodeObject; + msgChannelOpenTry({ value }: msgChannelOpenTryParams): EncodeObject; + msgTimeout({ value }: msgTimeoutParams): EncodeObject; + identifiedChannel({ value }: identifiedChannelParams): EncodeObject; queryNextSequenceReceiveRequest({ value }: queryNextSequenceReceiveRequestParams): EncodeObject; + packetState({ value }: packetStateParams): EncodeObject; + msgAcknowledgementResponse({ value }: msgAcknowledgementResponseParams): EncodeObject; + queryPacketAcknowledgementsResponse({ value }: queryPacketAcknowledgementsResponseParams): EncodeObject; + queryUnreceivedPacketsResponse({ value }: queryUnreceivedPacketsResponseParams): EncodeObject; + msgChannelCloseConfirmResponse({ value }: msgChannelCloseConfirmResponseParams): EncodeObject; + queryChannelRequest({ value }: queryChannelRequestParams): EncodeObject; + msgChannelOpenAck({ value }: msgChannelOpenAckParams): EncodeObject; + msgAcknowledgement({ value }: msgAcknowledgementParams): EncodeObject; msgChannelOpenConfirmResponse({ value }: msgChannelOpenConfirmResponseParams): EncodeObject; queryNextSequenceSendResponse({ value }: queryNextSequenceSendResponseParams): EncodeObject; - msgAcknowledgementResponse({ value }: msgAcknowledgementResponseParams): EncodeObject; - queryUnreceivedAcksRequest({ value }: queryUnreceivedAcksRequestParams): EncodeObject; - acknowledgement({ value }: acknowledgementParams): EncodeObject; - msgChannelCloseInitResponse({ value }: msgChannelCloseInitResponseParams): EncodeObject; - counterparty({ value }: counterpartyParams): EncodeObject; - queryPacketCommitmentsResponse({ value }: queryPacketCommitmentsResponseParams): EncodeObject; + genesisState({ value }: genesisStateParams): EncodeObject; queryPacketReceiptRequest({ value }: queryPacketReceiptRequestParams): EncodeObject; - queryPacketAcknowledgementResponse({ value }: queryPacketAcknowledgementResponseParams): EncodeObject; - queryConnectionChannelsRequest({ value }: queryConnectionChannelsRequestParams): EncodeObject; - queryConnectionChannelsResponse({ value }: queryConnectionChannelsResponseParams): EncodeObject; - msgChannelOpenAck({ value }: msgChannelOpenAckParams): EncodeObject; - msgChannelOpenConfirm({ value }: msgChannelOpenConfirmParams): EncodeObject; - queryChannelConsensusStateResponse({ value }: queryChannelConsensusStateResponseParams): EncodeObject; + queryUnreceivedAcksResponse({ value }: queryUnreceivedAcksResponseParams): EncodeObject; + acknowledgement({ value }: acknowledgementParams): EncodeObject; + msgChannelOpenTryResponse({ value }: msgChannelOpenTryResponseParams): EncodeObject; + queryNextSequenceSendRequest({ value }: queryNextSequenceSendRequestParams): EncodeObject; + packet({ value }: packetParams): EncodeObject; msgTimeoutOnCloseResponse({ value }: msgTimeoutOnCloseResponseParams): EncodeObject; queryChannelsResponse({ value }: queryChannelsResponseParams): EncodeObject; - packetId({ value }: packetIdParams): EncodeObject; - msgRecvPacket({ value }: msgRecvPacketParams): EncodeObject; - queryUnreceivedPacketsResponse({ value }: queryUnreceivedPacketsResponseParams): EncodeObject; - queryChannelClientStateRequest({ value }: queryChannelClientStateRequestParams): EncodeObject; - queryChannelConsensusStateRequest({ value }: queryChannelConsensusStateRequestParams): EncodeObject; - queryUnreceivedPacketsRequest({ value }: queryUnreceivedPacketsRequestParams): EncodeObject; - msgChannelOpenInit({ value }: msgChannelOpenInitParams): EncodeObject; - msgChannelCloseInit({ value }: msgChannelCloseInitParams): EncodeObject; - msgTimeout({ value }: msgTimeoutParams): EncodeObject; - msgChannelOpenAckResponse({ value }: msgChannelOpenAckResponseParams): EncodeObject; - msgRecvPacketResponse({ value }: msgRecvPacketResponseParams): EncodeObject; - queryChannelResponse({ value }: queryChannelResponseParams): EncodeObject; - msgAcknowledgement({ value }: msgAcknowledgementParams): EncodeObject; - queryChannelRequest({ value }: queryChannelRequestParams): EncodeObject; - queryPacketCommitmentResponse({ value }: queryPacketCommitmentResponseParams): EncodeObject; - queryPacketReceiptResponse({ value }: queryPacketReceiptResponseParams): EncodeObject; queryNextSequenceReceiveResponse({ value }: queryNextSequenceReceiveResponseParams): EncodeObject; timeout({ value }: timeoutParams): EncodeObject; - msgTimeoutResponse({ value }: msgTimeoutResponseParams): EncodeObject; - genesisState({ value }: genesisStateParams): EncodeObject; - packet({ value }: packetParams): EncodeObject; - queryPacketCommitmentsRequest({ value }: queryPacketCommitmentsRequestParams): EncodeObject; - msgChannelCloseConfirm({ value }: msgChannelCloseConfirmParams): EncodeObject; - queryPacketAcknowledgementsResponse({ value }: queryPacketAcknowledgementsResponseParams): EncodeObject; - packetState({ value }: packetStateParams): EncodeObject; - identifiedChannel({ value }: identifiedChannelParams): EncodeObject; - queryNextSequenceSendRequest({ value }: queryNextSequenceSendRequestParams): EncodeObject; - packetSequence({ value }: packetSequenceParams): EncodeObject; - channel({ value }: channelParams): EncodeObject; - msgChannelOpenTryResponse({ value }: msgChannelOpenTryResponseParams): EncodeObject; - msgChannelOpenInitResponse({ value }: msgChannelOpenInitResponseParams): EncodeObject; - queryPacketAcknowledgementRequest({ value }: queryPacketAcknowledgementRequestParams): EncodeObject; + msgRecvPacketResponse({ value }: msgRecvPacketResponseParams): EncodeObject; + queryChannelConsensusStateRequest({ value }: queryChannelConsensusStateRequestParams): EncodeObject; + queryPacketAcknowledgementResponse({ value }: queryPacketAcknowledgementResponseParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/ibc.core.channel.v1/module.js b/ts-client/lib/ibc.core.channel.v1/module.js index f119f4265..34ceb2b4e 100644 --- a/ts-client/lib/ibc.core.channel.v1/module.js +++ b/ts-client/lib/ibc.core.channel.v1/module.js @@ -3,65 +3,65 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; +import { QueryUnreceivedPacketsRequest } from "./types/ibc/core/channel/v1/query"; import { QueryChannelClientStateResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryConnectionChannelsRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedAcksRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelCloseInitResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryPacketCommitmentRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUnreceivedAcksResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketReceiptResponse } from "./types/ibc/core/channel/v1/query"; import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelCloseConfirmResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenAckResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryChannelsRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelOpenInitResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketCommitmentResponse } from "./types/ibc/core/channel/v1/query"; +import { PacketSequence } from "./types/ibc/core/channel/v1/genesis"; +import { PacketId } from "./types/ibc/core/channel/v1/channel"; +import { QueryChannelConsensusStateResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketCommitmentsRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelOpenConfirm } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelClientStateRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryConnectionChannelsResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgTimeoutResponse } 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 { Channel } from "./types/ibc/core/channel/v1/channel"; +import { Counterparty } from "./types/ibc/core/channel/v1/channel"; +import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; +import { MsgTimeout } from "./types/ibc/core/channel/v1/tx"; +import { IdentifiedChannel } from "./types/ibc/core/channel/v1/channel"; import { QueryNextSequenceReceiveRequest } from "./types/ibc/core/channel/v1/query"; +import { PacketState } from "./types/ibc/core/channel/v1/channel"; +import { MsgAcknowledgementResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketAcknowledgementsResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedPacketsResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelCloseConfirmResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; +import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelOpenConfirmResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryNextSequenceSendResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgAcknowledgementResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryUnreceivedAcksRequest } from "./types/ibc/core/channel/v1/query"; -import { Acknowledgement } from "./types/ibc/core/channel/v1/channel"; -import { MsgChannelCloseInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { Counterparty } from "./types/ibc/core/channel/v1/channel"; -import { QueryPacketCommitmentsResponse } from "./types/ibc/core/channel/v1/query"; +import { GenesisState } from "./types/ibc/core/channel/v1/genesis"; import { QueryPacketReceiptRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketAcknowledgementResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryConnectionChannelsRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryConnectionChannelsResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenConfirm } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelConsensusStateResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedAcksResponse } from "./types/ibc/core/channel/v1/query"; +import { Acknowledgement } from "./types/ibc/core/channel/v1/channel"; +import { MsgChannelOpenTryResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryNextSequenceSendRequest } from "./types/ibc/core/channel/v1/query"; +import { Packet } from "./types/ibc/core/channel/v1/channel"; import { MsgTimeoutOnCloseResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryChannelsResponse } from "./types/ibc/core/channel/v1/query"; -import { PacketId } from "./types/ibc/core/channel/v1/channel"; -import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; -import { QueryUnreceivedPacketsResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryChannelClientStateRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryChannelConsensusStateRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUnreceivedPacketsRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeout } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenAckResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgRecvPacketResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketCommitmentResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketReceiptResponse } from "./types/ibc/core/channel/v1/query"; import { QueryNextSequenceReceiveResponse } from "./types/ibc/core/channel/v1/query"; import { Timeout } from "./types/ibc/core/channel/v1/channel"; -import { MsgTimeoutResponse } from "./types/ibc/core/channel/v1/tx"; -import { GenesisState } from "./types/ibc/core/channel/v1/genesis"; -import { Packet } from "./types/ibc/core/channel/v1/channel"; -import { QueryPacketCommitmentsRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; -import { QueryPacketAcknowledgementsResponse } from "./types/ibc/core/channel/v1/query"; -import { PacketState } from "./types/ibc/core/channel/v1/channel"; -import { IdentifiedChannel } from "./types/ibc/core/channel/v1/channel"; -import { QueryNextSequenceSendRequest } from "./types/ibc/core/channel/v1/query"; -import { PacketSequence } from "./types/ibc/core/channel/v1/genesis"; -import { Channel } from "./types/ibc/core/channel/v1/channel"; -import { MsgChannelOpenTryResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryPacketAcknowledgementRequest } from "./types/ibc/core/channel/v1/query"; -export { MsgChannelOpenTry, QueryChannelClientStateResponse, QueryPacketCommitmentRequest, QueryUnreceivedAcksResponse, MsgTimeoutOnClose, MsgChannelCloseConfirmResponse, QueryChannelsRequest, QueryPacketAcknowledgementsRequest, QueryNextSequenceReceiveRequest, MsgChannelOpenConfirmResponse, QueryNextSequenceSendResponse, MsgAcknowledgementResponse, QueryUnreceivedAcksRequest, Acknowledgement, MsgChannelCloseInitResponse, Counterparty, QueryPacketCommitmentsResponse, QueryPacketReceiptRequest, QueryPacketAcknowledgementResponse, QueryConnectionChannelsRequest, QueryConnectionChannelsResponse, MsgChannelOpenAck, MsgChannelOpenConfirm, QueryChannelConsensusStateResponse, MsgTimeoutOnCloseResponse, QueryChannelsResponse, PacketId, MsgRecvPacket, QueryUnreceivedPacketsResponse, QueryChannelClientStateRequest, QueryChannelConsensusStateRequest, QueryUnreceivedPacketsRequest, MsgChannelOpenInit, MsgChannelCloseInit, MsgTimeout, MsgChannelOpenAckResponse, MsgRecvPacketResponse, QueryChannelResponse, MsgAcknowledgement, QueryChannelRequest, QueryPacketCommitmentResponse, QueryPacketReceiptResponse, QueryNextSequenceReceiveResponse, Timeout, MsgTimeoutResponse, GenesisState, Packet, QueryPacketCommitmentsRequest, MsgChannelCloseConfirm, QueryPacketAcknowledgementsResponse, PacketState, IdentifiedChannel, QueryNextSequenceSendRequest, PacketSequence, Channel, MsgChannelOpenTryResponse, MsgChannelOpenInitResponse, QueryPacketAcknowledgementRequest }; +import { MsgRecvPacketResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelConsensusStateRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementResponse } from "./types/ibc/core/channel/v1/query"; +export { QueryUnreceivedPacketsRequest, QueryChannelClientStateResponse, QueryConnectionChannelsRequest, QueryUnreceivedAcksRequest, MsgChannelCloseInitResponse, QueryPacketCommitmentRequest, QueryPacketAcknowledgementRequest, MsgChannelCloseInit, QueryPacketReceiptResponse, MsgTimeoutOnClose, MsgChannelOpenAckResponse, QueryChannelsRequest, MsgChannelOpenInitResponse, QueryChannelResponse, QueryPacketCommitmentResponse, PacketSequence, PacketId, QueryChannelConsensusStateResponse, MsgRecvPacket, QueryPacketCommitmentsRequest, MsgChannelOpenConfirm, MsgChannelCloseConfirm, QueryChannelClientStateRequest, QueryConnectionChannelsResponse, MsgTimeoutResponse, QueryPacketCommitmentsResponse, QueryPacketAcknowledgementsRequest, Channel, Counterparty, MsgChannelOpenInit, MsgChannelOpenTry, MsgTimeout, IdentifiedChannel, QueryNextSequenceReceiveRequest, PacketState, MsgAcknowledgementResponse, QueryPacketAcknowledgementsResponse, QueryUnreceivedPacketsResponse, MsgChannelCloseConfirmResponse, QueryChannelRequest, MsgChannelOpenAck, MsgAcknowledgement, MsgChannelOpenConfirmResponse, QueryNextSequenceSendResponse, GenesisState, QueryPacketReceiptRequest, QueryUnreceivedAcksResponse, Acknowledgement, MsgChannelOpenTryResponse, QueryNextSequenceSendRequest, Packet, MsgTimeoutOnCloseResponse, QueryChannelsResponse, QueryNextSequenceReceiveResponse, Timeout, MsgRecvPacketResponse, QueryChannelConsensusStateRequest, QueryPacketAcknowledgementResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -77,18 +77,18 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendMsgChannelOpenTry({ value, fee, memo }) { + async sendQueryUnreceivedPacketsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenTry: 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.msgChannelOpenTry({ value: MsgChannelOpenTry.fromPartial(value) }); + let msg = this.queryUnreceivedPacketsRequest({ value: QueryUnreceivedPacketsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgChannelOpenTry: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryUnreceivedPacketsRequest: Could not broadcast Tx: ' + e.message); } }, async sendQueryChannelClientStateResponse({ value, fee, memo }) { @@ -105,522 +105,522 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendQueryChannelClientStateResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryPacketCommitmentRequest({ value, fee, memo }) { + async sendQueryConnectionChannelsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryPacketCommitmentRequest: 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.queryPacketCommitmentRequest({ value: QueryPacketCommitmentRequest.fromPartial(value) }); + let msg = this.queryConnectionChannelsRequest({ value: QueryConnectionChannelsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryPacketCommitmentRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConnectionChannelsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryUnreceivedAcksResponse({ value, fee, memo }) { + async sendQueryUnreceivedAcksRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryUnreceivedAcksResponse: 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.queryUnreceivedAcksResponse({ value: QueryUnreceivedAcksResponse.fromPartial(value) }); + let msg = this.queryUnreceivedAcksRequest({ value: QueryUnreceivedAcksRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryUnreceivedAcksResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryUnreceivedAcksRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgTimeoutOnClose({ value, fee, memo }) { + async sendMsgChannelCloseInitResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgTimeoutOnClose: 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.msgTimeoutOnClose({ value: MsgTimeoutOnClose.fromPartial(value) }); + let msg = this.msgChannelCloseInitResponse({ value: MsgChannelCloseInitResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgTimeoutOnClose: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgChannelCloseInitResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgChannelCloseConfirmResponse({ value, fee, memo }) { + async sendQueryPacketCommitmentRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgChannelCloseConfirmResponse: Unable to sign Tx. Signer is not present.'); + 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.msgChannelCloseConfirmResponse({ value: MsgChannelCloseConfirmResponse.fromPartial(value) }); + let msg = this.queryPacketCommitmentRequest({ value: QueryPacketCommitmentRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgChannelCloseConfirmResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryPacketCommitmentRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryChannelsRequest({ value, fee, memo }) { + async sendQueryPacketAcknowledgementRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryChannelsRequest: 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.queryChannelsRequest({ value: QueryChannelsRequest.fromPartial(value) }); + let msg = this.queryPacketAcknowledgementRequest({ value: QueryPacketAcknowledgementRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryChannelsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryPacketAcknowledgementRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryPacketAcknowledgementsRequest({ value, fee, memo }) { + async sendMsgChannelCloseInit({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryPacketAcknowledgementsRequest: 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.queryPacketAcknowledgementsRequest({ value: QueryPacketAcknowledgementsRequest.fromPartial(value) }); + let msg = this.msgChannelCloseInit({ value: MsgChannelCloseInit.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryPacketAcknowledgementsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgChannelCloseInit: Could not broadcast Tx: ' + e.message); } }, - async sendQueryNextSequenceReceiveRequest({ value, fee, memo }) { + async sendQueryPacketReceiptResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryNextSequenceReceiveRequest: 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.queryNextSequenceReceiveRequest({ value: QueryNextSequenceReceiveRequest.fromPartial(value) }); + let msg = this.queryPacketReceiptResponse({ value: QueryPacketReceiptResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryNextSequenceReceiveRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryPacketReceiptResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgChannelOpenConfirmResponse({ value, fee, memo }) { + async sendMsgTimeoutOnClose({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenConfirmResponse: 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.msgChannelOpenConfirmResponse({ value: MsgChannelOpenConfirmResponse.fromPartial(value) }); + let msg = this.msgTimeoutOnClose({ value: MsgTimeoutOnClose.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgChannelOpenConfirmResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgTimeoutOnClose: Could not broadcast Tx: ' + e.message); } }, - async sendQueryNextSequenceSendResponse({ value, fee, memo }) { + async sendMsgChannelOpenAckResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryNextSequenceSendResponse: 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.queryNextSequenceSendResponse({ value: QueryNextSequenceSendResponse.fromPartial(value) }); + let msg = this.msgChannelOpenAckResponse({ value: MsgChannelOpenAckResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryNextSequenceSendResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgChannelOpenAckResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgAcknowledgementResponse({ value, fee, memo }) { + async sendQueryChannelsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgAcknowledgementResponse: 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.msgAcknowledgementResponse({ value: MsgAcknowledgementResponse.fromPartial(value) }); + let msg = this.queryChannelsRequest({ value: QueryChannelsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgAcknowledgementResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryChannelsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryUnreceivedAcksRequest({ value, fee, memo }) { + async sendMsgChannelOpenInitResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryUnreceivedAcksRequest: 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.queryUnreceivedAcksRequest({ value: QueryUnreceivedAcksRequest.fromPartial(value) }); + let msg = this.msgChannelOpenInitResponse({ value: MsgChannelOpenInitResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryUnreceivedAcksRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgChannelOpenInitResponse: Could not broadcast Tx: ' + e.message); } }, - async sendAcknowledgement({ value, fee, memo }) { + async sendQueryChannelResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendAcknowledgement: 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.acknowledgement({ value: Acknowledgement.fromPartial(value) }); + let msg = this.queryChannelResponse({ value: QueryChannelResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendAcknowledgement: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryChannelResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgChannelCloseInitResponse({ value, fee, memo }) { + async sendQueryPacketCommitmentResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgChannelCloseInitResponse: 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.msgChannelCloseInitResponse({ value: MsgChannelCloseInitResponse.fromPartial(value) }); + let msg = this.queryPacketCommitmentResponse({ value: QueryPacketCommitmentResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgChannelCloseInitResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryPacketCommitmentResponse: Could not broadcast Tx: ' + e.message); } }, - async sendCounterparty({ value, fee, memo }) { + async sendPacketSequence({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendCounterparty: 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.counterparty({ value: Counterparty.fromPartial(value) }); + let msg = this.packetSequence({ value: PacketSequence.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendCounterparty: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendPacketSequence: Could not broadcast Tx: ' + e.message); } }, - async sendQueryPacketCommitmentsResponse({ value, fee, memo }) { + async sendPacketId({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryPacketCommitmentsResponse: 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.queryPacketCommitmentsResponse({ value: QueryPacketCommitmentsResponse.fromPartial(value) }); + let msg = this.packetId({ value: PacketId.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryPacketCommitmentsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendPacketId: Could not broadcast Tx: ' + e.message); } }, - async sendQueryPacketReceiptRequest({ value, fee, memo }) { + async sendQueryChannelConsensusStateResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryPacketReceiptRequest: 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.queryPacketReceiptRequest({ value: QueryPacketReceiptRequest.fromPartial(value) }); + let msg = this.queryChannelConsensusStateResponse({ value: QueryChannelConsensusStateResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryPacketReceiptRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryChannelConsensusStateResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryPacketAcknowledgementResponse({ value, fee, memo }) { + async sendMsgRecvPacket({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryPacketAcknowledgementResponse: 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.queryPacketAcknowledgementResponse({ value: QueryPacketAcknowledgementResponse.fromPartial(value) }); + let msg = this.msgRecvPacket({ value: MsgRecvPacket.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryPacketAcknowledgementResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRecvPacket: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConnectionChannelsRequest({ value, fee, memo }) { + async sendQueryPacketCommitmentsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConnectionChannelsRequest: 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.queryConnectionChannelsRequest({ value: QueryConnectionChannelsRequest.fromPartial(value) }); + let msg = this.queryPacketCommitmentsRequest({ value: QueryPacketCommitmentsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConnectionChannelsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryPacketCommitmentsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConnectionChannelsResponse({ value, fee, memo }) { + async sendMsgChannelOpenConfirm({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConnectionChannelsResponse: 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.queryConnectionChannelsResponse({ value: QueryConnectionChannelsResponse.fromPartial(value) }); + let msg = this.msgChannelOpenConfirm({ value: MsgChannelOpenConfirm.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConnectionChannelsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgChannelOpenConfirm: Could not broadcast Tx: ' + e.message); } }, - async sendMsgChannelOpenAck({ value, fee, memo }) { + async sendMsgChannelCloseConfirm({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenAck: 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.msgChannelOpenAck({ value: MsgChannelOpenAck.fromPartial(value) }); + let msg = this.msgChannelCloseConfirm({ value: MsgChannelCloseConfirm.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgChannelOpenAck: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgChannelCloseConfirm: Could not broadcast Tx: ' + e.message); } }, - async sendMsgChannelOpenConfirm({ value, fee, memo }) { + async sendQueryChannelClientStateRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenConfirm: 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.msgChannelOpenConfirm({ value: MsgChannelOpenConfirm.fromPartial(value) }); + let msg = this.queryChannelClientStateRequest({ value: QueryChannelClientStateRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgChannelOpenConfirm: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryChannelClientStateRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryChannelConsensusStateResponse({ value, fee, memo }) { + async sendQueryConnectionChannelsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryChannelConsensusStateResponse: 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.queryChannelConsensusStateResponse({ value: QueryChannelConsensusStateResponse.fromPartial(value) }); + let msg = this.queryConnectionChannelsResponse({ value: QueryConnectionChannelsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryChannelConsensusStateResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConnectionChannelsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgTimeoutOnCloseResponse({ value, fee, memo }) { + async sendMsgTimeoutResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgTimeoutOnCloseResponse: 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.msgTimeoutOnCloseResponse({ value: MsgTimeoutOnCloseResponse.fromPartial(value) }); + let msg = this.msgTimeoutResponse({ value: MsgTimeoutResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgTimeoutOnCloseResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgTimeoutResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryChannelsResponse({ value, fee, memo }) { + async sendQueryPacketCommitmentsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryChannelsResponse: 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.queryChannelsResponse({ value: QueryChannelsResponse.fromPartial(value) }); + let msg = this.queryPacketCommitmentsResponse({ value: QueryPacketCommitmentsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryChannelsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryPacketCommitmentsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendPacketId({ value, fee, memo }) { + async sendQueryPacketAcknowledgementsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendPacketId: 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.packetId({ value: PacketId.fromPartial(value) }); + let msg = this.queryPacketAcknowledgementsRequest({ value: QueryPacketAcknowledgementsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendPacketId: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryPacketAcknowledgementsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRecvPacket({ value, fee, memo }) { + async sendChannel({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRecvPacket: 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.msgRecvPacket({ value: MsgRecvPacket.fromPartial(value) }); + let msg = this.channel({ value: Channel.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRecvPacket: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendChannel: Could not broadcast Tx: ' + e.message); } }, - async sendQueryUnreceivedPacketsResponse({ value, fee, memo }) { + async sendCounterparty({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryUnreceivedPacketsResponse: 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.queryUnreceivedPacketsResponse({ value: QueryUnreceivedPacketsResponse.fromPartial(value) }); + let msg = this.counterparty({ value: Counterparty.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryUnreceivedPacketsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendCounterparty: Could not broadcast Tx: ' + e.message); } }, - async sendQueryChannelClientStateRequest({ value, fee, memo }) { + async sendMsgChannelOpenInit({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryChannelClientStateRequest: 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.queryChannelClientStateRequest({ value: QueryChannelClientStateRequest.fromPartial(value) }); + let msg = this.msgChannelOpenInit({ value: MsgChannelOpenInit.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryChannelClientStateRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgChannelOpenInit: Could not broadcast Tx: ' + e.message); } }, - async sendQueryChannelConsensusStateRequest({ value, fee, memo }) { + async sendMsgChannelOpenTry({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryChannelConsensusStateRequest: 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.queryChannelConsensusStateRequest({ value: QueryChannelConsensusStateRequest.fromPartial(value) }); + let msg = this.msgChannelOpenTry({ value: MsgChannelOpenTry.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryChannelConsensusStateRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgChannelOpenTry: Could not broadcast Tx: ' + e.message); } }, - async sendQueryUnreceivedPacketsRequest({ value, fee, memo }) { + async sendMsgTimeout({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryUnreceivedPacketsRequest: 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.queryUnreceivedPacketsRequest({ value: QueryUnreceivedPacketsRequest.fromPartial(value) }); + let msg = this.msgTimeout({ value: MsgTimeout.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryUnreceivedPacketsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgTimeout: Could not broadcast Tx: ' + e.message); } }, - async sendMsgChannelOpenInit({ value, fee, memo }) { + async sendIdentifiedChannel({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenInit: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendIdentifiedChannel: Unable to 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.identifiedChannel({ value: IdentifiedChannel.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgChannelOpenInit: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendIdentifiedChannel: Could not broadcast Tx: ' + e.message); } }, - async sendMsgChannelCloseInit({ value, fee, memo }) { + async sendQueryNextSequenceReceiveRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgChannelCloseInit: 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.msgChannelCloseInit({ value: MsgChannelCloseInit.fromPartial(value) }); + let msg = this.queryNextSequenceReceiveRequest({ value: QueryNextSequenceReceiveRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgChannelCloseInit: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryNextSequenceReceiveRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgTimeout({ value, fee, memo }) { + async sendPacketState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgTimeout: 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.msgTimeout({ value: MsgTimeout.fromPartial(value) }); + let msg = this.packetState({ value: PacketState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgTimeout: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendPacketState: Could not broadcast Tx: ' + e.message); } }, - async sendMsgChannelOpenAckResponse({ value, fee, memo }) { + async sendMsgAcknowledgementResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenAckResponse: 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.msgChannelOpenAckResponse({ value: MsgChannelOpenAckResponse.fromPartial(value) }); + let msg = this.msgAcknowledgementResponse({ value: MsgAcknowledgementResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgChannelOpenAckResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgAcknowledgementResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRecvPacketResponse({ value, fee, memo }) { + async sendQueryPacketAcknowledgementsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRecvPacketResponse: 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.msgRecvPacketResponse({ value: MsgRecvPacketResponse.fromPartial(value) }); + let msg = this.queryPacketAcknowledgementsResponse({ value: QueryPacketAcknowledgementsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRecvPacketResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryPacketAcknowledgementsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryChannelResponse({ value, fee, memo }) { + async sendQueryUnreceivedPacketsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryChannelResponse: 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.queryChannelResponse({ value: QueryChannelResponse.fromPartial(value) }); + let msg = this.queryUnreceivedPacketsResponse({ value: QueryUnreceivedPacketsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryChannelResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryUnreceivedPacketsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgAcknowledgement({ value, fee, memo }) { + async sendMsgChannelCloseConfirmResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgAcknowledgement: 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.msgAcknowledgement({ value: MsgAcknowledgement.fromPartial(value) }); + let msg = this.msgChannelCloseConfirmResponse({ value: MsgChannelCloseConfirmResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgAcknowledgement: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgChannelCloseConfirmResponse: Could not broadcast Tx: ' + e.message); } }, async sendQueryChannelRequest({ value, fee, memo }) { @@ -637,264 +637,264 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendQueryChannelRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryPacketCommitmentResponse({ value, fee, memo }) { + async sendMsgChannelOpenAck({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryPacketCommitmentResponse: 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.queryPacketCommitmentResponse({ value: QueryPacketCommitmentResponse.fromPartial(value) }); + let msg = this.msgChannelOpenAck({ value: MsgChannelOpenAck.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryPacketCommitmentResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgChannelOpenAck: Could not broadcast Tx: ' + e.message); } }, - async sendQueryPacketReceiptResponse({ value, fee, memo }) { + async sendMsgAcknowledgement({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryPacketReceiptResponse: 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.queryPacketReceiptResponse({ value: QueryPacketReceiptResponse.fromPartial(value) }); + let msg = this.msgAcknowledgement({ value: MsgAcknowledgement.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryPacketReceiptResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgAcknowledgement: Could not broadcast Tx: ' + e.message); } }, - async sendQueryNextSequenceReceiveResponse({ value, fee, memo }) { + async sendMsgChannelOpenConfirmResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryNextSequenceReceiveResponse: 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.queryNextSequenceReceiveResponse({ value: QueryNextSequenceReceiveResponse.fromPartial(value) }); + let msg = this.msgChannelOpenConfirmResponse({ value: MsgChannelOpenConfirmResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryNextSequenceReceiveResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgChannelOpenConfirmResponse: Could not broadcast Tx: ' + e.message); } }, - async sendTimeout({ value, fee, memo }) { + async sendQueryNextSequenceSendResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendTimeout: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryNextSequenceSendResponse: Unable to 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.queryNextSequenceSendResponse({ value: QueryNextSequenceSendResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendTimeout: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryNextSequenceSendResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgTimeoutResponse({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgTimeoutResponse: 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.msgTimeoutResponse({ value: MsgTimeoutResponse.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgTimeoutResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendQueryPacketReceiptRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.fromPartial(value) }); + let msg = this.queryPacketReceiptRequest({ value: QueryPacketReceiptRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryPacketReceiptRequest: Could not broadcast Tx: ' + e.message); } }, - async sendPacket({ value, fee, memo }) { + async sendQueryUnreceivedAcksResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendPacket: 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.packet({ value: Packet.fromPartial(value) }); + let msg = this.queryUnreceivedAcksResponse({ value: QueryUnreceivedAcksResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendPacket: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryUnreceivedAcksResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryPacketCommitmentsRequest({ value, fee, memo }) { + async sendAcknowledgement({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryPacketCommitmentsRequest: 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.queryPacketCommitmentsRequest({ value: QueryPacketCommitmentsRequest.fromPartial(value) }); + let msg = this.acknowledgement({ value: Acknowledgement.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryPacketCommitmentsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendAcknowledgement: Could not broadcast Tx: ' + e.message); } }, - async sendMsgChannelCloseConfirm({ value, fee, memo }) { + async sendMsgChannelOpenTryResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgChannelCloseConfirm: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgChannelOpenTryResponse: Unable to 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.msgChannelOpenTryResponse({ value: MsgChannelOpenTryResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgChannelCloseConfirm: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgChannelOpenTryResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryPacketAcknowledgementsResponse({ value, fee, memo }) { + async sendQueryNextSequenceSendRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryPacketAcknowledgementsResponse: 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.queryPacketAcknowledgementsResponse({ value: QueryPacketAcknowledgementsResponse.fromPartial(value) }); + let msg = this.queryNextSequenceSendRequest({ value: QueryNextSequenceSendRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryPacketAcknowledgementsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryNextSequenceSendRequest: Could not broadcast Tx: ' + e.message); } }, - async sendPacketState({ value, fee, memo }) { + async sendPacket({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendPacketState: 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.packetState({ value: PacketState.fromPartial(value) }); + let msg = this.packet({ value: Packet.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendPacketState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendPacket: Could not broadcast Tx: ' + e.message); } }, - async sendIdentifiedChannel({ value, fee, memo }) { + async sendMsgTimeoutOnCloseResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendIdentifiedChannel: 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.identifiedChannel({ value: IdentifiedChannel.fromPartial(value) }); + let msg = this.msgTimeoutOnCloseResponse({ value: MsgTimeoutOnCloseResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendIdentifiedChannel: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgTimeoutOnCloseResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryNextSequenceSendRequest({ value, fee, memo }) { + async sendQueryChannelsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryNextSequenceSendRequest: 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.queryNextSequenceSendRequest({ value: QueryNextSequenceSendRequest.fromPartial(value) }); + let msg = this.queryChannelsResponse({ value: QueryChannelsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryNextSequenceSendRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryChannelsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendPacketSequence({ value, fee, memo }) { + async sendQueryNextSequenceReceiveResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendPacketSequence: 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.packetSequence({ value: PacketSequence.fromPartial(value) }); + let msg = this.queryNextSequenceReceiveResponse({ value: QueryNextSequenceReceiveResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendPacketSequence: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryNextSequenceReceiveResponse: Could not broadcast Tx: ' + e.message); } }, - async sendChannel({ value, fee, memo }) { + async sendTimeout({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendChannel: 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.channel({ value: Channel.fromPartial(value) }); + let msg = this.timeout({ value: Timeout.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendChannel: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendTimeout: Could not broadcast Tx: ' + e.message); } }, - async sendMsgChannelOpenTryResponse({ value, fee, memo }) { + async sendMsgRecvPacketResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenTryResponse: 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.msgChannelOpenTryResponse({ value: MsgChannelOpenTryResponse.fromPartial(value) }); + let msg = this.msgRecvPacketResponse({ value: MsgRecvPacketResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgChannelOpenTryResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRecvPacketResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgChannelOpenInitResponse({ value, fee, memo }) { + async sendQueryChannelConsensusStateRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgChannelOpenInitResponse: 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.msgChannelOpenInitResponse({ value: MsgChannelOpenInitResponse.fromPartial(value) }); + let msg = this.queryChannelConsensusStateRequest({ value: QueryChannelConsensusStateRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgChannelOpenInitResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryChannelConsensusStateRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryPacketAcknowledgementRequest({ value, fee, memo }) { + async sendQueryPacketAcknowledgementResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryPacketAcknowledgementRequest: 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.queryPacketAcknowledgementRequest({ value: QueryPacketAcknowledgementRequest.fromPartial(value) }); + let msg = this.queryPacketAcknowledgementResponse({ value: QueryPacketAcknowledgementResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryPacketAcknowledgementRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryPacketAcknowledgementResponse: Could not broadcast Tx: ' + e.message); } }, - msgChannelOpenTry({ value }) { + queryUnreceivedPacketsRequest({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTry", value: MsgChannelOpenTry.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedPacketsRequest", value: QueryUnreceivedPacketsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgChannelOpenTry: Could not create message: ' + e.message); + throw new Error('TxClient:QueryUnreceivedPacketsRequest: Could not create message: ' + e.message); } }, queryChannelClientStateResponse({ value }) { @@ -905,300 +905,300 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:QueryChannelClientStateResponse: Could not create message: ' + e.message); } }, - queryPacketCommitmentRequest({ value }) { + queryConnectionChannelsRequest({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentRequest", value: QueryPacketCommitmentRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryConnectionChannelsRequest", value: QueryConnectionChannelsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryPacketCommitmentRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConnectionChannelsRequest: Could not create message: ' + e.message); } }, - queryUnreceivedAcksResponse({ value }) { + queryUnreceivedAcksRequest({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedAcksResponse", value: QueryUnreceivedAcksResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedAcksRequest", value: QueryUnreceivedAcksRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryUnreceivedAcksResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryUnreceivedAcksRequest: Could not create message: ' + e.message); } }, - msgTimeoutOnClose({ value }) { + msgChannelCloseInitResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnClose", value: MsgTimeoutOnClose.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInitResponse", value: MsgChannelCloseInitResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgTimeoutOnClose: Could not create message: ' + e.message); + throw new Error('TxClient:MsgChannelCloseInitResponse: Could not create message: ' + e.message); } }, - msgChannelCloseConfirmResponse({ value }) { + queryPacketCommitmentRequest({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirmResponse", value: MsgChannelCloseConfirmResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentRequest", value: QueryPacketCommitmentRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgChannelCloseConfirmResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryPacketCommitmentRequest: Could not create message: ' + e.message); } }, - queryChannelsRequest({ value }) { + queryPacketAcknowledgementRequest({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelsRequest", value: QueryChannelsRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementRequest", value: QueryPacketAcknowledgementRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryChannelsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryPacketAcknowledgementRequest: Could not create message: ' + e.message); } }, - queryPacketAcknowledgementsRequest({ value }) { + msgChannelCloseInit({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest", value: QueryPacketAcknowledgementsRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInit", value: MsgChannelCloseInit.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryPacketAcknowledgementsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgChannelCloseInit: Could not create message: ' + e.message); } }, - queryNextSequenceReceiveRequest({ value }) { + queryPacketReceiptResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceReceiveRequest", value: QueryNextSequenceReceiveRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryPacketReceiptResponse", value: QueryPacketReceiptResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryNextSequenceReceiveRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryPacketReceiptResponse: Could not create message: ' + e.message); } }, - msgChannelOpenConfirmResponse({ value }) { + msgTimeoutOnClose({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirmResponse", value: MsgChannelOpenConfirmResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnClose", value: MsgTimeoutOnClose.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgChannelOpenConfirmResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgTimeoutOnClose: Could not create message: ' + e.message); } }, - queryNextSequenceSendResponse({ value }) { + msgChannelOpenAckResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceSendResponse", value: QueryNextSequenceSendResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAckResponse", value: MsgChannelOpenAckResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryNextSequenceSendResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgChannelOpenAckResponse: Could not create message: ' + e.message); } }, - msgAcknowledgementResponse({ value }) { + queryChannelsRequest({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgAcknowledgementResponse", value: MsgAcknowledgementResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryChannelsRequest", value: QueryChannelsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgAcknowledgementResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryChannelsRequest: Could not create message: ' + e.message); } }, - queryUnreceivedAcksRequest({ value }) { + msgChannelOpenInitResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedAcksRequest", value: QueryUnreceivedAcksRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInitResponse", value: MsgChannelOpenInitResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryUnreceivedAcksRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgChannelOpenInitResponse: Could not create message: ' + e.message); } }, - acknowledgement({ value }) { + queryChannelResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.Acknowledgement", value: Acknowledgement.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryChannelResponse", value: QueryChannelResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Acknowledgement: Could not create message: ' + e.message); + throw new Error('TxClient:QueryChannelResponse: Could not create message: ' + e.message); } }, - msgChannelCloseInitResponse({ value }) { + queryPacketCommitmentResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInitResponse", value: MsgChannelCloseInitResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentResponse", value: QueryPacketCommitmentResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgChannelCloseInitResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryPacketCommitmentResponse: Could not create message: ' + e.message); } }, - counterparty({ value }) { + packetSequence({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.Counterparty", value: Counterparty.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.PacketSequence", value: PacketSequence.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Counterparty: Could not create message: ' + e.message); + throw new Error('TxClient:PacketSequence: Could not create message: ' + e.message); } }, - queryPacketCommitmentsResponse({ value }) { + packetId({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentsResponse", value: QueryPacketCommitmentsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.PacketId", value: PacketId.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryPacketCommitmentsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:PacketId: Could not create message: ' + e.message); } }, - queryPacketReceiptRequest({ value }) { + queryChannelConsensusStateResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketReceiptRequest", value: QueryPacketReceiptRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryChannelConsensusStateResponse", value: QueryChannelConsensusStateResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryPacketReceiptRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryChannelConsensusStateResponse: Could not create message: ' + e.message); } }, - queryPacketAcknowledgementResponse({ value }) { + msgRecvPacket({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementResponse", value: QueryPacketAcknowledgementResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgRecvPacket", value: MsgRecvPacket.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryPacketAcknowledgementResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRecvPacket: Could not create message: ' + e.message); } }, - queryConnectionChannelsRequest({ value }) { + queryPacketCommitmentsRequest({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryConnectionChannelsRequest", value: QueryConnectionChannelsRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentsRequest", value: QueryPacketCommitmentsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConnectionChannelsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryPacketCommitmentsRequest: Could not create message: ' + e.message); } }, - queryConnectionChannelsResponse({ value }) { + msgChannelOpenConfirm({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryConnectionChannelsResponse", value: QueryConnectionChannelsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirm", value: MsgChannelOpenConfirm.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConnectionChannelsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgChannelOpenConfirm: Could not create message: ' + e.message); } }, - msgChannelOpenAck({ value }) { + msgChannelCloseConfirm({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAck", value: MsgChannelOpenAck.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirm", value: MsgChannelCloseConfirm.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgChannelOpenAck: Could not create message: ' + e.message); + throw new Error('TxClient:MsgChannelCloseConfirm: Could not create message: ' + e.message); } }, - msgChannelOpenConfirm({ value }) { + queryChannelClientStateRequest({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirm", value: MsgChannelOpenConfirm.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryChannelClientStateRequest", value: QueryChannelClientStateRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgChannelOpenConfirm: Could not create message: ' + e.message); + throw new Error('TxClient:QueryChannelClientStateRequest: Could not create message: ' + e.message); } }, - queryChannelConsensusStateResponse({ value }) { + queryConnectionChannelsResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelConsensusStateResponse", value: QueryChannelConsensusStateResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryConnectionChannelsResponse", value: QueryConnectionChannelsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryChannelConsensusStateResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConnectionChannelsResponse: Could not create message: ' + e.message); } }, - msgTimeoutOnCloseResponse({ value }) { + msgTimeoutResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnCloseResponse", value: MsgTimeoutOnCloseResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutResponse", value: MsgTimeoutResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgTimeoutOnCloseResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgTimeoutResponse: Could not create message: ' + e.message); } }, - queryChannelsResponse({ value }) { + queryPacketCommitmentsResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelsResponse", value: QueryChannelsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentsResponse", value: QueryPacketCommitmentsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryChannelsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryPacketCommitmentsResponse: Could not create message: ' + e.message); } }, - packetId({ value }) { + queryPacketAcknowledgementsRequest({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.PacketId", value: PacketId.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest", value: QueryPacketAcknowledgementsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:PacketId: Could not create message: ' + e.message); + throw new Error('TxClient:QueryPacketAcknowledgementsRequest: Could not create message: ' + e.message); } }, - msgRecvPacket({ value }) { + channel({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgRecvPacket", value: MsgRecvPacket.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.Channel", value: Channel.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRecvPacket: Could not create message: ' + e.message); + throw new Error('TxClient:Channel: Could not create message: ' + e.message); } }, - queryUnreceivedPacketsResponse({ value }) { + counterparty({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedPacketsResponse", value: QueryUnreceivedPacketsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.Counterparty", value: Counterparty.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryUnreceivedPacketsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Counterparty: Could not create message: ' + e.message); } }, - queryChannelClientStateRequest({ value }) { + msgChannelOpenInit({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelClientStateRequest", value: QueryChannelClientStateRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInit", value: MsgChannelOpenInit.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryChannelClientStateRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgChannelOpenInit: Could not create message: ' + e.message); } }, - queryChannelConsensusStateRequest({ value }) { + msgChannelOpenTry({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelConsensusStateRequest", value: QueryChannelConsensusStateRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTry", value: MsgChannelOpenTry.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryChannelConsensusStateRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgChannelOpenTry: Could not create message: ' + e.message); } }, - queryUnreceivedPacketsRequest({ value }) { + msgTimeout({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedPacketsRequest", value: QueryUnreceivedPacketsRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgTimeout", value: MsgTimeout.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryUnreceivedPacketsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgTimeout: Could not create message: ' + e.message); } }, - msgChannelOpenInit({ value }) { + identifiedChannel({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInit", value: MsgChannelOpenInit.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.IdentifiedChannel", value: IdentifiedChannel.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgChannelOpenInit: Could not create message: ' + e.message); + throw new Error('TxClient:IdentifiedChannel: Could not create message: ' + e.message); } }, - msgChannelCloseInit({ value }) { + queryNextSequenceReceiveRequest({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseInit", value: MsgChannelCloseInit.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceReceiveRequest", value: QueryNextSequenceReceiveRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgChannelCloseInit: Could not create message: ' + e.message); + throw new Error('TxClient:QueryNextSequenceReceiveRequest: Could not create message: ' + e.message); } }, - msgTimeout({ value }) { + packetState({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgTimeout", value: MsgTimeout.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.PacketState", value: PacketState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgTimeout: Could not create message: ' + e.message); + throw new Error('TxClient:PacketState: Could not create message: ' + e.message); } }, - msgChannelOpenAckResponse({ value }) { + msgAcknowledgementResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAckResponse", value: MsgChannelOpenAckResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgAcknowledgementResponse", value: MsgAcknowledgementResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgChannelOpenAckResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgAcknowledgementResponse: Could not create message: ' + e.message); } }, - msgRecvPacketResponse({ value }) { + queryPacketAcknowledgementsResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgRecvPacketResponse", value: MsgRecvPacketResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse", value: QueryPacketAcknowledgementsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRecvPacketResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryPacketAcknowledgementsResponse: Could not create message: ' + e.message); } }, - queryChannelResponse({ value }) { + queryUnreceivedPacketsResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryChannelResponse", value: QueryChannelResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedPacketsResponse", value: QueryUnreceivedPacketsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryChannelResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryUnreceivedPacketsResponse: Could not create message: ' + e.message); } }, - msgAcknowledgement({ value }) { + msgChannelCloseConfirmResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgAcknowledgement", value: MsgAcknowledgement.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirmResponse", value: MsgChannelCloseConfirmResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgAcknowledgement: Could not create message: ' + e.message); + throw new Error('TxClient:MsgChannelCloseConfirmResponse: Could not create message: ' + e.message); } }, queryChannelRequest({ value }) { @@ -1209,148 +1209,148 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:QueryChannelRequest: Could not create message: ' + e.message); } }, - queryPacketCommitmentResponse({ value }) { + msgChannelOpenAck({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentResponse", value: QueryPacketCommitmentResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenAck", value: MsgChannelOpenAck.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryPacketCommitmentResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgChannelOpenAck: Could not create message: ' + e.message); } }, - queryPacketReceiptResponse({ value }) { + msgAcknowledgement({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketReceiptResponse", value: QueryPacketReceiptResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgAcknowledgement", value: MsgAcknowledgement.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryPacketReceiptResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgAcknowledgement: Could not create message: ' + e.message); } }, - queryNextSequenceReceiveResponse({ value }) { + msgChannelOpenConfirmResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceReceiveResponse", value: QueryNextSequenceReceiveResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenConfirmResponse", value: MsgChannelOpenConfirmResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryNextSequenceReceiveResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgChannelOpenConfirmResponse: Could not create message: ' + e.message); } }, - timeout({ value }) { + queryNextSequenceSendResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.Timeout", value: Timeout.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceSendResponse", value: QueryNextSequenceSendResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Timeout: Could not create message: ' + e.message); + throw new Error('TxClient:QueryNextSequenceSendResponse: Could not create message: ' + e.message); } }, - msgTimeoutResponse({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutResponse", value: MsgTimeoutResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgTimeoutResponse: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - genesisState({ value }) { + queryPacketReceiptRequest({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryPacketReceiptRequest", value: QueryPacketReceiptRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:QueryPacketReceiptRequest: Could not create message: ' + e.message); } }, - packet({ value }) { + queryUnreceivedAcksResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.Packet", value: Packet.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryUnreceivedAcksResponse", value: QueryUnreceivedAcksResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Packet: Could not create message: ' + e.message); + throw new Error('TxClient:QueryUnreceivedAcksResponse: Could not create message: ' + e.message); } }, - queryPacketCommitmentsRequest({ value }) { + acknowledgement({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketCommitmentsRequest", value: QueryPacketCommitmentsRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.Acknowledgement", value: Acknowledgement.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryPacketCommitmentsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:Acknowledgement: Could not create message: ' + e.message); } }, - msgChannelCloseConfirm({ value }) { + msgChannelOpenTryResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelCloseConfirm", value: MsgChannelCloseConfirm.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTryResponse", value: MsgChannelOpenTryResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgChannelCloseConfirm: Could not create message: ' + e.message); + throw new Error('TxClient:MsgChannelOpenTryResponse: Could not create message: ' + e.message); } }, - queryPacketAcknowledgementsResponse({ value }) { + queryNextSequenceSendRequest({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse", value: QueryPacketAcknowledgementsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceSendRequest", value: QueryNextSequenceSendRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryPacketAcknowledgementsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryNextSequenceSendRequest: Could not create message: ' + e.message); } }, - packetState({ value }) { + packet({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.PacketState", value: PacketState.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.Packet", value: Packet.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:PacketState: Could not create message: ' + e.message); + throw new Error('TxClient:Packet: Could not create message: ' + e.message); } }, - identifiedChannel({ value }) { + msgTimeoutOnCloseResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.IdentifiedChannel", value: IdentifiedChannel.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgTimeoutOnCloseResponse", value: MsgTimeoutOnCloseResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:IdentifiedChannel: Could not create message: ' + e.message); + throw new Error('TxClient:MsgTimeoutOnCloseResponse: Could not create message: ' + e.message); } }, - queryNextSequenceSendRequest({ value }) { + queryChannelsResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceSendRequest", value: QueryNextSequenceSendRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryChannelsResponse", value: QueryChannelsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryNextSequenceSendRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryChannelsResponse: Could not create message: ' + e.message); } }, - packetSequence({ value }) { + queryNextSequenceReceiveResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.PacketSequence", value: PacketSequence.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryNextSequenceReceiveResponse", value: QueryNextSequenceReceiveResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:PacketSequence: Could not create message: ' + e.message); + throw new Error('TxClient:QueryNextSequenceReceiveResponse: Could not create message: ' + e.message); } }, - channel({ value }) { + timeout({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.Channel", value: Channel.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.Timeout", value: Timeout.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Channel: Could not create message: ' + e.message); + throw new Error('TxClient:Timeout: Could not create message: ' + e.message); } }, - msgChannelOpenTryResponse({ value }) { + msgRecvPacketResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenTryResponse", value: MsgChannelOpenTryResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.MsgRecvPacketResponse", value: MsgRecvPacketResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgChannelOpenTryResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRecvPacketResponse: Could not create message: ' + e.message); } }, - msgChannelOpenInitResponse({ value }) { + queryChannelConsensusStateRequest({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.MsgChannelOpenInitResponse", value: MsgChannelOpenInitResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryChannelConsensusStateRequest", value: QueryChannelConsensusStateRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgChannelOpenInitResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryChannelConsensusStateRequest: Could not create message: ' + e.message); } }, - queryPacketAcknowledgementRequest({ value }) { + queryPacketAcknowledgementResponse({ value }) { try { - return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementRequest", value: QueryPacketAcknowledgementRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.channel.v1.QueryPacketAcknowledgementResponse", value: QueryPacketAcknowledgementResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryPacketAcknowledgementRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryPacketAcknowledgementResponse: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/ibc.core.channel.v1/registry.js b/ts-client/lib/ibc.core.channel.v1/registry.js index 5f6fe0428..521962d02 100644 --- a/ts-client/lib/ibc.core.channel.v1/registry.js +++ b/ts-client/lib/ibc.core.channel.v1/registry.js @@ -1,119 +1,119 @@ -import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; +import { QueryUnreceivedPacketsRequest } from "./types/ibc/core/channel/v1/query"; import { QueryChannelClientStateResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryConnectionChannelsRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedAcksRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelCloseInitResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryPacketCommitmentRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUnreceivedAcksResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketReceiptResponse } from "./types/ibc/core/channel/v1/query"; import { MsgTimeoutOnClose } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelCloseConfirmResponse } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenAckResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryChannelsRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelOpenInitResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketCommitmentResponse } from "./types/ibc/core/channel/v1/query"; +import { PacketSequence } from "./types/ibc/core/channel/v1/genesis"; +import { PacketId } from "./types/ibc/core/channel/v1/channel"; +import { QueryChannelConsensusStateResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketCommitmentsRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelOpenConfirm } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelClientStateRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryConnectionChannelsResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgTimeoutResponse } 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 { Channel } from "./types/ibc/core/channel/v1/channel"; +import { Counterparty } from "./types/ibc/core/channel/v1/channel"; +import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; +import { MsgChannelOpenTry } from "./types/ibc/core/channel/v1/tx"; +import { MsgTimeout } from "./types/ibc/core/channel/v1/tx"; +import { IdentifiedChannel } from "./types/ibc/core/channel/v1/channel"; import { QueryNextSequenceReceiveRequest } from "./types/ibc/core/channel/v1/query"; +import { PacketState } from "./types/ibc/core/channel/v1/channel"; +import { MsgAcknowledgementResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryPacketAcknowledgementsResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedPacketsResponse } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelCloseConfirmResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; +import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; import { MsgChannelOpenConfirmResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryNextSequenceSendResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgAcknowledgementResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryUnreceivedAcksRequest } from "./types/ibc/core/channel/v1/query"; -import { Acknowledgement } from "./types/ibc/core/channel/v1/channel"; -import { MsgChannelCloseInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { Counterparty } from "./types/ibc/core/channel/v1/channel"; -import { QueryPacketCommitmentsResponse } from "./types/ibc/core/channel/v1/query"; +import { GenesisState } from "./types/ibc/core/channel/v1/genesis"; import { QueryPacketReceiptRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketAcknowledgementResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryConnectionChannelsRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryConnectionChannelsResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelOpenAck } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenConfirm } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelConsensusStateResponse } from "./types/ibc/core/channel/v1/query"; +import { QueryUnreceivedAcksResponse } from "./types/ibc/core/channel/v1/query"; +import { Acknowledgement } from "./types/ibc/core/channel/v1/channel"; +import { MsgChannelOpenTryResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryNextSequenceSendRequest } from "./types/ibc/core/channel/v1/query"; +import { Packet } from "./types/ibc/core/channel/v1/channel"; import { MsgTimeoutOnCloseResponse } from "./types/ibc/core/channel/v1/tx"; import { QueryChannelsResponse } from "./types/ibc/core/channel/v1/query"; -import { PacketId } from "./types/ibc/core/channel/v1/channel"; -import { MsgRecvPacket } from "./types/ibc/core/channel/v1/tx"; -import { QueryUnreceivedPacketsResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryChannelClientStateRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryChannelConsensusStateRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryUnreceivedPacketsRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelOpenInit } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelCloseInit } from "./types/ibc/core/channel/v1/tx"; -import { MsgTimeout } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenAckResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgRecvPacketResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelResponse } from "./types/ibc/core/channel/v1/query"; -import { MsgAcknowledgement } from "./types/ibc/core/channel/v1/tx"; -import { QueryChannelRequest } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketCommitmentResponse } from "./types/ibc/core/channel/v1/query"; -import { QueryPacketReceiptResponse } from "./types/ibc/core/channel/v1/query"; import { QueryNextSequenceReceiveResponse } from "./types/ibc/core/channel/v1/query"; import { Timeout } from "./types/ibc/core/channel/v1/channel"; -import { MsgTimeoutResponse } from "./types/ibc/core/channel/v1/tx"; -import { GenesisState } from "./types/ibc/core/channel/v1/genesis"; -import { Packet } from "./types/ibc/core/channel/v1/channel"; -import { QueryPacketCommitmentsRequest } from "./types/ibc/core/channel/v1/query"; -import { MsgChannelCloseConfirm } from "./types/ibc/core/channel/v1/tx"; -import { QueryPacketAcknowledgementsResponse } from "./types/ibc/core/channel/v1/query"; -import { PacketState } from "./types/ibc/core/channel/v1/channel"; -import { IdentifiedChannel } from "./types/ibc/core/channel/v1/channel"; -import { QueryNextSequenceSendRequest } from "./types/ibc/core/channel/v1/query"; -import { PacketSequence } from "./types/ibc/core/channel/v1/genesis"; -import { Channel } from "./types/ibc/core/channel/v1/channel"; -import { MsgChannelOpenTryResponse } from "./types/ibc/core/channel/v1/tx"; -import { MsgChannelOpenInitResponse } from "./types/ibc/core/channel/v1/tx"; -import { QueryPacketAcknowledgementRequest } from "./types/ibc/core/channel/v1/query"; +import { MsgRecvPacketResponse } from "./types/ibc/core/channel/v1/tx"; +import { QueryChannelConsensusStateRequest } from "./types/ibc/core/channel/v1/query"; +import { QueryPacketAcknowledgementResponse } from "./types/ibc/core/channel/v1/query"; const msgTypes = [ - ["/ibc.core.channel.v1.MsgChannelOpenTry", MsgChannelOpenTry], + ["/ibc.core.channel.v1.QueryUnreceivedPacketsRequest", QueryUnreceivedPacketsRequest], ["/ibc.core.channel.v1.QueryChannelClientStateResponse", QueryChannelClientStateResponse], + ["/ibc.core.channel.v1.QueryConnectionChannelsRequest", QueryConnectionChannelsRequest], + ["/ibc.core.channel.v1.QueryUnreceivedAcksRequest", QueryUnreceivedAcksRequest], + ["/ibc.core.channel.v1.MsgChannelCloseInitResponse", MsgChannelCloseInitResponse], ["/ibc.core.channel.v1.QueryPacketCommitmentRequest", QueryPacketCommitmentRequest], - ["/ibc.core.channel.v1.QueryUnreceivedAcksResponse", QueryUnreceivedAcksResponse], + ["/ibc.core.channel.v1.QueryPacketAcknowledgementRequest", QueryPacketAcknowledgementRequest], + ["/ibc.core.channel.v1.MsgChannelCloseInit", MsgChannelCloseInit], + ["/ibc.core.channel.v1.QueryPacketReceiptResponse", QueryPacketReceiptResponse], ["/ibc.core.channel.v1.MsgTimeoutOnClose", MsgTimeoutOnClose], - ["/ibc.core.channel.v1.MsgChannelCloseConfirmResponse", MsgChannelCloseConfirmResponse], + ["/ibc.core.channel.v1.MsgChannelOpenAckResponse", MsgChannelOpenAckResponse], ["/ibc.core.channel.v1.QueryChannelsRequest", QueryChannelsRequest], + ["/ibc.core.channel.v1.MsgChannelOpenInitResponse", MsgChannelOpenInitResponse], + ["/ibc.core.channel.v1.QueryChannelResponse", QueryChannelResponse], + ["/ibc.core.channel.v1.QueryPacketCommitmentResponse", QueryPacketCommitmentResponse], + ["/ibc.core.channel.v1.PacketSequence", PacketSequence], + ["/ibc.core.channel.v1.PacketId", PacketId], + ["/ibc.core.channel.v1.QueryChannelConsensusStateResponse", QueryChannelConsensusStateResponse], + ["/ibc.core.channel.v1.MsgRecvPacket", MsgRecvPacket], + ["/ibc.core.channel.v1.QueryPacketCommitmentsRequest", QueryPacketCommitmentsRequest], + ["/ibc.core.channel.v1.MsgChannelOpenConfirm", MsgChannelOpenConfirm], + ["/ibc.core.channel.v1.MsgChannelCloseConfirm", MsgChannelCloseConfirm], + ["/ibc.core.channel.v1.QueryChannelClientStateRequest", QueryChannelClientStateRequest], + ["/ibc.core.channel.v1.QueryConnectionChannelsResponse", QueryConnectionChannelsResponse], + ["/ibc.core.channel.v1.MsgTimeoutResponse", MsgTimeoutResponse], + ["/ibc.core.channel.v1.QueryPacketCommitmentsResponse", QueryPacketCommitmentsResponse], ["/ibc.core.channel.v1.QueryPacketAcknowledgementsRequest", QueryPacketAcknowledgementsRequest], + ["/ibc.core.channel.v1.Channel", Channel], + ["/ibc.core.channel.v1.Counterparty", Counterparty], + ["/ibc.core.channel.v1.MsgChannelOpenInit", MsgChannelOpenInit], + ["/ibc.core.channel.v1.MsgChannelOpenTry", MsgChannelOpenTry], + ["/ibc.core.channel.v1.MsgTimeout", MsgTimeout], + ["/ibc.core.channel.v1.IdentifiedChannel", IdentifiedChannel], ["/ibc.core.channel.v1.QueryNextSequenceReceiveRequest", QueryNextSequenceReceiveRequest], + ["/ibc.core.channel.v1.PacketState", PacketState], + ["/ibc.core.channel.v1.MsgAcknowledgementResponse", MsgAcknowledgementResponse], + ["/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse", QueryPacketAcknowledgementsResponse], + ["/ibc.core.channel.v1.QueryUnreceivedPacketsResponse", QueryUnreceivedPacketsResponse], + ["/ibc.core.channel.v1.MsgChannelCloseConfirmResponse", MsgChannelCloseConfirmResponse], + ["/ibc.core.channel.v1.QueryChannelRequest", QueryChannelRequest], + ["/ibc.core.channel.v1.MsgChannelOpenAck", MsgChannelOpenAck], + ["/ibc.core.channel.v1.MsgAcknowledgement", MsgAcknowledgement], ["/ibc.core.channel.v1.MsgChannelOpenConfirmResponse", MsgChannelOpenConfirmResponse], ["/ibc.core.channel.v1.QueryNextSequenceSendResponse", QueryNextSequenceSendResponse], - ["/ibc.core.channel.v1.MsgAcknowledgementResponse", MsgAcknowledgementResponse], - ["/ibc.core.channel.v1.QueryUnreceivedAcksRequest", QueryUnreceivedAcksRequest], - ["/ibc.core.channel.v1.Acknowledgement", Acknowledgement], - ["/ibc.core.channel.v1.MsgChannelCloseInitResponse", MsgChannelCloseInitResponse], - ["/ibc.core.channel.v1.Counterparty", Counterparty], - ["/ibc.core.channel.v1.QueryPacketCommitmentsResponse", QueryPacketCommitmentsResponse], + ["/ibc.core.channel.v1.GenesisState", GenesisState], ["/ibc.core.channel.v1.QueryPacketReceiptRequest", QueryPacketReceiptRequest], - ["/ibc.core.channel.v1.QueryPacketAcknowledgementResponse", QueryPacketAcknowledgementResponse], - ["/ibc.core.channel.v1.QueryConnectionChannelsRequest", QueryConnectionChannelsRequest], - ["/ibc.core.channel.v1.QueryConnectionChannelsResponse", QueryConnectionChannelsResponse], - ["/ibc.core.channel.v1.MsgChannelOpenAck", MsgChannelOpenAck], - ["/ibc.core.channel.v1.MsgChannelOpenConfirm", MsgChannelOpenConfirm], - ["/ibc.core.channel.v1.QueryChannelConsensusStateResponse", QueryChannelConsensusStateResponse], + ["/ibc.core.channel.v1.QueryUnreceivedAcksResponse", QueryUnreceivedAcksResponse], + ["/ibc.core.channel.v1.Acknowledgement", Acknowledgement], + ["/ibc.core.channel.v1.MsgChannelOpenTryResponse", MsgChannelOpenTryResponse], + ["/ibc.core.channel.v1.QueryNextSequenceSendRequest", QueryNextSequenceSendRequest], + ["/ibc.core.channel.v1.Packet", Packet], ["/ibc.core.channel.v1.MsgTimeoutOnCloseResponse", MsgTimeoutOnCloseResponse], ["/ibc.core.channel.v1.QueryChannelsResponse", QueryChannelsResponse], - ["/ibc.core.channel.v1.PacketId", PacketId], - ["/ibc.core.channel.v1.MsgRecvPacket", MsgRecvPacket], - ["/ibc.core.channel.v1.QueryUnreceivedPacketsResponse", QueryUnreceivedPacketsResponse], - ["/ibc.core.channel.v1.QueryChannelClientStateRequest", QueryChannelClientStateRequest], - ["/ibc.core.channel.v1.QueryChannelConsensusStateRequest", QueryChannelConsensusStateRequest], - ["/ibc.core.channel.v1.QueryUnreceivedPacketsRequest", QueryUnreceivedPacketsRequest], - ["/ibc.core.channel.v1.MsgChannelOpenInit", MsgChannelOpenInit], - ["/ibc.core.channel.v1.MsgChannelCloseInit", MsgChannelCloseInit], - ["/ibc.core.channel.v1.MsgTimeout", MsgTimeout], - ["/ibc.core.channel.v1.MsgChannelOpenAckResponse", MsgChannelOpenAckResponse], - ["/ibc.core.channel.v1.MsgRecvPacketResponse", MsgRecvPacketResponse], - ["/ibc.core.channel.v1.QueryChannelResponse", QueryChannelResponse], - ["/ibc.core.channel.v1.MsgAcknowledgement", MsgAcknowledgement], - ["/ibc.core.channel.v1.QueryChannelRequest", QueryChannelRequest], - ["/ibc.core.channel.v1.QueryPacketCommitmentResponse", QueryPacketCommitmentResponse], - ["/ibc.core.channel.v1.QueryPacketReceiptResponse", QueryPacketReceiptResponse], ["/ibc.core.channel.v1.QueryNextSequenceReceiveResponse", QueryNextSequenceReceiveResponse], ["/ibc.core.channel.v1.Timeout", Timeout], - ["/ibc.core.channel.v1.MsgTimeoutResponse", MsgTimeoutResponse], - ["/ibc.core.channel.v1.GenesisState", GenesisState], - ["/ibc.core.channel.v1.Packet", Packet], - ["/ibc.core.channel.v1.QueryPacketCommitmentsRequest", QueryPacketCommitmentsRequest], - ["/ibc.core.channel.v1.MsgChannelCloseConfirm", MsgChannelCloseConfirm], - ["/ibc.core.channel.v1.QueryPacketAcknowledgementsResponse", QueryPacketAcknowledgementsResponse], - ["/ibc.core.channel.v1.PacketState", PacketState], - ["/ibc.core.channel.v1.IdentifiedChannel", IdentifiedChannel], - ["/ibc.core.channel.v1.QueryNextSequenceSendRequest", QueryNextSequenceSendRequest], - ["/ibc.core.channel.v1.PacketSequence", PacketSequence], - ["/ibc.core.channel.v1.Channel", Channel], - ["/ibc.core.channel.v1.MsgChannelOpenTryResponse", MsgChannelOpenTryResponse], - ["/ibc.core.channel.v1.MsgChannelOpenInitResponse", MsgChannelOpenInitResponse], - ["/ibc.core.channel.v1.QueryPacketAcknowledgementRequest", QueryPacketAcknowledgementRequest], + ["/ibc.core.channel.v1.MsgRecvPacketResponse", MsgRecvPacketResponse], + ["/ibc.core.channel.v1.QueryChannelConsensusStateRequest", QueryChannelConsensusStateRequest], + ["/ibc.core.channel.v1.QueryPacketAcknowledgementResponse", QueryPacketAcknowledgementResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/ibc.core.client.v1/module.d.ts b/ts-client/lib/ibc.core.client.v1/module.d.ts index 91cec8c30..ed13db7cc 100644 --- a/ts-client/lib/ibc.core.client.v1/module.d.ts +++ b/ts-client/lib/ibc.core.client.v1/module.d.ts @@ -3,90 +3,85 @@ import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/pr import { IgniteClient } from "../client"; import { Api } from "./rest"; import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; +import { MsgRecoverClient } from "./types/ibc/core/client/v1/tx"; +import { QueryClientStateRequest } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStateHeightsResponse } from "./types/ibc/core/client/v1/query"; +import { QueryUpgradedClientStateResponse } from "./types/ibc/core/client/v1/query"; +import { QueryClientStatesResponse } from "./types/ibc/core/client/v1/query"; +import { QueryUpgradedConsensusStateResponse } from "./types/ibc/core/client/v1/query"; +import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; import { MsgUpdateClientResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgUpgradeClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgUpdateParamsResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryClientStatusRequest } from "./types/ibc/core/client/v1/query"; +import { QueryUpgradedClientStateRequest } from "./types/ibc/core/client/v1/query"; import { Height } from "./types/ibc/core/client/v1/client"; -import { QueryClientStateResponse } from "./types/ibc/core/client/v1/query"; -import { QueryClientStateRequest } from "./types/ibc/core/client/v1/query"; +import { MsgUpgradeClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgSubmitMisbehaviour } from "./types/ibc/core/client/v1/tx"; +import { MsgSubmitMisbehaviourResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryClientStatesRequest } 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 { QueryClientParamsRequest } from "./types/ibc/core/client/v1/query"; -import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; -import { QueryClientStatesResponse } from "./types/ibc/core/client/v1/query"; +import { QueryClientStatusResponse } from "./types/ibc/core/client/v1/query"; +import { MsgUpgradeClient } from "./types/ibc/core/client/v1/tx"; +import { IdentifiedGenesisMetadata } from "./types/ibc/core/client/v1/genesis"; +import { GenesisMetadata } from "./types/ibc/core/client/v1/genesis"; import { MsgIBCSoftwareUpgradeResponse } from "./types/ibc/core/client/v1/tx"; -import { QueryClientParamsResponse } from "./types/ibc/core/client/v1/query"; -import { MsgIBCSoftwareUpgrade } from "./types/ibc/core/client/v1/tx"; -import { MsgCreateClientResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgSubmitMisbehaviourResponse } from "./types/ibc/core/client/v1/tx"; +import { Params } from "./types/ibc/core/client/v1/client"; import { MsgRecoverClientResponse } from "./types/ibc/core/client/v1/tx"; -import { IdentifiedClientState } from "./types/ibc/core/client/v1/client"; -import { GenesisMetadata } from "./types/ibc/core/client/v1/genesis"; -import { QueryClientStatesRequest } from "./types/ibc/core/client/v1/query"; -import { ClientUpdateProposal } from "./types/ibc/core/client/v1/client"; -import { MsgUpdateParams } from "./types/ibc/core/client/v1/tx"; -import { QueryConsensusStateResponse } from "./types/ibc/core/client/v1/query"; import { QueryConsensusStatesRequest } from "./types/ibc/core/client/v1/query"; -import { ConsensusStateWithHeight } from "./types/ibc/core/client/v1/client"; -import { Params } from "./types/ibc/core/client/v1/client"; -import { IdentifiedGenesisMetadata } from "./types/ibc/core/client/v1/genesis"; -import { QueryConsensusStateRequest } from "./types/ibc/core/client/v1/query"; -import { QueryUpgradedClientStateRequest } from "./types/ibc/core/client/v1/query"; -import { QueryUpgradedClientStateResponse } from "./types/ibc/core/client/v1/query"; -import { MsgSubmitMisbehaviour } from "./types/ibc/core/client/v1/tx"; -import { MsgRecoverClient } 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 { ClientConsensusStates } from "./types/ibc/core/client/v1/client"; -import { GenesisState } from "./types/ibc/core/client/v1/genesis"; +import { ConsensusStateWithHeight } from "./types/ibc/core/client/v1/client"; import { QueryUpgradedConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { ClientConsensusStates } from "./types/ibc/core/client/v1/client"; import { UpgradeProposal } from "./types/ibc/core/client/v1/client"; -import { MsgUpgradeClient } from "./types/ibc/core/client/v1/tx"; -import { MsgUpdateParamsResponse } from "./types/ibc/core/client/v1/tx"; -import { QueryConsensusStateHeightsResponse } from "./types/ibc/core/client/v1/query"; -import { QueryClientStatusResponse } from "./types/ibc/core/client/v1/query"; -import { QueryUpgradedConsensusStateResponse } from "./types/ibc/core/client/v1/query"; -export { MsgCreateClient, MsgUpdateClientResponse, MsgUpgradeClientResponse, Height, QueryClientStateResponse, QueryClientStateRequest, QueryConsensusStateHeightsRequest, QueryClientStatusRequest, QueryClientParamsRequest, MsgUpdateClient, QueryClientStatesResponse, MsgIBCSoftwareUpgradeResponse, QueryClientParamsResponse, MsgIBCSoftwareUpgrade, MsgCreateClientResponse, MsgSubmitMisbehaviourResponse, MsgRecoverClientResponse, IdentifiedClientState, GenesisMetadata, QueryClientStatesRequest, ClientUpdateProposal, MsgUpdateParams, QueryConsensusStateResponse, QueryConsensusStatesRequest, ConsensusStateWithHeight, Params, IdentifiedGenesisMetadata, QueryConsensusStateRequest, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, MsgSubmitMisbehaviour, MsgRecoverClient, QueryConsensusStatesResponse, ClientConsensusStates, GenesisState, QueryUpgradedConsensusStateRequest, UpgradeProposal, MsgUpgradeClient, MsgUpdateParamsResponse, QueryConsensusStateHeightsResponse, QueryClientStatusResponse, QueryUpgradedConsensusStateResponse }; +import { MsgCreateClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgIBCSoftwareUpgrade } from "./types/ibc/core/client/v1/tx"; +import { IdentifiedClientState } from "./types/ibc/core/client/v1/client"; +import { QueryClientParamsRequest } from "./types/ibc/core/client/v1/query"; +import { GenesisState } from "./types/ibc/core/client/v1/genesis"; +import { QueryClientStateResponse } from "./types/ibc/core/client/v1/query"; +import { MsgUpdateParams } from "./types/ibc/core/client/v1/tx"; +import { QueryClientParamsResponse } from "./types/ibc/core/client/v1/query"; +import { ClientUpdateProposal } from "./types/ibc/core/client/v1/client"; +export { MsgCreateClient, MsgRecoverClient, QueryClientStateRequest, QueryConsensusStateRequest, QueryConsensusStateHeightsResponse, QueryUpgradedClientStateResponse, QueryClientStatesResponse, QueryUpgradedConsensusStateResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpdateParamsResponse, QueryClientStatusRequest, QueryUpgradedClientStateRequest, Height, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse, QueryClientStatesRequest, QueryConsensusStateHeightsRequest, QueryClientStatusResponse, MsgUpgradeClient, IdentifiedGenesisMetadata, GenesisMetadata, MsgIBCSoftwareUpgradeResponse, Params, MsgRecoverClientResponse, QueryConsensusStatesRequest, QueryConsensusStateResponse, QueryConsensusStatesResponse, ConsensusStateWithHeight, QueryUpgradedConsensusStateRequest, ClientConsensusStates, UpgradeProposal, MsgCreateClientResponse, MsgIBCSoftwareUpgrade, IdentifiedClientState, QueryClientParamsRequest, GenesisState, QueryClientStateResponse, MsgUpdateParams, QueryClientParamsResponse, ClientUpdateProposal }; type sendMsgCreateClientParams = { value: MsgCreateClient; fee?: StdFee; memo?: string; }; -type sendMsgUpdateClientResponseParams = { - value: MsgUpdateClientResponse; - fee?: StdFee; - memo?: string; -}; -type sendMsgUpgradeClientResponseParams = { - value: MsgUpgradeClientResponse; +type sendMsgRecoverClientParams = { + value: MsgRecoverClient; fee?: StdFee; memo?: string; }; -type sendHeightParams = { - value: Height; +type sendQueryClientStateRequestParams = { + value: QueryClientStateRequest; fee?: StdFee; memo?: string; }; -type sendQueryClientStateResponseParams = { - value: QueryClientStateResponse; +type sendQueryConsensusStateRequestParams = { + value: QueryConsensusStateRequest; fee?: StdFee; memo?: string; }; -type sendQueryClientStateRequestParams = { - value: QueryClientStateRequest; +type sendQueryConsensusStateHeightsResponseParams = { + value: QueryConsensusStateHeightsResponse; fee?: StdFee; memo?: string; }; -type sendQueryConsensusStateHeightsRequestParams = { - value: QueryConsensusStateHeightsRequest; +type sendQueryUpgradedClientStateResponseParams = { + value: QueryUpgradedClientStateResponse; fee?: StdFee; memo?: string; }; -type sendQueryClientStatusRequestParams = { - value: QueryClientStatusRequest; +type sendQueryClientStatesResponseParams = { + value: QueryClientStatesResponse; fee?: StdFee; memo?: string; }; -type sendQueryClientParamsRequestParams = { - value: QueryClientParamsRequest; +type sendQueryUpgradedConsensusStateResponseParams = { + value: QueryUpgradedConsensusStateResponse; fee?: StdFee; memo?: string; }; @@ -95,78 +90,78 @@ type sendMsgUpdateClientParams = { fee?: StdFee; memo?: string; }; -type sendQueryClientStatesResponseParams = { - value: QueryClientStatesResponse; +type sendMsgUpdateClientResponseParams = { + value: MsgUpdateClientResponse; fee?: StdFee; memo?: string; }; -type sendMsgIBCSoftwareUpgradeResponseParams = { - value: MsgIBCSoftwareUpgradeResponse; +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; fee?: StdFee; memo?: string; }; -type sendQueryClientParamsResponseParams = { - value: QueryClientParamsResponse; +type sendQueryClientStatusRequestParams = { + value: QueryClientStatusRequest; fee?: StdFee; memo?: string; }; -type sendMsgIBCSoftwareUpgradeParams = { - value: MsgIBCSoftwareUpgrade; +type sendQueryUpgradedClientStateRequestParams = { + value: QueryUpgradedClientStateRequest; fee?: StdFee; memo?: string; }; -type sendMsgCreateClientResponseParams = { - value: MsgCreateClientResponse; +type sendHeightParams = { + value: Height; fee?: StdFee; memo?: string; }; -type sendMsgSubmitMisbehaviourResponseParams = { - value: MsgSubmitMisbehaviourResponse; +type sendMsgUpgradeClientResponseParams = { + value: MsgUpgradeClientResponse; fee?: StdFee; memo?: string; }; -type sendMsgRecoverClientResponseParams = { - value: MsgRecoverClientResponse; +type sendMsgSubmitMisbehaviourParams = { + value: MsgSubmitMisbehaviour; fee?: StdFee; memo?: string; }; -type sendIdentifiedClientStateParams = { - value: IdentifiedClientState; +type sendMsgSubmitMisbehaviourResponseParams = { + value: MsgSubmitMisbehaviourResponse; fee?: StdFee; memo?: string; }; -type sendGenesisMetadataParams = { - value: GenesisMetadata; +type sendQueryClientStatesRequestParams = { + value: QueryClientStatesRequest; fee?: StdFee; memo?: string; }; -type sendQueryClientStatesRequestParams = { - value: QueryClientStatesRequest; +type sendQueryConsensusStateHeightsRequestParams = { + value: QueryConsensusStateHeightsRequest; fee?: StdFee; memo?: string; }; -type sendClientUpdateProposalParams = { - value: ClientUpdateProposal; +type sendQueryClientStatusResponseParams = { + value: QueryClientStatusResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams; +type sendMsgUpgradeClientParams = { + value: MsgUpgradeClient; fee?: StdFee; memo?: string; }; -type sendQueryConsensusStateResponseParams = { - value: QueryConsensusStateResponse; +type sendIdentifiedGenesisMetadataParams = { + value: IdentifiedGenesisMetadata; fee?: StdFee; memo?: string; }; -type sendQueryConsensusStatesRequestParams = { - value: QueryConsensusStatesRequest; +type sendGenesisMetadataParams = { + value: GenesisMetadata; fee?: StdFee; memo?: string; }; -type sendConsensusStateWithHeightParams = { - value: ConsensusStateWithHeight; +type sendMsgIBCSoftwareUpgradeResponseParams = { + value: MsgIBCSoftwareUpgradeResponse; fee?: StdFee; memo?: string; }; @@ -175,211 +170,216 @@ type sendParamsParams = { fee?: StdFee; memo?: string; }; -type sendIdentifiedGenesisMetadataParams = { - value: IdentifiedGenesisMetadata; +type sendMsgRecoverClientResponseParams = { + value: MsgRecoverClientResponse; fee?: StdFee; memo?: string; }; -type sendQueryConsensusStateRequestParams = { - value: QueryConsensusStateRequest; +type sendQueryConsensusStatesRequestParams = { + value: QueryConsensusStatesRequest; fee?: StdFee; memo?: string; }; -type sendQueryUpgradedClientStateRequestParams = { - value: QueryUpgradedClientStateRequest; +type sendQueryConsensusStateResponseParams = { + value: QueryConsensusStateResponse; fee?: StdFee; memo?: string; }; -type sendQueryUpgradedClientStateResponseParams = { - value: QueryUpgradedClientStateResponse; +type sendQueryConsensusStatesResponseParams = { + value: QueryConsensusStatesResponse; fee?: StdFee; memo?: string; }; -type sendMsgSubmitMisbehaviourParams = { - value: MsgSubmitMisbehaviour; +type sendConsensusStateWithHeightParams = { + value: ConsensusStateWithHeight; fee?: StdFee; memo?: string; }; -type sendMsgRecoverClientParams = { - value: MsgRecoverClient; +type sendQueryUpgradedConsensusStateRequestParams = { + value: QueryUpgradedConsensusStateRequest; fee?: StdFee; memo?: string; }; -type sendQueryConsensusStatesResponseParams = { - value: QueryConsensusStatesResponse; +type sendClientConsensusStatesParams = { + value: ClientConsensusStates; fee?: StdFee; memo?: string; }; -type sendClientConsensusStatesParams = { - value: ClientConsensusStates; +type sendUpgradeProposalParams = { + value: UpgradeProposal; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendMsgCreateClientResponseParams = { + value: MsgCreateClientResponse; fee?: StdFee; memo?: string; }; -type sendQueryUpgradedConsensusStateRequestParams = { - value: QueryUpgradedConsensusStateRequest; +type sendMsgIBCSoftwareUpgradeParams = { + value: MsgIBCSoftwareUpgrade; fee?: StdFee; memo?: string; }; -type sendUpgradeProposalParams = { - value: UpgradeProposal; +type sendIdentifiedClientStateParams = { + value: IdentifiedClientState; fee?: StdFee; memo?: string; }; -type sendMsgUpgradeClientParams = { - value: MsgUpgradeClient; +type sendQueryClientParamsRequestParams = { + value: QueryClientParamsRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendQueryConsensusStateHeightsResponseParams = { - value: QueryConsensusStateHeightsResponse; +type sendQueryClientStateResponseParams = { + value: QueryClientStateResponse; fee?: StdFee; memo?: string; }; -type sendQueryClientStatusResponseParams = { - value: QueryClientStatusResponse; +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams; fee?: StdFee; memo?: string; }; -type sendQueryUpgradedConsensusStateResponseParams = { - value: QueryUpgradedConsensusStateResponse; +type sendQueryClientParamsResponseParams = { + value: QueryClientParamsResponse; + fee?: StdFee; + memo?: string; +}; +type sendClientUpdateProposalParams = { + value: ClientUpdateProposal; fee?: StdFee; memo?: string; }; type msgCreateClientParams = { value: MsgCreateClient; }; -type msgUpdateClientResponseParams = { - value: MsgUpdateClientResponse; -}; -type msgUpgradeClientResponseParams = { - value: MsgUpgradeClientResponse; -}; -type heightParams = { - value: Height; -}; -type queryClientStateResponseParams = { - value: QueryClientStateResponse; +type msgRecoverClientParams = { + value: MsgRecoverClient; }; type queryClientStateRequestParams = { value: QueryClientStateRequest; }; -type queryConsensusStateHeightsRequestParams = { - value: QueryConsensusStateHeightsRequest; -}; -type queryClientStatusRequestParams = { - value: QueryClientStatusRequest; +type queryConsensusStateRequestParams = { + value: QueryConsensusStateRequest; }; -type queryClientParamsRequestParams = { - value: QueryClientParamsRequest; +type queryConsensusStateHeightsResponseParams = { + value: QueryConsensusStateHeightsResponse; }; -type msgUpdateClientParams = { - value: MsgUpdateClient; +type queryUpgradedClientStateResponseParams = { + value: QueryUpgradedClientStateResponse; }; type queryClientStatesResponseParams = { value: QueryClientStatesResponse; }; -type msgIbcsoftwareUpgradeResponseParams = { - value: MsgIBCSoftwareUpgradeResponse; -}; -type queryClientParamsResponseParams = { - value: QueryClientParamsResponse; +type queryUpgradedConsensusStateResponseParams = { + value: QueryUpgradedConsensusStateResponse; }; -type msgIbcsoftwareUpgradeParams = { - value: MsgIBCSoftwareUpgrade; +type msgUpdateClientParams = { + value: MsgUpdateClient; }; -type msgCreateClientResponseParams = { - value: MsgCreateClientResponse; +type msgUpdateClientResponseParams = { + value: MsgUpdateClientResponse; }; -type msgSubmitMisbehaviourResponseParams = { - value: MsgSubmitMisbehaviourResponse; +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; }; -type msgRecoverClientResponseParams = { - value: MsgRecoverClientResponse; +type queryClientStatusRequestParams = { + value: QueryClientStatusRequest; }; -type identifiedClientStateParams = { - value: IdentifiedClientState; +type queryUpgradedClientStateRequestParams = { + value: QueryUpgradedClientStateRequest; }; -type genesisMetadataParams = { - value: GenesisMetadata; +type heightParams = { + value: Height; }; -type queryClientStatesRequestParams = { - value: QueryClientStatesRequest; +type msgUpgradeClientResponseParams = { + value: MsgUpgradeClientResponse; }; -type clientUpdateProposalParams = { - value: ClientUpdateProposal; +type msgSubmitMisbehaviourParams = { + value: MsgSubmitMisbehaviour; }; -type msgUpdateParamsParams = { - value: MsgUpdateParams; +type msgSubmitMisbehaviourResponseParams = { + value: MsgSubmitMisbehaviourResponse; }; -type queryConsensusStateResponseParams = { - value: QueryConsensusStateResponse; +type queryClientStatesRequestParams = { + value: QueryClientStatesRequest; }; -type queryConsensusStatesRequestParams = { - value: QueryConsensusStatesRequest; +type queryConsensusStateHeightsRequestParams = { + value: QueryConsensusStateHeightsRequest; }; -type consensusStateWithHeightParams = { - value: ConsensusStateWithHeight; +type queryClientStatusResponseParams = { + value: QueryClientStatusResponse; }; -type paramsParams = { - value: Params; +type msgUpgradeClientParams = { + value: MsgUpgradeClient; }; type identifiedGenesisMetadataParams = { value: IdentifiedGenesisMetadata; }; -type queryConsensusStateRequestParams = { - value: QueryConsensusStateRequest; +type genesisMetadataParams = { + value: GenesisMetadata; }; -type queryUpgradedClientStateRequestParams = { - value: QueryUpgradedClientStateRequest; +type msgIbcsoftwareUpgradeResponseParams = { + value: MsgIBCSoftwareUpgradeResponse; }; -type queryUpgradedClientStateResponseParams = { - value: QueryUpgradedClientStateResponse; +type paramsParams = { + value: Params; }; -type msgSubmitMisbehaviourParams = { - value: MsgSubmitMisbehaviour; +type msgRecoverClientResponseParams = { + value: MsgRecoverClientResponse; }; -type msgRecoverClientParams = { - value: MsgRecoverClient; +type queryConsensusStatesRequestParams = { + value: QueryConsensusStatesRequest; +}; +type queryConsensusStateResponseParams = { + value: QueryConsensusStateResponse; }; type queryConsensusStatesResponseParams = { value: QueryConsensusStatesResponse; }; -type clientConsensusStatesParams = { - value: ClientConsensusStates; -}; -type genesisStateParams = { - value: GenesisState; +type consensusStateWithHeightParams = { + value: ConsensusStateWithHeight; }; type queryUpgradedConsensusStateRequestParams = { value: QueryUpgradedConsensusStateRequest; }; +type clientConsensusStatesParams = { + value: ClientConsensusStates; +}; type upgradeProposalParams = { value: UpgradeProposal; }; -type msgUpgradeClientParams = { - value: MsgUpgradeClient; +type msgCreateClientResponseParams = { + value: MsgCreateClientResponse; }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type msgIbcsoftwareUpgradeParams = { + value: MsgIBCSoftwareUpgrade; }; -type queryConsensusStateHeightsResponseParams = { - value: QueryConsensusStateHeightsResponse; +type identifiedClientStateParams = { + value: IdentifiedClientState; }; -type queryClientStatusResponseParams = { - value: QueryClientStatusResponse; +type queryClientParamsRequestParams = { + value: QueryClientParamsRequest; }; -type queryUpgradedConsensusStateResponseParams = { - value: QueryUpgradedConsensusStateResponse; +type genesisStateParams = { + value: GenesisState; +}; +type queryClientStateResponseParams = { + value: QueryClientStateResponse; +}; +type msgUpdateParamsParams = { + value: MsgUpdateParams; +}; +type queryClientParamsResponseParams = { + value: QueryClientParamsResponse; +}; +type clientUpdateProposalParams = { + value: ClientUpdateProposal; }; export declare const registry: Registry; interface TxClientOptions { @@ -389,89 +389,89 @@ interface TxClientOptions { } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { sendMsgCreateClient({ value, fee, memo }: sendMsgCreateClientParams): Promise; + sendMsgRecoverClient({ value, fee, memo }: sendMsgRecoverClientParams): Promise; + sendQueryClientStateRequest({ value, fee, memo }: sendQueryClientStateRequestParams): Promise; + sendQueryConsensusStateRequest({ value, fee, memo }: sendQueryConsensusStateRequestParams): Promise; + sendQueryConsensusStateHeightsResponse({ value, fee, memo }: sendQueryConsensusStateHeightsResponseParams): Promise; + sendQueryUpgradedClientStateResponse({ value, fee, memo }: sendQueryUpgradedClientStateResponseParams): Promise; + sendQueryClientStatesResponse({ value, fee, memo }: sendQueryClientStatesResponseParams): Promise; + sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: sendQueryUpgradedConsensusStateResponseParams): Promise; + sendMsgUpdateClient({ value, fee, memo }: sendMsgUpdateClientParams): Promise; sendMsgUpdateClientResponse({ value, fee, memo }: sendMsgUpdateClientResponseParams): Promise; - sendMsgUpgradeClientResponse({ value, fee, memo }: sendMsgUpgradeClientResponseParams): Promise; + sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; + sendQueryClientStatusRequest({ value, fee, memo }: sendQueryClientStatusRequestParams): Promise; + sendQueryUpgradedClientStateRequest({ value, fee, memo }: sendQueryUpgradedClientStateRequestParams): Promise; sendHeight({ value, fee, memo }: sendHeightParams): Promise; - sendQueryClientStateResponse({ value, fee, memo }: sendQueryClientStateResponseParams): Promise; - sendQueryClientStateRequest({ value, fee, memo }: sendQueryClientStateRequestParams): Promise; + sendMsgUpgradeClientResponse({ value, fee, memo }: sendMsgUpgradeClientResponseParams): Promise; + sendMsgSubmitMisbehaviour({ value, fee, memo }: sendMsgSubmitMisbehaviourParams): Promise; + sendMsgSubmitMisbehaviourResponse({ value, fee, memo }: sendMsgSubmitMisbehaviourResponseParams): Promise; + sendQueryClientStatesRequest({ value, fee, memo }: sendQueryClientStatesRequestParams): Promise; sendQueryConsensusStateHeightsRequest({ value, fee, memo }: sendQueryConsensusStateHeightsRequestParams): Promise; - sendQueryClientStatusRequest({ value, fee, memo }: sendQueryClientStatusRequestParams): Promise; - sendQueryClientParamsRequest({ value, fee, memo }: sendQueryClientParamsRequestParams): Promise; - sendMsgUpdateClient({ value, fee, memo }: sendMsgUpdateClientParams): Promise; - sendQueryClientStatesResponse({ value, fee, memo }: sendQueryClientStatesResponseParams): Promise; + sendQueryClientStatusResponse({ value, fee, memo }: sendQueryClientStatusResponseParams): Promise; + sendMsgUpgradeClient({ value, fee, memo }: sendMsgUpgradeClientParams): Promise; + sendIdentifiedGenesisMetadata({ value, fee, memo }: sendIdentifiedGenesisMetadataParams): Promise; + sendGenesisMetadata({ value, fee, memo }: sendGenesisMetadataParams): Promise; sendMsgIBCSoftwareUpgradeResponse({ value, fee, memo }: sendMsgIBCSoftwareUpgradeResponseParams): Promise; - sendQueryClientParamsResponse({ value, fee, memo }: sendQueryClientParamsResponseParams): Promise; - sendMsgIBCSoftwareUpgrade({ value, fee, memo }: sendMsgIBCSoftwareUpgradeParams): Promise; - sendMsgCreateClientResponse({ value, fee, memo }: sendMsgCreateClientResponseParams): Promise; - sendMsgSubmitMisbehaviourResponse({ value, fee, memo }: sendMsgSubmitMisbehaviourResponseParams): Promise; + sendParams({ value, fee, memo }: sendParamsParams): Promise; sendMsgRecoverClientResponse({ value, fee, memo }: sendMsgRecoverClientResponseParams): Promise; - sendIdentifiedClientState({ value, fee, memo }: sendIdentifiedClientStateParams): Promise; - sendGenesisMetadata({ value, fee, memo }: sendGenesisMetadataParams): Promise; - sendQueryClientStatesRequest({ value, fee, memo }: sendQueryClientStatesRequestParams): Promise; - sendClientUpdateProposal({ value, fee, memo }: sendClientUpdateProposalParams): Promise; - sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; - sendQueryConsensusStateResponse({ value, fee, memo }: sendQueryConsensusStateResponseParams): Promise; sendQueryConsensusStatesRequest({ value, fee, memo }: sendQueryConsensusStatesRequestParams): Promise; - sendConsensusStateWithHeight({ value, fee, memo }: sendConsensusStateWithHeightParams): Promise; - sendParams({ value, fee, memo }: sendParamsParams): Promise; - sendIdentifiedGenesisMetadata({ value, fee, memo }: sendIdentifiedGenesisMetadataParams): Promise; - sendQueryConsensusStateRequest({ value, fee, memo }: sendQueryConsensusStateRequestParams): Promise; - sendQueryUpgradedClientStateRequest({ value, fee, memo }: sendQueryUpgradedClientStateRequestParams): Promise; - sendQueryUpgradedClientStateResponse({ value, fee, memo }: sendQueryUpgradedClientStateResponseParams): Promise; - sendMsgSubmitMisbehaviour({ value, fee, memo }: sendMsgSubmitMisbehaviourParams): Promise; - sendMsgRecoverClient({ value, fee, memo }: sendMsgRecoverClientParams): Promise; + sendQueryConsensusStateResponse({ value, fee, memo }: sendQueryConsensusStateResponseParams): Promise; sendQueryConsensusStatesResponse({ value, fee, memo }: sendQueryConsensusStatesResponseParams): Promise; - sendClientConsensusStates({ value, fee, memo }: sendClientConsensusStatesParams): Promise; - sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; + sendConsensusStateWithHeight({ value, fee, memo }: sendConsensusStateWithHeightParams): Promise; sendQueryUpgradedConsensusStateRequest({ value, fee, memo }: sendQueryUpgradedConsensusStateRequestParams): Promise; + sendClientConsensusStates({ value, fee, memo }: sendClientConsensusStatesParams): Promise; sendUpgradeProposal({ value, fee, memo }: sendUpgradeProposalParams): Promise; - sendMsgUpgradeClient({ value, fee, memo }: sendMsgUpgradeClientParams): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; - sendQueryConsensusStateHeightsResponse({ value, fee, memo }: sendQueryConsensusStateHeightsResponseParams): Promise; - sendQueryClientStatusResponse({ value, fee, memo }: sendQueryClientStatusResponseParams): Promise; - sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: sendQueryUpgradedConsensusStateResponseParams): Promise; + sendMsgCreateClientResponse({ value, fee, memo }: sendMsgCreateClientResponseParams): Promise; + sendMsgIBCSoftwareUpgrade({ value, fee, memo }: sendMsgIBCSoftwareUpgradeParams): Promise; + sendIdentifiedClientState({ value, fee, memo }: sendIdentifiedClientStateParams): Promise; + sendQueryClientParamsRequest({ value, fee, memo }: sendQueryClientParamsRequestParams): Promise; + sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; + sendQueryClientStateResponse({ value, fee, memo }: sendQueryClientStateResponseParams): Promise; + sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; + sendQueryClientParamsResponse({ value, fee, memo }: sendQueryClientParamsResponseParams): Promise; + sendClientUpdateProposal({ value, fee, memo }: sendClientUpdateProposalParams): Promise; msgCreateClient({ value }: msgCreateClientParams): EncodeObject; + msgRecoverClient({ value }: msgRecoverClientParams): EncodeObject; + queryClientStateRequest({ value }: queryClientStateRequestParams): EncodeObject; + queryConsensusStateRequest({ value }: queryConsensusStateRequestParams): EncodeObject; + queryConsensusStateHeightsResponse({ value }: queryConsensusStateHeightsResponseParams): EncodeObject; + queryUpgradedClientStateResponse({ value }: queryUpgradedClientStateResponseParams): EncodeObject; + queryClientStatesResponse({ value }: queryClientStatesResponseParams): EncodeObject; + queryUpgradedConsensusStateResponse({ value }: queryUpgradedConsensusStateResponseParams): EncodeObject; + msgUpdateClient({ value }: msgUpdateClientParams): EncodeObject; msgUpdateClientResponse({ value }: msgUpdateClientResponseParams): EncodeObject; - msgUpgradeClientResponse({ value }: msgUpgradeClientResponseParams): EncodeObject; + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; + queryClientStatusRequest({ value }: queryClientStatusRequestParams): EncodeObject; + queryUpgradedClientStateRequest({ value }: queryUpgradedClientStateRequestParams): EncodeObject; height({ value }: heightParams): EncodeObject; - queryClientStateResponse({ value }: queryClientStateResponseParams): EncodeObject; - queryClientStateRequest({ value }: queryClientStateRequestParams): EncodeObject; + msgUpgradeClientResponse({ value }: msgUpgradeClientResponseParams): EncodeObject; + msgSubmitMisbehaviour({ value }: msgSubmitMisbehaviourParams): EncodeObject; + msgSubmitMisbehaviourResponse({ value }: msgSubmitMisbehaviourResponseParams): EncodeObject; + queryClientStatesRequest({ value }: queryClientStatesRequestParams): EncodeObject; queryConsensusStateHeightsRequest({ value }: queryConsensusStateHeightsRequestParams): EncodeObject; - queryClientStatusRequest({ value }: queryClientStatusRequestParams): EncodeObject; - queryClientParamsRequest({ value }: queryClientParamsRequestParams): EncodeObject; - msgUpdateClient({ value }: msgUpdateClientParams): EncodeObject; - queryClientStatesResponse({ value }: queryClientStatesResponseParams): EncodeObject; + queryClientStatusResponse({ value }: queryClientStatusResponseParams): EncodeObject; + msgUpgradeClient({ value }: msgUpgradeClientParams): EncodeObject; + identifiedGenesisMetadata({ value }: identifiedGenesisMetadataParams): EncodeObject; + genesisMetadata({ value }: genesisMetadataParams): EncodeObject; msgIbcsoftwareUpgradeResponse({ value }: msgIbcsoftwareUpgradeResponseParams): EncodeObject; - queryClientParamsResponse({ value }: queryClientParamsResponseParams): EncodeObject; - msgIbcsoftwareUpgrade({ value }: msgIbcsoftwareUpgradeParams): EncodeObject; - msgCreateClientResponse({ value }: msgCreateClientResponseParams): EncodeObject; - msgSubmitMisbehaviourResponse({ value }: msgSubmitMisbehaviourResponseParams): EncodeObject; + params({ value }: paramsParams): EncodeObject; msgRecoverClientResponse({ value }: msgRecoverClientResponseParams): EncodeObject; - identifiedClientState({ value }: identifiedClientStateParams): EncodeObject; - genesisMetadata({ value }: genesisMetadataParams): EncodeObject; - queryClientStatesRequest({ value }: queryClientStatesRequestParams): EncodeObject; - clientUpdateProposal({ value }: clientUpdateProposalParams): EncodeObject; - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; - queryConsensusStateResponse({ value }: queryConsensusStateResponseParams): EncodeObject; queryConsensusStatesRequest({ value }: queryConsensusStatesRequestParams): EncodeObject; - consensusStateWithHeight({ value }: consensusStateWithHeightParams): EncodeObject; - params({ value }: paramsParams): EncodeObject; - identifiedGenesisMetadata({ value }: identifiedGenesisMetadataParams): EncodeObject; - queryConsensusStateRequest({ value }: queryConsensusStateRequestParams): EncodeObject; - queryUpgradedClientStateRequest({ value }: queryUpgradedClientStateRequestParams): EncodeObject; - queryUpgradedClientStateResponse({ value }: queryUpgradedClientStateResponseParams): EncodeObject; - msgSubmitMisbehaviour({ value }: msgSubmitMisbehaviourParams): EncodeObject; - msgRecoverClient({ value }: msgRecoverClientParams): EncodeObject; + queryConsensusStateResponse({ value }: queryConsensusStateResponseParams): EncodeObject; queryConsensusStatesResponse({ value }: queryConsensusStatesResponseParams): EncodeObject; - clientConsensusStates({ value }: clientConsensusStatesParams): EncodeObject; - genesisState({ value }: genesisStateParams): EncodeObject; + consensusStateWithHeight({ value }: consensusStateWithHeightParams): EncodeObject; queryUpgradedConsensusStateRequest({ value }: queryUpgradedConsensusStateRequestParams): EncodeObject; + clientConsensusStates({ value }: clientConsensusStatesParams): EncodeObject; upgradeProposal({ value }: upgradeProposalParams): EncodeObject; - msgUpgradeClient({ value }: msgUpgradeClientParams): EncodeObject; - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; - queryConsensusStateHeightsResponse({ value }: queryConsensusStateHeightsResponseParams): EncodeObject; - queryClientStatusResponse({ value }: queryClientStatusResponseParams): EncodeObject; - queryUpgradedConsensusStateResponse({ value }: queryUpgradedConsensusStateResponseParams): EncodeObject; + msgCreateClientResponse({ value }: msgCreateClientResponseParams): EncodeObject; + msgIbcsoftwareUpgrade({ value }: msgIbcsoftwareUpgradeParams): EncodeObject; + identifiedClientState({ value }: identifiedClientStateParams): EncodeObject; + queryClientParamsRequest({ value }: queryClientParamsRequestParams): EncodeObject; + genesisState({ value }: genesisStateParams): EncodeObject; + queryClientStateResponse({ value }: queryClientStateResponseParams): EncodeObject; + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; + queryClientParamsResponse({ value }: queryClientParamsResponseParams): EncodeObject; + clientUpdateProposal({ value }: clientUpdateProposalParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/ibc.core.client.v1/module.js b/ts-client/lib/ibc.core.client.v1/module.js index 070456ee1..b6ded94c8 100644 --- a/ts-client/lib/ibc.core.client.v1/module.js +++ b/ts-client/lib/ibc.core.client.v1/module.js @@ -4,48 +4,48 @@ import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; +import { MsgRecoverClient } from "./types/ibc/core/client/v1/tx"; +import { QueryClientStateRequest } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStateHeightsResponse } from "./types/ibc/core/client/v1/query"; +import { QueryUpgradedClientStateResponse } from "./types/ibc/core/client/v1/query"; +import { QueryClientStatesResponse } from "./types/ibc/core/client/v1/query"; +import { QueryUpgradedConsensusStateResponse } from "./types/ibc/core/client/v1/query"; +import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; import { MsgUpdateClientResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgUpgradeClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgUpdateParamsResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryClientStatusRequest } from "./types/ibc/core/client/v1/query"; +import { QueryUpgradedClientStateRequest } from "./types/ibc/core/client/v1/query"; import { Height } from "./types/ibc/core/client/v1/client"; -import { QueryClientStateResponse } from "./types/ibc/core/client/v1/query"; -import { QueryClientStateRequest } from "./types/ibc/core/client/v1/query"; +import { MsgUpgradeClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgSubmitMisbehaviour } from "./types/ibc/core/client/v1/tx"; +import { MsgSubmitMisbehaviourResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryClientStatesRequest } 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 { QueryClientParamsRequest } from "./types/ibc/core/client/v1/query"; -import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; -import { QueryClientStatesResponse } from "./types/ibc/core/client/v1/query"; +import { QueryClientStatusResponse } from "./types/ibc/core/client/v1/query"; +import { MsgUpgradeClient } from "./types/ibc/core/client/v1/tx"; +import { IdentifiedGenesisMetadata } from "./types/ibc/core/client/v1/genesis"; +import { GenesisMetadata } from "./types/ibc/core/client/v1/genesis"; import { MsgIBCSoftwareUpgradeResponse } from "./types/ibc/core/client/v1/tx"; -import { QueryClientParamsResponse } from "./types/ibc/core/client/v1/query"; -import { MsgIBCSoftwareUpgrade } from "./types/ibc/core/client/v1/tx"; -import { MsgCreateClientResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgSubmitMisbehaviourResponse } from "./types/ibc/core/client/v1/tx"; +import { Params } from "./types/ibc/core/client/v1/client"; import { MsgRecoverClientResponse } from "./types/ibc/core/client/v1/tx"; -import { IdentifiedClientState } from "./types/ibc/core/client/v1/client"; -import { GenesisMetadata } from "./types/ibc/core/client/v1/genesis"; -import { QueryClientStatesRequest } from "./types/ibc/core/client/v1/query"; -import { ClientUpdateProposal } from "./types/ibc/core/client/v1/client"; -import { MsgUpdateParams } from "./types/ibc/core/client/v1/tx"; -import { QueryConsensusStateResponse } from "./types/ibc/core/client/v1/query"; import { QueryConsensusStatesRequest } from "./types/ibc/core/client/v1/query"; -import { ConsensusStateWithHeight } from "./types/ibc/core/client/v1/client"; -import { Params } from "./types/ibc/core/client/v1/client"; -import { IdentifiedGenesisMetadata } from "./types/ibc/core/client/v1/genesis"; -import { QueryConsensusStateRequest } from "./types/ibc/core/client/v1/query"; -import { QueryUpgradedClientStateRequest } from "./types/ibc/core/client/v1/query"; -import { QueryUpgradedClientStateResponse } from "./types/ibc/core/client/v1/query"; -import { MsgSubmitMisbehaviour } from "./types/ibc/core/client/v1/tx"; -import { MsgRecoverClient } 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 { ClientConsensusStates } from "./types/ibc/core/client/v1/client"; -import { GenesisState } from "./types/ibc/core/client/v1/genesis"; +import { ConsensusStateWithHeight } from "./types/ibc/core/client/v1/client"; import { QueryUpgradedConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { ClientConsensusStates } from "./types/ibc/core/client/v1/client"; import { UpgradeProposal } from "./types/ibc/core/client/v1/client"; -import { MsgUpgradeClient } from "./types/ibc/core/client/v1/tx"; -import { MsgUpdateParamsResponse } from "./types/ibc/core/client/v1/tx"; -import { QueryConsensusStateHeightsResponse } from "./types/ibc/core/client/v1/query"; -import { QueryClientStatusResponse } from "./types/ibc/core/client/v1/query"; -import { QueryUpgradedConsensusStateResponse } from "./types/ibc/core/client/v1/query"; -export { MsgCreateClient, MsgUpdateClientResponse, MsgUpgradeClientResponse, Height, QueryClientStateResponse, QueryClientStateRequest, QueryConsensusStateHeightsRequest, QueryClientStatusRequest, QueryClientParamsRequest, MsgUpdateClient, QueryClientStatesResponse, MsgIBCSoftwareUpgradeResponse, QueryClientParamsResponse, MsgIBCSoftwareUpgrade, MsgCreateClientResponse, MsgSubmitMisbehaviourResponse, MsgRecoverClientResponse, IdentifiedClientState, GenesisMetadata, QueryClientStatesRequest, ClientUpdateProposal, MsgUpdateParams, QueryConsensusStateResponse, QueryConsensusStatesRequest, ConsensusStateWithHeight, Params, IdentifiedGenesisMetadata, QueryConsensusStateRequest, QueryUpgradedClientStateRequest, QueryUpgradedClientStateResponse, MsgSubmitMisbehaviour, MsgRecoverClient, QueryConsensusStatesResponse, ClientConsensusStates, GenesisState, QueryUpgradedConsensusStateRequest, UpgradeProposal, MsgUpgradeClient, MsgUpdateParamsResponse, QueryConsensusStateHeightsResponse, QueryClientStatusResponse, QueryUpgradedConsensusStateResponse }; +import { MsgCreateClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgIBCSoftwareUpgrade } from "./types/ibc/core/client/v1/tx"; +import { IdentifiedClientState } from "./types/ibc/core/client/v1/client"; +import { QueryClientParamsRequest } from "./types/ibc/core/client/v1/query"; +import { GenesisState } from "./types/ibc/core/client/v1/genesis"; +import { QueryClientStateResponse } from "./types/ibc/core/client/v1/query"; +import { MsgUpdateParams } from "./types/ibc/core/client/v1/tx"; +import { QueryClientParamsResponse } from "./types/ibc/core/client/v1/query"; +import { ClientUpdateProposal } from "./types/ibc/core/client/v1/client"; +export { MsgCreateClient, MsgRecoverClient, QueryClientStateRequest, QueryConsensusStateRequest, QueryConsensusStateHeightsResponse, QueryUpgradedClientStateResponse, QueryClientStatesResponse, QueryUpgradedConsensusStateResponse, MsgUpdateClient, MsgUpdateClientResponse, MsgUpdateParamsResponse, QueryClientStatusRequest, QueryUpgradedClientStateRequest, Height, MsgUpgradeClientResponse, MsgSubmitMisbehaviour, MsgSubmitMisbehaviourResponse, QueryClientStatesRequest, QueryConsensusStateHeightsRequest, QueryClientStatusResponse, MsgUpgradeClient, IdentifiedGenesisMetadata, GenesisMetadata, MsgIBCSoftwareUpgradeResponse, Params, MsgRecoverClientResponse, QueryConsensusStatesRequest, QueryConsensusStateResponse, QueryConsensusStatesResponse, ConsensusStateWithHeight, QueryUpgradedConsensusStateRequest, ClientConsensusStates, UpgradeProposal, MsgCreateClientResponse, MsgIBCSoftwareUpgrade, IdentifiedClientState, QueryClientParamsRequest, GenesisState, QueryClientStateResponse, MsgUpdateParams, QueryClientParamsResponse, ClientUpdateProposal }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -75,116 +75,102 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgCreateClient: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateClientResponse({ value, fee, memo }) { - if (!signer) { - 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.msgUpdateClientResponse({ value: MsgUpdateClientResponse.fromPartial(value) }); - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); - } - catch (e) { - throw new Error('TxClient:sendMsgUpdateClientResponse: Could not broadcast Tx: ' + e.message); - } - }, - async sendMsgUpgradeClientResponse({ value, fee, memo }) { + async sendMsgRecoverClient({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpgradeClientResponse: 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.msgUpgradeClientResponse({ value: MsgUpgradeClientResponse.fromPartial(value) }); + let msg = this.msgRecoverClient({ value: MsgRecoverClient.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpgradeClientResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRecoverClient: Could not broadcast Tx: ' + e.message); } }, - async sendHeight({ value, fee, memo }) { + async sendQueryClientStateRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendHeight: 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.height({ value: Height.fromPartial(value) }); + let msg = this.queryClientStateRequest({ value: QueryClientStateRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendHeight: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryClientStateRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryClientStateResponse({ value, fee, memo }) { + async sendQueryConsensusStateRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryClientStateResponse: 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.queryClientStateResponse({ value: QueryClientStateResponse.fromPartial(value) }); + let msg = this.queryConsensusStateRequest({ value: QueryConsensusStateRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryClientStateResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConsensusStateRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryClientStateRequest({ value, fee, memo }) { + async sendQueryConsensusStateHeightsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryClientStateRequest: 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.queryClientStateRequest({ value: QueryClientStateRequest.fromPartial(value) }); + let msg = this.queryConsensusStateHeightsResponse({ value: QueryConsensusStateHeightsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryClientStateRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConsensusStateHeightsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConsensusStateHeightsRequest({ value, fee, memo }) { + async sendQueryUpgradedClientStateResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStateHeightsRequest: 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.queryConsensusStateHeightsRequest({ value: QueryConsensusStateHeightsRequest.fromPartial(value) }); + let msg = this.queryUpgradedClientStateResponse({ value: QueryUpgradedClientStateResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConsensusStateHeightsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryUpgradedClientStateResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryClientStatusRequest({ value, fee, memo }) { + async sendQueryClientStatesResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryClientStatusRequest: 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.queryClientStatusRequest({ value: QueryClientStatusRequest.fromPartial(value) }); + let msg = this.queryClientStatesResponse({ value: QueryClientStatesResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryClientStatusRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryClientStatesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryClientParamsRequest({ value, fee, memo }) { + async sendQueryUpgradedConsensusStateResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryClientParamsRequest: 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.queryClientParamsRequest({ value: QueryClientParamsRequest.fromPartial(value) }); + let msg = this.queryUpgradedConsensusStateResponse({ value: QueryUpgradedConsensusStateResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryClientParamsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: Could not broadcast Tx: ' + e.message); } }, async sendMsgUpdateClient({ value, fee, memo }) { @@ -201,214 +187,214 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgUpdateClient: Could not broadcast Tx: ' + e.message); } }, - async sendQueryClientStatesResponse({ value, fee, memo }) { + async sendMsgUpdateClientResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryClientStatesResponse: 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.queryClientStatesResponse({ value: QueryClientStatesResponse.fromPartial(value) }); + let msg = this.msgUpdateClientResponse({ value: MsgUpdateClientResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryClientStatesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateClientResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgIBCSoftwareUpgradeResponse({ value, fee, memo }) { + async sendMsgUpdateParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgIBCSoftwareUpgradeResponse: 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.msgIbcsoftwareUpgradeResponse({ value: MsgIBCSoftwareUpgradeResponse.fromPartial(value) }); + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgIBCSoftwareUpgradeResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryClientParamsResponse({ value, fee, memo }) { + async sendQueryClientStatusRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryClientParamsResponse: 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.queryClientParamsResponse({ value: QueryClientParamsResponse.fromPartial(value) }); + let msg = this.queryClientStatusRequest({ value: QueryClientStatusRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryClientParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryClientStatusRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgIBCSoftwareUpgrade({ value, fee, memo }) { + async sendQueryUpgradedClientStateRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgIBCSoftwareUpgrade: 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.msgIbcsoftwareUpgrade({ value: MsgIBCSoftwareUpgrade.fromPartial(value) }); + let msg = this.queryUpgradedClientStateRequest({ value: QueryUpgradedClientStateRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgIBCSoftwareUpgrade: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryUpgradedClientStateRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgCreateClientResponse({ value, fee, memo }) { + async sendHeight({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgCreateClientResponse: 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.msgCreateClientResponse({ value: MsgCreateClientResponse.fromPartial(value) }); + let msg = this.height({ value: Height.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgCreateClientResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendHeight: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSubmitMisbehaviourResponse({ value, fee, memo }) { + async sendMsgUpgradeClientResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSubmitMisbehaviourResponse: 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.msgSubmitMisbehaviourResponse({ value: MsgSubmitMisbehaviourResponse.fromPartial(value) }); + let msg = this.msgUpgradeClientResponse({ value: MsgUpgradeClientResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSubmitMisbehaviourResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpgradeClientResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRecoverClientResponse({ value, fee, memo }) { + async sendMsgSubmitMisbehaviour({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRecoverClientResponse: Unable to sign Tx. Signer is not present.'); + 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.msgRecoverClientResponse({ value: MsgRecoverClientResponse.fromPartial(value) }); + let msg = this.msgSubmitMisbehaviour({ value: MsgSubmitMisbehaviour.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRecoverClientResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSubmitMisbehaviour: Could not broadcast Tx: ' + e.message); } }, - async sendIdentifiedClientState({ value, fee, memo }) { + async sendMsgSubmitMisbehaviourResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendIdentifiedClientState: 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.identifiedClientState({ value: IdentifiedClientState.fromPartial(value) }); + let msg = this.msgSubmitMisbehaviourResponse({ value: MsgSubmitMisbehaviourResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendIdentifiedClientState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSubmitMisbehaviourResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisMetadata({ value, fee, memo }) { + async sendQueryClientStatesRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisMetadata: 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.genesisMetadata({ value: GenesisMetadata.fromPartial(value) }); + let msg = this.queryClientStatesRequest({ value: QueryClientStatesRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisMetadata: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryClientStatesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryClientStatesRequest({ value, fee, memo }) { + async sendQueryConsensusStateHeightsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryClientStatesRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryConsensusStateHeightsRequest: Unable to 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.queryConsensusStateHeightsRequest({ value: QueryConsensusStateHeightsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryClientStatesRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConsensusStateHeightsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendClientUpdateProposal({ value, fee, memo }) { + async sendQueryClientStatusResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendClientUpdateProposal: 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.clientUpdateProposal({ value: ClientUpdateProposal.fromPartial(value) }); + let msg = this.queryClientStatusResponse({ value: QueryClientStatusResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendClientUpdateProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryClientStatusResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParams({ value, fee, memo }) { + async sendMsgUpgradeClient({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); + let msg = this.msgUpgradeClient({ value: MsgUpgradeClient.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpgradeClient: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConsensusStateResponse({ value, fee, memo }) { + async sendIdentifiedGenesisMetadata({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStateResponse: 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.queryConsensusStateResponse({ value: QueryConsensusStateResponse.fromPartial(value) }); + let msg = this.identifiedGenesisMetadata({ value: IdentifiedGenesisMetadata.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConsensusStateResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendIdentifiedGenesisMetadata: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConsensusStatesRequest({ value, fee, memo }) { + async sendGenesisMetadata({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStatesRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendGenesisMetadata: Unable to 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.genesisMetadata({ value: GenesisMetadata.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConsensusStatesRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisMetadata: Could not broadcast Tx: ' + e.message); } }, - async sendConsensusStateWithHeight({ value, fee, memo }) { + async sendMsgIBCSoftwareUpgradeResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendConsensusStateWithHeight: 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.consensusStateWithHeight({ value: ConsensusStateWithHeight.fromPartial(value) }); + let msg = this.msgIbcsoftwareUpgradeResponse({ value: MsgIBCSoftwareUpgradeResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendConsensusStateWithHeight: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgIBCSoftwareUpgradeResponse: Could not broadcast Tx: ' + e.message); } }, async sendParams({ value, fee, memo }) { @@ -425,300 +411,306 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); } }, - async sendIdentifiedGenesisMetadata({ value, fee, memo }) { + async sendMsgRecoverClientResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendIdentifiedGenesisMetadata: 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.identifiedGenesisMetadata({ value: IdentifiedGenesisMetadata.fromPartial(value) }); + let msg = this.msgRecoverClientResponse({ value: MsgRecoverClientResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendIdentifiedGenesisMetadata: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRecoverClientResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConsensusStateRequest({ value, fee, memo }) { + async sendQueryConsensusStatesRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStateRequest: 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.queryConsensusStateRequest({ value: QueryConsensusStateRequest.fromPartial(value) }); + let msg = this.queryConsensusStatesRequest({ value: QueryConsensusStatesRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConsensusStateRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConsensusStatesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryUpgradedClientStateRequest({ value, fee, memo }) { + async sendQueryConsensusStateResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedClientStateRequest: 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.queryUpgradedClientStateRequest({ value: QueryUpgradedClientStateRequest.fromPartial(value) }); + let msg = this.queryConsensusStateResponse({ value: QueryConsensusStateResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryUpgradedClientStateRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConsensusStateResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryUpgradedClientStateResponse({ value, fee, memo }) { + async sendQueryConsensusStatesResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedClientStateResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryConsensusStatesResponse: Unable to 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.queryConsensusStatesResponse({ value: QueryConsensusStatesResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryUpgradedClientStateResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConsensusStatesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSubmitMisbehaviour({ value, fee, memo }) { + async sendConsensusStateWithHeight({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSubmitMisbehaviour: 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.msgSubmitMisbehaviour({ value: MsgSubmitMisbehaviour.fromPartial(value) }); + let msg = this.consensusStateWithHeight({ value: ConsensusStateWithHeight.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSubmitMisbehaviour: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendConsensusStateWithHeight: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRecoverClient({ value, fee, memo }) { + async sendQueryUpgradedConsensusStateRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRecoverClient: 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.msgRecoverClient({ value: MsgRecoverClient.fromPartial(value) }); + let msg = this.queryUpgradedConsensusStateRequest({ value: QueryUpgradedConsensusStateRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRecoverClient: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConsensusStatesResponse({ value, fee, memo }) { + async sendClientConsensusStates({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStatesResponse: 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.queryConsensusStatesResponse({ value: QueryConsensusStatesResponse.fromPartial(value) }); + let msg = this.clientConsensusStates({ value: ClientConsensusStates.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConsensusStatesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendClientConsensusStates: Could not broadcast Tx: ' + e.message); } }, - async sendClientConsensusStates({ value, fee, memo }) { + async sendUpgradeProposal({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendClientConsensusStates: 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.clientConsensusStates({ value: ClientConsensusStates.fromPartial(value) }); + let msg = this.upgradeProposal({ value: UpgradeProposal.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendClientConsensusStates: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendUpgradeProposal: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendMsgCreateClientResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.fromPartial(value) }); + let msg = this.msgCreateClientResponse({ value: MsgCreateClientResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgCreateClientResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryUpgradedConsensusStateRequest({ value, fee, memo }) { + async sendMsgIBCSoftwareUpgrade({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: 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.queryUpgradedConsensusStateRequest({ value: QueryUpgradedConsensusStateRequest.fromPartial(value) }); + let msg = this.msgIbcsoftwareUpgrade({ value: MsgIBCSoftwareUpgrade.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgIBCSoftwareUpgrade: Could not broadcast Tx: ' + e.message); } }, - async sendUpgradeProposal({ value, fee, memo }) { + async sendIdentifiedClientState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendUpgradeProposal: 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.upgradeProposal({ value: UpgradeProposal.fromPartial(value) }); + let msg = this.identifiedClientState({ value: IdentifiedClientState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendUpgradeProposal: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendIdentifiedClientState: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpgradeClient({ value, fee, memo }) { + async sendQueryClientParamsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpgradeClient: 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.msgUpgradeClient({ value: MsgUpgradeClient.fromPartial(value) }); + let msg = this.queryClientParamsRequest({ value: QueryClientParamsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpgradeClient: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryClientParamsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: 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.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConsensusStateHeightsResponse({ value, fee, memo }) { + async sendQueryClientStateResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConsensusStateHeightsResponse: 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.queryConsensusStateHeightsResponse({ value: QueryConsensusStateHeightsResponse.fromPartial(value) }); + let msg = this.queryClientStateResponse({ value: QueryClientStateResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConsensusStateHeightsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryClientStateResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryClientStatusResponse({ value, fee, memo }) { + async sendMsgUpdateParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryClientStatusResponse: 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.queryClientStatusResponse({ value: QueryClientStatusResponse.fromPartial(value) }); + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryClientStatusResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); } }, - async sendQueryUpgradedConsensusStateResponse({ value, fee, memo }) { + async sendQueryClientParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: 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.queryUpgradedConsensusStateResponse({ value: QueryUpgradedConsensusStateResponse.fromPartial(value) }); + let msg = this.queryClientParamsResponse({ value: QueryClientParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryUpgradedConsensusStateResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryClientParamsResponse: Could not broadcast Tx: ' + e.message); } }, - msgCreateClient({ value }) { + async sendClientUpdateProposal({ value, fee, memo }) { + if (!signer) { + throw new Error('TxClient:sendClientUpdateProposal: Unable to sign Tx. Signer is not present.'); + } try { - return { typeUrl: "/ibc.core.client.v1.MsgCreateClient", value: MsgCreateClient.fromPartial(value) }; + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); + let msg = this.clientUpdateProposal({ value: ClientUpdateProposal.fromPartial(value) }); + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:MsgCreateClient: Could not create message: ' + e.message); + throw new Error('TxClient:sendClientUpdateProposal: Could not broadcast Tx: ' + e.message); } }, - msgUpdateClientResponse({ value }) { + msgCreateClient({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", value: MsgUpdateClientResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.MsgCreateClient", value: MsgCreateClient.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateClientResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreateClient: Could not create message: ' + e.message); } }, - msgUpgradeClientResponse({ value }) { + msgRecoverClient({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", value: MsgUpgradeClientResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.MsgRecoverClient", value: MsgRecoverClient.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpgradeClientResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRecoverClient: Could not create message: ' + e.message); } }, - height({ value }) { + queryClientStateRequest({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.Height", value: Height.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", value: QueryClientStateRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Height: Could not create message: ' + e.message); + throw new Error('TxClient:QueryClientStateRequest: Could not create message: ' + e.message); } }, - queryClientStateResponse({ value }) { + queryConsensusStateRequest({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", value: QueryClientStateResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", value: QueryConsensusStateRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryClientStateResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConsensusStateRequest: Could not create message: ' + e.message); } }, - queryClientStateRequest({ value }) { + queryConsensusStateHeightsResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStateRequest", value: QueryClientStateRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", value: QueryConsensusStateHeightsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryClientStateRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConsensusStateHeightsResponse: Could not create message: ' + e.message); } }, - queryConsensusStateHeightsRequest({ value }) { + queryUpgradedClientStateResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", value: QueryConsensusStateHeightsRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", value: QueryUpgradedClientStateResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConsensusStateHeightsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryUpgradedClientStateResponse: Could not create message: ' + e.message); } }, - queryClientStatusRequest({ value }) { + queryClientStatesResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", value: QueryClientStatusRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", value: QueryClientStatesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryClientStatusRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryClientStatesResponse: Could not create message: ' + e.message); } }, - queryClientParamsRequest({ value }) { + queryUpgradedConsensusStateResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", value: QueryClientParamsRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", value: QueryUpgradedConsensusStateResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryClientParamsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryUpgradedConsensusStateResponse: Could not create message: ' + e.message); } }, msgUpdateClient({ value }) { @@ -729,124 +721,124 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgUpdateClient: Could not create message: ' + e.message); } }, - queryClientStatesResponse({ value }) { + msgUpdateClientResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStatesResponse", value: QueryClientStatesResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.MsgUpdateClientResponse", value: MsgUpdateClientResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryClientStatesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateClientResponse: Could not create message: ' + e.message); } }, - msgIbcsoftwareUpgradeResponse({ value }) { + msgUpdateParamsResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse", value: MsgIBCSoftwareUpgradeResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgIBCSoftwareUpgradeResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); } }, - queryClientParamsResponse({ value }) { + queryClientStatusRequest({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", value: QueryClientParamsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryClientStatusRequest", value: QueryClientStatusRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryClientParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryClientStatusRequest: Could not create message: ' + e.message); } }, - msgIbcsoftwareUpgrade({ value }) { + queryUpgradedClientStateRequest({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.MsgIBCSoftwareUpgrade", value: MsgIBCSoftwareUpgrade.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", value: QueryUpgradedClientStateRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgIBCSoftwareUpgrade: Could not create message: ' + e.message); + throw new Error('TxClient:QueryUpgradedClientStateRequest: Could not create message: ' + e.message); } }, - msgCreateClientResponse({ value }) { + height({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", value: MsgCreateClientResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.Height", value: Height.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgCreateClientResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Height: Could not create message: ' + e.message); } }, - msgSubmitMisbehaviourResponse({ value }) { + msgUpgradeClientResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", value: MsgSubmitMisbehaviourResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.MsgUpgradeClientResponse", value: MsgUpgradeClientResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSubmitMisbehaviourResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpgradeClientResponse: Could not create message: ' + e.message); } }, - msgRecoverClientResponse({ value }) { + msgSubmitMisbehaviour({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.MsgRecoverClientResponse", value: MsgRecoverClientResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", value: MsgSubmitMisbehaviour.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRecoverClientResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSubmitMisbehaviour: Could not create message: ' + e.message); } }, - identifiedClientState({ value }) { + msgSubmitMisbehaviourResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.IdentifiedClientState", value: IdentifiedClientState.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", value: MsgSubmitMisbehaviourResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:IdentifiedClientState: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSubmitMisbehaviourResponse: Could not create message: ' + e.message); } }, - genesisMetadata({ value }) { + queryClientStatesRequest({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.GenesisMetadata", value: GenesisMetadata.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", value: QueryClientStatesRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisMetadata: Could not create message: ' + e.message); + throw new Error('TxClient:QueryClientStatesRequest: Could not create message: ' + e.message); } }, - queryClientStatesRequest({ value }) { + queryConsensusStateHeightsRequest({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStatesRequest", value: QueryClientStatesRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsRequest", value: QueryConsensusStateHeightsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryClientStatesRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConsensusStateHeightsRequest: Could not create message: ' + e.message); } }, - clientUpdateProposal({ value }) { + queryClientStatusResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", value: ClientUpdateProposal.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", value: QueryClientStatusResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ClientUpdateProposal: Could not create message: ' + e.message); + throw new Error('TxClient:QueryClientStatusResponse: Could not create message: ' + e.message); } }, - msgUpdateParams({ value }) { + msgUpgradeClient({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", value: MsgUpgradeClient.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpgradeClient: Could not create message: ' + e.message); } }, - queryConsensusStateResponse({ value }) { + identifiedGenesisMetadata({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", value: QueryConsensusStateResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", value: IdentifiedGenesisMetadata.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConsensusStateResponse: Could not create message: ' + e.message); + throw new Error('TxClient:IdentifiedGenesisMetadata: Could not create message: ' + e.message); } }, - queryConsensusStatesRequest({ value }) { + genesisMetadata({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", value: QueryConsensusStatesRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.GenesisMetadata", value: GenesisMetadata.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConsensusStatesRequest: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisMetadata: Could not create message: ' + e.message); } }, - consensusStateWithHeight({ value }) { + msgIbcsoftwareUpgradeResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", value: ConsensusStateWithHeight.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse", value: MsgIBCSoftwareUpgradeResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ConsensusStateWithHeight: Could not create message: ' + e.message); + throw new Error('TxClient:MsgIBCSoftwareUpgradeResponse: Could not create message: ' + e.message); } }, params({ value }) { @@ -857,132 +849,140 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:Params: Could not create message: ' + e.message); } }, - identifiedGenesisMetadata({ value }) { + msgRecoverClientResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.IdentifiedGenesisMetadata", value: IdentifiedGenesisMetadata.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.MsgRecoverClientResponse", value: MsgRecoverClientResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:IdentifiedGenesisMetadata: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRecoverClientResponse: Could not create message: ' + e.message); } }, - queryConsensusStateRequest({ value }) { + queryConsensusStatesRequest({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateRequest", value: QueryConsensusStateRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryConsensusStatesRequest", value: QueryConsensusStatesRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConsensusStateRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConsensusStatesRequest: Could not create message: ' + e.message); } }, - queryUpgradedClientStateRequest({ value }) { + queryConsensusStateResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateRequest", value: QueryUpgradedClientStateRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateResponse", value: QueryConsensusStateResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryUpgradedClientStateRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConsensusStateResponse: Could not create message: ' + e.message); } }, - queryUpgradedClientStateResponse({ value }) { + queryConsensusStatesResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryUpgradedClientStateResponse", value: QueryUpgradedClientStateResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", value: QueryConsensusStatesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryUpgradedClientStateResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConsensusStatesResponse: Could not create message: ' + e.message); } }, - msgSubmitMisbehaviour({ value }) { + consensusStateWithHeight({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.MsgSubmitMisbehaviour", value: MsgSubmitMisbehaviour.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.ConsensusStateWithHeight", value: ConsensusStateWithHeight.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSubmitMisbehaviour: Could not create message: ' + e.message); + throw new Error('TxClient:ConsensusStateWithHeight: Could not create message: ' + e.message); } }, - msgRecoverClient({ value }) { + queryUpgradedConsensusStateRequest({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.MsgRecoverClient", value: MsgRecoverClient.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", value: QueryUpgradedConsensusStateRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRecoverClient: Could not create message: ' + e.message); + throw new Error('TxClient:QueryUpgradedConsensusStateRequest: Could not create message: ' + e.message); } }, - queryConsensusStatesResponse({ value }) { + clientConsensusStates({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryConsensusStatesResponse", value: QueryConsensusStatesResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.ClientConsensusStates", value: ClientConsensusStates.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConsensusStatesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:ClientConsensusStates: Could not create message: ' + e.message); } }, - clientConsensusStates({ value }) { + upgradeProposal({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.ClientConsensusStates", value: ClientConsensusStates.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.UpgradeProposal", value: UpgradeProposal.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ClientConsensusStates: Could not create message: ' + e.message); + throw new Error('TxClient:UpgradeProposal: Could not create message: ' + e.message); } }, - genesisState({ value }) { + msgCreateClientResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.MsgCreateClientResponse", value: MsgCreateClientResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:MsgCreateClientResponse: Could not create message: ' + e.message); } }, - queryUpgradedConsensusStateRequest({ value }) { + msgIbcsoftwareUpgrade({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", value: QueryUpgradedConsensusStateRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.MsgIBCSoftwareUpgrade", value: MsgIBCSoftwareUpgrade.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryUpgradedConsensusStateRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgIBCSoftwareUpgrade: Could not create message: ' + e.message); } }, - upgradeProposal({ value }) { + identifiedClientState({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.UpgradeProposal", value: UpgradeProposal.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.IdentifiedClientState", value: IdentifiedClientState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:UpgradeProposal: Could not create message: ' + e.message); + throw new Error('TxClient:IdentifiedClientState: Could not create message: ' + e.message); } }, - msgUpgradeClient({ value }) { + queryClientParamsRequest({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.MsgUpgradeClient", value: MsgUpgradeClient.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryClientParamsRequest", value: QueryClientParamsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpgradeClient: Could not create message: ' + e.message); + throw new Error('TxClient:QueryClientParamsRequest: Could not create message: ' + e.message); } }, - msgUpdateParamsResponse({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - queryConsensusStateHeightsResponse({ value }) { + queryClientStateResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryConsensusStateHeightsResponse", value: QueryConsensusStateHeightsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryClientStateResponse", value: QueryClientStateResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConsensusStateHeightsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryClientStateResponse: Could not create message: ' + e.message); } }, - queryClientStatusResponse({ value }) { + msgUpdateParams({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryClientStatusResponse", value: QueryClientStatusResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryClientStatusResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); } }, - queryUpgradedConsensusStateResponse({ value }) { + queryClientParamsResponse({ value }) { try { - return { typeUrl: "/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", value: QueryUpgradedConsensusStateResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.client.v1.QueryClientParamsResponse", value: QueryClientParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryUpgradedConsensusStateResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryClientParamsResponse: Could not create message: ' + e.message); + } + }, + clientUpdateProposal({ value }) { + try { + return { typeUrl: "/ibc.core.client.v1.ClientUpdateProposal", value: ClientUpdateProposal.fromPartial(value) }; + } + catch (e) { + throw new Error('TxClient:ClientUpdateProposal: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/ibc.core.client.v1/registry.js b/ts-client/lib/ibc.core.client.v1/registry.js index d8194572f..21c948a7f 100644 --- a/ts-client/lib/ibc.core.client.v1/registry.js +++ b/ts-client/lib/ibc.core.client.v1/registry.js @@ -1,87 +1,87 @@ import { MsgCreateClient } from "./types/ibc/core/client/v1/tx"; +import { MsgRecoverClient } from "./types/ibc/core/client/v1/tx"; +import { QueryClientStateRequest } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { QueryConsensusStateHeightsResponse } from "./types/ibc/core/client/v1/query"; +import { QueryUpgradedClientStateResponse } from "./types/ibc/core/client/v1/query"; +import { QueryClientStatesResponse } from "./types/ibc/core/client/v1/query"; +import { QueryUpgradedConsensusStateResponse } from "./types/ibc/core/client/v1/query"; +import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; import { MsgUpdateClientResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgUpgradeClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgUpdateParamsResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryClientStatusRequest } from "./types/ibc/core/client/v1/query"; +import { QueryUpgradedClientStateRequest } from "./types/ibc/core/client/v1/query"; import { Height } from "./types/ibc/core/client/v1/client"; -import { QueryClientStateResponse } from "./types/ibc/core/client/v1/query"; -import { QueryClientStateRequest } from "./types/ibc/core/client/v1/query"; +import { MsgUpgradeClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgSubmitMisbehaviour } from "./types/ibc/core/client/v1/tx"; +import { MsgSubmitMisbehaviourResponse } from "./types/ibc/core/client/v1/tx"; +import { QueryClientStatesRequest } 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 { QueryClientParamsRequest } from "./types/ibc/core/client/v1/query"; -import { MsgUpdateClient } from "./types/ibc/core/client/v1/tx"; -import { QueryClientStatesResponse } from "./types/ibc/core/client/v1/query"; +import { QueryClientStatusResponse } from "./types/ibc/core/client/v1/query"; +import { MsgUpgradeClient } from "./types/ibc/core/client/v1/tx"; +import { IdentifiedGenesisMetadata } from "./types/ibc/core/client/v1/genesis"; +import { GenesisMetadata } from "./types/ibc/core/client/v1/genesis"; import { MsgIBCSoftwareUpgradeResponse } from "./types/ibc/core/client/v1/tx"; -import { QueryClientParamsResponse } from "./types/ibc/core/client/v1/query"; -import { MsgIBCSoftwareUpgrade } from "./types/ibc/core/client/v1/tx"; -import { MsgCreateClientResponse } from "./types/ibc/core/client/v1/tx"; -import { MsgSubmitMisbehaviourResponse } from "./types/ibc/core/client/v1/tx"; +import { Params } from "./types/ibc/core/client/v1/client"; import { MsgRecoverClientResponse } from "./types/ibc/core/client/v1/tx"; -import { IdentifiedClientState } from "./types/ibc/core/client/v1/client"; -import { GenesisMetadata } from "./types/ibc/core/client/v1/genesis"; -import { QueryClientStatesRequest } from "./types/ibc/core/client/v1/query"; -import { ClientUpdateProposal } from "./types/ibc/core/client/v1/client"; -import { MsgUpdateParams } from "./types/ibc/core/client/v1/tx"; -import { QueryConsensusStateResponse } from "./types/ibc/core/client/v1/query"; import { QueryConsensusStatesRequest } from "./types/ibc/core/client/v1/query"; -import { ConsensusStateWithHeight } from "./types/ibc/core/client/v1/client"; -import { Params } from "./types/ibc/core/client/v1/client"; -import { IdentifiedGenesisMetadata } from "./types/ibc/core/client/v1/genesis"; -import { QueryConsensusStateRequest } from "./types/ibc/core/client/v1/query"; -import { QueryUpgradedClientStateRequest } from "./types/ibc/core/client/v1/query"; -import { QueryUpgradedClientStateResponse } from "./types/ibc/core/client/v1/query"; -import { MsgSubmitMisbehaviour } from "./types/ibc/core/client/v1/tx"; -import { MsgRecoverClient } 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 { ClientConsensusStates } from "./types/ibc/core/client/v1/client"; -import { GenesisState } from "./types/ibc/core/client/v1/genesis"; +import { ConsensusStateWithHeight } from "./types/ibc/core/client/v1/client"; import { QueryUpgradedConsensusStateRequest } from "./types/ibc/core/client/v1/query"; +import { ClientConsensusStates } from "./types/ibc/core/client/v1/client"; import { UpgradeProposal } from "./types/ibc/core/client/v1/client"; -import { MsgUpgradeClient } from "./types/ibc/core/client/v1/tx"; -import { MsgUpdateParamsResponse } from "./types/ibc/core/client/v1/tx"; -import { QueryConsensusStateHeightsResponse } from "./types/ibc/core/client/v1/query"; -import { QueryClientStatusResponse } from "./types/ibc/core/client/v1/query"; -import { QueryUpgradedConsensusStateResponse } from "./types/ibc/core/client/v1/query"; +import { MsgCreateClientResponse } from "./types/ibc/core/client/v1/tx"; +import { MsgIBCSoftwareUpgrade } from "./types/ibc/core/client/v1/tx"; +import { IdentifiedClientState } from "./types/ibc/core/client/v1/client"; +import { QueryClientParamsRequest } from "./types/ibc/core/client/v1/query"; +import { GenesisState } from "./types/ibc/core/client/v1/genesis"; +import { QueryClientStateResponse } from "./types/ibc/core/client/v1/query"; +import { MsgUpdateParams } from "./types/ibc/core/client/v1/tx"; +import { QueryClientParamsResponse } from "./types/ibc/core/client/v1/query"; +import { ClientUpdateProposal } from "./types/ibc/core/client/v1/client"; const msgTypes = [ ["/ibc.core.client.v1.MsgCreateClient", MsgCreateClient], + ["/ibc.core.client.v1.MsgRecoverClient", MsgRecoverClient], + ["/ibc.core.client.v1.QueryClientStateRequest", QueryClientStateRequest], + ["/ibc.core.client.v1.QueryConsensusStateRequest", QueryConsensusStateRequest], + ["/ibc.core.client.v1.QueryConsensusStateHeightsResponse", QueryConsensusStateHeightsResponse], + ["/ibc.core.client.v1.QueryUpgradedClientStateResponse", QueryUpgradedClientStateResponse], + ["/ibc.core.client.v1.QueryClientStatesResponse", QueryClientStatesResponse], + ["/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", QueryUpgradedConsensusStateResponse], + ["/ibc.core.client.v1.MsgUpdateClient", MsgUpdateClient], ["/ibc.core.client.v1.MsgUpdateClientResponse", MsgUpdateClientResponse], - ["/ibc.core.client.v1.MsgUpgradeClientResponse", MsgUpgradeClientResponse], + ["/ibc.core.client.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/ibc.core.client.v1.QueryClientStatusRequest", QueryClientStatusRequest], + ["/ibc.core.client.v1.QueryUpgradedClientStateRequest", QueryUpgradedClientStateRequest], ["/ibc.core.client.v1.Height", Height], - ["/ibc.core.client.v1.QueryClientStateResponse", QueryClientStateResponse], - ["/ibc.core.client.v1.QueryClientStateRequest", QueryClientStateRequest], + ["/ibc.core.client.v1.MsgUpgradeClientResponse", MsgUpgradeClientResponse], + ["/ibc.core.client.v1.MsgSubmitMisbehaviour", MsgSubmitMisbehaviour], + ["/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", MsgSubmitMisbehaviourResponse], + ["/ibc.core.client.v1.QueryClientStatesRequest", QueryClientStatesRequest], ["/ibc.core.client.v1.QueryConsensusStateHeightsRequest", QueryConsensusStateHeightsRequest], - ["/ibc.core.client.v1.QueryClientStatusRequest", QueryClientStatusRequest], - ["/ibc.core.client.v1.QueryClientParamsRequest", QueryClientParamsRequest], - ["/ibc.core.client.v1.MsgUpdateClient", MsgUpdateClient], - ["/ibc.core.client.v1.QueryClientStatesResponse", QueryClientStatesResponse], + ["/ibc.core.client.v1.QueryClientStatusResponse", QueryClientStatusResponse], + ["/ibc.core.client.v1.MsgUpgradeClient", MsgUpgradeClient], + ["/ibc.core.client.v1.IdentifiedGenesisMetadata", IdentifiedGenesisMetadata], + ["/ibc.core.client.v1.GenesisMetadata", GenesisMetadata], ["/ibc.core.client.v1.MsgIBCSoftwareUpgradeResponse", MsgIBCSoftwareUpgradeResponse], - ["/ibc.core.client.v1.QueryClientParamsResponse", QueryClientParamsResponse], - ["/ibc.core.client.v1.MsgIBCSoftwareUpgrade", MsgIBCSoftwareUpgrade], - ["/ibc.core.client.v1.MsgCreateClientResponse", MsgCreateClientResponse], - ["/ibc.core.client.v1.MsgSubmitMisbehaviourResponse", MsgSubmitMisbehaviourResponse], + ["/ibc.core.client.v1.Params", Params], ["/ibc.core.client.v1.MsgRecoverClientResponse", MsgRecoverClientResponse], - ["/ibc.core.client.v1.IdentifiedClientState", IdentifiedClientState], - ["/ibc.core.client.v1.GenesisMetadata", GenesisMetadata], - ["/ibc.core.client.v1.QueryClientStatesRequest", QueryClientStatesRequest], - ["/ibc.core.client.v1.ClientUpdateProposal", ClientUpdateProposal], - ["/ibc.core.client.v1.MsgUpdateParams", MsgUpdateParams], - ["/ibc.core.client.v1.QueryConsensusStateResponse", QueryConsensusStateResponse], ["/ibc.core.client.v1.QueryConsensusStatesRequest", QueryConsensusStatesRequest], - ["/ibc.core.client.v1.ConsensusStateWithHeight", ConsensusStateWithHeight], - ["/ibc.core.client.v1.Params", Params], - ["/ibc.core.client.v1.IdentifiedGenesisMetadata", IdentifiedGenesisMetadata], - ["/ibc.core.client.v1.QueryConsensusStateRequest", QueryConsensusStateRequest], - ["/ibc.core.client.v1.QueryUpgradedClientStateRequest", QueryUpgradedClientStateRequest], - ["/ibc.core.client.v1.QueryUpgradedClientStateResponse", QueryUpgradedClientStateResponse], - ["/ibc.core.client.v1.MsgSubmitMisbehaviour", MsgSubmitMisbehaviour], - ["/ibc.core.client.v1.MsgRecoverClient", MsgRecoverClient], + ["/ibc.core.client.v1.QueryConsensusStateResponse", QueryConsensusStateResponse], ["/ibc.core.client.v1.QueryConsensusStatesResponse", QueryConsensusStatesResponse], - ["/ibc.core.client.v1.ClientConsensusStates", ClientConsensusStates], - ["/ibc.core.client.v1.GenesisState", GenesisState], + ["/ibc.core.client.v1.ConsensusStateWithHeight", ConsensusStateWithHeight], ["/ibc.core.client.v1.QueryUpgradedConsensusStateRequest", QueryUpgradedConsensusStateRequest], + ["/ibc.core.client.v1.ClientConsensusStates", ClientConsensusStates], ["/ibc.core.client.v1.UpgradeProposal", UpgradeProposal], - ["/ibc.core.client.v1.MsgUpgradeClient", MsgUpgradeClient], - ["/ibc.core.client.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/ibc.core.client.v1.QueryConsensusStateHeightsResponse", QueryConsensusStateHeightsResponse], - ["/ibc.core.client.v1.QueryClientStatusResponse", QueryClientStatusResponse], - ["/ibc.core.client.v1.QueryUpgradedConsensusStateResponse", QueryUpgradedConsensusStateResponse], + ["/ibc.core.client.v1.MsgCreateClientResponse", MsgCreateClientResponse], + ["/ibc.core.client.v1.MsgIBCSoftwareUpgrade", MsgIBCSoftwareUpgrade], + ["/ibc.core.client.v1.IdentifiedClientState", IdentifiedClientState], + ["/ibc.core.client.v1.QueryClientParamsRequest", QueryClientParamsRequest], + ["/ibc.core.client.v1.GenesisState", GenesisState], + ["/ibc.core.client.v1.QueryClientStateResponse", QueryClientStateResponse], + ["/ibc.core.client.v1.MsgUpdateParams", MsgUpdateParams], + ["/ibc.core.client.v1.QueryClientParamsResponse", QueryClientParamsResponse], + ["/ibc.core.client.v1.ClientUpdateProposal", ClientUpdateProposal], ]; export { msgTypes }; diff --git a/ts-client/lib/ibc.core.connection.v1/module.d.ts b/ts-client/lib/ibc.core.connection.v1/module.d.ts index 8dc222008..67934bd5a 100644 --- a/ts-client/lib/ibc.core.connection.v1/module.d.ts +++ b/ts-client/lib/ibc.core.connection.v1/module.d.ts @@ -2,54 +2,49 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { Params } from "./types/ibc/core/connection/v1/connection"; -import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; -import { MsgConnectionOpenAckResponse } from "./types/ibc/core/connection/v1/tx"; -import { Counterparty } from "./types/ibc/core/connection/v1/connection"; -import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; -import { MsgUpdateParams } from "./types/ibc/core/connection/v1/tx"; -import { QueryConnectionsResponse } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionRequest } from "./types/ibc/core/connection/v1/query"; import { QueryClientConnectionsRequest } from "./types/ibc/core/connection/v1/query"; -import { QueryClientConnectionsResponse } from "./types/ibc/core/connection/v1/query"; import { QueryConnectionParamsRequest } from "./types/ibc/core/connection/v1/query"; -import { Version } from "./types/ibc/core/connection/v1/connection"; -import { MsgConnectionOpenTryResponse } from "./types/ibc/core/connection/v1/tx"; -import { ClientPaths } from "./types/ibc/core/connection/v1/connection"; -import { QueryConnectionRequest } 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 { MsgConnectionOpenConfirmResponse } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenAckResponse } from "./types/ibc/core/connection/v1/tx"; import { MsgUpdateParamsResponse } from "./types/ibc/core/connection/v1/tx"; -import { MsgConnectionOpenInit } from "./types/ibc/core/connection/v1/tx"; +import { QueryConnectionClientStateRequest } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionParamsResponse } from "./types/ibc/core/connection/v1/query"; import { MsgConnectionOpenConfirm } from "./types/ibc/core/connection/v1/tx"; -import { QueryConnectionsRequest } from "./types/ibc/core/connection/v1/query"; -import { ConnectionEnd } from "./types/ibc/core/connection/v1/connection"; -import { QueryConnectionConsensusStateResponse } from "./types/ibc/core/connection/v1/query"; +import { MsgConnectionOpenConfirmResponse } from "./types/ibc/core/connection/v1/tx"; import { GenesisState } from "./types/ibc/core/connection/v1/genesis"; -import { IdentifiedConnection } from "./types/ibc/core/connection/v1/connection"; +import { ClientPaths } from "./types/ibc/core/connection/v1/connection"; import { ConnectionPaths } from "./types/ibc/core/connection/v1/connection"; -import { QueryConnectionClientStateRequest } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionConsensusStateRequest } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionConsensusStateResponse } from "./types/ibc/core/connection/v1/query"; +import { MsgConnectionOpenTryResponse } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; +import { QueryClientConnectionsResponse } from "./types/ibc/core/connection/v1/query"; +import { Counterparty } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionsRequest } from "./types/ibc/core/connection/v1/query"; import { QueryConnectionClientStateResponse } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionParamsResponse } from "./types/ibc/core/connection/v1/query"; -export { Params, MsgConnectionOpenAck, MsgConnectionOpenAckResponse, Counterparty, MsgConnectionOpenTry, MsgUpdateParams, QueryConnectionsResponse, QueryClientConnectionsRequest, QueryClientConnectionsResponse, QueryConnectionParamsRequest, Version, MsgConnectionOpenTryResponse, ClientPaths, QueryConnectionRequest, QueryConnectionResponse, MsgConnectionOpenInitResponse, MsgConnectionOpenConfirmResponse, MsgUpdateParamsResponse, MsgConnectionOpenInit, MsgConnectionOpenConfirm, QueryConnectionsRequest, ConnectionEnd, QueryConnectionConsensusStateResponse, GenesisState, IdentifiedConnection, ConnectionPaths, QueryConnectionClientStateRequest, QueryConnectionConsensusStateRequest, QueryConnectionClientStateResponse, QueryConnectionParamsResponse }; -type sendParamsParams = { - value: Params; - fee?: StdFee; - memo?: string; -}; -type sendMsgConnectionOpenAckParams = { - value: MsgConnectionOpenAck; +import { MsgConnectionOpenInit } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenInitResponse } from "./types/ibc/core/connection/v1/tx"; +import { IdentifiedConnection } from "./types/ibc/core/connection/v1/connection"; +import { Params } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionConsensusStateRequest } from "./types/ibc/core/connection/v1/query"; +import { MsgUpdateParams } from "./types/ibc/core/connection/v1/tx"; +import { Version } from "./types/ibc/core/connection/v1/connection"; +import { ConnectionEnd } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionResponse } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionsResponse } from "./types/ibc/core/connection/v1/query"; +export { QueryConnectionRequest, QueryClientConnectionsRequest, QueryConnectionParamsRequest, MsgConnectionOpenTry, MsgConnectionOpenAckResponse, MsgUpdateParamsResponse, QueryConnectionClientStateRequest, QueryConnectionParamsResponse, MsgConnectionOpenConfirm, MsgConnectionOpenConfirmResponse, GenesisState, ClientPaths, ConnectionPaths, QueryConnectionConsensusStateResponse, MsgConnectionOpenTryResponse, MsgConnectionOpenAck, QueryClientConnectionsResponse, Counterparty, QueryConnectionsRequest, QueryConnectionClientStateResponse, MsgConnectionOpenInit, MsgConnectionOpenInitResponse, IdentifiedConnection, Params, QueryConnectionConsensusStateRequest, MsgUpdateParams, Version, ConnectionEnd, QueryConnectionResponse, QueryConnectionsResponse }; +type sendQueryConnectionRequestParams = { + value: QueryConnectionRequest; fee?: StdFee; memo?: string; }; -type sendMsgConnectionOpenAckResponseParams = { - value: MsgConnectionOpenAckResponse; +type sendQueryClientConnectionsRequestParams = { + value: QueryClientConnectionsRequest; fee?: StdFee; memo?: string; }; -type sendCounterpartyParams = { - value: Counterparty; +type sendQueryConnectionParamsRequestParams = { + value: QueryConnectionParamsRequest; fee?: StdFee; memo?: string; }; @@ -58,38 +53,38 @@ type sendMsgConnectionOpenTryParams = { fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams; +type sendMsgConnectionOpenAckResponseParams = { + value: MsgConnectionOpenAckResponse; fee?: StdFee; memo?: string; }; -type sendQueryConnectionsResponseParams = { - value: QueryConnectionsResponse; +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; fee?: StdFee; memo?: string; }; -type sendQueryClientConnectionsRequestParams = { - value: QueryClientConnectionsRequest; +type sendQueryConnectionClientStateRequestParams = { + value: QueryConnectionClientStateRequest; fee?: StdFee; memo?: string; }; -type sendQueryClientConnectionsResponseParams = { - value: QueryClientConnectionsResponse; +type sendQueryConnectionParamsResponseParams = { + value: QueryConnectionParamsResponse; fee?: StdFee; memo?: string; }; -type sendQueryConnectionParamsRequestParams = { - value: QueryConnectionParamsRequest; +type sendMsgConnectionOpenConfirmParams = { + value: MsgConnectionOpenConfirm; fee?: StdFee; memo?: string; }; -type sendVersionParams = { - value: Version; +type sendMsgConnectionOpenConfirmResponseParams = { + value: MsgConnectionOpenConfirmResponse; fee?: StdFee; memo?: string; }; -type sendMsgConnectionOpenTryResponseParams = { - value: MsgConnectionOpenTryResponse; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; @@ -98,38 +93,33 @@ type sendClientPathsParams = { fee?: StdFee; memo?: string; }; -type sendQueryConnectionRequestParams = { - value: QueryConnectionRequest; - fee?: StdFee; - memo?: string; -}; -type sendQueryConnectionResponseParams = { - value: QueryConnectionResponse; +type sendConnectionPathsParams = { + value: ConnectionPaths; fee?: StdFee; memo?: string; }; -type sendMsgConnectionOpenInitResponseParams = { - value: MsgConnectionOpenInitResponse; +type sendQueryConnectionConsensusStateResponseParams = { + value: QueryConnectionConsensusStateResponse; fee?: StdFee; memo?: string; }; -type sendMsgConnectionOpenConfirmResponseParams = { - value: MsgConnectionOpenConfirmResponse; +type sendMsgConnectionOpenTryResponseParams = { + value: MsgConnectionOpenTryResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type sendMsgConnectionOpenAckParams = { + value: MsgConnectionOpenAck; fee?: StdFee; memo?: string; }; -type sendMsgConnectionOpenInitParams = { - value: MsgConnectionOpenInit; +type sendQueryClientConnectionsResponseParams = { + value: QueryClientConnectionsResponse; fee?: StdFee; memo?: string; }; -type sendMsgConnectionOpenConfirmParams = { - value: MsgConnectionOpenConfirm; +type sendCounterpartyParams = { + value: Counterparty; fee?: StdFee; memo?: string; }; @@ -138,18 +128,18 @@ type sendQueryConnectionsRequestParams = { fee?: StdFee; memo?: string; }; -type sendConnectionEndParams = { - value: ConnectionEnd; +type sendQueryConnectionClientStateResponseParams = { + value: QueryConnectionClientStateResponse; fee?: StdFee; memo?: string; }; -type sendQueryConnectionConsensusStateResponseParams = { - value: QueryConnectionConsensusStateResponse; +type sendMsgConnectionOpenInitParams = { + value: MsgConnectionOpenInit; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendMsgConnectionOpenInitResponseParams = { + value: MsgConnectionOpenInitResponse; fee?: StdFee; memo?: string; }; @@ -158,120 +148,130 @@ type sendIdentifiedConnectionParams = { fee?: StdFee; memo?: string; }; -type sendConnectionPathsParams = { - value: ConnectionPaths; +type sendParamsParams = { + value: Params; fee?: StdFee; memo?: string; }; -type sendQueryConnectionClientStateRequestParams = { - value: QueryConnectionClientStateRequest; +type sendQueryConnectionConsensusStateRequestParams = { + value: QueryConnectionConsensusStateRequest; fee?: StdFee; memo?: string; }; -type sendQueryConnectionConsensusStateRequestParams = { - value: QueryConnectionConsensusStateRequest; +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams; fee?: StdFee; memo?: string; }; -type sendQueryConnectionClientStateResponseParams = { - value: QueryConnectionClientStateResponse; +type sendVersionParams = { + value: Version; fee?: StdFee; memo?: string; }; -type sendQueryConnectionParamsResponseParams = { - value: QueryConnectionParamsResponse; +type sendConnectionEndParams = { + value: ConnectionEnd; fee?: StdFee; memo?: string; }; -type paramsParams = { - value: Params; +type sendQueryConnectionResponseParams = { + value: QueryConnectionResponse; + fee?: StdFee; + memo?: string; }; -type msgConnectionOpenAckParams = { - value: MsgConnectionOpenAck; +type sendQueryConnectionsResponseParams = { + value: QueryConnectionsResponse; + fee?: StdFee; + memo?: string; }; -type msgConnectionOpenAckResponseParams = { - value: MsgConnectionOpenAckResponse; +type queryConnectionRequestParams = { + value: QueryConnectionRequest; }; -type counterpartyParams = { - value: Counterparty; +type queryClientConnectionsRequestParams = { + value: QueryClientConnectionsRequest; +}; +type queryConnectionParamsRequestParams = { + value: QueryConnectionParamsRequest; }; type msgConnectionOpenTryParams = { value: MsgConnectionOpenTry; }; -type msgUpdateParamsParams = { - value: MsgUpdateParams; +type msgConnectionOpenAckResponseParams = { + value: MsgConnectionOpenAckResponse; }; -type queryConnectionsResponseParams = { - value: QueryConnectionsResponse; +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; }; -type queryClientConnectionsRequestParams = { - value: QueryClientConnectionsRequest; +type queryConnectionClientStateRequestParams = { + value: QueryConnectionClientStateRequest; }; -type queryClientConnectionsResponseParams = { - value: QueryClientConnectionsResponse; +type queryConnectionParamsResponseParams = { + value: QueryConnectionParamsResponse; }; -type queryConnectionParamsRequestParams = { - value: QueryConnectionParamsRequest; +type msgConnectionOpenConfirmParams = { + value: MsgConnectionOpenConfirm; }; -type versionParams = { - value: Version; +type msgConnectionOpenConfirmResponseParams = { + value: MsgConnectionOpenConfirmResponse; }; -type msgConnectionOpenTryResponseParams = { - value: MsgConnectionOpenTryResponse; +type genesisStateParams = { + value: GenesisState; }; type clientPathsParams = { value: ClientPaths; }; -type queryConnectionRequestParams = { - value: QueryConnectionRequest; -}; -type queryConnectionResponseParams = { - value: QueryConnectionResponse; +type connectionPathsParams = { + value: ConnectionPaths; }; -type msgConnectionOpenInitResponseParams = { - value: MsgConnectionOpenInitResponse; +type queryConnectionConsensusStateResponseParams = { + value: QueryConnectionConsensusStateResponse; }; -type msgConnectionOpenConfirmResponseParams = { - value: MsgConnectionOpenConfirmResponse; +type msgConnectionOpenTryResponseParams = { + value: MsgConnectionOpenTryResponse; }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type msgConnectionOpenAckParams = { + value: MsgConnectionOpenAck; }; -type msgConnectionOpenInitParams = { - value: MsgConnectionOpenInit; +type queryClientConnectionsResponseParams = { + value: QueryClientConnectionsResponse; }; -type msgConnectionOpenConfirmParams = { - value: MsgConnectionOpenConfirm; +type counterpartyParams = { + value: Counterparty; }; type queryConnectionsRequestParams = { value: QueryConnectionsRequest; }; -type connectionEndParams = { - value: ConnectionEnd; +type queryConnectionClientStateResponseParams = { + value: QueryConnectionClientStateResponse; }; -type queryConnectionConsensusStateResponseParams = { - value: QueryConnectionConsensusStateResponse; +type msgConnectionOpenInitParams = { + value: MsgConnectionOpenInit; }; -type genesisStateParams = { - value: GenesisState; +type msgConnectionOpenInitResponseParams = { + value: MsgConnectionOpenInitResponse; }; type identifiedConnectionParams = { value: IdentifiedConnection; }; -type connectionPathsParams = { - value: ConnectionPaths; -}; -type queryConnectionClientStateRequestParams = { - value: QueryConnectionClientStateRequest; +type paramsParams = { + value: Params; }; type queryConnectionConsensusStateRequestParams = { value: QueryConnectionConsensusStateRequest; }; -type queryConnectionClientStateResponseParams = { - value: QueryConnectionClientStateResponse; +type msgUpdateParamsParams = { + value: MsgUpdateParams; }; -type queryConnectionParamsResponseParams = { - value: QueryConnectionParamsResponse; +type versionParams = { + value: Version; +}; +type connectionEndParams = { + value: ConnectionEnd; +}; +type queryConnectionResponseParams = { + value: QueryConnectionResponse; +}; +type queryConnectionsResponseParams = { + value: QueryConnectionsResponse; }; export declare const registry: Registry; interface TxClientOptions { @@ -280,66 +280,66 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendParams({ value, fee, memo }: sendParamsParams): Promise; - sendMsgConnectionOpenAck({ value, fee, memo }: sendMsgConnectionOpenAckParams): Promise; - sendMsgConnectionOpenAckResponse({ value, fee, memo }: sendMsgConnectionOpenAckResponseParams): Promise; - sendCounterparty({ value, fee, memo }: sendCounterpartyParams): Promise; - sendMsgConnectionOpenTry({ value, fee, memo }: sendMsgConnectionOpenTryParams): Promise; - sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; - sendQueryConnectionsResponse({ value, fee, memo }: sendQueryConnectionsResponseParams): Promise; + sendQueryConnectionRequest({ value, fee, memo }: sendQueryConnectionRequestParams): Promise; sendQueryClientConnectionsRequest({ value, fee, memo }: sendQueryClientConnectionsRequestParams): Promise; - sendQueryClientConnectionsResponse({ value, fee, memo }: sendQueryClientConnectionsResponseParams): Promise; sendQueryConnectionParamsRequest({ value, fee, memo }: sendQueryConnectionParamsRequestParams): Promise; - sendVersion({ value, fee, memo }: sendVersionParams): Promise; - sendMsgConnectionOpenTryResponse({ value, fee, memo }: sendMsgConnectionOpenTryResponseParams): Promise; - sendClientPaths({ value, fee, memo }: sendClientPathsParams): Promise; - sendQueryConnectionRequest({ value, fee, memo }: sendQueryConnectionRequestParams): Promise; - sendQueryConnectionResponse({ value, fee, memo }: sendQueryConnectionResponseParams): Promise; - sendMsgConnectionOpenInitResponse({ value, fee, memo }: sendMsgConnectionOpenInitResponseParams): Promise; - sendMsgConnectionOpenConfirmResponse({ value, fee, memo }: sendMsgConnectionOpenConfirmResponseParams): Promise; + sendMsgConnectionOpenTry({ value, fee, memo }: sendMsgConnectionOpenTryParams): Promise; + sendMsgConnectionOpenAckResponse({ value, fee, memo }: sendMsgConnectionOpenAckResponseParams): Promise; sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; - sendMsgConnectionOpenInit({ value, fee, memo }: sendMsgConnectionOpenInitParams): Promise; + sendQueryConnectionClientStateRequest({ value, fee, memo }: sendQueryConnectionClientStateRequestParams): Promise; + sendQueryConnectionParamsResponse({ value, fee, memo }: sendQueryConnectionParamsResponseParams): Promise; sendMsgConnectionOpenConfirm({ value, fee, memo }: sendMsgConnectionOpenConfirmParams): Promise; - sendQueryConnectionsRequest({ value, fee, memo }: sendQueryConnectionsRequestParams): Promise; - sendConnectionEnd({ value, fee, memo }: sendConnectionEndParams): Promise; - sendQueryConnectionConsensusStateResponse({ value, fee, memo }: sendQueryConnectionConsensusStateResponseParams): Promise; + sendMsgConnectionOpenConfirmResponse({ value, fee, memo }: sendMsgConnectionOpenConfirmResponseParams): Promise; sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendIdentifiedConnection({ value, fee, memo }: sendIdentifiedConnectionParams): Promise; + sendClientPaths({ value, fee, memo }: sendClientPathsParams): Promise; sendConnectionPaths({ value, fee, memo }: sendConnectionPathsParams): Promise; - sendQueryConnectionClientStateRequest({ value, fee, memo }: sendQueryConnectionClientStateRequestParams): Promise; - sendQueryConnectionConsensusStateRequest({ value, fee, memo }: sendQueryConnectionConsensusStateRequestParams): Promise; + sendQueryConnectionConsensusStateResponse({ value, fee, memo }: sendQueryConnectionConsensusStateResponseParams): Promise; + sendMsgConnectionOpenTryResponse({ value, fee, memo }: sendMsgConnectionOpenTryResponseParams): Promise; + sendMsgConnectionOpenAck({ value, fee, memo }: sendMsgConnectionOpenAckParams): Promise; + sendQueryClientConnectionsResponse({ value, fee, memo }: sendQueryClientConnectionsResponseParams): Promise; + sendCounterparty({ value, fee, memo }: sendCounterpartyParams): Promise; + sendQueryConnectionsRequest({ value, fee, memo }: sendQueryConnectionsRequestParams): Promise; sendQueryConnectionClientStateResponse({ value, fee, memo }: sendQueryConnectionClientStateResponseParams): Promise; - sendQueryConnectionParamsResponse({ value, fee, memo }: sendQueryConnectionParamsResponseParams): Promise; - params({ value }: paramsParams): EncodeObject; - msgConnectionOpenAck({ value }: msgConnectionOpenAckParams): EncodeObject; - msgConnectionOpenAckResponse({ value }: msgConnectionOpenAckResponseParams): EncodeObject; - counterparty({ value }: counterpartyParams): EncodeObject; - msgConnectionOpenTry({ value }: msgConnectionOpenTryParams): EncodeObject; - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; - queryConnectionsResponse({ value }: queryConnectionsResponseParams): EncodeObject; + sendMsgConnectionOpenInit({ value, fee, memo }: sendMsgConnectionOpenInitParams): Promise; + sendMsgConnectionOpenInitResponse({ value, fee, memo }: sendMsgConnectionOpenInitResponseParams): Promise; + sendIdentifiedConnection({ value, fee, memo }: sendIdentifiedConnectionParams): Promise; + sendParams({ value, fee, memo }: sendParamsParams): Promise; + sendQueryConnectionConsensusStateRequest({ value, fee, memo }: sendQueryConnectionConsensusStateRequestParams): Promise; + sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; + sendVersion({ value, fee, memo }: sendVersionParams): Promise; + sendConnectionEnd({ value, fee, memo }: sendConnectionEndParams): Promise; + sendQueryConnectionResponse({ value, fee, memo }: sendQueryConnectionResponseParams): Promise; + sendQueryConnectionsResponse({ value, fee, memo }: sendQueryConnectionsResponseParams): Promise; + queryConnectionRequest({ value }: queryConnectionRequestParams): EncodeObject; queryClientConnectionsRequest({ value }: queryClientConnectionsRequestParams): EncodeObject; - queryClientConnectionsResponse({ value }: queryClientConnectionsResponseParams): EncodeObject; queryConnectionParamsRequest({ value }: queryConnectionParamsRequestParams): EncodeObject; - version({ value }: versionParams): EncodeObject; - msgConnectionOpenTryResponse({ value }: msgConnectionOpenTryResponseParams): EncodeObject; - clientPaths({ value }: clientPathsParams): EncodeObject; - queryConnectionRequest({ value }: queryConnectionRequestParams): EncodeObject; - queryConnectionResponse({ value }: queryConnectionResponseParams): EncodeObject; - msgConnectionOpenInitResponse({ value }: msgConnectionOpenInitResponseParams): EncodeObject; - msgConnectionOpenConfirmResponse({ value }: msgConnectionOpenConfirmResponseParams): EncodeObject; + msgConnectionOpenTry({ value }: msgConnectionOpenTryParams): EncodeObject; + msgConnectionOpenAckResponse({ value }: msgConnectionOpenAckResponseParams): EncodeObject; msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; - msgConnectionOpenInit({ value }: msgConnectionOpenInitParams): EncodeObject; + queryConnectionClientStateRequest({ value }: queryConnectionClientStateRequestParams): EncodeObject; + queryConnectionParamsResponse({ value }: queryConnectionParamsResponseParams): EncodeObject; msgConnectionOpenConfirm({ value }: msgConnectionOpenConfirmParams): EncodeObject; - queryConnectionsRequest({ value }: queryConnectionsRequestParams): EncodeObject; - connectionEnd({ value }: connectionEndParams): EncodeObject; - queryConnectionConsensusStateResponse({ value }: queryConnectionConsensusStateResponseParams): EncodeObject; + msgConnectionOpenConfirmResponse({ value }: msgConnectionOpenConfirmResponseParams): EncodeObject; genesisState({ value }: genesisStateParams): EncodeObject; - identifiedConnection({ value }: identifiedConnectionParams): EncodeObject; + clientPaths({ value }: clientPathsParams): EncodeObject; connectionPaths({ value }: connectionPathsParams): EncodeObject; - queryConnectionClientStateRequest({ value }: queryConnectionClientStateRequestParams): EncodeObject; - queryConnectionConsensusStateRequest({ value }: queryConnectionConsensusStateRequestParams): EncodeObject; + queryConnectionConsensusStateResponse({ value }: queryConnectionConsensusStateResponseParams): EncodeObject; + msgConnectionOpenTryResponse({ value }: msgConnectionOpenTryResponseParams): EncodeObject; + msgConnectionOpenAck({ value }: msgConnectionOpenAckParams): EncodeObject; + queryClientConnectionsResponse({ value }: queryClientConnectionsResponseParams): EncodeObject; + counterparty({ value }: counterpartyParams): EncodeObject; + queryConnectionsRequest({ value }: queryConnectionsRequestParams): EncodeObject; queryConnectionClientStateResponse({ value }: queryConnectionClientStateResponseParams): EncodeObject; - queryConnectionParamsResponse({ value }: queryConnectionParamsResponseParams): EncodeObject; + msgConnectionOpenInit({ value }: msgConnectionOpenInitParams): EncodeObject; + msgConnectionOpenInitResponse({ value }: msgConnectionOpenInitResponseParams): EncodeObject; + identifiedConnection({ value }: identifiedConnectionParams): EncodeObject; + params({ value }: paramsParams): EncodeObject; + queryConnectionConsensusStateRequest({ value }: queryConnectionConsensusStateRequestParams): EncodeObject; + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; + version({ value }: versionParams): EncodeObject; + connectionEnd({ value }: connectionEndParams): EncodeObject; + queryConnectionResponse({ value }: queryConnectionResponseParams): EncodeObject; + queryConnectionsResponse({ value }: queryConnectionsResponseParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/ibc.core.connection.v1/module.js b/ts-client/lib/ibc.core.connection.v1/module.js index 3c2e09f92..4ff00d7fe 100644 --- a/ts-client/lib/ibc.core.connection.v1/module.js +++ b/ts-client/lib/ibc.core.connection.v1/module.js @@ -3,37 +3,37 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { Params } from "./types/ibc/core/connection/v1/connection"; -import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; -import { MsgConnectionOpenAckResponse } from "./types/ibc/core/connection/v1/tx"; -import { Counterparty } from "./types/ibc/core/connection/v1/connection"; -import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; -import { MsgUpdateParams } from "./types/ibc/core/connection/v1/tx"; -import { QueryConnectionsResponse } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionRequest } from "./types/ibc/core/connection/v1/query"; import { QueryClientConnectionsRequest } from "./types/ibc/core/connection/v1/query"; -import { QueryClientConnectionsResponse } from "./types/ibc/core/connection/v1/query"; import { QueryConnectionParamsRequest } from "./types/ibc/core/connection/v1/query"; -import { Version } from "./types/ibc/core/connection/v1/connection"; -import { MsgConnectionOpenTryResponse } from "./types/ibc/core/connection/v1/tx"; -import { ClientPaths } from "./types/ibc/core/connection/v1/connection"; -import { QueryConnectionRequest } 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 { MsgConnectionOpenConfirmResponse } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenAckResponse } from "./types/ibc/core/connection/v1/tx"; import { MsgUpdateParamsResponse } from "./types/ibc/core/connection/v1/tx"; -import { MsgConnectionOpenInit } from "./types/ibc/core/connection/v1/tx"; +import { QueryConnectionClientStateRequest } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionParamsResponse } from "./types/ibc/core/connection/v1/query"; import { MsgConnectionOpenConfirm } from "./types/ibc/core/connection/v1/tx"; -import { QueryConnectionsRequest } from "./types/ibc/core/connection/v1/query"; -import { ConnectionEnd } from "./types/ibc/core/connection/v1/connection"; -import { QueryConnectionConsensusStateResponse } from "./types/ibc/core/connection/v1/query"; +import { MsgConnectionOpenConfirmResponse } from "./types/ibc/core/connection/v1/tx"; import { GenesisState } from "./types/ibc/core/connection/v1/genesis"; -import { IdentifiedConnection } from "./types/ibc/core/connection/v1/connection"; +import { ClientPaths } from "./types/ibc/core/connection/v1/connection"; import { ConnectionPaths } from "./types/ibc/core/connection/v1/connection"; -import { QueryConnectionClientStateRequest } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionConsensusStateRequest } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionConsensusStateResponse } from "./types/ibc/core/connection/v1/query"; +import { MsgConnectionOpenTryResponse } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; +import { QueryClientConnectionsResponse } from "./types/ibc/core/connection/v1/query"; +import { Counterparty } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionsRequest } from "./types/ibc/core/connection/v1/query"; import { QueryConnectionClientStateResponse } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionParamsResponse } from "./types/ibc/core/connection/v1/query"; -export { Params, MsgConnectionOpenAck, MsgConnectionOpenAckResponse, Counterparty, MsgConnectionOpenTry, MsgUpdateParams, QueryConnectionsResponse, QueryClientConnectionsRequest, QueryClientConnectionsResponse, QueryConnectionParamsRequest, Version, MsgConnectionOpenTryResponse, ClientPaths, QueryConnectionRequest, QueryConnectionResponse, MsgConnectionOpenInitResponse, MsgConnectionOpenConfirmResponse, MsgUpdateParamsResponse, MsgConnectionOpenInit, MsgConnectionOpenConfirm, QueryConnectionsRequest, ConnectionEnd, QueryConnectionConsensusStateResponse, GenesisState, IdentifiedConnection, ConnectionPaths, QueryConnectionClientStateRequest, QueryConnectionConsensusStateRequest, QueryConnectionClientStateResponse, QueryConnectionParamsResponse }; +import { MsgConnectionOpenInit } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenInitResponse } from "./types/ibc/core/connection/v1/tx"; +import { IdentifiedConnection } from "./types/ibc/core/connection/v1/connection"; +import { Params } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionConsensusStateRequest } from "./types/ibc/core/connection/v1/query"; +import { MsgUpdateParams } from "./types/ibc/core/connection/v1/tx"; +import { Version } from "./types/ibc/core/connection/v1/connection"; +import { ConnectionEnd } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionResponse } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionsResponse } from "./types/ibc/core/connection/v1/query"; +export { QueryConnectionRequest, QueryClientConnectionsRequest, QueryConnectionParamsRequest, MsgConnectionOpenTry, MsgConnectionOpenAckResponse, MsgUpdateParamsResponse, QueryConnectionClientStateRequest, QueryConnectionParamsResponse, MsgConnectionOpenConfirm, MsgConnectionOpenConfirmResponse, GenesisState, ClientPaths, ConnectionPaths, QueryConnectionConsensusStateResponse, MsgConnectionOpenTryResponse, MsgConnectionOpenAck, QueryClientConnectionsResponse, Counterparty, QueryConnectionsRequest, QueryConnectionClientStateResponse, MsgConnectionOpenInit, MsgConnectionOpenInitResponse, IdentifiedConnection, Params, QueryConnectionConsensusStateRequest, MsgUpdateParams, Version, ConnectionEnd, QueryConnectionResponse, QueryConnectionsResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -49,60 +49,46 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendParams({ value, fee, memo }) { - 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) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); - } - }, - async sendMsgConnectionOpenAck({ value, fee, memo }) { + async sendQueryConnectionRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenAck: 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.msgConnectionOpenAck({ value: MsgConnectionOpenAck.fromPartial(value) }); + let msg = this.queryConnectionRequest({ value: QueryConnectionRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgConnectionOpenAck: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConnectionRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgConnectionOpenAckResponse({ value, fee, memo }) { + async sendQueryClientConnectionsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenAckResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryClientConnectionsRequest: Unable to 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.queryClientConnectionsRequest({ value: QueryClientConnectionsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgConnectionOpenAckResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryClientConnectionsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendCounterparty({ value, fee, memo }) { + async sendQueryConnectionParamsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendCounterparty: 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.counterparty({ value: Counterparty.fromPartial(value) }); + let msg = this.queryConnectionParamsRequest({ value: QueryConnectionParamsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendCounterparty: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConnectionParamsRequest: Could not broadcast Tx: ' + e.message); } }, async sendMsgConnectionOpenTry({ value, fee, memo }) { @@ -119,102 +105,102 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgConnectionOpenTry: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParams({ value, fee, memo }) { + async sendMsgConnectionOpenAckResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); + let msg = this.msgConnectionOpenAckResponse({ value: MsgConnectionOpenAckResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgConnectionOpenAckResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConnectionsResponse({ value, fee, memo }) { + async sendMsgUpdateParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConnectionsResponse: 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.queryConnectionsResponse({ value: QueryConnectionsResponse.fromPartial(value) }); + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConnectionsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryClientConnectionsRequest({ value, fee, memo }) { + async sendQueryConnectionClientStateRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryClientConnectionsRequest: 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.queryClientConnectionsRequest({ value: QueryClientConnectionsRequest.fromPartial(value) }); + let msg = this.queryConnectionClientStateRequest({ value: QueryConnectionClientStateRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryClientConnectionsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConnectionClientStateRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryClientConnectionsResponse({ value, fee, memo }) { + async sendQueryConnectionParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryClientConnectionsResponse: 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.queryClientConnectionsResponse({ value: QueryClientConnectionsResponse.fromPartial(value) }); + let msg = this.queryConnectionParamsResponse({ value: QueryConnectionParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryClientConnectionsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConnectionParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConnectionParamsRequest({ value, fee, memo }) { + async sendMsgConnectionOpenConfirm({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendQueryConnectionParamsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgConnectionOpenConfirm: Could not broadcast Tx: ' + e.message); } }, - async sendVersion({ value, fee, memo }) { + async sendMsgConnectionOpenConfirmResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendVersion: 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.version({ value: Version.fromPartial(value) }); + let msg = this.msgConnectionOpenConfirmResponse({ value: MsgConnectionOpenConfirmResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendVersion: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgConnectionOpenConfirmResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgConnectionOpenTryResponse({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenTryResponse: 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.msgConnectionOpenTryResponse({ value: MsgConnectionOpenTryResponse.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgConnectionOpenTryResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, async sendClientPaths({ value, fee, memo }) { @@ -231,274 +217,280 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendClientPaths: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConnectionRequest({ value, fee, memo }) { + async sendConnectionPaths({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConnectionRequest: 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.queryConnectionRequest({ value: QueryConnectionRequest.fromPartial(value) }); + let msg = this.connectionPaths({ value: ConnectionPaths.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConnectionRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendConnectionPaths: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConnectionResponse({ value, fee, memo }) { + async sendQueryConnectionConsensusStateResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConnectionResponse: 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.queryConnectionResponse({ value: QueryConnectionResponse.fromPartial(value) }); + let msg = this.queryConnectionConsensusStateResponse({ value: QueryConnectionConsensusStateResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConnectionResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConnectionConsensusStateResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgConnectionOpenInitResponse({ value, fee, memo }) { + async sendMsgConnectionOpenTryResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenInitResponse: 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.msgConnectionOpenInitResponse({ value: MsgConnectionOpenInitResponse.fromPartial(value) }); + let msg = this.msgConnectionOpenTryResponse({ value: MsgConnectionOpenTryResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgConnectionOpenInitResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgConnectionOpenTryResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgConnectionOpenConfirmResponse({ value, fee, memo }) { + async sendMsgConnectionOpenAck({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenConfirmResponse: 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.msgConnectionOpenConfirmResponse({ value: MsgConnectionOpenConfirmResponse.fromPartial(value) }); + let msg = this.msgConnectionOpenAck({ value: MsgConnectionOpenAck.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgConnectionOpenConfirmResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgConnectionOpenAck: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }) { + async sendQueryClientConnectionsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: 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.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); + let msg = this.queryClientConnectionsResponse({ value: QueryClientConnectionsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryClientConnectionsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgConnectionOpenInit({ value, fee, memo }) { + async sendCounterparty({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenInit: 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.msgConnectionOpenInit({ value: MsgConnectionOpenInit.fromPartial(value) }); + let msg = this.counterparty({ value: Counterparty.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgConnectionOpenInit: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendCounterparty: Could not broadcast Tx: ' + e.message); } }, - async sendMsgConnectionOpenConfirm({ value, fee, memo }) { + async sendQueryConnectionsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgConnectionOpenConfirm: 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.msgConnectionOpenConfirm({ value: MsgConnectionOpenConfirm.fromPartial(value) }); + let msg = this.queryConnectionsRequest({ value: QueryConnectionsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgConnectionOpenConfirm: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConnectionsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConnectionsRequest({ value, fee, memo }) { + async sendQueryConnectionClientStateResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConnectionsRequest: 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.queryConnectionsRequest({ value: QueryConnectionsRequest.fromPartial(value) }); + let msg = this.queryConnectionClientStateResponse({ value: QueryConnectionClientStateResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConnectionsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConnectionClientStateResponse: Could not broadcast Tx: ' + e.message); } }, - async sendConnectionEnd({ value, fee, memo }) { + async sendMsgConnectionOpenInit({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendConnectionEnd: 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.connectionEnd({ value: ConnectionEnd.fromPartial(value) }); + let msg = this.msgConnectionOpenInit({ value: MsgConnectionOpenInit.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendConnectionEnd: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgConnectionOpenInit: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConnectionConsensusStateResponse({ value, fee, memo }) { + async sendMsgConnectionOpenInitResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConnectionConsensusStateResponse: 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.queryConnectionConsensusStateResponse({ value: QueryConnectionConsensusStateResponse.fromPartial(value) }); + let msg = this.msgConnectionOpenInitResponse({ value: MsgConnectionOpenInitResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConnectionConsensusStateResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgConnectionOpenInitResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendIdentifiedConnection({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendIdentifiedConnection: Unable to 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.identifiedConnection({ value: IdentifiedConnection.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendIdentifiedConnection: Could not broadcast Tx: ' + e.message); } }, - async sendIdentifiedConnection({ value, fee, memo }) { + async sendParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendIdentifiedConnection: 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.identifiedConnection({ value: IdentifiedConnection.fromPartial(value) }); + let msg = this.params({ value: Params.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendIdentifiedConnection: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); } }, - async sendConnectionPaths({ value, fee, memo }) { + async sendQueryConnectionConsensusStateRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendConnectionPaths: 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.connectionPaths({ value: ConnectionPaths.fromPartial(value) }); + let msg = this.queryConnectionConsensusStateRequest({ value: QueryConnectionConsensusStateRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendConnectionPaths: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConnectionConsensusStateRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConnectionClientStateRequest({ value, fee, memo }) { + async sendMsgUpdateParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConnectionClientStateRequest: 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.queryConnectionClientStateRequest({ value: QueryConnectionClientStateRequest.fromPartial(value) }); + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConnectionClientStateRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConnectionConsensusStateRequest({ value, fee, memo }) { + async sendVersion({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConnectionConsensusStateRequest: 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.queryConnectionConsensusStateRequest({ value: QueryConnectionConsensusStateRequest.fromPartial(value) }); + let msg = this.version({ value: Version.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConnectionConsensusStateRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendVersion: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConnectionClientStateResponse({ value, fee, memo }) { + async sendConnectionEnd({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConnectionClientStateResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendConnectionEnd: Unable to 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.connectionEnd({ value: ConnectionEnd.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConnectionClientStateResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendConnectionEnd: Could not broadcast Tx: ' + e.message); } }, - async sendQueryConnectionParamsResponse({ value, fee, memo }) { + async sendQueryConnectionResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryConnectionParamsResponse: 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.queryConnectionParamsResponse({ value: QueryConnectionParamsResponse.fromPartial(value) }); + let msg = this.queryConnectionResponse({ value: QueryConnectionResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryConnectionParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryConnectionResponse: Could not broadcast Tx: ' + e.message); } }, - params({ value }) { + async sendQueryConnectionsResponse({ value, fee, memo }) { + if (!signer) { + throw new Error('TxClient:sendQueryConnectionsResponse: Unable to sign Tx. Signer is not present.'); + } try { - return { typeUrl: "/ibc.core.connection.v1.Params", value: Params.fromPartial(value) }; + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); + let msg = this.queryConnectionsResponse({ value: QueryConnectionsResponse.fromPartial(value) }); + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:Params: Could not create message: ' + e.message); + throw new Error('TxClient:sendQueryConnectionsResponse: Could not broadcast Tx: ' + e.message); } }, - msgConnectionOpenAck({ value }) { + queryConnectionRequest({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck", value: MsgConnectionOpenAck.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionRequest", value: QueryConnectionRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgConnectionOpenAck: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConnectionRequest: Could not create message: ' + e.message); } }, - msgConnectionOpenAckResponse({ value }) { + queryClientConnectionsRequest({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAckResponse", value: MsgConnectionOpenAckResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsRequest", value: QueryClientConnectionsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgConnectionOpenAckResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryClientConnectionsRequest: Could not create message: ' + e.message); } }, - counterparty({ value }) { + queryConnectionParamsRequest({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.Counterparty", value: Counterparty.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsRequest", value: QueryConnectionParamsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Counterparty: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConnectionParamsRequest: Could not create message: ' + e.message); } }, msgConnectionOpenTry({ value }) { @@ -509,60 +501,60 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgConnectionOpenTry: Could not create message: ' + e.message); } }, - msgUpdateParams({ value }) { + msgConnectionOpenAckResponse({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAckResponse", value: MsgConnectionOpenAckResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); + throw new Error('TxClient:MsgConnectionOpenAckResponse: Could not create message: ' + e.message); } }, - queryConnectionsResponse({ value }) { + msgUpdateParamsResponse({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionsResponse", value: QueryConnectionsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConnectionsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); } }, - queryClientConnectionsRequest({ value }) { + queryConnectionClientStateRequest({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsRequest", value: QueryClientConnectionsRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateRequest", value: QueryConnectionClientStateRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryClientConnectionsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConnectionClientStateRequest: Could not create message: ' + e.message); } }, - queryClientConnectionsResponse({ value }) { + queryConnectionParamsResponse({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsResponse", value: QueryClientConnectionsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsResponse", value: QueryConnectionParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryClientConnectionsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConnectionParamsResponse: Could not create message: ' + e.message); } }, - queryConnectionParamsRequest({ value }) { + msgConnectionOpenConfirm({ value }) { 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) { - throw new Error('TxClient:QueryConnectionParamsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgConnectionOpenConfirm: Could not create message: ' + e.message); } }, - version({ value }) { + msgConnectionOpenConfirmResponse({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.Version", value: Version.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse", value: MsgConnectionOpenConfirmResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Version: Could not create message: ' + e.message); + throw new Error('TxClient:MsgConnectionOpenConfirmResponse: Could not create message: ' + e.message); } }, - msgConnectionOpenTryResponse({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTryResponse", value: MsgConnectionOpenTryResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgConnectionOpenTryResponse: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, clientPaths({ value }) { @@ -573,60 +565,52 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:ClientPaths: Could not create message: ' + e.message); } }, - queryConnectionRequest({ value }) { - try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionRequest", value: QueryConnectionRequest.fromPartial(value) }; - } - catch (e) { - throw new Error('TxClient:QueryConnectionRequest: Could not create message: ' + e.message); - } - }, - queryConnectionResponse({ value }) { + connectionPaths({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionResponse", value: QueryConnectionResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.ConnectionPaths", value: ConnectionPaths.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConnectionResponse: Could not create message: ' + e.message); + throw new Error('TxClient:ConnectionPaths: Could not create message: ' + e.message); } }, - msgConnectionOpenInitResponse({ value }) { + queryConnectionConsensusStateResponse({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInitResponse", value: MsgConnectionOpenInitResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateResponse", value: QueryConnectionConsensusStateResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgConnectionOpenInitResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConnectionConsensusStateResponse: Could not create message: ' + e.message); } }, - msgConnectionOpenConfirmResponse({ value }) { + msgConnectionOpenTryResponse({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse", value: MsgConnectionOpenConfirmResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenTryResponse", value: MsgConnectionOpenTryResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgConnectionOpenConfirmResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgConnectionOpenTryResponse: Could not create message: ' + e.message); } }, - msgUpdateParamsResponse({ value }) { + msgConnectionOpenAck({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenAck", value: MsgConnectionOpenAck.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgConnectionOpenAck: Could not create message: ' + e.message); } }, - msgConnectionOpenInit({ value }) { + queryClientConnectionsResponse({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit", value: MsgConnectionOpenInit.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.QueryClientConnectionsResponse", value: QueryClientConnectionsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgConnectionOpenInit: Could not create message: ' + e.message); + throw new Error('TxClient:QueryClientConnectionsResponse: Could not create message: ' + e.message); } }, - msgConnectionOpenConfirm({ value }) { + counterparty({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenConfirm", value: MsgConnectionOpenConfirm.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.Counterparty", value: Counterparty.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgConnectionOpenConfirm: Could not create message: ' + e.message); + throw new Error('TxClient:Counterparty: Could not create message: ' + e.message); } }, queryConnectionsRequest({ value }) { @@ -637,28 +621,28 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:QueryConnectionsRequest: Could not create message: ' + e.message); } }, - connectionEnd({ value }) { + queryConnectionClientStateResponse({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.ConnectionEnd", value: ConnectionEnd.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateResponse", value: QueryConnectionClientStateResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ConnectionEnd: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConnectionClientStateResponse: Could not create message: ' + e.message); } }, - queryConnectionConsensusStateResponse({ value }) { + msgConnectionOpenInit({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateResponse", value: QueryConnectionConsensusStateResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInit", value: MsgConnectionOpenInit.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConnectionConsensusStateResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgConnectionOpenInit: Could not create message: ' + e.message); } }, - genesisState({ value }) { + msgConnectionOpenInitResponse({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.MsgConnectionOpenInitResponse", value: MsgConnectionOpenInitResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:MsgConnectionOpenInitResponse: Could not create message: ' + e.message); } }, identifiedConnection({ value }) { @@ -669,44 +653,60 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:IdentifiedConnection: Could not create message: ' + e.message); } }, - connectionPaths({ value }) { + params({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.ConnectionPaths", value: ConnectionPaths.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.Params", value: Params.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:ConnectionPaths: Could not create message: ' + e.message); + throw new Error('TxClient:Params: Could not create message: ' + e.message); } }, - queryConnectionClientStateRequest({ value }) { + queryConnectionConsensusStateRequest({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateRequest", value: QueryConnectionClientStateRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateRequest", value: QueryConnectionConsensusStateRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConnectionClientStateRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryConnectionConsensusStateRequest: Could not create message: ' + e.message); } }, - queryConnectionConsensusStateRequest({ value }) { + msgUpdateParams({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionConsensusStateRequest", value: QueryConnectionConsensusStateRequest.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConnectionConsensusStateRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); } }, - queryConnectionClientStateResponse({ value }) { + version({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionClientStateResponse", value: QueryConnectionClientStateResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.Version", value: Version.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConnectionClientStateResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Version: Could not create message: ' + e.message); } }, - queryConnectionParamsResponse({ value }) { + connectionEnd({ value }) { try { - return { typeUrl: "/ibc.core.connection.v1.QueryConnectionParamsResponse", value: QueryConnectionParamsResponse.fromPartial(value) }; + return { typeUrl: "/ibc.core.connection.v1.ConnectionEnd", value: ConnectionEnd.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryConnectionParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:ConnectionEnd: Could not create message: ' + e.message); + } + }, + queryConnectionResponse({ value }) { + try { + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionResponse", value: QueryConnectionResponse.fromPartial(value) }; + } + catch (e) { + throw new Error('TxClient:QueryConnectionResponse: Could not create message: ' + e.message); + } + }, + queryConnectionsResponse({ value }) { + try { + return { typeUrl: "/ibc.core.connection.v1.QueryConnectionsResponse", value: QueryConnectionsResponse.fromPartial(value) }; + } + catch (e) { + throw new Error('TxClient:QueryConnectionsResponse: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/ibc.core.connection.v1/registry.js b/ts-client/lib/ibc.core.connection.v1/registry.js index 81885ad78..df978a7e0 100644 --- a/ts-client/lib/ibc.core.connection.v1/registry.js +++ b/ts-client/lib/ibc.core.connection.v1/registry.js @@ -1,63 +1,63 @@ -import { Params } from "./types/ibc/core/connection/v1/connection"; -import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; -import { MsgConnectionOpenAckResponse } from "./types/ibc/core/connection/v1/tx"; -import { Counterparty } from "./types/ibc/core/connection/v1/connection"; -import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; -import { MsgUpdateParams } from "./types/ibc/core/connection/v1/tx"; -import { QueryConnectionsResponse } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionRequest } from "./types/ibc/core/connection/v1/query"; import { QueryClientConnectionsRequest } from "./types/ibc/core/connection/v1/query"; -import { QueryClientConnectionsResponse } from "./types/ibc/core/connection/v1/query"; import { QueryConnectionParamsRequest } from "./types/ibc/core/connection/v1/query"; -import { Version } from "./types/ibc/core/connection/v1/connection"; -import { MsgConnectionOpenTryResponse } from "./types/ibc/core/connection/v1/tx"; -import { ClientPaths } from "./types/ibc/core/connection/v1/connection"; -import { QueryConnectionRequest } 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 { MsgConnectionOpenConfirmResponse } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenTry } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenAckResponse } from "./types/ibc/core/connection/v1/tx"; import { MsgUpdateParamsResponse } from "./types/ibc/core/connection/v1/tx"; -import { MsgConnectionOpenInit } from "./types/ibc/core/connection/v1/tx"; +import { QueryConnectionClientStateRequest } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionParamsResponse } from "./types/ibc/core/connection/v1/query"; import { MsgConnectionOpenConfirm } from "./types/ibc/core/connection/v1/tx"; -import { QueryConnectionsRequest } from "./types/ibc/core/connection/v1/query"; -import { ConnectionEnd } from "./types/ibc/core/connection/v1/connection"; -import { QueryConnectionConsensusStateResponse } from "./types/ibc/core/connection/v1/query"; +import { MsgConnectionOpenConfirmResponse } from "./types/ibc/core/connection/v1/tx"; import { GenesisState } from "./types/ibc/core/connection/v1/genesis"; -import { IdentifiedConnection } from "./types/ibc/core/connection/v1/connection"; +import { ClientPaths } from "./types/ibc/core/connection/v1/connection"; import { ConnectionPaths } from "./types/ibc/core/connection/v1/connection"; -import { QueryConnectionClientStateRequest } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionConsensusStateRequest } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionConsensusStateResponse } from "./types/ibc/core/connection/v1/query"; +import { MsgConnectionOpenTryResponse } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenAck } from "./types/ibc/core/connection/v1/tx"; +import { QueryClientConnectionsResponse } from "./types/ibc/core/connection/v1/query"; +import { Counterparty } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionsRequest } from "./types/ibc/core/connection/v1/query"; import { QueryConnectionClientStateResponse } from "./types/ibc/core/connection/v1/query"; -import { QueryConnectionParamsResponse } from "./types/ibc/core/connection/v1/query"; +import { MsgConnectionOpenInit } from "./types/ibc/core/connection/v1/tx"; +import { MsgConnectionOpenInitResponse } from "./types/ibc/core/connection/v1/tx"; +import { IdentifiedConnection } from "./types/ibc/core/connection/v1/connection"; +import { Params } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionConsensusStateRequest } from "./types/ibc/core/connection/v1/query"; +import { MsgUpdateParams } from "./types/ibc/core/connection/v1/tx"; +import { Version } from "./types/ibc/core/connection/v1/connection"; +import { ConnectionEnd } from "./types/ibc/core/connection/v1/connection"; +import { QueryConnectionResponse } from "./types/ibc/core/connection/v1/query"; +import { QueryConnectionsResponse } from "./types/ibc/core/connection/v1/query"; const msgTypes = [ - ["/ibc.core.connection.v1.Params", Params], - ["/ibc.core.connection.v1.MsgConnectionOpenAck", MsgConnectionOpenAck], - ["/ibc.core.connection.v1.MsgConnectionOpenAckResponse", MsgConnectionOpenAckResponse], - ["/ibc.core.connection.v1.Counterparty", Counterparty], - ["/ibc.core.connection.v1.MsgConnectionOpenTry", MsgConnectionOpenTry], - ["/ibc.core.connection.v1.MsgUpdateParams", MsgUpdateParams], - ["/ibc.core.connection.v1.QueryConnectionsResponse", QueryConnectionsResponse], + ["/ibc.core.connection.v1.QueryConnectionRequest", QueryConnectionRequest], ["/ibc.core.connection.v1.QueryClientConnectionsRequest", QueryClientConnectionsRequest], - ["/ibc.core.connection.v1.QueryClientConnectionsResponse", QueryClientConnectionsResponse], ["/ibc.core.connection.v1.QueryConnectionParamsRequest", QueryConnectionParamsRequest], - ["/ibc.core.connection.v1.Version", Version], - ["/ibc.core.connection.v1.MsgConnectionOpenTryResponse", MsgConnectionOpenTryResponse], - ["/ibc.core.connection.v1.ClientPaths", ClientPaths], - ["/ibc.core.connection.v1.QueryConnectionRequest", QueryConnectionRequest], - ["/ibc.core.connection.v1.QueryConnectionResponse", QueryConnectionResponse], - ["/ibc.core.connection.v1.MsgConnectionOpenInitResponse", MsgConnectionOpenInitResponse], - ["/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse", MsgConnectionOpenConfirmResponse], + ["/ibc.core.connection.v1.MsgConnectionOpenTry", MsgConnectionOpenTry], + ["/ibc.core.connection.v1.MsgConnectionOpenAckResponse", MsgConnectionOpenAckResponse], ["/ibc.core.connection.v1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/ibc.core.connection.v1.MsgConnectionOpenInit", MsgConnectionOpenInit], + ["/ibc.core.connection.v1.QueryConnectionClientStateRequest", QueryConnectionClientStateRequest], + ["/ibc.core.connection.v1.QueryConnectionParamsResponse", QueryConnectionParamsResponse], ["/ibc.core.connection.v1.MsgConnectionOpenConfirm", MsgConnectionOpenConfirm], - ["/ibc.core.connection.v1.QueryConnectionsRequest", QueryConnectionsRequest], - ["/ibc.core.connection.v1.ConnectionEnd", ConnectionEnd], - ["/ibc.core.connection.v1.QueryConnectionConsensusStateResponse", QueryConnectionConsensusStateResponse], + ["/ibc.core.connection.v1.MsgConnectionOpenConfirmResponse", MsgConnectionOpenConfirmResponse], ["/ibc.core.connection.v1.GenesisState", GenesisState], - ["/ibc.core.connection.v1.IdentifiedConnection", IdentifiedConnection], + ["/ibc.core.connection.v1.ClientPaths", ClientPaths], ["/ibc.core.connection.v1.ConnectionPaths", ConnectionPaths], - ["/ibc.core.connection.v1.QueryConnectionClientStateRequest", QueryConnectionClientStateRequest], - ["/ibc.core.connection.v1.QueryConnectionConsensusStateRequest", QueryConnectionConsensusStateRequest], + ["/ibc.core.connection.v1.QueryConnectionConsensusStateResponse", QueryConnectionConsensusStateResponse], + ["/ibc.core.connection.v1.MsgConnectionOpenTryResponse", MsgConnectionOpenTryResponse], + ["/ibc.core.connection.v1.MsgConnectionOpenAck", MsgConnectionOpenAck], + ["/ibc.core.connection.v1.QueryClientConnectionsResponse", QueryClientConnectionsResponse], + ["/ibc.core.connection.v1.Counterparty", Counterparty], + ["/ibc.core.connection.v1.QueryConnectionsRequest", QueryConnectionsRequest], ["/ibc.core.connection.v1.QueryConnectionClientStateResponse", QueryConnectionClientStateResponse], - ["/ibc.core.connection.v1.QueryConnectionParamsResponse", QueryConnectionParamsResponse], + ["/ibc.core.connection.v1.MsgConnectionOpenInit", MsgConnectionOpenInit], + ["/ibc.core.connection.v1.MsgConnectionOpenInitResponse", MsgConnectionOpenInitResponse], + ["/ibc.core.connection.v1.IdentifiedConnection", IdentifiedConnection], + ["/ibc.core.connection.v1.Params", Params], + ["/ibc.core.connection.v1.QueryConnectionConsensusStateRequest", QueryConnectionConsensusStateRequest], + ["/ibc.core.connection.v1.MsgUpdateParams", MsgUpdateParams], + ["/ibc.core.connection.v1.Version", Version], + ["/ibc.core.connection.v1.ConnectionEnd", ConnectionEnd], + ["/ibc.core.connection.v1.QueryConnectionResponse", QueryConnectionResponse], + ["/ibc.core.connection.v1.QueryConnectionsResponse", QueryConnectionsResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/index.d.ts b/ts-client/lib/index.d.ts index c93bc7e66..8bf532d26 100644 --- a/ts-client/lib/index.d.ts +++ b/ts-client/lib/index.d.ts @@ -5,38 +5,38 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosBaseTendermintV1Beta1: { query: import("./cosmos.base.tendermint.v1beta1/rest").Api; tx: { - sendGetNodeInfoRequest({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetNodeInfoRequest; + sendGetValidatorSetByHeightRequest({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetValidatorSetByHeightRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendABCIQueryResponse({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").ABCIQueryResponse; + sendGetLatestBlockRequest({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetLatestBlockRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendABCIQueryRequest({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").ABCIQueryRequest; + sendGetSyncingRequest({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetSyncingRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGetValidatorSetByHeightRequest({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetValidatorSetByHeightRequest; + sendModule({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").Module; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendValidator({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").Validator; + sendGetBlockByHeightRequest({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetBlockByHeightRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGetSyncingRequest({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetSyncingRequest; + sendGetBlockByHeightResponse({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetBlockByHeightResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendBlock({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").Block; + sendGetSyncingResponse({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetSyncingResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -45,33 +45,38 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGetSyncingResponse({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetSyncingResponse; + sendGetNodeInfoResponse({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetNodeInfoResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendModule({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").Module; + sendProofOp({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").ProofOp; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGetLatestValidatorSetRequest({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetLatestValidatorSetRequest; + sendProofOps({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").ProofOps; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendProofOp({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").ProofOp; + sendValidator({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").Validator; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGetLatestBlockResponse({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetLatestBlockResponse; + sendVersionInfo({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").VersionInfo; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendProofOps({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").ProofOps; + sendABCIQueryRequest({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").ABCIQueryRequest; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendBlock({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").Block; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -85,93 +90,88 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGetNodeInfoResponse({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetNodeInfoResponse; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendGetLatestBlockRequest({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetLatestBlockRequest; + sendGetLatestValidatorSetRequest({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetLatestValidatorSetRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendVersionInfo({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").VersionInfo; + sendGetLatestBlockResponse({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetLatestBlockResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGetBlockByHeightRequest({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetBlockByHeightRequest; + sendGetNodeInfoRequest({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetNodeInfoRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGetBlockByHeightResponse({ value, fee, memo }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetBlockByHeightResponse; + sendABCIQueryResponse({ value, fee, memo }: { + value: import("./cosmos.base.tendermint.v1beta1/module").ABCIQueryResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - getNodeInfoRequest({ value }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetNodeInfoRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - abciqueryResponse({ value }: { - value: import("./cosmos.base.tendermint.v1beta1/module").ABCIQueryResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - abciqueryRequest({ value }: { - value: import("./cosmos.base.tendermint.v1beta1/module").ABCIQueryRequest; - }): import("@cosmjs/proto-signing").EncodeObject; getValidatorSetByHeightRequest({ value }: { value: import("./cosmos.base.tendermint.v1beta1/module").GetValidatorSetByHeightRequest; }): import("@cosmjs/proto-signing").EncodeObject; - validator({ value }: { - value: import("./cosmos.base.tendermint.v1beta1/module").Validator; + getLatestBlockRequest({ value }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetLatestBlockRequest; }): import("@cosmjs/proto-signing").EncodeObject; getSyncingRequest({ value }: { value: import("./cosmos.base.tendermint.v1beta1/module").GetSyncingRequest; }): import("@cosmjs/proto-signing").EncodeObject; - block({ value }: { - value: import("./cosmos.base.tendermint.v1beta1/module").Block; + module({ value }: { + value: import("./cosmos.base.tendermint.v1beta1/module").Module; }): import("@cosmjs/proto-signing").EncodeObject; - getValidatorSetByHeightResponse({ value }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetValidatorSetByHeightResponse; + getBlockByHeightRequest({ value }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetBlockByHeightRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + getBlockByHeightResponse({ value }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetBlockByHeightResponse; }): import("@cosmjs/proto-signing").EncodeObject; getSyncingResponse({ value }: { value: import("./cosmos.base.tendermint.v1beta1/module").GetSyncingResponse; }): import("@cosmjs/proto-signing").EncodeObject; - module({ value }: { - value: import("./cosmos.base.tendermint.v1beta1/module").Module; + getValidatorSetByHeightResponse({ value }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetValidatorSetByHeightResponse; }): import("@cosmjs/proto-signing").EncodeObject; - getLatestValidatorSetRequest({ value }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetLatestValidatorSetRequest; + getNodeInfoResponse({ value }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetNodeInfoResponse; }): import("@cosmjs/proto-signing").EncodeObject; proofOp({ value }: { value: import("./cosmos.base.tendermint.v1beta1/module").ProofOp; }): import("@cosmjs/proto-signing").EncodeObject; - getLatestBlockResponse({ value }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetLatestBlockResponse; - }): import("@cosmjs/proto-signing").EncodeObject; proofOps({ value }: { value: import("./cosmos.base.tendermint.v1beta1/module").ProofOps; }): import("@cosmjs/proto-signing").EncodeObject; + validator({ value }: { + value: import("./cosmos.base.tendermint.v1beta1/module").Validator; + }): import("@cosmjs/proto-signing").EncodeObject; + versionInfo({ value }: { + value: import("./cosmos.base.tendermint.v1beta1/module").VersionInfo; + }): import("@cosmjs/proto-signing").EncodeObject; + abciqueryRequest({ value }: { + value: import("./cosmos.base.tendermint.v1beta1/module").ABCIQueryRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + block({ value }: { + value: import("./cosmos.base.tendermint.v1beta1/module").Block; + }): import("@cosmjs/proto-signing").EncodeObject; header({ value }: { value: import("./cosmos.base.tendermint.v1beta1/module").Header; }): import("@cosmjs/proto-signing").EncodeObject; getLatestValidatorSetResponse({ value }: { value: import("./cosmos.base.tendermint.v1beta1/module").GetLatestValidatorSetResponse; }): import("@cosmjs/proto-signing").EncodeObject; - getNodeInfoResponse({ value }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetNodeInfoResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - getLatestBlockRequest({ value }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetLatestBlockRequest; + getLatestValidatorSetRequest({ value }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetLatestValidatorSetRequest; }): import("@cosmjs/proto-signing").EncodeObject; - versionInfo({ value }: { - value: import("./cosmos.base.tendermint.v1beta1/module").VersionInfo; + getLatestBlockResponse({ value }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetLatestBlockResponse; }): import("@cosmjs/proto-signing").EncodeObject; - getBlockByHeightRequest({ value }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetBlockByHeightRequest; + getNodeInfoRequest({ value }: { + value: import("./cosmos.base.tendermint.v1beta1/module").GetNodeInfoRequest; }): import("@cosmjs/proto-signing").EncodeObject; - getBlockByHeightResponse({ value }: { - value: import("./cosmos.base.tendermint.v1beta1/module").GetBlockByHeightResponse; + abciqueryResponse({ value }: { + value: import("./cosmos.base.tendermint.v1beta1/module").ABCIQueryResponse; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -182,18 +182,23 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosBankV1Beta1: { query: import("./cosmos.bank.v1beta1/rest").Api; tx: { - sendQueryTotalSupplyResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryTotalSupplyResponse; + sendQueryDenomsMetadataRequest({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomsMetadataRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSendResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").MsgSendResponse; + sendQueryDenomMetadataByQueryStringRequest({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataByQueryStringRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDenomUnit({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").DenomUnit; + sendQuerySpendableBalancesRequest({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QuerySpendableBalancesRequest; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendMsgSendResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").MsgSendResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -202,13 +207,23 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSupply({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").Supply; + sendQueryDenomMetadataByQueryStringResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataByQueryStringResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySpendableBalanceByDenomRequest({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QuerySpendableBalanceByDenomRequest; + sendSendAuthorization({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").SendAuthorization; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendMsgMultiSend({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").MsgMultiSend; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendSupply({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").Supply; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -217,53 +232,58 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySpendableBalancesRequest({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QuerySpendableBalancesRequest; + sendQueryAllBalancesResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryAllBalancesResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDenomMetadataResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataResponse; + sendQuerySupplyOfRequest({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QuerySupplyOfRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySendEnabledRequest({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QuerySendEnabledRequest; + sendQueryParamsResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSendAuthorization({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").SendAuthorization; + sendQuerySupplyOfResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QuerySupplyOfResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendOutput({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").Output; + sendMsgUpdateParams({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").MsgUpdateParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAllBalancesResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryAllBalancesResponse; + sendInput({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").Input; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDenomsMetadataRequest({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomsMetadataRequest; + sendDenomUnit({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").DenomUnit; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendParams({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").Params; + sendQuerySpendableBalanceByDenomRequest({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QuerySpendableBalanceByDenomRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSend({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").MsgSend; + sendQueryDenomOwnersRequest({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomOwnersRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryBalanceRequest({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryBalanceRequest; + sendMsgUpdateParamsResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").MsgUpdateParamsResponse; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendQueryBalanceResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryBalanceResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -272,23 +292,23 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDenomOwnersByQueryResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomOwnersByQueryResponse; + sendQuerySpendableBalancesResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QuerySpendableBalancesResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySupplyOfRequest({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QuerySupplyOfRequest; + sendQueryParamsRequest({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryParamsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").MsgUpdateParamsResponse; + sendDenomOwner({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").DenomOwner; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDenomsMetadataResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomsMetadataResponse; + sendMsgSend({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").MsgSend; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -297,38 +317,33 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryBalanceResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryBalanceResponse; + sendOutput({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").Output; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryTotalSupplyRequest({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryTotalSupplyRequest; + sendGenesisState({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySupplyOfResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QuerySupplyOfResponse; + sendMetadata({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").Metadata; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMetadata({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").Metadata; + sendQueryDenomMetadataResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySpendableBalancesResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QuerySpendableBalancesResponse; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendMsgUpdateParams({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").MsgUpdateParams; + sendQueryTotalSupplyResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryTotalSupplyResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDenomMetadataRequest({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataRequest; + sendQueryDenomOwnersByQueryRequest({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomOwnersByQueryRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -337,211 +352,196 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySpendableBalanceByDenomResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QuerySpendableBalanceByDenomResponse; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendQueryParamsRequest({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryParamsRequest; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendMsgMultiSend({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").MsgMultiSend; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendMsgMultiSendResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").MsgMultiSendResponse; + sendParams({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").Params; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryParamsResponse; + sendQueryTotalSupplyRequest({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryTotalSupplyRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDenomMetadataByQueryStringRequest({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataByQueryStringRequest; + sendQueryDenomOwnersByQueryResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomOwnersByQueryResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSetSendEnabledResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").MsgSetSendEnabledResponse; + sendQuerySendEnabledResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QuerySendEnabledResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").GenesisState; + sendQuerySpendableBalanceByDenomResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QuerySpendableBalanceByDenomResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDenomOwnersRequest({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomOwnersRequest; + sendQueryDenomsMetadataResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomsMetadataResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDenomOwner({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").DenomOwner; + sendQueryDenomMetadataRequest({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendInput({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").Input; + sendMsgMultiSendResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").MsgMultiSendResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDenomMetadataByQueryStringResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataByQueryStringResponse; + sendQueryBalanceRequest({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QueryBalanceRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDenomOwnersByQueryRequest({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomOwnersByQueryRequest; + sendQuerySendEnabledRequest({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").QuerySendEnabledRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySendEnabledResponse({ value, fee, memo }: { - value: import("./cosmos.bank.v1beta1/module").QuerySendEnabledResponse; + sendMsgSetSendEnabledResponse({ value, fee, memo }: { + value: import("./cosmos.bank.v1beta1/module").MsgSetSendEnabledResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - queryTotalSupplyResponse({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryTotalSupplyResponse; + queryDenomsMetadataRequest({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomsMetadataRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryDenomMetadataByQueryStringRequest({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataByQueryStringRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + querySpendableBalancesRequest({ value }: { + value: import("./cosmos.bank.v1beta1/module").QuerySpendableBalancesRequest; }): import("@cosmjs/proto-signing").EncodeObject; msgSendResponse({ value }: { value: import("./cosmos.bank.v1beta1/module").MsgSendResponse; }): import("@cosmjs/proto-signing").EncodeObject; - denomUnit({ value }: { - value: import("./cosmos.bank.v1beta1/module").DenomUnit; - }): import("@cosmjs/proto-signing").EncodeObject; sendEnabled({ value }: { value: import("./cosmos.bank.v1beta1/module").SendEnabled; }): import("@cosmjs/proto-signing").EncodeObject; + queryDenomMetadataByQueryStringResponse({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataByQueryStringResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + sendAuthorization({ value }: { + value: import("./cosmos.bank.v1beta1/module").SendAuthorization; + }): import("@cosmjs/proto-signing").EncodeObject; + msgMultiSend({ value }: { + value: import("./cosmos.bank.v1beta1/module").MsgMultiSend; + }): import("@cosmjs/proto-signing").EncodeObject; supply({ value }: { value: import("./cosmos.bank.v1beta1/module").Supply; }): import("@cosmjs/proto-signing").EncodeObject; - querySpendableBalanceByDenomRequest({ value }: { - value: import("./cosmos.bank.v1beta1/module").QuerySpendableBalanceByDenomRequest; - }): import("@cosmjs/proto-signing").EncodeObject; queryDenomOwnersResponse({ value }: { value: import("./cosmos.bank.v1beta1/module").QueryDenomOwnersResponse; }): import("@cosmjs/proto-signing").EncodeObject; - querySpendableBalancesRequest({ value }: { - value: import("./cosmos.bank.v1beta1/module").QuerySpendableBalancesRequest; + queryAllBalancesResponse({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryAllBalancesResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryDenomMetadataResponse({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataResponse; + querySupplyOfRequest({ value }: { + value: import("./cosmos.bank.v1beta1/module").QuerySupplyOfRequest; }): import("@cosmjs/proto-signing").EncodeObject; - querySendEnabledRequest({ value }: { - value: import("./cosmos.bank.v1beta1/module").QuerySendEnabledRequest; + queryParamsResponse({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - sendAuthorization({ value }: { - value: import("./cosmos.bank.v1beta1/module").SendAuthorization; + querySupplyOfResponse({ value }: { + value: import("./cosmos.bank.v1beta1/module").QuerySupplyOfResponse; }): import("@cosmjs/proto-signing").EncodeObject; - output({ value }: { - value: import("./cosmos.bank.v1beta1/module").Output; + msgUpdateParams({ value }: { + value: import("./cosmos.bank.v1beta1/module").MsgUpdateParams; }): import("@cosmjs/proto-signing").EncodeObject; - queryAllBalancesResponse({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryAllBalancesResponse; + input({ value }: { + value: import("./cosmos.bank.v1beta1/module").Input; }): import("@cosmjs/proto-signing").EncodeObject; - queryDenomsMetadataRequest({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomsMetadataRequest; + denomUnit({ value }: { + value: import("./cosmos.bank.v1beta1/module").DenomUnit; }): import("@cosmjs/proto-signing").EncodeObject; - params({ value }: { - value: import("./cosmos.bank.v1beta1/module").Params; + querySpendableBalanceByDenomRequest({ value }: { + value: import("./cosmos.bank.v1beta1/module").QuerySpendableBalanceByDenomRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgSend({ value }: { - value: import("./cosmos.bank.v1beta1/module").MsgSend; + queryDenomOwnersRequest({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomOwnersRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryBalanceRequest({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryBalanceRequest; + msgUpdateParamsResponse({ value }: { + value: import("./cosmos.bank.v1beta1/module").MsgUpdateParamsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryBalanceResponse({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryBalanceResponse; }): import("@cosmjs/proto-signing").EncodeObject; queryAllBalancesRequest({ value }: { value: import("./cosmos.bank.v1beta1/module").QueryAllBalancesRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryDenomOwnersByQueryResponse({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomOwnersByQueryResponse; + querySpendableBalancesResponse({ value }: { + value: import("./cosmos.bank.v1beta1/module").QuerySpendableBalancesResponse; }): import("@cosmjs/proto-signing").EncodeObject; - querySupplyOfRequest({ value }: { - value: import("./cosmos.bank.v1beta1/module").QuerySupplyOfRequest; + queryParamsRequest({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryParamsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParamsResponse({ value }: { - value: import("./cosmos.bank.v1beta1/module").MsgUpdateParamsResponse; + denomOwner({ value }: { + value: import("./cosmos.bank.v1beta1/module").DenomOwner; }): import("@cosmjs/proto-signing").EncodeObject; - queryDenomsMetadataResponse({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomsMetadataResponse; + msgSend({ value }: { + value: import("./cosmos.bank.v1beta1/module").MsgSend; }): import("@cosmjs/proto-signing").EncodeObject; msgSetSendEnabled({ value }: { value: import("./cosmos.bank.v1beta1/module").MsgSetSendEnabled; }): import("@cosmjs/proto-signing").EncodeObject; - queryBalanceResponse({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryBalanceResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryTotalSupplyRequest({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryTotalSupplyRequest; + output({ value }: { + value: import("./cosmos.bank.v1beta1/module").Output; }): import("@cosmjs/proto-signing").EncodeObject; - querySupplyOfResponse({ value }: { - value: import("./cosmos.bank.v1beta1/module").QuerySupplyOfResponse; + genesisState({ value }: { + value: import("./cosmos.bank.v1beta1/module").GenesisState; }): import("@cosmjs/proto-signing").EncodeObject; metadata({ value }: { value: import("./cosmos.bank.v1beta1/module").Metadata; }): import("@cosmjs/proto-signing").EncodeObject; - querySpendableBalancesResponse({ value }: { - value: import("./cosmos.bank.v1beta1/module").QuerySpendableBalancesResponse; + queryDenomMetadataResponse({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParams({ value }: { - value: import("./cosmos.bank.v1beta1/module").MsgUpdateParams; + queryTotalSupplyResponse({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryTotalSupplyResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryDenomMetadataRequest({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataRequest; + queryDenomOwnersByQueryRequest({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomOwnersByQueryRequest; }): import("@cosmjs/proto-signing").EncodeObject; balance({ value }: { value: import("./cosmos.bank.v1beta1/module").Balance; }): import("@cosmjs/proto-signing").EncodeObject; + params({ value }: { + value: import("./cosmos.bank.v1beta1/module").Params; + }): import("@cosmjs/proto-signing").EncodeObject; + queryTotalSupplyRequest({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryTotalSupplyRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryDenomOwnersByQueryResponse({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomOwnersByQueryResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + querySendEnabledResponse({ value }: { + value: import("./cosmos.bank.v1beta1/module").QuerySendEnabledResponse; + }): import("@cosmjs/proto-signing").EncodeObject; querySpendableBalanceByDenomResponse({ value }: { value: import("./cosmos.bank.v1beta1/module").QuerySpendableBalanceByDenomResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsRequest({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryParamsRequest; + queryDenomsMetadataResponse({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomsMetadataResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgMultiSend({ value }: { - value: import("./cosmos.bank.v1beta1/module").MsgMultiSend; + queryDenomMetadataRequest({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataRequest; }): import("@cosmjs/proto-signing").EncodeObject; msgMultiSendResponse({ value }: { value: import("./cosmos.bank.v1beta1/module").MsgMultiSendResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsResponse({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryParamsResponse; + queryBalanceRequest({ value }: { + value: import("./cosmos.bank.v1beta1/module").QueryBalanceRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryDenomMetadataByQueryStringRequest({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataByQueryStringRequest; + querySendEnabledRequest({ value }: { + value: import("./cosmos.bank.v1beta1/module").QuerySendEnabledRequest; }): import("@cosmjs/proto-signing").EncodeObject; msgSetSendEnabledResponse({ value }: { value: import("./cosmos.bank.v1beta1/module").MsgSetSendEnabledResponse; }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./cosmos.bank.v1beta1/module").GenesisState; - }): import("@cosmjs/proto-signing").EncodeObject; - queryDenomOwnersRequest({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomOwnersRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - denomOwner({ value }: { - value: import("./cosmos.bank.v1beta1/module").DenomOwner; - }): import("@cosmjs/proto-signing").EncodeObject; - input({ value }: { - value: import("./cosmos.bank.v1beta1/module").Input; - }): import("@cosmjs/proto-signing").EncodeObject; - queryDenomMetadataByQueryStringResponse({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomMetadataByQueryStringResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryDenomOwnersByQueryRequest({ value }: { - value: import("./cosmos.bank.v1beta1/module").QueryDenomOwnersByQueryRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - querySendEnabledResponse({ value }: { - value: import("./cosmos.bank.v1beta1/module").QuerySendEnabledResponse; - }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; registry: [string, import("@cosmjs/proto-signing").GeneratedType][]; @@ -551,541 +551,541 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosStakingV1Beta1: { query: import("./cosmos.staking.v1beta1/rest").Api; tx: { - sendValAddresses({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").ValAddresses; + sendValidator({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").Validator; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryValidatorDelegationsRequest({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryValidatorDelegationsRequest; + sendMsgBeginRedelegateResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").MsgBeginRedelegateResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryValidatorDelegationsResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryValidatorDelegationsResponse; + sendRedelegationEntry({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").RedelegationEntry; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgEditValidatorResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").MsgEditValidatorResponse; + sendQueryValidatorResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryValidatorResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCreateValidator({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").MsgCreateValidator; + sendQueryValidatorDelegationsResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryValidatorDelegationsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCancelUnbondingDelegationResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").MsgCancelUnbondingDelegationResponse; + sendQueryParamsRequest({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryParamsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendLastValidatorPower({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").LastValidatorPower; + sendQueryParamsResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDVVTriplet({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").DVVTriplet; + sendQueryValidatorUnbondingDelegationsRequest({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryValidatorUnbondingDelegationsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegatorValidatorResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorResponse; + sendQueryUnbondingDelegationRequest({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryUnbondingDelegationRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryPoolRequest({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryPoolRequest; + sendMsgDelegateResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").MsgDelegateResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDelegationResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").DelegationResponse; + sendMsgUndelegate({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").MsgUndelegate; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCreateValidatorResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").MsgCreateValidatorResponse; + sendRedelegation({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").Redelegation; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").MsgUpdateParamsResponse; + sendQueryValidatorsRequest({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryValidatorsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendStakeAuthorization({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").StakeAuthorization; + sendMsgEditValidator({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").MsgEditValidator; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegatorValidatorRequest({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorRequest; + sendMsgCancelUnbondingDelegationResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").MsgCancelUnbondingDelegationResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegationResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegationResponse; + sendStakeAuthorization_Validators({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").StakeAuthorization_Validators; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryUnbondingDelegationRequest({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryUnbondingDelegationRequest; + sendQueryUnbondingDelegationResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryUnbondingDelegationResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgEditValidator({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").MsgEditValidator; + sendQueryDelegatorValidatorsRequest({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgBeginRedelegateResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").MsgBeginRedelegateResponse; + sendMsgUpdateParamsResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").MsgUpdateParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUndelegateResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").MsgUndelegateResponse; + sendDelegationResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").DelegationResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendCommission({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").Commission; + sendQueryValidatorUnbondingDelegationsResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryValidatorUnbondingDelegationsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendPool({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").Pool; + sendMsgDelegate({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").MsgDelegate; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegatorUnbondingDelegationsRequest({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorUnbondingDelegationsRequest; + sendMsgCancelUnbondingDelegation({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").MsgCancelUnbondingDelegation; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryRedelegationsResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryRedelegationsResponse; + sendMsgUpdateParams({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").MsgUpdateParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegatorValidatorsRequest({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorsRequest; + sendQueryDelegationRequest({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegationRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgDelegate({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").MsgDelegate; + sendQueryDelegatorDelegationsRequest({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorDelegationsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParams({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").MsgUpdateParams; + sendQueryDelegatorValidatorResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendRedelegationEntry({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").RedelegationEntry; + sendDescription({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").Description; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").GenesisState; + sendPool({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").Pool; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendValidator({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").Validator; + sendUnbondingDelegation({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").UnbondingDelegation; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDVVTriplets({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").DVVTriplets; + sendQueryDelegatorUnbondingDelegationsResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorUnbondingDelegationsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendRedelegationEntryResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").RedelegationEntryResponse; + sendValAddresses({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").ValAddresses; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryValidatorUnbondingDelegationsRequest({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryValidatorUnbondingDelegationsRequest; + sendDVPairs({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").DVPairs; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendParams({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").Params; + sendMsgCreateValidator({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").MsgCreateValidator; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendHistoricalInfo({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").HistoricalInfo; + sendQueryValidatorDelegationsRequest({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryValidatorDelegationsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDVPair({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").DVPair; + sendQueryDelegatorValidatorsResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryValidatorsRequest({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryValidatorsRequest; + sendQueryDelegatorValidatorRequest({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryValidatorUnbondingDelegationsResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryValidatorUnbondingDelegationsResponse; + sendCommissionRates({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").CommissionRates; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegationRequest({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegationRequest; + sendQueryDelegationResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegationResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryRedelegationsRequest({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryRedelegationsRequest; + sendDVPair({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").DVPair; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendCommissionRates({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").CommissionRates; + sendValidatorUpdates({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").ValidatorUpdates; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryValidatorResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryValidatorResponse; + sendMsgCreateValidatorResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").MsgCreateValidatorResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegatorUnbondingDelegationsResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorUnbondingDelegationsResponse; + sendMsgUndelegateResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").MsgUndelegateResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgBeginRedelegate({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").MsgBeginRedelegate; + sendParams({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").Params; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendRedelegation({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").Redelegation; + sendDelegation({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").Delegation; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendRedelegationResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").RedelegationResponse; + sendUnbondingDelegationEntry({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").UnbondingDelegationEntry; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendValidatorUpdates({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").ValidatorUpdates; + sendHistoricalInfo({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").HistoricalInfo; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryUnbondingDelegationResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryUnbondingDelegationResponse; + sendQueryValidatorsResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryValidatorsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryHistoricalInfoRequest({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryHistoricalInfoRequest; + sendQueryDelegatorDelegationsResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorDelegationsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDVPairs({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").DVPairs; + sendMsgBeginRedelegate({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").MsgBeginRedelegate; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegatorValidatorsResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorsResponse; + sendLastValidatorPower({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").LastValidatorPower; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUndelegate({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").MsgUndelegate; + sendQueryRedelegationsRequest({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryRedelegationsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCancelUnbondingDelegation({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").MsgCancelUnbondingDelegation; + sendQueryPoolRequest({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryPoolRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendUnbondingDelegationEntry({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").UnbondingDelegationEntry; + sendRedelegationResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").RedelegationResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDescription({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").Description; + sendQueryRedelegationsResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryRedelegationsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryParamsResponse; + sendMsgEditValidatorResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").MsgEditValidatorResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDelegation({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").Delegation; + sendQueryHistoricalInfoRequest({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryHistoricalInfoRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegatorDelegationsRequest({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorDelegationsRequest; + sendCommission({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").Commission; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendStakeAuthorization_Validators({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").StakeAuthorization_Validators; + sendQueryValidatorRequest({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryValidatorRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryValidatorsResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryValidatorsResponse; + sendQueryHistoricalInfoResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryHistoricalInfoResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryValidatorRequest({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryValidatorRequest; + sendDVVTriplet({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").DVVTriplet; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegatorDelegationsResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorDelegationsResponse; + sendDVVTriplets({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").DVVTriplets; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryHistoricalInfoResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryHistoricalInfoResponse; + sendRedelegationEntryResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").RedelegationEntryResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryPoolResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryPoolResponse; + sendStakeAuthorization({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").StakeAuthorization; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendUnbondingDelegation({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").UnbondingDelegation; + sendGenesisState({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsRequest({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").QueryParamsRequest; + sendQueryDelegatorUnbondingDelegationsRequest({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorUnbondingDelegationsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgDelegateResponse({ value, fee, memo }: { - value: import("./cosmos.staking.v1beta1/module").MsgDelegateResponse; + sendQueryPoolResponse({ value, fee, memo }: { + value: import("./cosmos.staking.v1beta1/module").QueryPoolResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - valAddresses({ value }: { - value: import("./cosmos.staking.v1beta1/module").ValAddresses; + validator({ value }: { + value: import("./cosmos.staking.v1beta1/module").Validator; }): import("@cosmjs/proto-signing").EncodeObject; - queryValidatorDelegationsRequest({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryValidatorDelegationsRequest; + msgBeginRedelegateResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").MsgBeginRedelegateResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + redelegationEntry({ value }: { + value: import("./cosmos.staking.v1beta1/module").RedelegationEntry; + }): import("@cosmjs/proto-signing").EncodeObject; + queryValidatorResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryValidatorResponse; }): import("@cosmjs/proto-signing").EncodeObject; queryValidatorDelegationsResponse({ value }: { value: import("./cosmos.staking.v1beta1/module").QueryValidatorDelegationsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgEditValidatorResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").MsgEditValidatorResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - msgCreateValidator({ value }: { - value: import("./cosmos.staking.v1beta1/module").MsgCreateValidator; - }): import("@cosmjs/proto-signing").EncodeObject; - msgCancelUnbondingDelegationResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").MsgCancelUnbondingDelegationResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - lastValidatorPower({ value }: { - value: import("./cosmos.staking.v1beta1/module").LastValidatorPower; - }): import("@cosmjs/proto-signing").EncodeObject; - dvvtriplet({ value }: { - value: import("./cosmos.staking.v1beta1/module").DVVTriplet; - }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegatorValidatorResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryPoolRequest({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryPoolRequest; + queryParamsRequest({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryParamsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - delegationResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").DelegationResponse; + queryParamsResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgCreateValidatorResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").MsgCreateValidatorResponse; + queryValidatorUnbondingDelegationsRequest({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryValidatorUnbondingDelegationsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParamsResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").MsgUpdateParamsResponse; + queryUnbondingDelegationRequest({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryUnbondingDelegationRequest; }): import("@cosmjs/proto-signing").EncodeObject; - stakeAuthorization({ value }: { - value: import("./cosmos.staking.v1beta1/module").StakeAuthorization; + msgDelegateResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").MsgDelegateResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegatorValidatorRequest({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorRequest; + msgUndelegate({ value }: { + value: import("./cosmos.staking.v1beta1/module").MsgUndelegate; }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegationResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegationResponse; + redelegation({ value }: { + value: import("./cosmos.staking.v1beta1/module").Redelegation; }): import("@cosmjs/proto-signing").EncodeObject; - queryUnbondingDelegationRequest({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryUnbondingDelegationRequest; + queryValidatorsRequest({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryValidatorsRequest; }): import("@cosmjs/proto-signing").EncodeObject; msgEditValidator({ value }: { value: import("./cosmos.staking.v1beta1/module").MsgEditValidator; }): import("@cosmjs/proto-signing").EncodeObject; - msgBeginRedelegateResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").MsgBeginRedelegateResponse; + msgCancelUnbondingDelegationResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").MsgCancelUnbondingDelegationResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUndelegateResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").MsgUndelegateResponse; + stakeAuthorizationValidators({ value }: { + value: import("./cosmos.staking.v1beta1/module").StakeAuthorization_Validators; }): import("@cosmjs/proto-signing").EncodeObject; - commission({ value }: { - value: import("./cosmos.staking.v1beta1/module").Commission; + queryUnbondingDelegationResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryUnbondingDelegationResponse; }): import("@cosmjs/proto-signing").EncodeObject; - pool({ value }: { - value: import("./cosmos.staking.v1beta1/module").Pool; + queryDelegatorValidatorsRequest({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegatorUnbondingDelegationsRequest({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorUnbondingDelegationsRequest; + msgUpdateParamsResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").MsgUpdateParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryRedelegationsResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryRedelegationsResponse; + delegationResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").DelegationResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegatorValidatorsRequest({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorsRequest; + queryValidatorUnbondingDelegationsResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryValidatorUnbondingDelegationsResponse; }): import("@cosmjs/proto-signing").EncodeObject; msgDelegate({ value }: { value: import("./cosmos.staking.v1beta1/module").MsgDelegate; }): import("@cosmjs/proto-signing").EncodeObject; + msgCancelUnbondingDelegation({ value }: { + value: import("./cosmos.staking.v1beta1/module").MsgCancelUnbondingDelegation; + }): import("@cosmjs/proto-signing").EncodeObject; msgUpdateParams({ value }: { value: import("./cosmos.staking.v1beta1/module").MsgUpdateParams; }): import("@cosmjs/proto-signing").EncodeObject; - redelegationEntry({ value }: { - value: import("./cosmos.staking.v1beta1/module").RedelegationEntry; + queryDelegationRequest({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegationRequest; }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./cosmos.staking.v1beta1/module").GenesisState; + queryDelegatorDelegationsRequest({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorDelegationsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - validator({ value }: { - value: import("./cosmos.staking.v1beta1/module").Validator; + queryDelegatorValidatorResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorResponse; }): import("@cosmjs/proto-signing").EncodeObject; - dvvtriplets({ value }: { - value: import("./cosmos.staking.v1beta1/module").DVVTriplets; + description({ value }: { + value: import("./cosmos.staking.v1beta1/module").Description; }): import("@cosmjs/proto-signing").EncodeObject; - redelegationEntryResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").RedelegationEntryResponse; + pool({ value }: { + value: import("./cosmos.staking.v1beta1/module").Pool; }): import("@cosmjs/proto-signing").EncodeObject; - queryValidatorUnbondingDelegationsRequest({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryValidatorUnbondingDelegationsRequest; + unbondingDelegation({ value }: { + value: import("./cosmos.staking.v1beta1/module").UnbondingDelegation; }): import("@cosmjs/proto-signing").EncodeObject; - params({ value }: { - value: import("./cosmos.staking.v1beta1/module").Params; + queryDelegatorUnbondingDelegationsResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorUnbondingDelegationsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - historicalInfo({ value }: { - value: import("./cosmos.staking.v1beta1/module").HistoricalInfo; + valAddresses({ value }: { + value: import("./cosmos.staking.v1beta1/module").ValAddresses; }): import("@cosmjs/proto-signing").EncodeObject; - dvpair({ value }: { - value: import("./cosmos.staking.v1beta1/module").DVPair; + dvpairs({ value }: { + value: import("./cosmos.staking.v1beta1/module").DVPairs; }): import("@cosmjs/proto-signing").EncodeObject; - queryValidatorsRequest({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryValidatorsRequest; + msgCreateValidator({ value }: { + value: import("./cosmos.staking.v1beta1/module").MsgCreateValidator; }): import("@cosmjs/proto-signing").EncodeObject; - queryValidatorUnbondingDelegationsResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryValidatorUnbondingDelegationsResponse; + queryValidatorDelegationsRequest({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryValidatorDelegationsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegationRequest({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegationRequest; + queryDelegatorValidatorsResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryRedelegationsRequest({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryRedelegationsRequest; + queryDelegatorValidatorRequest({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorRequest; }): import("@cosmjs/proto-signing").EncodeObject; commissionRates({ value }: { value: import("./cosmos.staking.v1beta1/module").CommissionRates; }): import("@cosmjs/proto-signing").EncodeObject; - queryValidatorResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryValidatorResponse; + queryDelegationResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegationResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegatorUnbondingDelegationsResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorUnbondingDelegationsResponse; + dvpair({ value }: { + value: import("./cosmos.staking.v1beta1/module").DVPair; }): import("@cosmjs/proto-signing").EncodeObject; - msgBeginRedelegate({ value }: { - value: import("./cosmos.staking.v1beta1/module").MsgBeginRedelegate; + validatorUpdates({ value }: { + value: import("./cosmos.staking.v1beta1/module").ValidatorUpdates; }): import("@cosmjs/proto-signing").EncodeObject; - redelegation({ value }: { - value: import("./cosmos.staking.v1beta1/module").Redelegation; + msgCreateValidatorResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").MsgCreateValidatorResponse; }): import("@cosmjs/proto-signing").EncodeObject; - redelegationResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").RedelegationResponse; + msgUndelegateResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").MsgUndelegateResponse; }): import("@cosmjs/proto-signing").EncodeObject; - validatorUpdates({ value }: { - value: import("./cosmos.staking.v1beta1/module").ValidatorUpdates; + params({ value }: { + value: import("./cosmos.staking.v1beta1/module").Params; }): import("@cosmjs/proto-signing").EncodeObject; - queryUnbondingDelegationResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryUnbondingDelegationResponse; + delegation({ value }: { + value: import("./cosmos.staking.v1beta1/module").Delegation; }): import("@cosmjs/proto-signing").EncodeObject; - queryHistoricalInfoRequest({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryHistoricalInfoRequest; + unbondingDelegationEntry({ value }: { + value: import("./cosmos.staking.v1beta1/module").UnbondingDelegationEntry; }): import("@cosmjs/proto-signing").EncodeObject; - dvpairs({ value }: { - value: import("./cosmos.staking.v1beta1/module").DVPairs; + historicalInfo({ value }: { + value: import("./cosmos.staking.v1beta1/module").HistoricalInfo; }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegatorValidatorsResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorValidatorsResponse; + queryValidatorsResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryValidatorsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUndelegate({ value }: { - value: import("./cosmos.staking.v1beta1/module").MsgUndelegate; + queryDelegatorDelegationsResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorDelegationsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgCancelUnbondingDelegation({ value }: { - value: import("./cosmos.staking.v1beta1/module").MsgCancelUnbondingDelegation; + msgBeginRedelegate({ value }: { + value: import("./cosmos.staking.v1beta1/module").MsgBeginRedelegate; }): import("@cosmjs/proto-signing").EncodeObject; - unbondingDelegationEntry({ value }: { - value: import("./cosmos.staking.v1beta1/module").UnbondingDelegationEntry; + lastValidatorPower({ value }: { + value: import("./cosmos.staking.v1beta1/module").LastValidatorPower; }): import("@cosmjs/proto-signing").EncodeObject; - description({ value }: { - value: import("./cosmos.staking.v1beta1/module").Description; + queryRedelegationsRequest({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryRedelegationsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryParamsResponse; + queryPoolRequest({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryPoolRequest; }): import("@cosmjs/proto-signing").EncodeObject; - delegation({ value }: { - value: import("./cosmos.staking.v1beta1/module").Delegation; + redelegationResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").RedelegationResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegatorDelegationsRequest({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorDelegationsRequest; + queryRedelegationsResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryRedelegationsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - stakeAuthorizationValidators({ value }: { - value: import("./cosmos.staking.v1beta1/module").StakeAuthorization_Validators; + msgEditValidatorResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").MsgEditValidatorResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryValidatorsResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryValidatorsResponse; + queryHistoricalInfoRequest({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryHistoricalInfoRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + commission({ value }: { + value: import("./cosmos.staking.v1beta1/module").Commission; }): import("@cosmjs/proto-signing").EncodeObject; queryValidatorRequest({ value }: { value: import("./cosmos.staking.v1beta1/module").QueryValidatorRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegatorDelegationsResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryDelegatorDelegationsResponse; - }): import("@cosmjs/proto-signing").EncodeObject; queryHistoricalInfoResponse({ value }: { value: import("./cosmos.staking.v1beta1/module").QueryHistoricalInfoResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryPoolResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryPoolResponse; + dvvtriplet({ value }: { + value: import("./cosmos.staking.v1beta1/module").DVVTriplet; }): import("@cosmjs/proto-signing").EncodeObject; - unbondingDelegation({ value }: { - value: import("./cosmos.staking.v1beta1/module").UnbondingDelegation; + dvvtriplets({ value }: { + value: import("./cosmos.staking.v1beta1/module").DVVTriplets; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsRequest({ value }: { - value: import("./cosmos.staking.v1beta1/module").QueryParamsRequest; + redelegationEntryResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").RedelegationEntryResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgDelegateResponse({ value }: { - value: import("./cosmos.staking.v1beta1/module").MsgDelegateResponse; + stakeAuthorization({ value }: { + value: import("./cosmos.staking.v1beta1/module").StakeAuthorization; + }): import("@cosmjs/proto-signing").EncodeObject; + genesisState({ value }: { + value: import("./cosmos.staking.v1beta1/module").GenesisState; + }): import("@cosmjs/proto-signing").EncodeObject; + queryDelegatorUnbondingDelegationsRequest({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryDelegatorUnbondingDelegationsRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryPoolResponse({ value }: { + value: import("./cosmos.staking.v1beta1/module").QueryPoolResponse; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -1096,18 +1096,13 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosAuthV1Beta1: { query: import("./cosmos.auth.v1beta1/rest").Api; tx: { - sendQueryModuleAccountByNameRequest({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountByNameRequest; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendAddressStringToBytesResponse({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").AddressStringToBytesResponse; + sendParams({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").Params; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAccountAddressByIDRequest({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountAddressByIDRequest; + sendQueryModuleAccountsRequest({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -1116,83 +1111,83 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryModuleAccountByNameResponse({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountByNameResponse; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; sendGenesisState({ value, fee, memo }: { value: import("./cosmos.auth.v1beta1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendModuleCredential({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").ModuleCredential; + sendQueryAccountsResponse({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAccountResponse({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountResponse; + sendAddressStringToBytesRequest({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").AddressStringToBytesRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendParams({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").Params; + sendBaseAccount({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").BaseAccount; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAccountsRequest({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountsRequest; + sendBech32PrefixResponse({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").Bech32PrefixResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAccountRequest({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountRequest; + sendAddressBytesToStringResponse({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").AddressBytesToStringResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsRequest({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").QueryParamsRequest; + sendAddressStringToBytesResponse({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").AddressStringToBytesResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryModuleAccountsResponse({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountsResponse; + sendQueryAccountAddressByIDResponse({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountAddressByIDResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendAddressStringToBytesRequest({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").AddressStringToBytesRequest; + sendMsgUpdateParams({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").MsgUpdateParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAccountInfoRequest({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountInfoRequest; + sendQueryAccountsRequest({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryModuleAccountsRequest({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountsRequest; + sendQueryAccountRequest({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendBech32PrefixResponse({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").Bech32PrefixResponse; + sendQueryModuleAccountByNameResponse({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountByNameResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAccountsResponse({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountsResponse; + sendBech32PrefixRequest({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").Bech32PrefixRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendAddressBytesToStringRequest({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").AddressBytesToStringRequest; + sendQueryAccountAddressByIDRequest({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountAddressByIDRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendBech32PrefixRequest({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").Bech32PrefixRequest; + sendQueryAccountInfoResponse({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountInfoResponse; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendModuleCredential({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").ModuleCredential; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -1201,28 +1196,28 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendAddressBytesToStringResponse({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").AddressBytesToStringResponse; + sendQueryModuleAccountsResponse({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendBaseAccount({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").BaseAccount; + sendQueryAccountResponse({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAccountAddressByIDResponse({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountAddressByIDResponse; + sendQueryModuleAccountByNameRequest({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountByNameRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAccountInfoResponse({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountInfoResponse; + sendAddressBytesToStringRequest({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").AddressBytesToStringRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParams({ value, fee, memo }: { - value: import("./cosmos.auth.v1beta1/module").MsgUpdateParams; + sendQueryAccountInfoRequest({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountInfoRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -1231,87 +1226,92 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - queryModuleAccountByNameRequest({ value }: { - value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountByNameRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - addressStringToBytesResponse({ value }: { - value: import("./cosmos.auth.v1beta1/module").AddressStringToBytesResponse; + sendQueryParamsRequest({ value, fee, memo }: { + value: import("./cosmos.auth.v1beta1/module").QueryParamsRequest; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + params({ value }: { + value: import("./cosmos.auth.v1beta1/module").Params; }): import("@cosmjs/proto-signing").EncodeObject; - queryAccountAddressByIdrequest({ value }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountAddressByIDRequest; + queryModuleAccountsRequest({ value }: { + value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountsRequest; }): import("@cosmjs/proto-signing").EncodeObject; queryParamsResponse({ value }: { value: import("./cosmos.auth.v1beta1/module").QueryParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryModuleAccountByNameResponse({ value }: { - value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountByNameResponse; - }): import("@cosmjs/proto-signing").EncodeObject; genesisState({ value }: { value: import("./cosmos.auth.v1beta1/module").GenesisState; }): import("@cosmjs/proto-signing").EncodeObject; - moduleCredential({ value }: { - value: import("./cosmos.auth.v1beta1/module").ModuleCredential; - }): import("@cosmjs/proto-signing").EncodeObject; - queryAccountResponse({ value }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - params({ value }: { - value: import("./cosmos.auth.v1beta1/module").Params; + queryAccountsResponse({ value }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryAccountsRequest({ value }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountsRequest; + addressStringToBytesRequest({ value }: { + value: import("./cosmos.auth.v1beta1/module").AddressStringToBytesRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryAccountRequest({ value }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountRequest; + baseAccount({ value }: { + value: import("./cosmos.auth.v1beta1/module").BaseAccount; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsRequest({ value }: { - value: import("./cosmos.auth.v1beta1/module").QueryParamsRequest; + bech32PrefixResponse({ value }: { + value: import("./cosmos.auth.v1beta1/module").Bech32PrefixResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryModuleAccountsResponse({ value }: { - value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountsResponse; + addressBytesToStringResponse({ value }: { + value: import("./cosmos.auth.v1beta1/module").AddressBytesToStringResponse; }): import("@cosmjs/proto-signing").EncodeObject; - addressStringToBytesRequest({ value }: { - value: import("./cosmos.auth.v1beta1/module").AddressStringToBytesRequest; + addressStringToBytesResponse({ value }: { + value: import("./cosmos.auth.v1beta1/module").AddressStringToBytesResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryAccountInfoRequest({ value }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountInfoRequest; + queryAccountAddressByIdresponse({ value }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountAddressByIDResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryModuleAccountsRequest({ value }: { - value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountsRequest; + msgUpdateParams({ value }: { + value: import("./cosmos.auth.v1beta1/module").MsgUpdateParams; }): import("@cosmjs/proto-signing").EncodeObject; - bech32PrefixResponse({ value }: { - value: import("./cosmos.auth.v1beta1/module").Bech32PrefixResponse; + queryAccountsRequest({ value }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryAccountsResponse({ value }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountsResponse; + queryAccountRequest({ value }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountRequest; }): import("@cosmjs/proto-signing").EncodeObject; - addressBytesToStringRequest({ value }: { - value: import("./cosmos.auth.v1beta1/module").AddressBytesToStringRequest; + queryModuleAccountByNameResponse({ value }: { + value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountByNameResponse; }): import("@cosmjs/proto-signing").EncodeObject; bech32PrefixRequest({ value }: { value: import("./cosmos.auth.v1beta1/module").Bech32PrefixRequest; }): import("@cosmjs/proto-signing").EncodeObject; + queryAccountAddressByIdrequest({ value }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountAddressByIDRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryAccountInfoResponse({ value }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountInfoResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + moduleCredential({ value }: { + value: import("./cosmos.auth.v1beta1/module").ModuleCredential; + }): import("@cosmjs/proto-signing").EncodeObject; msgUpdateParamsResponse({ value }: { value: import("./cosmos.auth.v1beta1/module").MsgUpdateParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - addressBytesToStringResponse({ value }: { - value: import("./cosmos.auth.v1beta1/module").AddressBytesToStringResponse; + queryModuleAccountsResponse({ value }: { + value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - baseAccount({ value }: { - value: import("./cosmos.auth.v1beta1/module").BaseAccount; + queryAccountResponse({ value }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryAccountAddressByIdresponse({ value }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountAddressByIDResponse; + queryModuleAccountByNameRequest({ value }: { + value: import("./cosmos.auth.v1beta1/module").QueryModuleAccountByNameRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryAccountInfoResponse({ value }: { - value: import("./cosmos.auth.v1beta1/module").QueryAccountInfoResponse; + addressBytesToStringRequest({ value }: { + value: import("./cosmos.auth.v1beta1/module").AddressBytesToStringRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParams({ value }: { - value: import("./cosmos.auth.v1beta1/module").MsgUpdateParams; + queryAccountInfoRequest({ value }: { + value: import("./cosmos.auth.v1beta1/module").QueryAccountInfoRequest; }): import("@cosmjs/proto-signing").EncodeObject; moduleAccount({ value }: { value: import("./cosmos.auth.v1beta1/module").ModuleAccount; }): import("@cosmjs/proto-signing").EncodeObject; + queryParamsRequest({ value }: { + value: import("./cosmos.auth.v1beta1/module").QueryParamsRequest; + }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; registry: [string, import("@cosmjs/proto-signing").GeneratedType][]; @@ -1321,58 +1321,58 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosAuthzV1Beta1: { query: import("./cosmos.authz.v1beta1/rest").Api; tx: { - sendGrant({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").Grant; + sendGenericAuthorization({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").GenericAuthorization; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGrantsResponse({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").QueryGrantsResponse; + sendEventGrant({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").EventGrant; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGranterGrantsRequest({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").QueryGranterGrantsRequest; + sendQueryGrantsRequest({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").QueryGrantsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").GenesisState; + sendQueryGranterGrantsResponse({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").QueryGranterGrantsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGrantQueueItem({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").GrantQueueItem; + sendMsgExecResponse({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").MsgExecResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendEventGrant({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").EventGrant; + sendQueryGrantsResponse({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").QueryGrantsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendEventRevoke({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").EventRevoke; + sendQueryGranterGrantsRequest({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").QueryGranterGrantsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGrantAuthorization({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").GrantAuthorization; + sendQueryGranteeGrantsRequest({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").QueryGranteeGrantsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGranterGrantsResponse({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").QueryGranterGrantsResponse; + sendQueryGranteeGrantsResponse({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").QueryGranteeGrantsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGranteeGrantsRequest({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").QueryGranteeGrantsRequest; + sendMsgRevokeResponse({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").MsgRevokeResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenericAuthorization({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").GenericAuthorization; + sendMsgGrant({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").MsgGrant; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -1381,97 +1381,97 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRevoke({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").MsgRevoke; + sendGrantAuthorization({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").GrantAuthorization; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRevokeResponse({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").MsgRevokeResponse; + sendGenesisState({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGrantsRequest({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").QueryGrantsRequest; + sendEventRevoke({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").EventRevoke; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGranteeGrantsResponse({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").QueryGranteeGrantsResponse; + sendMsgExec({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").MsgExec; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgGrant({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").MsgGrant; + sendMsgRevoke({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").MsgRevoke; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgExec({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").MsgExec; + sendGrant({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").Grant; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgExecResponse({ value, fee, memo }: { - value: import("./cosmos.authz.v1beta1/module").MsgExecResponse; + sendGrantQueueItem({ value, fee, memo }: { + value: import("./cosmos.authz.v1beta1/module").GrantQueueItem; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - grant({ value }: { - value: import("./cosmos.authz.v1beta1/module").Grant; - }): import("@cosmjs/proto-signing").EncodeObject; - queryGrantsResponse({ value }: { - value: import("./cosmos.authz.v1beta1/module").QueryGrantsResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryGranterGrantsRequest({ value }: { - value: import("./cosmos.authz.v1beta1/module").QueryGranterGrantsRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./cosmos.authz.v1beta1/module").GenesisState; - }): import("@cosmjs/proto-signing").EncodeObject; - grantQueueItem({ value }: { - value: import("./cosmos.authz.v1beta1/module").GrantQueueItem; + genericAuthorization({ value }: { + value: import("./cosmos.authz.v1beta1/module").GenericAuthorization; }): import("@cosmjs/proto-signing").EncodeObject; eventGrant({ value }: { value: import("./cosmos.authz.v1beta1/module").EventGrant; }): import("@cosmjs/proto-signing").EncodeObject; - eventRevoke({ value }: { - value: import("./cosmos.authz.v1beta1/module").EventRevoke; - }): import("@cosmjs/proto-signing").EncodeObject; - grantAuthorization({ value }: { - value: import("./cosmos.authz.v1beta1/module").GrantAuthorization; + queryGrantsRequest({ value }: { + value: import("./cosmos.authz.v1beta1/module").QueryGrantsRequest; }): import("@cosmjs/proto-signing").EncodeObject; queryGranterGrantsResponse({ value }: { value: import("./cosmos.authz.v1beta1/module").QueryGranterGrantsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryGranteeGrantsRequest({ value }: { - value: import("./cosmos.authz.v1beta1/module").QueryGranteeGrantsRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - genericAuthorization({ value }: { - value: import("./cosmos.authz.v1beta1/module").GenericAuthorization; - }): import("@cosmjs/proto-signing").EncodeObject; - msgGrantResponse({ value }: { - value: import("./cosmos.authz.v1beta1/module").MsgGrantResponse; + msgExecResponse({ value }: { + value: import("./cosmos.authz.v1beta1/module").MsgExecResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgRevoke({ value }: { - value: import("./cosmos.authz.v1beta1/module").MsgRevoke; + queryGrantsResponse({ value }: { + value: import("./cosmos.authz.v1beta1/module").QueryGrantsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgRevokeResponse({ value }: { - value: import("./cosmos.authz.v1beta1/module").MsgRevokeResponse; + queryGranterGrantsRequest({ value }: { + value: import("./cosmos.authz.v1beta1/module").QueryGranterGrantsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryGrantsRequest({ value }: { - value: import("./cosmos.authz.v1beta1/module").QueryGrantsRequest; + queryGranteeGrantsRequest({ value }: { + value: import("./cosmos.authz.v1beta1/module").QueryGranteeGrantsRequest; }): import("@cosmjs/proto-signing").EncodeObject; queryGranteeGrantsResponse({ value }: { value: import("./cosmos.authz.v1beta1/module").QueryGranteeGrantsResponse; }): import("@cosmjs/proto-signing").EncodeObject; + msgRevokeResponse({ value }: { + value: import("./cosmos.authz.v1beta1/module").MsgRevokeResponse; + }): import("@cosmjs/proto-signing").EncodeObject; msgGrant({ value }: { value: import("./cosmos.authz.v1beta1/module").MsgGrant; }): import("@cosmjs/proto-signing").EncodeObject; + msgGrantResponse({ value }: { + value: import("./cosmos.authz.v1beta1/module").MsgGrantResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + grantAuthorization({ value }: { + value: import("./cosmos.authz.v1beta1/module").GrantAuthorization; + }): import("@cosmjs/proto-signing").EncodeObject; + genesisState({ value }: { + value: import("./cosmos.authz.v1beta1/module").GenesisState; + }): import("@cosmjs/proto-signing").EncodeObject; + eventRevoke({ value }: { + value: import("./cosmos.authz.v1beta1/module").EventRevoke; + }): import("@cosmjs/proto-signing").EncodeObject; msgExec({ value }: { value: import("./cosmos.authz.v1beta1/module").MsgExec; }): import("@cosmjs/proto-signing").EncodeObject; - msgExecResponse({ value }: { - value: import("./cosmos.authz.v1beta1/module").MsgExecResponse; + msgRevoke({ value }: { + value: import("./cosmos.authz.v1beta1/module").MsgRevoke; + }): import("@cosmjs/proto-signing").EncodeObject; + grant({ value }: { + value: import("./cosmos.authz.v1beta1/module").Grant; + }): import("@cosmjs/proto-signing").EncodeObject; + grantQueueItem({ value }: { + value: import("./cosmos.authz.v1beta1/module").GrantQueueItem; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -1482,16 +1482,6 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosBaseNodeV1Beta1: { query: import("./cosmos.base.node.v1beta1/rest").Api; tx: { - sendConfigRequest({ value, fee, memo }: { - value: import("./cosmos.base.node.v1beta1/module").ConfigRequest; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendConfigResponse({ value, fee, memo }: { - value: import("./cosmos.base.node.v1beta1/module").ConfigResponse; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; sendStatusRequest({ value, fee, memo }: { value: import("./cosmos.base.node.v1beta1/module").StatusRequest; fee?: import("@cosmjs/amino").StdFee; @@ -1502,18 +1492,28 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - configRequest({ value }: { + sendConfigRequest({ value, fee, memo }: { value: import("./cosmos.base.node.v1beta1/module").ConfigRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - configResponse({ value }: { + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendConfigResponse({ value, fee, memo }: { value: import("./cosmos.base.node.v1beta1/module").ConfigResponse; - }): import("@cosmjs/proto-signing").EncodeObject; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; statusRequest({ value }: { value: import("./cosmos.base.node.v1beta1/module").StatusRequest; }): import("@cosmjs/proto-signing").EncodeObject; statusResponse({ value }: { value: import("./cosmos.base.node.v1beta1/module").StatusResponse; }): import("@cosmjs/proto-signing").EncodeObject; + configRequest({ value }: { + value: import("./cosmos.base.node.v1beta1/module").ConfigRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + configResponse({ value }: { + value: import("./cosmos.base.node.v1beta1/module").ConfigResponse; + }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; registry: [string, import("@cosmjs/proto-signing").GeneratedType][]; @@ -1523,23 +1523,18 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosCircuitV1: { query: import("./cosmos.circuit.v1/rest").Api; tx: { - sendGenesisAccountPermissions({ value, fee, memo }: { - value: import("./cosmos.circuit.v1/module").GenesisAccountPermissions; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./cosmos.circuit.v1/module").GenesisState; + sendMsgTripCircuitBreakerResponse({ value, fee, memo }: { + value: import("./cosmos.circuit.v1/module").MsgTripCircuitBreakerResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendAccountResponse({ value, fee, memo }: { - value: import("./cosmos.circuit.v1/module").AccountResponse; + sendMsgResetCircuitBreaker({ value, fee, memo }: { + value: import("./cosmos.circuit.v1/module").MsgResetCircuitBreaker; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAccountsRequest({ value, fee, memo }: { - value: import("./cosmos.circuit.v1/module").QueryAccountsRequest; + sendGenesisAccountPermissions({ value, fee, memo }: { + value: import("./cosmos.circuit.v1/module").GenesisAccountPermissions; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -1548,13 +1543,8 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAccountRequest({ value, fee, memo }: { - value: import("./cosmos.circuit.v1/module").QueryAccountRequest; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendQueryDisabledListRequest({ value, fee, memo }: { - value: import("./cosmos.circuit.v1/module").QueryDisabledListRequest; + sendDisabledListResponse({ value, fee, memo }: { + value: import("./cosmos.circuit.v1/module").DisabledListResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -1563,13 +1553,13 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgResetCircuitBreakerResponse({ value, fee, memo }: { - value: import("./cosmos.circuit.v1/module").MsgResetCircuitBreakerResponse; + sendQueryAccountsRequest({ value, fee, memo }: { + value: import("./cosmos.circuit.v1/module").QueryAccountsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDisabledListResponse({ value, fee, memo }: { - value: import("./cosmos.circuit.v1/module").DisabledListResponse; + sendQueryDisabledListRequest({ value, fee, memo }: { + value: import("./cosmos.circuit.v1/module").QueryDisabledListRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -1583,50 +1573,54 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgResetCircuitBreaker({ value, fee, memo }: { - value: import("./cosmos.circuit.v1/module").MsgResetCircuitBreaker; + sendPermissions({ value, fee, memo }: { + value: import("./cosmos.circuit.v1/module").Permissions; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendPermissions({ value, fee, memo }: { - value: import("./cosmos.circuit.v1/module").Permissions; + sendGenesisState({ value, fee, memo }: { + value: import("./cosmos.circuit.v1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgTripCircuitBreakerResponse({ value, fee, memo }: { - value: import("./cosmos.circuit.v1/module").MsgTripCircuitBreakerResponse; + sendMsgResetCircuitBreakerResponse({ value, fee, memo }: { + value: import("./cosmos.circuit.v1/module").MsgResetCircuitBreakerResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - genesisAccountPermissions({ value }: { - value: import("./cosmos.circuit.v1/module").GenesisAccountPermissions; - }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./cosmos.circuit.v1/module").GenesisState; - }): import("@cosmjs/proto-signing").EncodeObject; - accountResponse({ value }: { + sendQueryAccountRequest({ value, fee, memo }: { + value: import("./cosmos.circuit.v1/module").QueryAccountRequest; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendAccountResponse({ value, fee, memo }: { value: import("./cosmos.circuit.v1/module").AccountResponse; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + msgTripCircuitBreakerResponse({ value }: { + value: import("./cosmos.circuit.v1/module").MsgTripCircuitBreakerResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryAccountsRequest({ value }: { - value: import("./cosmos.circuit.v1/module").QueryAccountsRequest; + msgResetCircuitBreaker({ value }: { + value: import("./cosmos.circuit.v1/module").MsgResetCircuitBreaker; + }): import("@cosmjs/proto-signing").EncodeObject; + genesisAccountPermissions({ value }: { + value: import("./cosmos.circuit.v1/module").GenesisAccountPermissions; }): import("@cosmjs/proto-signing").EncodeObject; accountsResponse({ value }: { value: import("./cosmos.circuit.v1/module").AccountsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryAccountRequest({ value }: { - value: import("./cosmos.circuit.v1/module").QueryAccountRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - queryDisabledListRequest({ value }: { - value: import("./cosmos.circuit.v1/module").QueryDisabledListRequest; + disabledListResponse({ value }: { + value: import("./cosmos.circuit.v1/module").DisabledListResponse; }): import("@cosmjs/proto-signing").EncodeObject; msgAuthorizeCircuitBreakerResponse({ value }: { value: import("./cosmos.circuit.v1/module").MsgAuthorizeCircuitBreakerResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgResetCircuitBreakerResponse({ value }: { - value: import("./cosmos.circuit.v1/module").MsgResetCircuitBreakerResponse; + queryAccountsRequest({ value }: { + value: import("./cosmos.circuit.v1/module").QueryAccountsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - disabledListResponse({ value }: { - value: import("./cosmos.circuit.v1/module").DisabledListResponse; + queryDisabledListRequest({ value }: { + value: import("./cosmos.circuit.v1/module").QueryDisabledListRequest; }): import("@cosmjs/proto-signing").EncodeObject; msgAuthorizeCircuitBreaker({ value }: { value: import("./cosmos.circuit.v1/module").MsgAuthorizeCircuitBreaker; @@ -1634,14 +1628,20 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ msgTripCircuitBreaker({ value }: { value: import("./cosmos.circuit.v1/module").MsgTripCircuitBreaker; }): import("@cosmjs/proto-signing").EncodeObject; - msgResetCircuitBreaker({ value }: { - value: import("./cosmos.circuit.v1/module").MsgResetCircuitBreaker; - }): import("@cosmjs/proto-signing").EncodeObject; permissions({ value }: { value: import("./cosmos.circuit.v1/module").Permissions; }): import("@cosmjs/proto-signing").EncodeObject; - msgTripCircuitBreakerResponse({ value }: { - value: import("./cosmos.circuit.v1/module").MsgTripCircuitBreakerResponse; + genesisState({ value }: { + value: import("./cosmos.circuit.v1/module").GenesisState; + }): import("@cosmjs/proto-signing").EncodeObject; + msgResetCircuitBreakerResponse({ value }: { + value: import("./cosmos.circuit.v1/module").MsgResetCircuitBreakerResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryAccountRequest({ value }: { + value: import("./cosmos.circuit.v1/module").QueryAccountRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + accountResponse({ value }: { + value: import("./cosmos.circuit.v1/module").AccountResponse; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -1652,11 +1652,6 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosConsensusV1: { query: import("./cosmos.consensus.v1/rest").Api; tx: { - sendMsgUpdateParams({ value, fee, memo }: { - value: import("./cosmos.consensus.v1/module").MsgUpdateParams; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; sendQueryParamsRequest({ value, fee, memo }: { value: import("./cosmos.consensus.v1/module").QueryParamsRequest; fee?: import("@cosmjs/amino").StdFee; @@ -1667,20 +1662,25 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; + sendMsgUpdateParams({ value, fee, memo }: { + value: import("./cosmos.consensus.v1/module").MsgUpdateParams; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; sendMsgUpdateParamsResponse({ value, fee, memo }: { value: import("./cosmos.consensus.v1/module").MsgUpdateParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - msgUpdateParams({ value }: { - value: import("./cosmos.consensus.v1/module").MsgUpdateParams; - }): import("@cosmjs/proto-signing").EncodeObject; queryParamsRequest({ value }: { value: import("./cosmos.consensus.v1/module").QueryParamsRequest; }): import("@cosmjs/proto-signing").EncodeObject; queryParamsResponse({ value }: { value: import("./cosmos.consensus.v1/module").QueryParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; + msgUpdateParams({ value }: { + value: import("./cosmos.consensus.v1/module").MsgUpdateParams; + }): import("@cosmjs/proto-signing").EncodeObject; msgUpdateParamsResponse({ value }: { value: import("./cosmos.consensus.v1/module").MsgUpdateParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; @@ -1698,6 +1698,11 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; + sendGenesisState({ value, fee, memo }: { + value: import("./cosmos.crisis.v1beta1/module").GenesisState; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; sendMsgVerifyInvariantResponse({ value, fee, memo }: { value: import("./cosmos.crisis.v1beta1/module").MsgVerifyInvariantResponse; fee?: import("@cosmjs/amino").StdFee; @@ -1713,14 +1718,12 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./cosmos.crisis.v1beta1/module").GenesisState; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; msgVerifyInvariant({ value }: { value: import("./cosmos.crisis.v1beta1/module").MsgVerifyInvariant; }): import("@cosmjs/proto-signing").EncodeObject; + genesisState({ value }: { + value: import("./cosmos.crisis.v1beta1/module").GenesisState; + }): import("@cosmjs/proto-signing").EncodeObject; msgVerifyInvariantResponse({ value }: { value: import("./cosmos.crisis.v1beta1/module").MsgVerifyInvariantResponse; }): import("@cosmjs/proto-signing").EncodeObject; @@ -1730,9 +1733,6 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ msgUpdateParamsResponse({ value }: { value: import("./cosmos.crisis.v1beta1/module").MsgUpdateParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./cosmos.crisis.v1beta1/module").GenesisState; - }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; registry: [string, import("@cosmjs/proto-signing").GeneratedType][]; @@ -1742,68 +1742,68 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosDistributionV1Beta1: { query: import("./cosmos.distribution.v1beta1/rest").Api; tx: { - sendMsgWithdrawDelegatorReward({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawDelegatorReward; + sendMsgSetWithdrawAddress({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").MsgSetWithdrawAddress; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCommunityPoolSpendResponse({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").MsgCommunityPoolSpendResponse; + sendValidatorSlashEvents({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorSlashEvents; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgDepositValidatorRewardsPool({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").MsgDepositValidatorRewardsPool; + sendQueryDelegationRewardsResponse({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryDelegationRewardsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDelegatorStartingInfo({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").DelegatorStartingInfo; + sendCommunityPoolSpendProposal({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").CommunityPoolSpendProposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSetWithdrawAddressResponse({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").MsgSetWithdrawAddressResponse; + sendQueryValidatorDistributionInfoRequest({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryValidatorDistributionInfoRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCommunityPoolSpend({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").MsgCommunityPoolSpend; + sendQueryValidatorOutstandingRewardsRequest({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryValidatorOutstandingRewardsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryValidatorOutstandingRewardsResponse({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryValidatorOutstandingRewardsResponse; + sendQueryValidatorSlashesRequest({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryValidatorSlashesRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegationRewardsResponse({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryDelegationRewardsResponse; + sendParams({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").Params; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendValidatorSlashEvent({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorSlashEvent; + sendDelegationDelegatorReward({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").DelegationDelegatorReward; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgFundCommunityPoolResponse({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").MsgFundCommunityPoolResponse; + sendValidatorAccumulatedCommissionRecord({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorAccumulatedCommissionRecord; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryValidatorSlashesResponse({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryValidatorSlashesResponse; + sendQueryParamsResponse({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendValidatorAccumulatedCommission({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorAccumulatedCommission; + sendValidatorOutstandingRewardsRecord({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorOutstandingRewardsRecord; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").MsgUpdateParamsResponse; + sendMsgUpdateParams({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").MsgUpdateParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -1812,108 +1812,108 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegationTotalRewardsResponse({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryDelegationTotalRewardsResponse; + sendQueryCommunityPoolRequest({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryCommunityPoolRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegatorWithdrawAddressRequest({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryDelegatorWithdrawAddressRequest; + sendValidatorAccumulatedCommission({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorAccumulatedCommission; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryCommunityPoolRequest({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryCommunityPoolRequest; + sendValidatorHistoricalRewardsRecord({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorHistoricalRewardsRecord; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendValidatorSlashEvents({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorSlashEvents; + sendValidatorCurrentRewardsRecord({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorCurrentRewardsRecord; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendCommunityPoolSpendProposal({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").CommunityPoolSpendProposal; + sendDelegatorStartingInfoRecord({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").DelegatorStartingInfoRecord; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendCommunityPoolSpendProposalWithDeposit({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").CommunityPoolSpendProposalWithDeposit; + sendQueryDelegatorValidatorsResponse({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryDelegatorValidatorsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParams({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").MsgUpdateParams; + sendValidatorOutstandingRewards({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorOutstandingRewards; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryValidatorDistributionInfoResponse({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryValidatorDistributionInfoResponse; + sendGenesisState({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDelegatorWithdrawInfo({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").DelegatorWithdrawInfo; + sendMsgSetWithdrawAddressResponse({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").MsgSetWithdrawAddressResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendParams({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").Params; + sendMsgWithdrawDelegatorReward({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawDelegatorReward; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgWithdrawDelegatorRewardResponse({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawDelegatorRewardResponse; + sendMsgFundCommunityPool({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").MsgFundCommunityPool; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegationTotalRewardsRequest({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryDelegationTotalRewardsRequest; + sendMsgCommunityPoolSpendResponse({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").MsgCommunityPoolSpendResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegatorValidatorsRequest({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryDelegatorValidatorsRequest; + sendQueryValidatorOutstandingRewardsResponse({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryValidatorOutstandingRewardsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendValidatorOutstandingRewardsRecord({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorOutstandingRewardsRecord; + sendQueryDelegatorValidatorsRequest({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryDelegatorValidatorsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgWithdrawValidatorCommissionResponse({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawValidatorCommissionResponse; + sendValidatorSlashEvent({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorSlashEvent; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgFundCommunityPool({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").MsgFundCommunityPool; + sendValidatorSlashEventRecord({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorSlashEventRecord; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendFeePool({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").FeePool; + sendQueryValidatorCommissionRequest({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryValidatorCommissionRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendValidatorAccumulatedCommissionRecord({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorAccumulatedCommissionRecord; + sendQueryDelegationRewardsRequest({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryDelegationRewardsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgWithdrawValidatorCommission({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawValidatorCommission; + sendFeePool({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").FeePool; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsRequest({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryParamsRequest; + sendMsgCommunityPoolSpend({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").MsgCommunityPoolSpend; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryValidatorDistributionInfoRequest({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryValidatorDistributionInfoRequest; + sendCommunityPoolSpendProposalWithDeposit({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").CommunityPoolSpendProposalWithDeposit; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -1922,257 +1922,257 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegationRewardsRequest({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryDelegationRewardsRequest; + sendMsgWithdrawValidatorCommissionResponse({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawValidatorCommissionResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryCommunityPoolResponse({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryCommunityPoolResponse; + sendMsgDepositValidatorRewardsPool({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").MsgDepositValidatorRewardsPool; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendValidatorCurrentRewardsRecord({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorCurrentRewardsRecord; + sendDelegatorWithdrawInfo({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").DelegatorWithdrawInfo; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsResponse({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryParamsResponse; + sendMsgWithdrawValidatorCommission({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawValidatorCommission; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryValidatorCommissionRequest({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryValidatorCommissionRequest; + sendMsgFundCommunityPoolResponse({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").MsgFundCommunityPoolResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegatorValidatorsResponse({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryDelegatorValidatorsResponse; + sendValidatorHistoricalRewards({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorHistoricalRewards; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendValidatorHistoricalRewardsRecord({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorHistoricalRewardsRecord; + sendValidatorCurrentRewards({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorCurrentRewards; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").GenesisState; + sendQueryParamsRequest({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryParamsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendValidatorHistoricalRewards({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorHistoricalRewards; + sendMsgUpdateParamsResponse({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").MsgUpdateParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendValidatorOutstandingRewards({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorOutstandingRewards; + sendQueryValidatorSlashesResponse({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryValidatorSlashesResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSetWithdrawAddress({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").MsgSetWithdrawAddress; + sendMsgWithdrawDelegatorRewardResponse({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawDelegatorRewardResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryValidatorOutstandingRewardsRequest({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryValidatorOutstandingRewardsRequest; + sendQueryDelegatorWithdrawAddressResponse({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryDelegatorWithdrawAddressResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendValidatorSlashEventRecord({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorSlashEventRecord; + sendDelegatorStartingInfo({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").DelegatorStartingInfo; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendValidatorCurrentRewards({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorCurrentRewards; + sendQueryValidatorDistributionInfoResponse({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryValidatorDistributionInfoResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDelegationDelegatorReward({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").DelegationDelegatorReward; + sendQueryDelegationTotalRewardsRequest({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryDelegationTotalRewardsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryValidatorSlashesRequest({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryValidatorSlashesRequest; + sendQueryDelegationTotalRewardsResponse({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryDelegationTotalRewardsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDelegatorWithdrawAddressResponse({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").QueryDelegatorWithdrawAddressResponse; + sendQueryDelegatorWithdrawAddressRequest({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryDelegatorWithdrawAddressRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDelegatorStartingInfoRecord({ value, fee, memo }: { - value: import("./cosmos.distribution.v1beta1/module").DelegatorStartingInfoRecord; + sendQueryCommunityPoolResponse({ value, fee, memo }: { + value: import("./cosmos.distribution.v1beta1/module").QueryCommunityPoolResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - msgWithdrawDelegatorReward({ value }: { - value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawDelegatorReward; + msgSetWithdrawAddress({ value }: { + value: import("./cosmos.distribution.v1beta1/module").MsgSetWithdrawAddress; }): import("@cosmjs/proto-signing").EncodeObject; - msgCommunityPoolSpendResponse({ value }: { - value: import("./cosmos.distribution.v1beta1/module").MsgCommunityPoolSpendResponse; + validatorSlashEvents({ value }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorSlashEvents; }): import("@cosmjs/proto-signing").EncodeObject; - msgDepositValidatorRewardsPool({ value }: { - value: import("./cosmos.distribution.v1beta1/module").MsgDepositValidatorRewardsPool; + queryDelegationRewardsResponse({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryDelegationRewardsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - delegatorStartingInfo({ value }: { - value: import("./cosmos.distribution.v1beta1/module").DelegatorStartingInfo; + communityPoolSpendProposal({ value }: { + value: import("./cosmos.distribution.v1beta1/module").CommunityPoolSpendProposal; }): import("@cosmjs/proto-signing").EncodeObject; - msgSetWithdrawAddressResponse({ value }: { - value: import("./cosmos.distribution.v1beta1/module").MsgSetWithdrawAddressResponse; + queryValidatorDistributionInfoRequest({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryValidatorDistributionInfoRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgCommunityPoolSpend({ value }: { - value: import("./cosmos.distribution.v1beta1/module").MsgCommunityPoolSpend; + queryValidatorOutstandingRewardsRequest({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryValidatorOutstandingRewardsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryValidatorOutstandingRewardsResponse({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryValidatorOutstandingRewardsResponse; + queryValidatorSlashesRequest({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryValidatorSlashesRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegationRewardsResponse({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryDelegationRewardsResponse; + params({ value }: { + value: import("./cosmos.distribution.v1beta1/module").Params; }): import("@cosmjs/proto-signing").EncodeObject; - validatorSlashEvent({ value }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorSlashEvent; + delegationDelegatorReward({ value }: { + value: import("./cosmos.distribution.v1beta1/module").DelegationDelegatorReward; }): import("@cosmjs/proto-signing").EncodeObject; - msgFundCommunityPoolResponse({ value }: { - value: import("./cosmos.distribution.v1beta1/module").MsgFundCommunityPoolResponse; + validatorAccumulatedCommissionRecord({ value }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorAccumulatedCommissionRecord; }): import("@cosmjs/proto-signing").EncodeObject; - queryValidatorSlashesResponse({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryValidatorSlashesResponse; + queryParamsResponse({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - validatorAccumulatedCommission({ value }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorAccumulatedCommission; + validatorOutstandingRewardsRecord({ value }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorOutstandingRewardsRecord; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParamsResponse({ value }: { - value: import("./cosmos.distribution.v1beta1/module").MsgUpdateParamsResponse; + msgUpdateParams({ value }: { + value: import("./cosmos.distribution.v1beta1/module").MsgUpdateParams; }): import("@cosmjs/proto-signing").EncodeObject; msgDepositValidatorRewardsPoolResponse({ value }: { value: import("./cosmos.distribution.v1beta1/module").MsgDepositValidatorRewardsPoolResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegationTotalRewardsResponse({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryDelegationTotalRewardsResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegatorWithdrawAddressRequest({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryDelegatorWithdrawAddressRequest; - }): import("@cosmjs/proto-signing").EncodeObject; queryCommunityPoolRequest({ value }: { value: import("./cosmos.distribution.v1beta1/module").QueryCommunityPoolRequest; }): import("@cosmjs/proto-signing").EncodeObject; - validatorSlashEvents({ value }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorSlashEvents; + validatorAccumulatedCommission({ value }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorAccumulatedCommission; }): import("@cosmjs/proto-signing").EncodeObject; - communityPoolSpendProposal({ value }: { - value: import("./cosmos.distribution.v1beta1/module").CommunityPoolSpendProposal; + validatorHistoricalRewardsRecord({ value }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorHistoricalRewardsRecord; }): import("@cosmjs/proto-signing").EncodeObject; - communityPoolSpendProposalWithDeposit({ value }: { - value: import("./cosmos.distribution.v1beta1/module").CommunityPoolSpendProposalWithDeposit; + validatorCurrentRewardsRecord({ value }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorCurrentRewardsRecord; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParams({ value }: { - value: import("./cosmos.distribution.v1beta1/module").MsgUpdateParams; + delegatorStartingInfoRecord({ value }: { + value: import("./cosmos.distribution.v1beta1/module").DelegatorStartingInfoRecord; }): import("@cosmjs/proto-signing").EncodeObject; - queryValidatorDistributionInfoResponse({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryValidatorDistributionInfoResponse; + queryDelegatorValidatorsResponse({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryDelegatorValidatorsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - delegatorWithdrawInfo({ value }: { - value: import("./cosmos.distribution.v1beta1/module").DelegatorWithdrawInfo; + validatorOutstandingRewards({ value }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorOutstandingRewards; }): import("@cosmjs/proto-signing").EncodeObject; - params({ value }: { - value: import("./cosmos.distribution.v1beta1/module").Params; + genesisState({ value }: { + value: import("./cosmos.distribution.v1beta1/module").GenesisState; }): import("@cosmjs/proto-signing").EncodeObject; - msgWithdrawDelegatorRewardResponse({ value }: { - value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawDelegatorRewardResponse; + msgSetWithdrawAddressResponse({ value }: { + value: import("./cosmos.distribution.v1beta1/module").MsgSetWithdrawAddressResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegationTotalRewardsRequest({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryDelegationTotalRewardsRequest; + msgWithdrawDelegatorReward({ value }: { + value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawDelegatorReward; + }): import("@cosmjs/proto-signing").EncodeObject; + msgFundCommunityPool({ value }: { + value: import("./cosmos.distribution.v1beta1/module").MsgFundCommunityPool; + }): import("@cosmjs/proto-signing").EncodeObject; + msgCommunityPoolSpendResponse({ value }: { + value: import("./cosmos.distribution.v1beta1/module").MsgCommunityPoolSpendResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryValidatorOutstandingRewardsResponse({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryValidatorOutstandingRewardsResponse; }): import("@cosmjs/proto-signing").EncodeObject; queryDelegatorValidatorsRequest({ value }: { value: import("./cosmos.distribution.v1beta1/module").QueryDelegatorValidatorsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - validatorOutstandingRewardsRecord({ value }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorOutstandingRewardsRecord; + validatorSlashEvent({ value }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorSlashEvent; }): import("@cosmjs/proto-signing").EncodeObject; - msgWithdrawValidatorCommissionResponse({ value }: { - value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawValidatorCommissionResponse; + validatorSlashEventRecord({ value }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorSlashEventRecord; }): import("@cosmjs/proto-signing").EncodeObject; - msgFundCommunityPool({ value }: { - value: import("./cosmos.distribution.v1beta1/module").MsgFundCommunityPool; + queryValidatorCommissionRequest({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryValidatorCommissionRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryDelegationRewardsRequest({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryDelegationRewardsRequest; }): import("@cosmjs/proto-signing").EncodeObject; feePool({ value }: { value: import("./cosmos.distribution.v1beta1/module").FeePool; }): import("@cosmjs/proto-signing").EncodeObject; - validatorAccumulatedCommissionRecord({ value }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorAccumulatedCommissionRecord; - }): import("@cosmjs/proto-signing").EncodeObject; - msgWithdrawValidatorCommission({ value }: { - value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawValidatorCommission; - }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsRequest({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryParamsRequest; + msgCommunityPoolSpend({ value }: { + value: import("./cosmos.distribution.v1beta1/module").MsgCommunityPoolSpend; }): import("@cosmjs/proto-signing").EncodeObject; - queryValidatorDistributionInfoRequest({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryValidatorDistributionInfoRequest; + communityPoolSpendProposalWithDeposit({ value }: { + value: import("./cosmos.distribution.v1beta1/module").CommunityPoolSpendProposalWithDeposit; }): import("@cosmjs/proto-signing").EncodeObject; queryValidatorCommissionResponse({ value }: { value: import("./cosmos.distribution.v1beta1/module").QueryValidatorCommissionResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegationRewardsRequest({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryDelegationRewardsRequest; + msgWithdrawValidatorCommissionResponse({ value }: { + value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawValidatorCommissionResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryCommunityPoolResponse({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryCommunityPoolResponse; + msgDepositValidatorRewardsPool({ value }: { + value: import("./cosmos.distribution.v1beta1/module").MsgDepositValidatorRewardsPool; }): import("@cosmjs/proto-signing").EncodeObject; - validatorCurrentRewardsRecord({ value }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorCurrentRewardsRecord; + delegatorWithdrawInfo({ value }: { + value: import("./cosmos.distribution.v1beta1/module").DelegatorWithdrawInfo; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsResponse({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryParamsResponse; + msgWithdrawValidatorCommission({ value }: { + value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawValidatorCommission; }): import("@cosmjs/proto-signing").EncodeObject; - queryValidatorCommissionRequest({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryValidatorCommissionRequest; + msgFundCommunityPoolResponse({ value }: { + value: import("./cosmos.distribution.v1beta1/module").MsgFundCommunityPoolResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegatorValidatorsResponse({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryDelegatorValidatorsResponse; + validatorHistoricalRewards({ value }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorHistoricalRewards; }): import("@cosmjs/proto-signing").EncodeObject; - validatorHistoricalRewardsRecord({ value }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorHistoricalRewardsRecord; + validatorCurrentRewards({ value }: { + value: import("./cosmos.distribution.v1beta1/module").ValidatorCurrentRewards; }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./cosmos.distribution.v1beta1/module").GenesisState; + queryParamsRequest({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryParamsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - validatorHistoricalRewards({ value }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorHistoricalRewards; + msgUpdateParamsResponse({ value }: { + value: import("./cosmos.distribution.v1beta1/module").MsgUpdateParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - validatorOutstandingRewards({ value }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorOutstandingRewards; + queryValidatorSlashesResponse({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryValidatorSlashesResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgSetWithdrawAddress({ value }: { - value: import("./cosmos.distribution.v1beta1/module").MsgSetWithdrawAddress; + msgWithdrawDelegatorRewardResponse({ value }: { + value: import("./cosmos.distribution.v1beta1/module").MsgWithdrawDelegatorRewardResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryValidatorOutstandingRewardsRequest({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryValidatorOutstandingRewardsRequest; + queryDelegatorWithdrawAddressResponse({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryDelegatorWithdrawAddressResponse; }): import("@cosmjs/proto-signing").EncodeObject; - validatorSlashEventRecord({ value }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorSlashEventRecord; + delegatorStartingInfo({ value }: { + value: import("./cosmos.distribution.v1beta1/module").DelegatorStartingInfo; }): import("@cosmjs/proto-signing").EncodeObject; - validatorCurrentRewards({ value }: { - value: import("./cosmos.distribution.v1beta1/module").ValidatorCurrentRewards; + queryValidatorDistributionInfoResponse({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryValidatorDistributionInfoResponse; }): import("@cosmjs/proto-signing").EncodeObject; - delegationDelegatorReward({ value }: { - value: import("./cosmos.distribution.v1beta1/module").DelegationDelegatorReward; + queryDelegationTotalRewardsRequest({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryDelegationTotalRewardsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryValidatorSlashesRequest({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryValidatorSlashesRequest; + queryDelegationTotalRewardsResponse({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryDelegationTotalRewardsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryDelegatorWithdrawAddressResponse({ value }: { - value: import("./cosmos.distribution.v1beta1/module").QueryDelegatorWithdrawAddressResponse; + queryDelegatorWithdrawAddressRequest({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryDelegatorWithdrawAddressRequest; }): import("@cosmjs/proto-signing").EncodeObject; - delegatorStartingInfoRecord({ value }: { - value: import("./cosmos.distribution.v1beta1/module").DelegatorStartingInfoRecord; + queryCommunityPoolResponse({ value }: { + value: import("./cosmos.distribution.v1beta1/module").QueryCommunityPoolResponse; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -2183,23 +2183,23 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosEvidenceV1Beta1: { query: import("./cosmos.evidence.v1beta1/rest").Api; tx: { - sendQueryAllEvidenceRequest({ value, fee, memo }: { - value: import("./cosmos.evidence.v1beta1/module").QueryAllEvidenceRequest; + sendQueryEvidenceRequest({ value, fee, memo }: { + value: import("./cosmos.evidence.v1beta1/module").QueryEvidenceRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSubmitEvidence({ value, fee, memo }: { - value: import("./cosmos.evidence.v1beta1/module").MsgSubmitEvidence; + sendQueryAllEvidenceResponse({ value, fee, memo }: { + value: import("./cosmos.evidence.v1beta1/module").QueryAllEvidenceResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryEvidenceRequest({ value, fee, memo }: { - value: import("./cosmos.evidence.v1beta1/module").QueryEvidenceRequest; + sendEquivocation({ value, fee, memo }: { + value: import("./cosmos.evidence.v1beta1/module").Equivocation; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendEquivocation({ value, fee, memo }: { - value: import("./cosmos.evidence.v1beta1/module").Equivocation; + sendGenesisState({ value, fee, memo }: { + value: import("./cosmos.evidence.v1beta1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -2208,8 +2208,8 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./cosmos.evidence.v1beta1/module").GenesisState; + sendMsgSubmitEvidence({ value, fee, memo }: { + value: import("./cosmos.evidence.v1beta1/module").MsgSubmitEvidence; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -2218,34 +2218,34 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAllEvidenceResponse({ value, fee, memo }: { - value: import("./cosmos.evidence.v1beta1/module").QueryAllEvidenceResponse; + sendQueryAllEvidenceRequest({ value, fee, memo }: { + value: import("./cosmos.evidence.v1beta1/module").QueryAllEvidenceRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - queryAllEvidenceRequest({ value }: { - value: import("./cosmos.evidence.v1beta1/module").QueryAllEvidenceRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - msgSubmitEvidence({ value }: { - value: import("./cosmos.evidence.v1beta1/module").MsgSubmitEvidence; - }): import("@cosmjs/proto-signing").EncodeObject; queryEvidenceRequest({ value }: { value: import("./cosmos.evidence.v1beta1/module").QueryEvidenceRequest; }): import("@cosmjs/proto-signing").EncodeObject; + queryAllEvidenceResponse({ value }: { + value: import("./cosmos.evidence.v1beta1/module").QueryAllEvidenceResponse; + }): import("@cosmjs/proto-signing").EncodeObject; equivocation({ value }: { value: import("./cosmos.evidence.v1beta1/module").Equivocation; }): import("@cosmjs/proto-signing").EncodeObject; + genesisState({ value }: { + value: import("./cosmos.evidence.v1beta1/module").GenesisState; + }): import("@cosmjs/proto-signing").EncodeObject; msgSubmitEvidenceResponse({ value }: { value: import("./cosmos.evidence.v1beta1/module").MsgSubmitEvidenceResponse; }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./cosmos.evidence.v1beta1/module").GenesisState; + msgSubmitEvidence({ value }: { + value: import("./cosmos.evidence.v1beta1/module").MsgSubmitEvidence; }): import("@cosmjs/proto-signing").EncodeObject; queryEvidenceResponse({ value }: { value: import("./cosmos.evidence.v1beta1/module").QueryEvidenceResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryAllEvidenceResponse({ value }: { - value: import("./cosmos.evidence.v1beta1/module").QueryAllEvidenceResponse; + queryAllEvidenceRequest({ value }: { + value: import("./cosmos.evidence.v1beta1/module").QueryAllEvidenceRequest; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -2256,68 +2256,68 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosFeegrantV1Beta1: { query: import("./cosmos.feegrant.v1beta1/rest").Api; tx: { - sendBasicAllowance({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").BasicAllowance; + sendMsgGrantAllowance({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").MsgGrantAllowance; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgGrantAllowanceResponse({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").MsgGrantAllowanceResponse; + sendQueryAllowanceResponse({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").QueryAllowanceResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").GenesisState; + sendQueryAllowancesRequest({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAllowanceRequest({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").QueryAllowanceRequest; + sendQueryAllowancesByGranterRequest({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesByGranterRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAllowancesByGranterResponse({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesByGranterResponse; + sendGrant({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").Grant; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgGrantAllowance({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").MsgGrantAllowance; + sendAllowedMsgAllowance({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").AllowedMsgAllowance; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAllowancesResponse({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesResponse; + sendGenesisState({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendPeriodicAllowance({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").PeriodicAllowance; + sendQueryAllowancesByGranterResponse({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesByGranterResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGrant({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").Grant; + sendMsgPruneAllowancesResponse({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").MsgPruneAllowancesResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgPruneAllowancesResponse({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").MsgPruneAllowancesResponse; + sendPeriodicAllowance({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").PeriodicAllowance; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAllowanceResponse({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").QueryAllowanceResponse; + sendBasicAllowance({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").BasicAllowance; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAllowancesByGranterRequest({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesByGranterRequest; + sendMsgGrantAllowanceResponse({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").MsgGrantAllowanceResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRevokeAllowanceResponse({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").MsgRevokeAllowanceResponse; + sendMsgRevokeAllowance({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").MsgRevokeAllowance; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -2326,71 +2326,71 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendAllowedMsgAllowance({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").AllowedMsgAllowance; + sendQueryAllowanceRequest({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").QueryAllowanceRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAllowancesRequest({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesRequest; + sendQueryAllowancesResponse({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRevokeAllowance({ value, fee, memo }: { - value: import("./cosmos.feegrant.v1beta1/module").MsgRevokeAllowance; + sendMsgRevokeAllowanceResponse({ value, fee, memo }: { + value: import("./cosmos.feegrant.v1beta1/module").MsgRevokeAllowanceResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - basicAllowance({ value }: { - value: import("./cosmos.feegrant.v1beta1/module").BasicAllowance; + msgGrantAllowance({ value }: { + value: import("./cosmos.feegrant.v1beta1/module").MsgGrantAllowance; }): import("@cosmjs/proto-signing").EncodeObject; - msgGrantAllowanceResponse({ value }: { - value: import("./cosmos.feegrant.v1beta1/module").MsgGrantAllowanceResponse; + queryAllowanceResponse({ value }: { + value: import("./cosmos.feegrant.v1beta1/module").QueryAllowanceResponse; }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./cosmos.feegrant.v1beta1/module").GenesisState; + queryAllowancesRequest({ value }: { + value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryAllowanceRequest({ value }: { - value: import("./cosmos.feegrant.v1beta1/module").QueryAllowanceRequest; + queryAllowancesByGranterRequest({ value }: { + value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesByGranterRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryAllowancesByGranterResponse({ value }: { - value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesByGranterResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - msgGrantAllowance({ value }: { - value: import("./cosmos.feegrant.v1beta1/module").MsgGrantAllowance; + grant({ value }: { + value: import("./cosmos.feegrant.v1beta1/module").Grant; }): import("@cosmjs/proto-signing").EncodeObject; - queryAllowancesResponse({ value }: { - value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesResponse; + allowedMsgAllowance({ value }: { + value: import("./cosmos.feegrant.v1beta1/module").AllowedMsgAllowance; }): import("@cosmjs/proto-signing").EncodeObject; - periodicAllowance({ value }: { - value: import("./cosmos.feegrant.v1beta1/module").PeriodicAllowance; + genesisState({ value }: { + value: import("./cosmos.feegrant.v1beta1/module").GenesisState; }): import("@cosmjs/proto-signing").EncodeObject; - grant({ value }: { - value: import("./cosmos.feegrant.v1beta1/module").Grant; + queryAllowancesByGranterResponse({ value }: { + value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesByGranterResponse; }): import("@cosmjs/proto-signing").EncodeObject; msgPruneAllowancesResponse({ value }: { value: import("./cosmos.feegrant.v1beta1/module").MsgPruneAllowancesResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryAllowanceResponse({ value }: { - value: import("./cosmos.feegrant.v1beta1/module").QueryAllowanceResponse; + periodicAllowance({ value }: { + value: import("./cosmos.feegrant.v1beta1/module").PeriodicAllowance; }): import("@cosmjs/proto-signing").EncodeObject; - queryAllowancesByGranterRequest({ value }: { - value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesByGranterRequest; + basicAllowance({ value }: { + value: import("./cosmos.feegrant.v1beta1/module").BasicAllowance; }): import("@cosmjs/proto-signing").EncodeObject; - msgRevokeAllowanceResponse({ value }: { - value: import("./cosmos.feegrant.v1beta1/module").MsgRevokeAllowanceResponse; + msgGrantAllowanceResponse({ value }: { + value: import("./cosmos.feegrant.v1beta1/module").MsgGrantAllowanceResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + msgRevokeAllowance({ value }: { + value: import("./cosmos.feegrant.v1beta1/module").MsgRevokeAllowance; }): import("@cosmjs/proto-signing").EncodeObject; msgPruneAllowances({ value }: { value: import("./cosmos.feegrant.v1beta1/module").MsgPruneAllowances; }): import("@cosmjs/proto-signing").EncodeObject; - allowedMsgAllowance({ value }: { - value: import("./cosmos.feegrant.v1beta1/module").AllowedMsgAllowance; + queryAllowanceRequest({ value }: { + value: import("./cosmos.feegrant.v1beta1/module").QueryAllowanceRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryAllowancesRequest({ value }: { - value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesRequest; + queryAllowancesResponse({ value }: { + value: import("./cosmos.feegrant.v1beta1/module").QueryAllowancesResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgRevokeAllowance({ value }: { - value: import("./cosmos.feegrant.v1beta1/module").MsgRevokeAllowance; + msgRevokeAllowanceResponse({ value }: { + value: import("./cosmos.feegrant.v1beta1/module").MsgRevokeAllowanceResponse; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -2401,93 +2401,98 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosGovV1: { query: import("./cosmos.gov.v1/rest").Api; tx: { - sendQueryDepositRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryDepositRequest; + sendTallyParams({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").TallyParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryProposalResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryProposalResponse; + sendMsgSubmitProposal({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").MsgSubmitProposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgVoteWeighted({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").MsgVoteWeighted; + sendQueryConstitutionRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryConstitutionRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParams({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").MsgUpdateParams; + sendQueryVoteRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryVoteRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTallyParams({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").TallyParams; + sendMsgSubmitProposalResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").MsgSubmitProposalResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryProposalRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryProposalRequest; + sendQueryDepositRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryDepositRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryParamsResponse; + sendQueryDepositsRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryDepositsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDepositsResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryDepositsResponse; + sendMsgVoteResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").MsgVoteResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryTallyResultRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryTallyResultRequest; + sendDeposit({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").Deposit; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgExecLegacyContent({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").MsgExecLegacyContent; + sendQueryProposalsRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryProposalsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgDepositResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").MsgDepositResponse; + sendMsgUpdateParamsResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").MsgUpdateParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTallyResult({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").TallyResult; + sendVote({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").Vote; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConstitutionRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryConstitutionRequest; + sendQueryVoteResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryVoteResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDepositResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryDepositResponse; + sendQueryParamsResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryTallyResultResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryTallyResultResponse; + sendDepositParams({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").DepositParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSubmitProposal({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").MsgSubmitProposal; + sendQueryProposalResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryProposalResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDeposit({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").Deposit; + sendQueryDepositsResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryDepositsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDepositParams({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").DepositParams; + sendQueryTallyResultRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryTallyResultRequest; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendQueryTallyResultResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryTallyResultResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -2496,63 +2501,63 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryVoteResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryVoteResponse; + sendProposal({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").Proposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgVoteWeightedResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").MsgVoteWeightedResponse; + sendQueryProposalsResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryProposalsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendProposal({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").Proposal; + sendMsgVoteWeighted({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").MsgVoteWeighted; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryProposalsRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryProposalsRequest; + sendMsgUpdateParams({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").MsgUpdateParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryProposalsResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryProposalsResponse; + sendVotingParams({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").VotingParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryVotesResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryVotesResponse; + sendParams({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").Params; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgVoteResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").MsgVoteResponse; + sendQueryProposalRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryProposalRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendParams({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").Params; + sendMsgCancelProposal({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").MsgCancelProposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgExecLegacyContentResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").MsgExecLegacyContentResponse; + sendMsgCancelProposalResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").MsgCancelProposalResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").GenesisState; + sendQueryVotesRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryVotesRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDepositsRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryDepositsRequest; + sendQueryVotesResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryVotesResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").MsgUpdateParamsResponse; + sendQueryParamsRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryParamsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -2561,18 +2566,18 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCancelProposalResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").MsgCancelProposalResponse; + sendWeightedVoteOption({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").WeightedVoteOption; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendVote({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").Vote; + sendGenesisState({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendVotingParams({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").VotingParams; + sendMsgExecLegacyContent({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").MsgExecLegacyContent; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -2581,161 +2586,156 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryVotesRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryVotesRequest; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendQueryParamsRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryParamsRequest; + sendMsgExecLegacyContentResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").MsgExecLegacyContentResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendWeightedVoteOption({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").WeightedVoteOption; + sendTallyResult({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").TallyResult; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryVoteRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").QueryVoteRequest; + sendQueryDepositResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").QueryDepositResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSubmitProposalResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").MsgSubmitProposalResponse; + sendMsgVoteWeightedResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").MsgVoteWeightedResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCancelProposal({ value, fee, memo }: { - value: import("./cosmos.gov.v1/module").MsgCancelProposal; + sendMsgDepositResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1/module").MsgDepositResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; + tallyParams({ value }: { + value: import("./cosmos.gov.v1/module").TallyParams; + }): import("@cosmjs/proto-signing").EncodeObject; + msgSubmitProposal({ value }: { + value: import("./cosmos.gov.v1/module").MsgSubmitProposal; + }): import("@cosmjs/proto-signing").EncodeObject; + queryConstitutionRequest({ value }: { + value: import("./cosmos.gov.v1/module").QueryConstitutionRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryVoteRequest({ value }: { + value: import("./cosmos.gov.v1/module").QueryVoteRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + msgSubmitProposalResponse({ value }: { + value: import("./cosmos.gov.v1/module").MsgSubmitProposalResponse; + }): import("@cosmjs/proto-signing").EncodeObject; queryDepositRequest({ value }: { value: import("./cosmos.gov.v1/module").QueryDepositRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryProposalResponse({ value }: { - value: import("./cosmos.gov.v1/module").QueryProposalResponse; + queryDepositsRequest({ value }: { + value: import("./cosmos.gov.v1/module").QueryDepositsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgVoteWeighted({ value }: { - value: import("./cosmos.gov.v1/module").MsgVoteWeighted; + msgVoteResponse({ value }: { + value: import("./cosmos.gov.v1/module").MsgVoteResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParams({ value }: { - value: import("./cosmos.gov.v1/module").MsgUpdateParams; + deposit({ value }: { + value: import("./cosmos.gov.v1/module").Deposit; }): import("@cosmjs/proto-signing").EncodeObject; - tallyParams({ value }: { - value: import("./cosmos.gov.v1/module").TallyParams; + queryProposalsRequest({ value }: { + value: import("./cosmos.gov.v1/module").QueryProposalsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryProposalRequest({ value }: { - value: import("./cosmos.gov.v1/module").QueryProposalRequest; + msgUpdateParamsResponse({ value }: { + value: import("./cosmos.gov.v1/module").MsgUpdateParamsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + vote({ value }: { + value: import("./cosmos.gov.v1/module").Vote; + }): import("@cosmjs/proto-signing").EncodeObject; + queryVoteResponse({ value }: { + value: import("./cosmos.gov.v1/module").QueryVoteResponse; }): import("@cosmjs/proto-signing").EncodeObject; queryParamsResponse({ value }: { value: import("./cosmos.gov.v1/module").QueryParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; + depositParams({ value }: { + value: import("./cosmos.gov.v1/module").DepositParams; + }): import("@cosmjs/proto-signing").EncodeObject; + queryProposalResponse({ value }: { + value: import("./cosmos.gov.v1/module").QueryProposalResponse; + }): import("@cosmjs/proto-signing").EncodeObject; queryDepositsResponse({ value }: { value: import("./cosmos.gov.v1/module").QueryDepositsResponse; }): import("@cosmjs/proto-signing").EncodeObject; queryTallyResultRequest({ value }: { value: import("./cosmos.gov.v1/module").QueryTallyResultRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgExecLegacyContent({ value }: { - value: import("./cosmos.gov.v1/module").MsgExecLegacyContent; - }): import("@cosmjs/proto-signing").EncodeObject; - msgDepositResponse({ value }: { - value: import("./cosmos.gov.v1/module").MsgDepositResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - tallyResult({ value }: { - value: import("./cosmos.gov.v1/module").TallyResult; - }): import("@cosmjs/proto-signing").EncodeObject; - queryConstitutionRequest({ value }: { - value: import("./cosmos.gov.v1/module").QueryConstitutionRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - queryDepositResponse({ value }: { - value: import("./cosmos.gov.v1/module").QueryDepositResponse; - }): import("@cosmjs/proto-signing").EncodeObject; queryTallyResultResponse({ value }: { value: import("./cosmos.gov.v1/module").QueryTallyResultResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgSubmitProposal({ value }: { - value: import("./cosmos.gov.v1/module").MsgSubmitProposal; - }): import("@cosmjs/proto-signing").EncodeObject; - deposit({ value }: { - value: import("./cosmos.gov.v1/module").Deposit; - }): import("@cosmjs/proto-signing").EncodeObject; - depositParams({ value }: { - value: import("./cosmos.gov.v1/module").DepositParams; - }): import("@cosmjs/proto-signing").EncodeObject; msgDeposit({ value }: { value: import("./cosmos.gov.v1/module").MsgDeposit; }): import("@cosmjs/proto-signing").EncodeObject; - queryVoteResponse({ value }: { - value: import("./cosmos.gov.v1/module").QueryVoteResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - msgVoteWeightedResponse({ value }: { - value: import("./cosmos.gov.v1/module").MsgVoteWeightedResponse; - }): import("@cosmjs/proto-signing").EncodeObject; proposal({ value }: { value: import("./cosmos.gov.v1/module").Proposal; }): import("@cosmjs/proto-signing").EncodeObject; - queryProposalsRequest({ value }: { - value: import("./cosmos.gov.v1/module").QueryProposalsRequest; - }): import("@cosmjs/proto-signing").EncodeObject; queryProposalsResponse({ value }: { value: import("./cosmos.gov.v1/module").QueryProposalsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryVotesResponse({ value }: { - value: import("./cosmos.gov.v1/module").QueryVotesResponse; + msgVoteWeighted({ value }: { + value: import("./cosmos.gov.v1/module").MsgVoteWeighted; }): import("@cosmjs/proto-signing").EncodeObject; - msgVoteResponse({ value }: { - value: import("./cosmos.gov.v1/module").MsgVoteResponse; + msgUpdateParams({ value }: { + value: import("./cosmos.gov.v1/module").MsgUpdateParams; + }): import("@cosmjs/proto-signing").EncodeObject; + votingParams({ value }: { + value: import("./cosmos.gov.v1/module").VotingParams; }): import("@cosmjs/proto-signing").EncodeObject; params({ value }: { value: import("./cosmos.gov.v1/module").Params; }): import("@cosmjs/proto-signing").EncodeObject; - msgExecLegacyContentResponse({ value }: { - value: import("./cosmos.gov.v1/module").MsgExecLegacyContentResponse; + queryProposalRequest({ value }: { + value: import("./cosmos.gov.v1/module").QueryProposalRequest; }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./cosmos.gov.v1/module").GenesisState; + msgCancelProposal({ value }: { + value: import("./cosmos.gov.v1/module").MsgCancelProposal; }): import("@cosmjs/proto-signing").EncodeObject; - queryDepositsRequest({ value }: { - value: import("./cosmos.gov.v1/module").QueryDepositsRequest; + msgCancelProposalResponse({ value }: { + value: import("./cosmos.gov.v1/module").MsgCancelProposalResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParamsResponse({ value }: { - value: import("./cosmos.gov.v1/module").MsgUpdateParamsResponse; + queryVotesRequest({ value }: { + value: import("./cosmos.gov.v1/module").QueryVotesRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryVotesResponse({ value }: { + value: import("./cosmos.gov.v1/module").QueryVotesResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryParamsRequest({ value }: { + value: import("./cosmos.gov.v1/module").QueryParamsRequest; }): import("@cosmjs/proto-signing").EncodeObject; msgVote({ value }: { value: import("./cosmos.gov.v1/module").MsgVote; }): import("@cosmjs/proto-signing").EncodeObject; - msgCancelProposalResponse({ value }: { - value: import("./cosmos.gov.v1/module").MsgCancelProposalResponse; + weightedVoteOption({ value }: { + value: import("./cosmos.gov.v1/module").WeightedVoteOption; }): import("@cosmjs/proto-signing").EncodeObject; - vote({ value }: { - value: import("./cosmos.gov.v1/module").Vote; + genesisState({ value }: { + value: import("./cosmos.gov.v1/module").GenesisState; }): import("@cosmjs/proto-signing").EncodeObject; - votingParams({ value }: { - value: import("./cosmos.gov.v1/module").VotingParams; + msgExecLegacyContent({ value }: { + value: import("./cosmos.gov.v1/module").MsgExecLegacyContent; }): import("@cosmjs/proto-signing").EncodeObject; queryConstitutionResponse({ value }: { value: import("./cosmos.gov.v1/module").QueryConstitutionResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryVotesRequest({ value }: { - value: import("./cosmos.gov.v1/module").QueryVotesRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsRequest({ value }: { - value: import("./cosmos.gov.v1/module").QueryParamsRequest; + msgExecLegacyContentResponse({ value }: { + value: import("./cosmos.gov.v1/module").MsgExecLegacyContentResponse; }): import("@cosmjs/proto-signing").EncodeObject; - weightedVoteOption({ value }: { - value: import("./cosmos.gov.v1/module").WeightedVoteOption; + tallyResult({ value }: { + value: import("./cosmos.gov.v1/module").TallyResult; }): import("@cosmjs/proto-signing").EncodeObject; - queryVoteRequest({ value }: { - value: import("./cosmos.gov.v1/module").QueryVoteRequest; + queryDepositResponse({ value }: { + value: import("./cosmos.gov.v1/module").QueryDepositResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgSubmitProposalResponse({ value }: { - value: import("./cosmos.gov.v1/module").MsgSubmitProposalResponse; + msgVoteWeightedResponse({ value }: { + value: import("./cosmos.gov.v1/module").MsgVoteWeightedResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgCancelProposal({ value }: { - value: import("./cosmos.gov.v1/module").MsgCancelProposal; + msgDepositResponse({ value }: { + value: import("./cosmos.gov.v1/module").MsgDepositResponse; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -2746,278 +2746,278 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosGovV1Beta1: { query: import("./cosmos.gov.v1beta1/rest").Api; tx: { - sendMsgSubmitProposal({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").MsgSubmitProposal; + sendQueryDepositsRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryDepositsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDeposit({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").Deposit; + sendGenesisState({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgDeposit({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").MsgDeposit; + sendMsgVoteWeighted({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").MsgVoteWeighted; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryVotesRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryVotesRequest; + sendQueryProposalRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryProposalRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryParamsResponse; + sendQueryParamsRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryParamsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDepositsResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryDepositsResponse; + sendVote({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").Vote; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryTallyResultResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryTallyResultResponse; + sendVotingParams({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").VotingParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").GenesisState; + sendMsgDeposit({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").MsgDeposit; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTextProposal({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").TextProposal; + sendQueryProposalsResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryProposalsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgDepositResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").MsgDepositResponse; + sendQueryVotesResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryVotesResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendWeightedVoteOption({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").WeightedVoteOption; + sendMsgSubmitProposalResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").MsgSubmitProposalResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryTallyResultRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryTallyResultRequest; + sendMsgVote({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").MsgVote; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDepositParams({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").DepositParams; + sendQueryProposalResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryProposalResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgVoteResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").MsgVoteResponse; + sendQueryParamsResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryProposalsRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryProposalsRequest; + sendQueryTallyResultResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryTallyResultResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryProposalsResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryProposalsResponse; + sendProposal({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").Proposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgVoteWeightedResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").MsgVoteWeightedResponse; + sendMsgDepositResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").MsgDepositResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryProposalResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryProposalResponse; + sendQueryVoteRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryVoteRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryVoteRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryVoteRequest; + sendQueryTallyResultRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryTallyResultRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDepositsRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryDepositsRequest; + sendTallyResult({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").TallyResult; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTallyParams({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").TallyParams; + sendWeightedVoteOption({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").WeightedVoteOption; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSubmitProposalResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").MsgSubmitProposalResponse; + sendQueryProposalsRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryProposalsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgVote({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").MsgVote; + sendDeposit({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").Deposit; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgVoteWeighted({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").MsgVoteWeighted; + sendQueryVoteResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryVoteResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTallyResult({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").TallyResult; + sendDepositParams({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").DepositParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryParamsRequest; + sendTextProposal({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").TextProposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDepositResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryDepositResponse; + sendMsgSubmitProposal({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").MsgSubmitProposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryProposalRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryProposalRequest; + sendQueryDepositResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryDepositResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDepositRequest({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryDepositRequest; + sendTallyParams({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").TallyParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendVotingParams({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").VotingParams; + sendMsgVoteResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").MsgVoteResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendProposal({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").Proposal; + sendQueryDepositsResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryDepositsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendVote({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").Vote; + sendMsgVoteWeightedResponse({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").MsgVoteWeightedResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryVoteResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryVoteResponse; + sendQueryVotesRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryVotesRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryVotesResponse({ value, fee, memo }: { - value: import("./cosmos.gov.v1beta1/module").QueryVotesResponse; + sendQueryDepositRequest({ value, fee, memo }: { + value: import("./cosmos.gov.v1beta1/module").QueryDepositRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - msgSubmitProposal({ value }: { - value: import("./cosmos.gov.v1beta1/module").MsgSubmitProposal; + queryDepositsRequest({ value }: { + value: import("./cosmos.gov.v1beta1/module").QueryDepositsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - deposit({ value }: { - value: import("./cosmos.gov.v1beta1/module").Deposit; + genesisState({ value }: { + value: import("./cosmos.gov.v1beta1/module").GenesisState; }): import("@cosmjs/proto-signing").EncodeObject; - msgDeposit({ value }: { - value: import("./cosmos.gov.v1beta1/module").MsgDeposit; + msgVoteWeighted({ value }: { + value: import("./cosmos.gov.v1beta1/module").MsgVoteWeighted; }): import("@cosmjs/proto-signing").EncodeObject; - queryVotesRequest({ value }: { - value: import("./cosmos.gov.v1beta1/module").QueryVotesRequest; + queryProposalRequest({ value }: { + value: import("./cosmos.gov.v1beta1/module").QueryProposalRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsResponse({ value }: { - value: import("./cosmos.gov.v1beta1/module").QueryParamsResponse; + queryParamsRequest({ value }: { + value: import("./cosmos.gov.v1beta1/module").QueryParamsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryDepositsResponse({ value }: { - value: import("./cosmos.gov.v1beta1/module").QueryDepositsResponse; + vote({ value }: { + value: import("./cosmos.gov.v1beta1/module").Vote; + }): import("@cosmjs/proto-signing").EncodeObject; + votingParams({ value }: { + value: import("./cosmos.gov.v1beta1/module").VotingParams; + }): import("@cosmjs/proto-signing").EncodeObject; + msgDeposit({ value }: { + value: import("./cosmos.gov.v1beta1/module").MsgDeposit; + }): import("@cosmjs/proto-signing").EncodeObject; + queryProposalsResponse({ value }: { + value: import("./cosmos.gov.v1beta1/module").QueryProposalsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryVotesResponse({ value }: { + value: import("./cosmos.gov.v1beta1/module").QueryVotesResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + msgSubmitProposalResponse({ value }: { + value: import("./cosmos.gov.v1beta1/module").MsgSubmitProposalResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + msgVote({ value }: { + value: import("./cosmos.gov.v1beta1/module").MsgVote; + }): import("@cosmjs/proto-signing").EncodeObject; + queryProposalResponse({ value }: { + value: import("./cosmos.gov.v1beta1/module").QueryProposalResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryParamsResponse({ value }: { + value: import("./cosmos.gov.v1beta1/module").QueryParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; queryTallyResultResponse({ value }: { value: import("./cosmos.gov.v1beta1/module").QueryTallyResultResponse; }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./cosmos.gov.v1beta1/module").GenesisState; - }): import("@cosmjs/proto-signing").EncodeObject; - textProposal({ value }: { - value: import("./cosmos.gov.v1beta1/module").TextProposal; + proposal({ value }: { + value: import("./cosmos.gov.v1beta1/module").Proposal; }): import("@cosmjs/proto-signing").EncodeObject; msgDepositResponse({ value }: { value: import("./cosmos.gov.v1beta1/module").MsgDepositResponse; }): import("@cosmjs/proto-signing").EncodeObject; - weightedVoteOption({ value }: { - value: import("./cosmos.gov.v1beta1/module").WeightedVoteOption; + queryVoteRequest({ value }: { + value: import("./cosmos.gov.v1beta1/module").QueryVoteRequest; }): import("@cosmjs/proto-signing").EncodeObject; queryTallyResultRequest({ value }: { value: import("./cosmos.gov.v1beta1/module").QueryTallyResultRequest; }): import("@cosmjs/proto-signing").EncodeObject; - depositParams({ value }: { - value: import("./cosmos.gov.v1beta1/module").DepositParams; + tallyResult({ value }: { + value: import("./cosmos.gov.v1beta1/module").TallyResult; }): import("@cosmjs/proto-signing").EncodeObject; - msgVoteResponse({ value }: { - value: import("./cosmos.gov.v1beta1/module").MsgVoteResponse; + weightedVoteOption({ value }: { + value: import("./cosmos.gov.v1beta1/module").WeightedVoteOption; }): import("@cosmjs/proto-signing").EncodeObject; queryProposalsRequest({ value }: { value: import("./cosmos.gov.v1beta1/module").QueryProposalsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryProposalsResponse({ value }: { - value: import("./cosmos.gov.v1beta1/module").QueryProposalsResponse; + deposit({ value }: { + value: import("./cosmos.gov.v1beta1/module").Deposit; }): import("@cosmjs/proto-signing").EncodeObject; - msgVoteWeightedResponse({ value }: { - value: import("./cosmos.gov.v1beta1/module").MsgVoteWeightedResponse; + queryVoteResponse({ value }: { + value: import("./cosmos.gov.v1beta1/module").QueryVoteResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryProposalResponse({ value }: { - value: import("./cosmos.gov.v1beta1/module").QueryProposalResponse; + depositParams({ value }: { + value: import("./cosmos.gov.v1beta1/module").DepositParams; }): import("@cosmjs/proto-signing").EncodeObject; - queryVoteRequest({ value }: { - value: import("./cosmos.gov.v1beta1/module").QueryVoteRequest; + textProposal({ value }: { + value: import("./cosmos.gov.v1beta1/module").TextProposal; }): import("@cosmjs/proto-signing").EncodeObject; - queryDepositsRequest({ value }: { - value: import("./cosmos.gov.v1beta1/module").QueryDepositsRequest; + msgSubmitProposal({ value }: { + value: import("./cosmos.gov.v1beta1/module").MsgSubmitProposal; + }): import("@cosmjs/proto-signing").EncodeObject; + queryDepositResponse({ value }: { + value: import("./cosmos.gov.v1beta1/module").QueryDepositResponse; }): import("@cosmjs/proto-signing").EncodeObject; tallyParams({ value }: { value: import("./cosmos.gov.v1beta1/module").TallyParams; }): import("@cosmjs/proto-signing").EncodeObject; - msgSubmitProposalResponse({ value }: { - value: import("./cosmos.gov.v1beta1/module").MsgSubmitProposalResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - msgVote({ value }: { - value: import("./cosmos.gov.v1beta1/module").MsgVote; - }): import("@cosmjs/proto-signing").EncodeObject; - msgVoteWeighted({ value }: { - value: import("./cosmos.gov.v1beta1/module").MsgVoteWeighted; - }): import("@cosmjs/proto-signing").EncodeObject; - tallyResult({ value }: { - value: import("./cosmos.gov.v1beta1/module").TallyResult; + msgVoteResponse({ value }: { + value: import("./cosmos.gov.v1beta1/module").MsgVoteResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsRequest({ value }: { - value: import("./cosmos.gov.v1beta1/module").QueryParamsRequest; + queryDepositsResponse({ value }: { + value: import("./cosmos.gov.v1beta1/module").QueryDepositsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryDepositResponse({ value }: { - value: import("./cosmos.gov.v1beta1/module").QueryDepositResponse; + msgVoteWeightedResponse({ value }: { + value: import("./cosmos.gov.v1beta1/module").MsgVoteWeightedResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryProposalRequest({ value }: { - value: import("./cosmos.gov.v1beta1/module").QueryProposalRequest; + queryVotesRequest({ value }: { + value: import("./cosmos.gov.v1beta1/module").QueryVotesRequest; }): import("@cosmjs/proto-signing").EncodeObject; queryDepositRequest({ value }: { value: import("./cosmos.gov.v1beta1/module").QueryDepositRequest; }): import("@cosmjs/proto-signing").EncodeObject; - votingParams({ value }: { - value: import("./cosmos.gov.v1beta1/module").VotingParams; - }): import("@cosmjs/proto-signing").EncodeObject; - proposal({ value }: { - value: import("./cosmos.gov.v1beta1/module").Proposal; - }): import("@cosmjs/proto-signing").EncodeObject; - vote({ value }: { - value: import("./cosmos.gov.v1beta1/module").Vote; - }): import("@cosmjs/proto-signing").EncodeObject; - queryVoteResponse({ value }: { - value: import("./cosmos.gov.v1beta1/module").QueryVoteResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryVotesResponse({ value }: { - value: import("./cosmos.gov.v1beta1/module").QueryVotesResponse; - }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; registry: [string, import("@cosmjs/proto-signing").GeneratedType][]; @@ -3027,629 +3027,629 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosGroupV1: { query: import("./cosmos.group.v1/rest").Api; tx: { - sendMsgExec({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgExec; + sendTallyResult({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").TallyResult; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendPercentageDecisionPolicy({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").PercentageDecisionPolicy; + sendEventUpdateGroup({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").EventUpdateGroup; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGroupMember({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").GroupMember; + sendEventSubmitProposal({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").EventSubmitProposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateGroupMetadata({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupMetadata; + sendEventWithdrawProposal({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").EventWithdrawProposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupInfoResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupInfoResponse; + sendQueryGroupInfoRequest({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupInfoRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateGroupMetadataResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupMetadataResponse; + sendQueryGroupPolicyInfoRequest({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupPolicyInfoRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendEventCreateGroup({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").EventCreateGroup; + sendQueryGroupPoliciesByAdminRequest({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupPoliciesByAdminRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGroupInfo({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").GroupInfo; + sendVote({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").Vote; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupPoliciesByAdminResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupPoliciesByAdminResponse; + sendQueryVotesByProposalResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryVotesByProposalResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryVotesByProposalRequest({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryVotesByProposalRequest; + sendMsgCreateGroupWithPolicyResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgCreateGroupWithPolicyResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyAdmin; + sendMsgVoteResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgVoteResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgWithdrawProposalResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgWithdrawProposalResponse; + sendQueryVoteByProposalVoterRequest({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryVoteByProposalVoterRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupPolicyInfoRequest({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupPolicyInfoRequest; + sendQueryVoteByProposalVoterResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryVoteByProposalVoterResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyMetadata; + sendQueryVotesByProposalRequest({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryVotesByProposalRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateGroupPolicyMetadataResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyMetadataResponse; + sendMsgUpdateGroupMetadata({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupMetadata; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendEventUpdateGroupPolicy({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").EventUpdateGroupPolicy; + sendMsgUpdateGroupMetadataResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupMetadataResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendEventWithdrawProposal({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").EventWithdrawProposal; + sendMember({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").Member; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendEventExec({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").EventExec; + sendQueryProposalRequest({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryProposalRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMember({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").Member; + sendQueryGroupPoliciesByGroupRequest({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupPoliciesByGroupRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupsByAdminRequest({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupsByAdminRequest; + sendMsgUpdateGroupAdmin({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupAdmin; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupsRequest({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupsRequest; + sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyDecisionPolicy; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgVoteResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgVoteResponse; + sendMsgUpdateGroupMembersResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupMembersResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendEventVote({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").EventVote; + sendMsgExecResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgExecResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryProposalRequest({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryProposalRequest; + sendMemberRequest({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MemberRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupsByMemberRequest({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupsByMemberRequest; + sendThresholdDecisionPolicy({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").ThresholdDecisionPolicy; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryTallyResultRequest({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryTallyResultRequest; + sendEventExec({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").EventExec; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryTallyResultResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryTallyResultResponse; + sendQueryProposalsByGroupPolicyRequest({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryProposalsByGroupPolicyRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupsByAdminResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupsByAdminResponse; + sendQueryTallyResultResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryTallyResultResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryVotesByProposalResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryVotesByProposalResponse; + sendMsgCreateGroupPolicyResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgCreateGroupPolicyResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").GenesisState; + sendMsgUpdateGroupPolicyDecisionPolicyResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyDecisionPolicyResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendEventSubmitProposal({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").EventSubmitProposal; + sendEventCreateGroup({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").EventCreateGroup; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupPoliciesByGroupResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupPoliciesByGroupResponse; + sendEventProposalPruned({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").EventProposalPruned; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCreateGroupWithPolicy({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgCreateGroupWithPolicy; + sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyAdmin; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCreateGroupPolicy({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgCreateGroupPolicy; + sendEventVote({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").EventVote; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupMembersResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupMembersResponse; + sendEventUpdateGroupPolicy({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").EventUpdateGroupPolicy; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCreateGroupPolicyResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgCreateGroupPolicyResponse; + sendEventLeaveGroup({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").EventLeaveGroup; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCreateGroupWithPolicyResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgCreateGroupWithPolicyResponse; + sendMsgUpdateGroupAdminResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupAdminResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateGroupPolicyDecisionPolicyResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyDecisionPolicyResponse; + sendMsgExec({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgExec; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupsByMemberResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupsByMemberResponse; + sendGroupInfo({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").GroupInfo; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSubmitProposalResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgSubmitProposalResponse; + sendQueryGroupsByAdminRequest({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupsByAdminRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgLeaveGroup({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgLeaveGroup; + sendQueryVotesByVoterRequest({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryVotesByVoterRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTallyResult({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").TallyResult; + sendMsgUpdateGroupMembers({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupMembers; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateGroupMembers({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupMembers; + sendGroupMember({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").GroupMember; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateGroupAdmin({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupAdmin; + sendQueryGroupPoliciesByAdminResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupPoliciesByAdminResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupPolicyInfoResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupPolicyInfoResponse; + sendEventCreateGroupPolicy({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").EventCreateGroupPolicy; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryVoteByProposalVoterRequest({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryVoteByProposalVoterRequest; + sendMsgCreateGroupWithPolicy({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgCreateGroupWithPolicy; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryVotesByVoterRequest({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryVotesByVoterRequest; + sendGenesisState({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendProposal({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").Proposal; + sendMsgCreateGroupResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgCreateGroupResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupInfoRequest({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupInfoRequest; + sendMsgLeaveGroup({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgLeaveGroup; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgExecResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgExecResponse; + sendGroupPolicyInfo({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").GroupPolicyInfo; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgLeaveGroupResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgLeaveGroupResponse; + sendMsgSubmitProposal({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgSubmitProposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendEventProposalPruned({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").EventProposalPruned; + sendMsgCreateGroup({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgCreateGroup; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupMembersRequest({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupMembersRequest; + sendQueryTallyResultRequest({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryTallyResultRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryVotesByVoterResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryVotesByVoterResponse; + sendMsgWithdrawProposal({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgWithdrawProposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyDecisionPolicy; + sendDecisionPolicyWindows({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").DecisionPolicyWindows; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendEventLeaveGroup({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").EventLeaveGroup; + sendQueryGroupMembersResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupMembersResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendThresholdDecisionPolicy({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").ThresholdDecisionPolicy; + sendQueryVotesByVoterResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryVotesByVoterResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSubmitProposal({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgSubmitProposal; + sendQueryGroupsByMemberRequest({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupsByMemberRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupPoliciesByGroupRequest({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupPoliciesByGroupRequest; + sendQueryGroupsRequest({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCreateGroup({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgCreateGroup; + sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyMetadata; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendEventUpdateGroup({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").EventUpdateGroup; + sendMsgWithdrawProposalResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgWithdrawProposalResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMemberRequest({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MemberRequest; + sendQueryProposalResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryProposalResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDecisionPolicyWindows({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").DecisionPolicyWindows; + sendMsgSubmitProposalResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgSubmitProposalResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendVote({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").Vote; + sendQueryGroupsByMemberResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupsByMemberResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupPoliciesByAdminRequest({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupPoliciesByAdminRequest; + sendMsgCreateGroupPolicy({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgCreateGroupPolicy; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryGroupsResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryGroupsResponse; + sendMsgUpdateGroupPolicyMetadataResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyMetadataResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateGroupMembersResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupMembersResponse; + sendQueryProposalsByGroupPolicyResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryProposalsByGroupPolicyResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateGroupPolicyAdminResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyAdminResponse; + sendQueryGroupInfoResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupInfoResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgWithdrawProposal({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgWithdrawProposal; + sendQueryGroupMembersRequest({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupMembersRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgVote({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgVote; + sendMsgLeaveGroupResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgLeaveGroupResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCreateGroupResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgCreateGroupResponse; + sendPercentageDecisionPolicy({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").PercentageDecisionPolicy; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateGroupAdminResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupAdminResponse; + sendQueryGroupPolicyInfoResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupPolicyInfoResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendEventCreateGroupPolicy({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").EventCreateGroupPolicy; + sendQueryGroupsResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGroupPolicyInfo({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").GroupPolicyInfo; + sendMsgUpdateGroupPolicyAdminResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyAdminResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryProposalResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryProposalResponse; + sendMsgVote({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").MsgVote; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryProposalsByGroupPolicyRequest({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryProposalsByGroupPolicyRequest; + sendQueryGroupPoliciesByGroupResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupPoliciesByGroupResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryProposalsByGroupPolicyResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryProposalsByGroupPolicyResponse; + sendQueryGroupsByAdminResponse({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").QueryGroupsByAdminResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryVoteByProposalVoterResponse({ value, fee, memo }: { - value: import("./cosmos.group.v1/module").QueryVoteByProposalVoterResponse; + sendProposal({ value, fee, memo }: { + value: import("./cosmos.group.v1/module").Proposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - msgExec({ value }: { - value: import("./cosmos.group.v1/module").MsgExec; - }): import("@cosmjs/proto-signing").EncodeObject; - percentageDecisionPolicy({ value }: { - value: import("./cosmos.group.v1/module").PercentageDecisionPolicy; - }): import("@cosmjs/proto-signing").EncodeObject; - groupMember({ value }: { - value: import("./cosmos.group.v1/module").GroupMember; + tallyResult({ value }: { + value: import("./cosmos.group.v1/module").TallyResult; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateGroupMetadata({ value }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupMetadata; + eventUpdateGroup({ value }: { + value: import("./cosmos.group.v1/module").EventUpdateGroup; }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupInfoResponse({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupInfoResponse; + eventSubmitProposal({ value }: { + value: import("./cosmos.group.v1/module").EventSubmitProposal; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateGroupMetadataResponse({ value }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupMetadataResponse; + eventWithdrawProposal({ value }: { + value: import("./cosmos.group.v1/module").EventWithdrawProposal; }): import("@cosmjs/proto-signing").EncodeObject; - eventCreateGroup({ value }: { - value: import("./cosmos.group.v1/module").EventCreateGroup; + queryGroupInfoRequest({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupInfoRequest; }): import("@cosmjs/proto-signing").EncodeObject; - groupInfo({ value }: { - value: import("./cosmos.group.v1/module").GroupInfo; + queryGroupPolicyInfoRequest({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupPolicyInfoRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupPoliciesByAdminResponse({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupPoliciesByAdminResponse; + queryGroupPoliciesByAdminRequest({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupPoliciesByAdminRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryVotesByProposalRequest({ value }: { - value: import("./cosmos.group.v1/module").QueryVotesByProposalRequest; + vote({ value }: { + value: import("./cosmos.group.v1/module").Vote; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateGroupPolicyAdmin({ value }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyAdmin; + queryVotesByProposalResponse({ value }: { + value: import("./cosmos.group.v1/module").QueryVotesByProposalResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgWithdrawProposalResponse({ value }: { - value: import("./cosmos.group.v1/module").MsgWithdrawProposalResponse; + msgCreateGroupWithPolicyResponse({ value }: { + value: import("./cosmos.group.v1/module").MsgCreateGroupWithPolicyResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupPolicyInfoRequest({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupPolicyInfoRequest; + msgVoteResponse({ value }: { + value: import("./cosmos.group.v1/module").MsgVoteResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateGroupPolicyMetadata({ value }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyMetadata; + queryVoteByProposalVoterRequest({ value }: { + value: import("./cosmos.group.v1/module").QueryVoteByProposalVoterRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateGroupPolicyMetadataResponse({ value }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyMetadataResponse; + queryVoteByProposalVoterResponse({ value }: { + value: import("./cosmos.group.v1/module").QueryVoteByProposalVoterResponse; }): import("@cosmjs/proto-signing").EncodeObject; - eventUpdateGroupPolicy({ value }: { - value: import("./cosmos.group.v1/module").EventUpdateGroupPolicy; + queryVotesByProposalRequest({ value }: { + value: import("./cosmos.group.v1/module").QueryVotesByProposalRequest; }): import("@cosmjs/proto-signing").EncodeObject; - eventWithdrawProposal({ value }: { - value: import("./cosmos.group.v1/module").EventWithdrawProposal; + msgUpdateGroupMetadata({ value }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupMetadata; }): import("@cosmjs/proto-signing").EncodeObject; - eventExec({ value }: { - value: import("./cosmos.group.v1/module").EventExec; + msgUpdateGroupMetadataResponse({ value }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupMetadataResponse; }): import("@cosmjs/proto-signing").EncodeObject; member({ value }: { value: import("./cosmos.group.v1/module").Member; }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupsByAdminRequest({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupsByAdminRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupsRequest({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupsRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - msgVoteResponse({ value }: { - value: import("./cosmos.group.v1/module").MsgVoteResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - eventVote({ value }: { - value: import("./cosmos.group.v1/module").EventVote; - }): import("@cosmjs/proto-signing").EncodeObject; queryProposalRequest({ value }: { value: import("./cosmos.group.v1/module").QueryProposalRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupsByMemberRequest({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupsByMemberRequest; + queryGroupPoliciesByGroupRequest({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupPoliciesByGroupRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryTallyResultRequest({ value }: { - value: import("./cosmos.group.v1/module").QueryTallyResultRequest; + msgUpdateGroupAdmin({ value }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupAdmin; }): import("@cosmjs/proto-signing").EncodeObject; - queryTallyResultResponse({ value }: { - value: import("./cosmos.group.v1/module").QueryTallyResultResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupsByAdminResponse({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupsByAdminResponse; + msgUpdateGroupPolicyDecisionPolicy({ value }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyDecisionPolicy; }): import("@cosmjs/proto-signing").EncodeObject; - queryVotesByProposalResponse({ value }: { - value: import("./cosmos.group.v1/module").QueryVotesByProposalResponse; + msgUpdateGroupMembersResponse({ value }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupMembersResponse; }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./cosmos.group.v1/module").GenesisState; + msgExecResponse({ value }: { + value: import("./cosmos.group.v1/module").MsgExecResponse; }): import("@cosmjs/proto-signing").EncodeObject; - eventSubmitProposal({ value }: { - value: import("./cosmos.group.v1/module").EventSubmitProposal; + memberRequest({ value }: { + value: import("./cosmos.group.v1/module").MemberRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupPoliciesByGroupResponse({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupPoliciesByGroupResponse; + thresholdDecisionPolicy({ value }: { + value: import("./cosmos.group.v1/module").ThresholdDecisionPolicy; }): import("@cosmjs/proto-signing").EncodeObject; - msgCreateGroupWithPolicy({ value }: { - value: import("./cosmos.group.v1/module").MsgCreateGroupWithPolicy; + eventExec({ value }: { + value: import("./cosmos.group.v1/module").EventExec; }): import("@cosmjs/proto-signing").EncodeObject; - msgCreateGroupPolicy({ value }: { - value: import("./cosmos.group.v1/module").MsgCreateGroupPolicy; + queryProposalsByGroupPolicyRequest({ value }: { + value: import("./cosmos.group.v1/module").QueryProposalsByGroupPolicyRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupMembersResponse({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupMembersResponse; + queryTallyResultResponse({ value }: { + value: import("./cosmos.group.v1/module").QueryTallyResultResponse; }): import("@cosmjs/proto-signing").EncodeObject; msgCreateGroupPolicyResponse({ value }: { value: import("./cosmos.group.v1/module").MsgCreateGroupPolicyResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgCreateGroupWithPolicyResponse({ value }: { - value: import("./cosmos.group.v1/module").MsgCreateGroupWithPolicyResponse; - }): import("@cosmjs/proto-signing").EncodeObject; msgUpdateGroupPolicyDecisionPolicyResponse({ value }: { value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyDecisionPolicyResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupsByMemberResponse({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupsByMemberResponse; + eventCreateGroup({ value }: { + value: import("./cosmos.group.v1/module").EventCreateGroup; }): import("@cosmjs/proto-signing").EncodeObject; - msgSubmitProposalResponse({ value }: { - value: import("./cosmos.group.v1/module").MsgSubmitProposalResponse; + eventProposalPruned({ value }: { + value: import("./cosmos.group.v1/module").EventProposalPruned; }): import("@cosmjs/proto-signing").EncodeObject; - msgLeaveGroup({ value }: { - value: import("./cosmos.group.v1/module").MsgLeaveGroup; + msgUpdateGroupPolicyAdmin({ value }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyAdmin; }): import("@cosmjs/proto-signing").EncodeObject; - tallyResult({ value }: { - value: import("./cosmos.group.v1/module").TallyResult; + eventVote({ value }: { + value: import("./cosmos.group.v1/module").EventVote; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateGroupMembers({ value }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupMembers; + eventUpdateGroupPolicy({ value }: { + value: import("./cosmos.group.v1/module").EventUpdateGroupPolicy; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateGroupAdmin({ value }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupAdmin; + eventLeaveGroup({ value }: { + value: import("./cosmos.group.v1/module").EventLeaveGroup; }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupPolicyInfoResponse({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupPolicyInfoResponse; + msgUpdateGroupAdminResponse({ value }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupAdminResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryVoteByProposalVoterRequest({ value }: { - value: import("./cosmos.group.v1/module").QueryVoteByProposalVoterRequest; + msgExec({ value }: { + value: import("./cosmos.group.v1/module").MsgExec; + }): import("@cosmjs/proto-signing").EncodeObject; + groupInfo({ value }: { + value: import("./cosmos.group.v1/module").GroupInfo; + }): import("@cosmjs/proto-signing").EncodeObject; + queryGroupsByAdminRequest({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupsByAdminRequest; }): import("@cosmjs/proto-signing").EncodeObject; queryVotesByVoterRequest({ value }: { value: import("./cosmos.group.v1/module").QueryVotesByVoterRequest; }): import("@cosmjs/proto-signing").EncodeObject; - proposal({ value }: { - value: import("./cosmos.group.v1/module").Proposal; - }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupInfoRequest({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupInfoRequest; + msgUpdateGroupMembers({ value }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupMembers; }): import("@cosmjs/proto-signing").EncodeObject; - msgExecResponse({ value }: { - value: import("./cosmos.group.v1/module").MsgExecResponse; + groupMember({ value }: { + value: import("./cosmos.group.v1/module").GroupMember; }): import("@cosmjs/proto-signing").EncodeObject; - msgLeaveGroupResponse({ value }: { - value: import("./cosmos.group.v1/module").MsgLeaveGroupResponse; + queryGroupPoliciesByAdminResponse({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupPoliciesByAdminResponse; }): import("@cosmjs/proto-signing").EncodeObject; - eventProposalPruned({ value }: { - value: import("./cosmos.group.v1/module").EventProposalPruned; + eventCreateGroupPolicy({ value }: { + value: import("./cosmos.group.v1/module").EventCreateGroupPolicy; }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupMembersRequest({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupMembersRequest; + msgCreateGroupWithPolicy({ value }: { + value: import("./cosmos.group.v1/module").MsgCreateGroupWithPolicy; }): import("@cosmjs/proto-signing").EncodeObject; - queryVotesByVoterResponse({ value }: { - value: import("./cosmos.group.v1/module").QueryVotesByVoterResponse; + genesisState({ value }: { + value: import("./cosmos.group.v1/module").GenesisState; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateGroupPolicyDecisionPolicy({ value }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyDecisionPolicy; + msgCreateGroupResponse({ value }: { + value: import("./cosmos.group.v1/module").MsgCreateGroupResponse; }): import("@cosmjs/proto-signing").EncodeObject; - eventLeaveGroup({ value }: { - value: import("./cosmos.group.v1/module").EventLeaveGroup; + msgLeaveGroup({ value }: { + value: import("./cosmos.group.v1/module").MsgLeaveGroup; }): import("@cosmjs/proto-signing").EncodeObject; - thresholdDecisionPolicy({ value }: { - value: import("./cosmos.group.v1/module").ThresholdDecisionPolicy; + groupPolicyInfo({ value }: { + value: import("./cosmos.group.v1/module").GroupPolicyInfo; }): import("@cosmjs/proto-signing").EncodeObject; msgSubmitProposal({ value }: { value: import("./cosmos.group.v1/module").MsgSubmitProposal; }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupPoliciesByGroupRequest({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupPoliciesByGroupRequest; - }): import("@cosmjs/proto-signing").EncodeObject; msgCreateGroup({ value }: { value: import("./cosmos.group.v1/module").MsgCreateGroup; }): import("@cosmjs/proto-signing").EncodeObject; - eventUpdateGroup({ value }: { - value: import("./cosmos.group.v1/module").EventUpdateGroup; + queryTallyResultRequest({ value }: { + value: import("./cosmos.group.v1/module").QueryTallyResultRequest; }): import("@cosmjs/proto-signing").EncodeObject; - memberRequest({ value }: { - value: import("./cosmos.group.v1/module").MemberRequest; + msgWithdrawProposal({ value }: { + value: import("./cosmos.group.v1/module").MsgWithdrawProposal; }): import("@cosmjs/proto-signing").EncodeObject; decisionPolicyWindows({ value }: { value: import("./cosmos.group.v1/module").DecisionPolicyWindows; }): import("@cosmjs/proto-signing").EncodeObject; - vote({ value }: { - value: import("./cosmos.group.v1/module").Vote; - }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupPoliciesByAdminRequest({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupPoliciesByAdminRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - queryGroupsResponse({ value }: { - value: import("./cosmos.group.v1/module").QueryGroupsResponse; + queryGroupMembersResponse({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupMembersResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateGroupMembersResponse({ value }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupMembersResponse; + queryVotesByVoterResponse({ value }: { + value: import("./cosmos.group.v1/module").QueryVotesByVoterResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateGroupPolicyAdminResponse({ value }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyAdminResponse; + queryGroupsByMemberRequest({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupsByMemberRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgWithdrawProposal({ value }: { - value: import("./cosmos.group.v1/module").MsgWithdrawProposal; + queryGroupsRequest({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgVote({ value }: { - value: import("./cosmos.group.v1/module").MsgVote; + msgUpdateGroupPolicyMetadata({ value }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyMetadata; }): import("@cosmjs/proto-signing").EncodeObject; - msgCreateGroupResponse({ value }: { - value: import("./cosmos.group.v1/module").MsgCreateGroupResponse; + msgWithdrawProposalResponse({ value }: { + value: import("./cosmos.group.v1/module").MsgWithdrawProposalResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateGroupAdminResponse({ value }: { - value: import("./cosmos.group.v1/module").MsgUpdateGroupAdminResponse; + queryProposalResponse({ value }: { + value: import("./cosmos.group.v1/module").QueryProposalResponse; }): import("@cosmjs/proto-signing").EncodeObject; - eventCreateGroupPolicy({ value }: { - value: import("./cosmos.group.v1/module").EventCreateGroupPolicy; + msgSubmitProposalResponse({ value }: { + value: import("./cosmos.group.v1/module").MsgSubmitProposalResponse; }): import("@cosmjs/proto-signing").EncodeObject; - groupPolicyInfo({ value }: { - value: import("./cosmos.group.v1/module").GroupPolicyInfo; + queryGroupsByMemberResponse({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupsByMemberResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryProposalResponse({ value }: { - value: import("./cosmos.group.v1/module").QueryProposalResponse; + msgCreateGroupPolicy({ value }: { + value: import("./cosmos.group.v1/module").MsgCreateGroupPolicy; }): import("@cosmjs/proto-signing").EncodeObject; - queryProposalsByGroupPolicyRequest({ value }: { - value: import("./cosmos.group.v1/module").QueryProposalsByGroupPolicyRequest; + msgUpdateGroupPolicyMetadataResponse({ value }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyMetadataResponse; }): import("@cosmjs/proto-signing").EncodeObject; queryProposalsByGroupPolicyResponse({ value }: { value: import("./cosmos.group.v1/module").QueryProposalsByGroupPolicyResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryVoteByProposalVoterResponse({ value }: { - value: import("./cosmos.group.v1/module").QueryVoteByProposalVoterResponse; + queryGroupInfoResponse({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupInfoResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryGroupMembersRequest({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupMembersRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + msgLeaveGroupResponse({ value }: { + value: import("./cosmos.group.v1/module").MsgLeaveGroupResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + percentageDecisionPolicy({ value }: { + value: import("./cosmos.group.v1/module").PercentageDecisionPolicy; + }): import("@cosmjs/proto-signing").EncodeObject; + queryGroupPolicyInfoResponse({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupPolicyInfoResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryGroupsResponse({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + msgUpdateGroupPolicyAdminResponse({ value }: { + value: import("./cosmos.group.v1/module").MsgUpdateGroupPolicyAdminResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + msgVote({ value }: { + value: import("./cosmos.group.v1/module").MsgVote; + }): import("@cosmjs/proto-signing").EncodeObject; + queryGroupPoliciesByGroupResponse({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupPoliciesByGroupResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryGroupsByAdminResponse({ value }: { + value: import("./cosmos.group.v1/module").QueryGroupsByAdminResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + proposal({ value }: { + value: import("./cosmos.group.v1/module").Proposal; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -3660,8 +3660,13 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosMintV1Beta1: { query: import("./cosmos.mint.v1beta1/rest").Api; tx: { - sendQueryInflationRequest({ value, fee, memo }: { - value: import("./cosmos.mint.v1beta1/module").QueryInflationRequest; + sendQueryAnnualProvisionsRequest({ value, fee, memo }: { + value: import("./cosmos.mint.v1beta1/module").QueryAnnualProvisionsRequest; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendQueryAnnualProvisionsResponse({ value, fee, memo }: { + value: import("./cosmos.mint.v1beta1/module").QueryAnnualProvisionsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -3670,8 +3675,8 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsResponse({ value, fee, memo }: { - value: import("./cosmos.mint.v1beta1/module").QueryParamsResponse; + sendQueryInflationResponse({ value, fee, memo }: { + value: import("./cosmos.mint.v1beta1/module").QueryInflationResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -3680,23 +3685,13 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: { - value: import("./cosmos.mint.v1beta1/module").MsgUpdateParamsResponse; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./cosmos.mint.v1beta1/module").GenesisState; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendQueryAnnualProvisionsRequest({ value, fee, memo }: { - value: import("./cosmos.mint.v1beta1/module").QueryAnnualProvisionsRequest; + sendParams({ value, fee, memo }: { + value: import("./cosmos.mint.v1beta1/module").Params; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAnnualProvisionsResponse({ value, fee, memo }: { - value: import("./cosmos.mint.v1beta1/module").QueryAnnualProvisionsResponse; + sendQueryParamsResponse({ value, fee, memo }: { + value: import("./cosmos.mint.v1beta1/module").QueryParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -3705,48 +3700,53 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendParams({ value, fee, memo }: { - value: import("./cosmos.mint.v1beta1/module").Params; + sendMsgUpdateParamsResponse({ value, fee, memo }: { + value: import("./cosmos.mint.v1beta1/module").MsgUpdateParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryInflationResponse({ value, fee, memo }: { - value: import("./cosmos.mint.v1beta1/module").QueryInflationResponse; + sendGenesisState({ value, fee, memo }: { + value: import("./cosmos.mint.v1beta1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - queryInflationRequest({ value }: { + sendQueryInflationRequest({ value, fee, memo }: { value: import("./cosmos.mint.v1beta1/module").QueryInflationRequest; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + queryAnnualProvisionsRequest({ value }: { + value: import("./cosmos.mint.v1beta1/module").QueryAnnualProvisionsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsRequest({ value }: { - value: import("./cosmos.mint.v1beta1/module").QueryParamsRequest; + queryAnnualProvisionsResponse({ value }: { + value: import("./cosmos.mint.v1beta1/module").QueryAnnualProvisionsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsResponse({ value }: { - value: import("./cosmos.mint.v1beta1/module").QueryParamsResponse; + queryParamsRequest({ value }: { + value: import("./cosmos.mint.v1beta1/module").QueryParamsRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryInflationResponse({ value }: { + value: import("./cosmos.mint.v1beta1/module").QueryInflationResponse; }): import("@cosmjs/proto-signing").EncodeObject; minter({ value }: { value: import("./cosmos.mint.v1beta1/module").Minter; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParamsResponse({ value }: { - value: import("./cosmos.mint.v1beta1/module").MsgUpdateParamsResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./cosmos.mint.v1beta1/module").GenesisState; - }): import("@cosmjs/proto-signing").EncodeObject; - queryAnnualProvisionsRequest({ value }: { - value: import("./cosmos.mint.v1beta1/module").QueryAnnualProvisionsRequest; + params({ value }: { + value: import("./cosmos.mint.v1beta1/module").Params; }): import("@cosmjs/proto-signing").EncodeObject; - queryAnnualProvisionsResponse({ value }: { - value: import("./cosmos.mint.v1beta1/module").QueryAnnualProvisionsResponse; + queryParamsResponse({ value }: { + value: import("./cosmos.mint.v1beta1/module").QueryParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; msgUpdateParams({ value }: { value: import("./cosmos.mint.v1beta1/module").MsgUpdateParams; }): import("@cosmjs/proto-signing").EncodeObject; - params({ value }: { - value: import("./cosmos.mint.v1beta1/module").Params; + msgUpdateParamsResponse({ value }: { + value: import("./cosmos.mint.v1beta1/module").MsgUpdateParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryInflationResponse({ value }: { - value: import("./cosmos.mint.v1beta1/module").QueryInflationResponse; + genesisState({ value }: { + value: import("./cosmos.mint.v1beta1/module").GenesisState; + }): import("@cosmjs/proto-signing").EncodeObject; + queryInflationRequest({ value }: { + value: import("./cosmos.mint.v1beta1/module").QueryInflationRequest; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -3757,8 +3757,13 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosParamsV1Beta1: { query: import("./cosmos.params.v1beta1/rest").Api; tx: { - sendQueryParamsResponse({ value, fee, memo }: { - value: import("./cosmos.params.v1beta1/module").QueryParamsResponse; + sendParameterChangeProposal({ value, fee, memo }: { + value: import("./cosmos.params.v1beta1/module").ParameterChangeProposal; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendQueryParamsRequest({ value, fee, memo }: { + value: import("./cosmos.params.v1beta1/module").QueryParamsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -3767,13 +3772,13 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSubspace({ value, fee, memo }: { - value: import("./cosmos.params.v1beta1/module").Subspace; + sendQuerySubspacesResponse({ value, fee, memo }: { + value: import("./cosmos.params.v1beta1/module").QuerySubspacesResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsRequest({ value, fee, memo }: { - value: import("./cosmos.params.v1beta1/module").QueryParamsRequest; + sendSubspace({ value, fee, memo }: { + value: import("./cosmos.params.v1beta1/module").Subspace; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -3782,36 +3787,31 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySubspacesResponse({ value, fee, memo }: { - value: import("./cosmos.params.v1beta1/module").QuerySubspacesResponse; + sendQueryParamsResponse({ value, fee, memo }: { + value: import("./cosmos.params.v1beta1/module").QueryParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendParameterChangeProposal({ value, fee, memo }: { + parameterChangeProposal({ value }: { value: import("./cosmos.params.v1beta1/module").ParameterChangeProposal; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - queryParamsResponse({ value }: { - value: import("./cosmos.params.v1beta1/module").QueryParamsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryParamsRequest({ value }: { + value: import("./cosmos.params.v1beta1/module").QueryParamsRequest; }): import("@cosmjs/proto-signing").EncodeObject; querySubspacesRequest({ value }: { value: import("./cosmos.params.v1beta1/module").QuerySubspacesRequest; }): import("@cosmjs/proto-signing").EncodeObject; + querySubspacesResponse({ value }: { + value: import("./cosmos.params.v1beta1/module").QuerySubspacesResponse; + }): import("@cosmjs/proto-signing").EncodeObject; subspace({ value }: { value: import("./cosmos.params.v1beta1/module").Subspace; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsRequest({ value }: { - value: import("./cosmos.params.v1beta1/module").QueryParamsRequest; - }): import("@cosmjs/proto-signing").EncodeObject; paramChange({ value }: { value: import("./cosmos.params.v1beta1/module").ParamChange; }): import("@cosmjs/proto-signing").EncodeObject; - querySubspacesResponse({ value }: { - value: import("./cosmos.params.v1beta1/module").QuerySubspacesResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - parameterChangeProposal({ value }: { - value: import("./cosmos.params.v1beta1/module").ParameterChangeProposal; + queryParamsResponse({ value }: { + value: import("./cosmos.params.v1beta1/module").QueryParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -3822,58 +3822,53 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosSlashingV1Beta1: { query: import("./cosmos.slashing.v1beta1/rest").Api; tx: { - sendParams({ value, fee, memo }: { - value: import("./cosmos.slashing.v1beta1/module").Params; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendQuerySigningInfosResponse({ value, fee, memo }: { - value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfosResponse; + sendMissedBlock({ value, fee, memo }: { + value: import("./cosmos.slashing.v1beta1/module").MissedBlock; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUnjailResponse({ value, fee, memo }: { - value: import("./cosmos.slashing.v1beta1/module").MsgUnjailResponse; + sendQuerySigningInfoResponse({ value, fee, memo }: { + value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfoResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParams({ value, fee, memo }: { - value: import("./cosmos.slashing.v1beta1/module").MsgUpdateParams; + sendQuerySigningInfosRequest({ value, fee, memo }: { + value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfosRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsResponse({ value, fee, memo }: { - value: import("./cosmos.slashing.v1beta1/module").QueryParamsResponse; + sendQuerySigningInfoRequest({ value, fee, memo }: { + value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfoRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./cosmos.slashing.v1beta1/module").GenesisState; + sendMsgUnjail({ value, fee, memo }: { + value: import("./cosmos.slashing.v1beta1/module").MsgUnjail; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSigningInfo({ value, fee, memo }: { - value: import("./cosmos.slashing.v1beta1/module").SigningInfo; + sendMsgUnjailResponse({ value, fee, memo }: { + value: import("./cosmos.slashing.v1beta1/module").MsgUnjailResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySigningInfoResponse({ value, fee, memo }: { - value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfoResponse; + sendMsgUpdateParams({ value, fee, memo }: { + value: import("./cosmos.slashing.v1beta1/module").MsgUpdateParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendValidatorMissedBlocks({ value, fee, memo }: { - value: import("./cosmos.slashing.v1beta1/module").ValidatorMissedBlocks; + sendMsgUpdateParamsResponse({ value, fee, memo }: { + value: import("./cosmos.slashing.v1beta1/module").MsgUpdateParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUnjail({ value, fee, memo }: { - value: import("./cosmos.slashing.v1beta1/module").MsgUnjail; + sendQueryParamsRequest({ value, fee, memo }: { + value: import("./cosmos.slashing.v1beta1/module").QueryParamsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: { - value: import("./cosmos.slashing.v1beta1/module").MsgUpdateParamsResponse; + sendQueryParamsResponse({ value, fee, memo }: { + value: import("./cosmos.slashing.v1beta1/module").QueryParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -3882,31 +3877,45 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsRequest({ value, fee, memo }: { - value: import("./cosmos.slashing.v1beta1/module").QueryParamsRequest; + sendValidatorMissedBlocks({ value, fee, memo }: { + value: import("./cosmos.slashing.v1beta1/module").ValidatorMissedBlocks; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySigningInfoRequest({ value, fee, memo }: { - value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfoRequest; + sendQuerySigningInfosResponse({ value, fee, memo }: { + value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfosResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySigningInfosRequest({ value, fee, memo }: { - value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfosRequest; + sendGenesisState({ value, fee, memo }: { + value: import("./cosmos.slashing.v1beta1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMissedBlock({ value, fee, memo }: { - value: import("./cosmos.slashing.v1beta1/module").MissedBlock; + sendSigningInfo({ value, fee, memo }: { + value: import("./cosmos.slashing.v1beta1/module").SigningInfo; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - params({ value }: { + sendParams({ value, fee, memo }: { value: import("./cosmos.slashing.v1beta1/module").Params; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + missedBlock({ value }: { + value: import("./cosmos.slashing.v1beta1/module").MissedBlock; }): import("@cosmjs/proto-signing").EncodeObject; - querySigningInfosResponse({ value }: { - value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfosResponse; + querySigningInfoResponse({ value }: { + value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfoResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + querySigningInfosRequest({ value }: { + value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfosRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + querySigningInfoRequest({ value }: { + value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfoRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + msgUnjail({ value }: { + value: import("./cosmos.slashing.v1beta1/module").MsgUnjail; }): import("@cosmjs/proto-signing").EncodeObject; msgUnjailResponse({ value }: { value: import("./cosmos.slashing.v1beta1/module").MsgUnjailResponse; @@ -3914,41 +3923,32 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ msgUpdateParams({ value }: { value: import("./cosmos.slashing.v1beta1/module").MsgUpdateParams; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsResponse({ value }: { - value: import("./cosmos.slashing.v1beta1/module").QueryParamsResponse; + msgUpdateParamsResponse({ value }: { + value: import("./cosmos.slashing.v1beta1/module").MsgUpdateParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./cosmos.slashing.v1beta1/module").GenesisState; + queryParamsRequest({ value }: { + value: import("./cosmos.slashing.v1beta1/module").QueryParamsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - signingInfo({ value }: { - value: import("./cosmos.slashing.v1beta1/module").SigningInfo; + queryParamsResponse({ value }: { + value: import("./cosmos.slashing.v1beta1/module").QueryParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - querySigningInfoResponse({ value }: { - value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfoResponse; + validatorSigningInfo({ value }: { + value: import("./cosmos.slashing.v1beta1/module").ValidatorSigningInfo; }): import("@cosmjs/proto-signing").EncodeObject; validatorMissedBlocks({ value }: { value: import("./cosmos.slashing.v1beta1/module").ValidatorMissedBlocks; }): import("@cosmjs/proto-signing").EncodeObject; - msgUnjail({ value }: { - value: import("./cosmos.slashing.v1beta1/module").MsgUnjail; - }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParamsResponse({ value }: { - value: import("./cosmos.slashing.v1beta1/module").MsgUpdateParamsResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - validatorSigningInfo({ value }: { - value: import("./cosmos.slashing.v1beta1/module").ValidatorSigningInfo; - }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsRequest({ value }: { - value: import("./cosmos.slashing.v1beta1/module").QueryParamsRequest; + querySigningInfosResponse({ value }: { + value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfosResponse; }): import("@cosmjs/proto-signing").EncodeObject; - querySigningInfoRequest({ value }: { - value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfoRequest; + genesisState({ value }: { + value: import("./cosmos.slashing.v1beta1/module").GenesisState; }): import("@cosmjs/proto-signing").EncodeObject; - querySigningInfosRequest({ value }: { - value: import("./cosmos.slashing.v1beta1/module").QuerySigningInfosRequest; + signingInfo({ value }: { + value: import("./cosmos.slashing.v1beta1/module").SigningInfo; }): import("@cosmjs/proto-signing").EncodeObject; - missedBlock({ value }: { - value: import("./cosmos.slashing.v1beta1/module").MissedBlock; + params({ value }: { + value: import("./cosmos.slashing.v1beta1/module").Params; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -3959,33 +3959,33 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosTxV1Beta1: { query: import("./cosmos.tx.v1beta1/rest").Api; tx: { - sendBroadcastTxResponse({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").BroadcastTxResponse; + sendTxBody({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").TxBody; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTxEncodeResponse({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").TxEncodeResponse; + sendSignerInfo({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").SignerInfo; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSignDoc({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").SignDoc; + sendTxDecodeRequest({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").TxDecodeRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTxBody({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").TxBody; + sendTxEncodeAminoResponse({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").TxEncodeAminoResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSignDocDirectAux({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").SignDocDirectAux; + sendBroadcastTxRequest({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").BroadcastTxRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendAuxSignerData({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").AuxSignerData; + sendSimulateResponse({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").SimulateResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -3994,218 +3994,218 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGetTxRequest({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").GetTxRequest; + sendTxEncodeRequest({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").TxEncodeRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTxDecodeRequest({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").TxDecodeRequest; + sendGetTxsEventRequest({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").GetTxsEventRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTxDecodeAminoResponse({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").TxDecodeAminoResponse; + sendTxDecodeAminoRequest({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").TxDecodeAminoRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSignerInfo({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").SignerInfo; + sendModeInfo({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").ModeInfo; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendModeInfo({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").ModeInfo; + sendFee({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").Fee; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGetTxResponse({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").GetTxResponse; + sendModeInfo_Single({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").ModeInfo_Single; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTxEncodeAminoResponse({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").TxEncodeAminoResponse; + sendTx({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").Tx; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTxDecodeAminoRequest({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").TxDecodeAminoRequest; + sendGetTxRequest({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").GetTxRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendModeInfo_Multi({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").ModeInfo_Multi; + sendSignDocDirectAux({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").SignDocDirectAux; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTip({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").Tip; + sendTxDecodeResponse({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").TxDecodeResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSimulateRequest({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").SimulateRequest; + sendSignDoc({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").SignDoc; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendAuthInfo({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").AuthInfo; + sendTip({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").Tip; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTxDecodeResponse({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").TxDecodeResponse; + sendAuxSignerData({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").AuxSignerData; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTxEncodeRequest({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").TxEncodeRequest; + sendTxEncodeResponse({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").TxEncodeResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTxEncodeAminoRequest({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").TxEncodeAminoRequest; + sendTxDecodeAminoResponse({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").TxDecodeAminoResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTx({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").Tx; + sendTxRaw({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").TxRaw; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGetTxsEventRequest({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").GetTxsEventRequest; + sendModeInfo_Multi({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").ModeInfo_Multi; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendBroadcastTxRequest({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").BroadcastTxRequest; + sendGetTxsEventResponse({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").GetTxsEventResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGetBlockWithTxsResponse({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").GetBlockWithTxsResponse; + sendBroadcastTxResponse({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").BroadcastTxResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendModeInfo_Single({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").ModeInfo_Single; + sendGetBlockWithTxsResponse({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").GetBlockWithTxsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTxRaw({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").TxRaw; + sendAuthInfo({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").AuthInfo; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendFee({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").Fee; + sendSimulateRequest({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").SimulateRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGetTxsEventResponse({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").GetTxsEventResponse; + sendGetTxResponse({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").GetTxResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSimulateResponse({ value, fee, memo }: { - value: import("./cosmos.tx.v1beta1/module").SimulateResponse; + sendTxEncodeAminoRequest({ value, fee, memo }: { + value: import("./cosmos.tx.v1beta1/module").TxEncodeAminoRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - broadcastTxResponse({ value }: { - value: import("./cosmos.tx.v1beta1/module").BroadcastTxResponse; + txBody({ value }: { + value: import("./cosmos.tx.v1beta1/module").TxBody; }): import("@cosmjs/proto-signing").EncodeObject; - txEncodeResponse({ value }: { - value: import("./cosmos.tx.v1beta1/module").TxEncodeResponse; + signerInfo({ value }: { + value: import("./cosmos.tx.v1beta1/module").SignerInfo; }): import("@cosmjs/proto-signing").EncodeObject; - signDoc({ value }: { - value: import("./cosmos.tx.v1beta1/module").SignDoc; + txDecodeRequest({ value }: { + value: import("./cosmos.tx.v1beta1/module").TxDecodeRequest; }): import("@cosmjs/proto-signing").EncodeObject; - txBody({ value }: { - value: import("./cosmos.tx.v1beta1/module").TxBody; + txEncodeAminoResponse({ value }: { + value: import("./cosmos.tx.v1beta1/module").TxEncodeAminoResponse; }): import("@cosmjs/proto-signing").EncodeObject; - signDocDirectAux({ value }: { - value: import("./cosmos.tx.v1beta1/module").SignDocDirectAux; + broadcastTxRequest({ value }: { + value: import("./cosmos.tx.v1beta1/module").BroadcastTxRequest; }): import("@cosmjs/proto-signing").EncodeObject; - auxSignerData({ value }: { - value: import("./cosmos.tx.v1beta1/module").AuxSignerData; + simulateResponse({ value }: { + value: import("./cosmos.tx.v1beta1/module").SimulateResponse; }): import("@cosmjs/proto-signing").EncodeObject; getBlockWithTxsRequest({ value }: { value: import("./cosmos.tx.v1beta1/module").GetBlockWithTxsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - getTxRequest({ value }: { - value: import("./cosmos.tx.v1beta1/module").GetTxRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - txDecodeRequest({ value }: { - value: import("./cosmos.tx.v1beta1/module").TxDecodeRequest; + txEncodeRequest({ value }: { + value: import("./cosmos.tx.v1beta1/module").TxEncodeRequest; }): import("@cosmjs/proto-signing").EncodeObject; - txDecodeAminoResponse({ value }: { - value: import("./cosmos.tx.v1beta1/module").TxDecodeAminoResponse; + getTxsEventRequest({ value }: { + value: import("./cosmos.tx.v1beta1/module").GetTxsEventRequest; }): import("@cosmjs/proto-signing").EncodeObject; - signerInfo({ value }: { - value: import("./cosmos.tx.v1beta1/module").SignerInfo; + txDecodeAminoRequest({ value }: { + value: import("./cosmos.tx.v1beta1/module").TxDecodeAminoRequest; }): import("@cosmjs/proto-signing").EncodeObject; modeInfo({ value }: { value: import("./cosmos.tx.v1beta1/module").ModeInfo; }): import("@cosmjs/proto-signing").EncodeObject; - getTxResponse({ value }: { - value: import("./cosmos.tx.v1beta1/module").GetTxResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - txEncodeAminoResponse({ value }: { - value: import("./cosmos.tx.v1beta1/module").TxEncodeAminoResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - txDecodeAminoRequest({ value }: { - value: import("./cosmos.tx.v1beta1/module").TxDecodeAminoRequest; + fee({ value }: { + value: import("./cosmos.tx.v1beta1/module").Fee; }): import("@cosmjs/proto-signing").EncodeObject; - modeInfoMulti({ value }: { - value: import("./cosmos.tx.v1beta1/module").ModeInfo_Multi; + modeInfoSingle({ value }: { + value: import("./cosmos.tx.v1beta1/module").ModeInfo_Single; }): import("@cosmjs/proto-signing").EncodeObject; - tip({ value }: { - value: import("./cosmos.tx.v1beta1/module").Tip; + tx({ value }: { + value: import("./cosmos.tx.v1beta1/module").Tx; }): import("@cosmjs/proto-signing").EncodeObject; - simulateRequest({ value }: { - value: import("./cosmos.tx.v1beta1/module").SimulateRequest; + getTxRequest({ value }: { + value: import("./cosmos.tx.v1beta1/module").GetTxRequest; }): import("@cosmjs/proto-signing").EncodeObject; - authInfo({ value }: { - value: import("./cosmos.tx.v1beta1/module").AuthInfo; + signDocDirectAux({ value }: { + value: import("./cosmos.tx.v1beta1/module").SignDocDirectAux; }): import("@cosmjs/proto-signing").EncodeObject; txDecodeResponse({ value }: { value: import("./cosmos.tx.v1beta1/module").TxDecodeResponse; }): import("@cosmjs/proto-signing").EncodeObject; - txEncodeRequest({ value }: { - value: import("./cosmos.tx.v1beta1/module").TxEncodeRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - txEncodeAminoRequest({ value }: { - value: import("./cosmos.tx.v1beta1/module").TxEncodeAminoRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - tx({ value }: { - value: import("./cosmos.tx.v1beta1/module").Tx; + signDoc({ value }: { + value: import("./cosmos.tx.v1beta1/module").SignDoc; }): import("@cosmjs/proto-signing").EncodeObject; - getTxsEventRequest({ value }: { - value: import("./cosmos.tx.v1beta1/module").GetTxsEventRequest; + tip({ value }: { + value: import("./cosmos.tx.v1beta1/module").Tip; }): import("@cosmjs/proto-signing").EncodeObject; - broadcastTxRequest({ value }: { - value: import("./cosmos.tx.v1beta1/module").BroadcastTxRequest; + auxSignerData({ value }: { + value: import("./cosmos.tx.v1beta1/module").AuxSignerData; }): import("@cosmjs/proto-signing").EncodeObject; - getBlockWithTxsResponse({ value }: { - value: import("./cosmos.tx.v1beta1/module").GetBlockWithTxsResponse; + txEncodeResponse({ value }: { + value: import("./cosmos.tx.v1beta1/module").TxEncodeResponse; }): import("@cosmjs/proto-signing").EncodeObject; - modeInfoSingle({ value }: { - value: import("./cosmos.tx.v1beta1/module").ModeInfo_Single; + txDecodeAminoResponse({ value }: { + value: import("./cosmos.tx.v1beta1/module").TxDecodeAminoResponse; }): import("@cosmjs/proto-signing").EncodeObject; txRaw({ value }: { value: import("./cosmos.tx.v1beta1/module").TxRaw; }): import("@cosmjs/proto-signing").EncodeObject; - fee({ value }: { - value: import("./cosmos.tx.v1beta1/module").Fee; + modeInfoMulti({ value }: { + value: import("./cosmos.tx.v1beta1/module").ModeInfo_Multi; }): import("@cosmjs/proto-signing").EncodeObject; getTxsEventResponse({ value }: { value: import("./cosmos.tx.v1beta1/module").GetTxsEventResponse; }): import("@cosmjs/proto-signing").EncodeObject; - simulateResponse({ value }: { - value: import("./cosmos.tx.v1beta1/module").SimulateResponse; + broadcastTxResponse({ value }: { + value: import("./cosmos.tx.v1beta1/module").BroadcastTxResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + getBlockWithTxsResponse({ value }: { + value: import("./cosmos.tx.v1beta1/module").GetBlockWithTxsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + authInfo({ value }: { + value: import("./cosmos.tx.v1beta1/module").AuthInfo; + }): import("@cosmjs/proto-signing").EncodeObject; + simulateRequest({ value }: { + value: import("./cosmos.tx.v1beta1/module").SimulateRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + getTxResponse({ value }: { + value: import("./cosmos.tx.v1beta1/module").GetTxResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + txEncodeAminoRequest({ value }: { + value: import("./cosmos.tx.v1beta1/module").TxEncodeAminoRequest; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -4216,33 +4216,33 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosUpgradeV1Beta1: { query: import("./cosmos.upgrade.v1beta1/rest").Api; tx: { - sendQueryModuleVersionsRequest({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryModuleVersionsRequest; + sendMsgCancelUpgrade({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").MsgCancelUpgrade; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryModuleVersionsResponse({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryModuleVersionsResponse; + sendMsgCancelUpgradeResponse({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").MsgCancelUpgradeResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSoftwareUpgradeProposal({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").SoftwareUpgradeProposal; + sendQueryCurrentPlanResponse({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryCurrentPlanResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendCancelSoftwareUpgradeProposal({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").CancelSoftwareUpgradeProposal; + sendQueryAppliedPlanRequest({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryAppliedPlanRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendModuleVersion({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").ModuleVersion; + sendMsgSoftwareUpgrade({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").MsgSoftwareUpgrade; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSoftwareUpgradeResponse({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").MsgSoftwareUpgradeResponse; + sendQueryModuleVersionsResponse({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryModuleVersionsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -4251,114 +4251,114 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryUpgradedConsensusStateRequest({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryUpgradedConsensusStateRequest; + sendQueryCurrentPlanRequest({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryCurrentPlanRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCancelUpgradeResponse({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").MsgCancelUpgradeResponse; + sendQueryAppliedPlanResponse({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryAppliedPlanResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryUpgradedConsensusStateResponse; + sendQueryUpgradedConsensusStateRequest({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryUpgradedConsensusStateRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAuthorityResponse({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryAuthorityResponse; + sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryUpgradedConsensusStateResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAuthorityRequest({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryAuthorityRequest; + sendQueryModuleVersionsRequest({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryModuleVersionsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSoftwareUpgrade({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").MsgSoftwareUpgrade; + sendSoftwareUpgradeProposal({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").SoftwareUpgradeProposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCancelUpgrade({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").MsgCancelUpgrade; + sendMsgSoftwareUpgradeResponse({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").MsgSoftwareUpgradeResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryCurrentPlanResponse({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryCurrentPlanResponse; + sendQueryAuthorityRequest({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryAuthorityRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAppliedPlanRequest({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryAppliedPlanRequest; + sendQueryAuthorityResponse({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryAuthorityResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryCurrentPlanRequest({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryCurrentPlanRequest; + sendCancelSoftwareUpgradeProposal({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").CancelSoftwareUpgradeProposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryAppliedPlanResponse({ value, fee, memo }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryAppliedPlanResponse; + sendModuleVersion({ value, fee, memo }: { + value: import("./cosmos.upgrade.v1beta1/module").ModuleVersion; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - queryModuleVersionsRequest({ value }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryModuleVersionsRequest; + msgCancelUpgrade({ value }: { + value: import("./cosmos.upgrade.v1beta1/module").MsgCancelUpgrade; }): import("@cosmjs/proto-signing").EncodeObject; - queryModuleVersionsResponse({ value }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryModuleVersionsResponse; + msgCancelUpgradeResponse({ value }: { + value: import("./cosmos.upgrade.v1beta1/module").MsgCancelUpgradeResponse; }): import("@cosmjs/proto-signing").EncodeObject; - softwareUpgradeProposal({ value }: { - value: import("./cosmos.upgrade.v1beta1/module").SoftwareUpgradeProposal; + queryCurrentPlanResponse({ value }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryCurrentPlanResponse; }): import("@cosmjs/proto-signing").EncodeObject; - cancelSoftwareUpgradeProposal({ value }: { - value: import("./cosmos.upgrade.v1beta1/module").CancelSoftwareUpgradeProposal; + queryAppliedPlanRequest({ value }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryAppliedPlanRequest; }): import("@cosmjs/proto-signing").EncodeObject; - moduleVersion({ value }: { - value: import("./cosmos.upgrade.v1beta1/module").ModuleVersion; + msgSoftwareUpgrade({ value }: { + value: import("./cosmos.upgrade.v1beta1/module").MsgSoftwareUpgrade; }): import("@cosmjs/proto-signing").EncodeObject; - msgSoftwareUpgradeResponse({ value }: { - value: import("./cosmos.upgrade.v1beta1/module").MsgSoftwareUpgradeResponse; + queryModuleVersionsResponse({ value }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryModuleVersionsResponse; }): import("@cosmjs/proto-signing").EncodeObject; plan({ value }: { value: import("./cosmos.upgrade.v1beta1/module").Plan; }): import("@cosmjs/proto-signing").EncodeObject; + queryCurrentPlanRequest({ value }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryCurrentPlanRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryAppliedPlanResponse({ value }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryAppliedPlanResponse; + }): import("@cosmjs/proto-signing").EncodeObject; queryUpgradedConsensusStateRequest({ value }: { value: import("./cosmos.upgrade.v1beta1/module").QueryUpgradedConsensusStateRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgCancelUpgradeResponse({ value }: { - value: import("./cosmos.upgrade.v1beta1/module").MsgCancelUpgradeResponse; - }): import("@cosmjs/proto-signing").EncodeObject; queryUpgradedConsensusStateResponse({ value }: { value: import("./cosmos.upgrade.v1beta1/module").QueryUpgradedConsensusStateResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryAuthorityResponse({ value }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryAuthorityResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryAuthorityRequest({ value }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryAuthorityRequest; + queryModuleVersionsRequest({ value }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryModuleVersionsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgSoftwareUpgrade({ value }: { - value: import("./cosmos.upgrade.v1beta1/module").MsgSoftwareUpgrade; + softwareUpgradeProposal({ value }: { + value: import("./cosmos.upgrade.v1beta1/module").SoftwareUpgradeProposal; }): import("@cosmjs/proto-signing").EncodeObject; - msgCancelUpgrade({ value }: { - value: import("./cosmos.upgrade.v1beta1/module").MsgCancelUpgrade; + msgSoftwareUpgradeResponse({ value }: { + value: import("./cosmos.upgrade.v1beta1/module").MsgSoftwareUpgradeResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryCurrentPlanResponse({ value }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryCurrentPlanResponse; + queryAuthorityRequest({ value }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryAuthorityRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryAppliedPlanRequest({ value }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryAppliedPlanRequest; + queryAuthorityResponse({ value }: { + value: import("./cosmos.upgrade.v1beta1/module").QueryAuthorityResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryCurrentPlanRequest({ value }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryCurrentPlanRequest; + cancelSoftwareUpgradeProposal({ value }: { + value: import("./cosmos.upgrade.v1beta1/module").CancelSoftwareUpgradeProposal; }): import("@cosmjs/proto-signing").EncodeObject; - queryAppliedPlanResponse({ value }: { - value: import("./cosmos.upgrade.v1beta1/module").QueryAppliedPlanResponse; + moduleVersion({ value }: { + value: import("./cosmos.upgrade.v1beta1/module").ModuleVersion; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -4369,101 +4369,101 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ CosmosVestingV1Beta1: { query: import("./cosmos.vesting.v1beta1/rest").Api; tx: { - sendDelayedVestingAccount({ value, fee, memo }: { - value: import("./cosmos.vesting.v1beta1/module").DelayedVestingAccount; + sendContinuousVestingAccount({ value, fee, memo }: { + value: import("./cosmos.vesting.v1beta1/module").ContinuousVestingAccount; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCreateVestingAccount({ value, fee, memo }: { - value: import("./cosmos.vesting.v1beta1/module").MsgCreateVestingAccount; + sendPeriodicVestingAccount({ value, fee, memo }: { + value: import("./cosmos.vesting.v1beta1/module").PeriodicVestingAccount; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCreatePeriodicVestingAccountResponse({ value, fee, memo }: { - value: import("./cosmos.vesting.v1beta1/module").MsgCreatePeriodicVestingAccountResponse; + sendMsgCreatePermanentLockedAccount({ value, fee, memo }: { + value: import("./cosmos.vesting.v1beta1/module").MsgCreatePermanentLockedAccount; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendPeriodicVestingAccount({ value, fee, memo }: { - value: import("./cosmos.vesting.v1beta1/module").PeriodicVestingAccount; + sendMsgCreatePeriodicVestingAccount({ value, fee, memo }: { + value: import("./cosmos.vesting.v1beta1/module").MsgCreatePeriodicVestingAccount; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendBaseVestingAccount({ value, fee, memo }: { - value: import("./cosmos.vesting.v1beta1/module").BaseVestingAccount; + sendMsgCreateVestingAccount({ value, fee, memo }: { + value: import("./cosmos.vesting.v1beta1/module").MsgCreateVestingAccount; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendPeriod({ value, fee, memo }: { - value: import("./cosmos.vesting.v1beta1/module").Period; + sendMsgCreateVestingAccountResponse({ value, fee, memo }: { + value: import("./cosmos.vesting.v1beta1/module").MsgCreateVestingAccountResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendContinuousVestingAccount({ value, fee, memo }: { - value: import("./cosmos.vesting.v1beta1/module").ContinuousVestingAccount; + sendMsgCreatePermanentLockedAccountResponse({ value, fee, memo }: { + value: import("./cosmos.vesting.v1beta1/module").MsgCreatePermanentLockedAccountResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendPermanentLockedAccount({ value, fee, memo }: { - value: import("./cosmos.vesting.v1beta1/module").PermanentLockedAccount; + sendMsgCreatePeriodicVestingAccountResponse({ value, fee, memo }: { + value: import("./cosmos.vesting.v1beta1/module").MsgCreatePeriodicVestingAccountResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCreateVestingAccountResponse({ value, fee, memo }: { - value: import("./cosmos.vesting.v1beta1/module").MsgCreateVestingAccountResponse; + sendBaseVestingAccount({ value, fee, memo }: { + value: import("./cosmos.vesting.v1beta1/module").BaseVestingAccount; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCreatePermanentLockedAccount({ value, fee, memo }: { - value: import("./cosmos.vesting.v1beta1/module").MsgCreatePermanentLockedAccount; + sendDelayedVestingAccount({ value, fee, memo }: { + value: import("./cosmos.vesting.v1beta1/module").DelayedVestingAccount; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCreatePermanentLockedAccountResponse({ value, fee, memo }: { - value: import("./cosmos.vesting.v1beta1/module").MsgCreatePermanentLockedAccountResponse; + sendPermanentLockedAccount({ value, fee, memo }: { + value: import("./cosmos.vesting.v1beta1/module").PermanentLockedAccount; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCreatePeriodicVestingAccount({ value, fee, memo }: { - value: import("./cosmos.vesting.v1beta1/module").MsgCreatePeriodicVestingAccount; + sendPeriod({ value, fee, memo }: { + value: import("./cosmos.vesting.v1beta1/module").Period; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - delayedVestingAccount({ value }: { - value: import("./cosmos.vesting.v1beta1/module").DelayedVestingAccount; + continuousVestingAccount({ value }: { + value: import("./cosmos.vesting.v1beta1/module").ContinuousVestingAccount; + }): import("@cosmjs/proto-signing").EncodeObject; + periodicVestingAccount({ value }: { + value: import("./cosmos.vesting.v1beta1/module").PeriodicVestingAccount; + }): import("@cosmjs/proto-signing").EncodeObject; + msgCreatePermanentLockedAccount({ value }: { + value: import("./cosmos.vesting.v1beta1/module").MsgCreatePermanentLockedAccount; + }): import("@cosmjs/proto-signing").EncodeObject; + msgCreatePeriodicVestingAccount({ value }: { + value: import("./cosmos.vesting.v1beta1/module").MsgCreatePeriodicVestingAccount; }): import("@cosmjs/proto-signing").EncodeObject; msgCreateVestingAccount({ value }: { value: import("./cosmos.vesting.v1beta1/module").MsgCreateVestingAccount; }): import("@cosmjs/proto-signing").EncodeObject; + msgCreateVestingAccountResponse({ value }: { + value: import("./cosmos.vesting.v1beta1/module").MsgCreateVestingAccountResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + msgCreatePermanentLockedAccountResponse({ value }: { + value: import("./cosmos.vesting.v1beta1/module").MsgCreatePermanentLockedAccountResponse; + }): import("@cosmjs/proto-signing").EncodeObject; msgCreatePeriodicVestingAccountResponse({ value }: { value: import("./cosmos.vesting.v1beta1/module").MsgCreatePeriodicVestingAccountResponse; }): import("@cosmjs/proto-signing").EncodeObject; - periodicVestingAccount({ value }: { - value: import("./cosmos.vesting.v1beta1/module").PeriodicVestingAccount; - }): import("@cosmjs/proto-signing").EncodeObject; baseVestingAccount({ value }: { value: import("./cosmos.vesting.v1beta1/module").BaseVestingAccount; }): import("@cosmjs/proto-signing").EncodeObject; - period({ value }: { - value: import("./cosmos.vesting.v1beta1/module").Period; - }): import("@cosmjs/proto-signing").EncodeObject; - continuousVestingAccount({ value }: { - value: import("./cosmos.vesting.v1beta1/module").ContinuousVestingAccount; + delayedVestingAccount({ value }: { + value: import("./cosmos.vesting.v1beta1/module").DelayedVestingAccount; }): import("@cosmjs/proto-signing").EncodeObject; permanentLockedAccount({ value }: { value: import("./cosmos.vesting.v1beta1/module").PermanentLockedAccount; }): import("@cosmjs/proto-signing").EncodeObject; - msgCreateVestingAccountResponse({ value }: { - value: import("./cosmos.vesting.v1beta1/module").MsgCreateVestingAccountResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - msgCreatePermanentLockedAccount({ value }: { - value: import("./cosmos.vesting.v1beta1/module").MsgCreatePermanentLockedAccount; - }): import("@cosmjs/proto-signing").EncodeObject; - msgCreatePermanentLockedAccountResponse({ value }: { - value: import("./cosmos.vesting.v1beta1/module").MsgCreatePermanentLockedAccountResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - msgCreatePeriodicVestingAccount({ value }: { - value: import("./cosmos.vesting.v1beta1/module").MsgCreatePeriodicVestingAccount; + period({ value }: { + value: import("./cosmos.vesting.v1beta1/module").Period; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -4474,58 +4474,53 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ IbcApplicationsFeeV1: { query: import("./ibc.applications.fee.v1/rest").Api; tx: { - sendGenesisState({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").GenesisState; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendQueryCounterpartyPayeeRequest({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryCounterpartyPayeeRequest; + sendQueryIncentivizedPacketsForChannelRequest({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsForChannelRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryFeeEnabledChannelsResponse({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelsResponse; + sendQueryPayeeRequest({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryPayeeRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRegisterPayee({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").MsgRegisterPayee; + sendQueryCounterpartyPayeeResponse({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryCounterpartyPayeeResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendIncentivizedAcknowledgement({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").IncentivizedAcknowledgement; + sendMsgPayPacketFeeAsyncResponse({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").MsgPayPacketFeeAsyncResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryIncentivizedPacketRequest({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketRequest; + sendGenesisState({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryTotalRecvFeesResponse({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryTotalRecvFeesResponse; + sendPacketFee({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").PacketFee; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendPacketFees({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").PacketFees; + sendQueryIncentivizedPacketsResponse({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendIdentifiedPacketFees({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").IdentifiedPacketFees; + sendQueryIncentivizedPacketsForChannelResponse({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsForChannelResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRegisterCounterpartyPayee({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").MsgRegisterCounterpartyPayee; + sendQueryTotalAckFeesRequest({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryTotalAckFeesRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgPayPacketFeeAsync({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").MsgPayPacketFeeAsync; + sendQueryTotalTimeoutFeesResponse({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryTotalTimeoutFeesResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -4534,68 +4529,63 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryFeeEnabledChannelResponse({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelResponse; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendFee({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").Fee; + sendMsgPayPacketFeeAsync({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").MsgPayPacketFeeAsync; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryPayeeResponse({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryPayeeResponse; + sendMsgRegisterCounterpartyPayeeResponse({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").MsgRegisterCounterpartyPayeeResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryFeeEnabledChannelRequest({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelRequest; + sendIncentivizedAcknowledgement({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").IncentivizedAcknowledgement; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryTotalAckFeesRequest({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryTotalAckFeesRequest; + sendMetadata({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").Metadata; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryPayeeRequest({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryPayeeRequest; + sendMsgRegisterPayee({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").MsgRegisterPayee; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMetadata({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").Metadata; + sendFee({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").Fee; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgPayPacketFeeResponse({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").MsgPayPacketFeeResponse; + sendQueryTotalRecvFeesRequest({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryTotalRecvFeesRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryIncentivizedPacketResponse({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketResponse; + sendFeeEnabledChannel({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").FeeEnabledChannel; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryIncentivizedPacketsForChannelResponse({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsForChannelResponse; + sendRegisteredCounterpartyPayee({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").RegisteredCounterpartyPayee; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryIncentivizedPacketsRequest({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsRequest; + sendMsgRegisterCounterpartyPayee({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").MsgRegisterCounterpartyPayee; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryIncentivizedPacketsResponse({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsResponse; + sendPacketFees({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").PacketFees; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryIncentivizedPacketsForChannelRequest({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsForChannelRequest; + sendQueryTotalRecvFeesResponse({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryTotalRecvFeesResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -4609,140 +4599,144 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryTotalTimeoutFeesResponse({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryTotalTimeoutFeesResponse; + sendQueryFeeEnabledChannelsResponse({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryFeeEnabledChannelsRequest({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelsRequest; + sendForwardRelayerAddress({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").ForwardRelayerAddress; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgPayPacketFee({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").MsgPayPacketFee; + sendMsgRegisterPayeeResponse({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").MsgRegisterPayeeResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendPacketFee({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").PacketFee; + sendMsgPayPacketFeeResponse({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").MsgPayPacketFeeResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRegisterPayeeResponse({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").MsgRegisterPayeeResponse; + sendQueryIncentivizedPacketsRequest({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRegisterCounterpartyPayeeResponse({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").MsgRegisterCounterpartyPayeeResponse; + sendQueryPayeeResponse({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryPayeeResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryCounterpartyPayeeResponse({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryCounterpartyPayeeResponse; + sendMsgPayPacketFee({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").MsgPayPacketFee; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendFeeEnabledChannel({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").FeeEnabledChannel; + sendQueryIncentivizedPacketRequest({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendRegisteredCounterpartyPayee({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").RegisteredCounterpartyPayee; + sendQueryIncentivizedPacketResponse({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendForwardRelayerAddress({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").ForwardRelayerAddress; + sendQueryCounterpartyPayeeRequest({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryCounterpartyPayeeRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgPayPacketFeeAsyncResponse({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").MsgPayPacketFeeAsyncResponse; + sendQueryFeeEnabledChannelsRequest({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryTotalRecvFeesRequest({ value, fee, memo }: { - value: import("./ibc.applications.fee.v1/module").QueryTotalRecvFeesRequest; + sendQueryFeeEnabledChannelRequest({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - genesisState({ value }: { - value: import("./ibc.applications.fee.v1/module").GenesisState; - }): import("@cosmjs/proto-signing").EncodeObject; - queryCounterpartyPayeeRequest({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryCounterpartyPayeeRequest; + sendQueryFeeEnabledChannelResponse({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelResponse; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendIdentifiedPacketFees({ value, fee, memo }: { + value: import("./ibc.applications.fee.v1/module").IdentifiedPacketFees; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + queryIncentivizedPacketsForChannelRequest({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsForChannelRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryFeeEnabledChannelsResponse({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelsResponse; + queryPayeeRequest({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryPayeeRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgRegisterPayee({ value }: { - value: import("./ibc.applications.fee.v1/module").MsgRegisterPayee; + queryCounterpartyPayeeResponse({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryCounterpartyPayeeResponse; }): import("@cosmjs/proto-signing").EncodeObject; - incentivizedAcknowledgement({ value }: { - value: import("./ibc.applications.fee.v1/module").IncentivizedAcknowledgement; + msgPayPacketFeeAsyncResponse({ value }: { + value: import("./ibc.applications.fee.v1/module").MsgPayPacketFeeAsyncResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryIncentivizedPacketRequest({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketRequest; + genesisState({ value }: { + value: import("./ibc.applications.fee.v1/module").GenesisState; }): import("@cosmjs/proto-signing").EncodeObject; - queryTotalRecvFeesResponse({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryTotalRecvFeesResponse; + packetFee({ value }: { + value: import("./ibc.applications.fee.v1/module").PacketFee; }): import("@cosmjs/proto-signing").EncodeObject; - packetFees({ value }: { - value: import("./ibc.applications.fee.v1/module").PacketFees; + queryIncentivizedPacketsResponse({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - identifiedPacketFees({ value }: { - value: import("./ibc.applications.fee.v1/module").IdentifiedPacketFees; + queryIncentivizedPacketsForChannelResponse({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsForChannelResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgRegisterCounterpartyPayee({ value }: { - value: import("./ibc.applications.fee.v1/module").MsgRegisterCounterpartyPayee; + queryTotalAckFeesRequest({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryTotalAckFeesRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgPayPacketFeeAsync({ value }: { - value: import("./ibc.applications.fee.v1/module").MsgPayPacketFeeAsync; + queryTotalTimeoutFeesResponse({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryTotalTimeoutFeesResponse; }): import("@cosmjs/proto-signing").EncodeObject; registeredPayee({ value }: { value: import("./ibc.applications.fee.v1/module").RegisteredPayee; }): import("@cosmjs/proto-signing").EncodeObject; - queryFeeEnabledChannelResponse({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - fee({ value }: { - value: import("./ibc.applications.fee.v1/module").Fee; - }): import("@cosmjs/proto-signing").EncodeObject; - queryPayeeResponse({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryPayeeResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryFeeEnabledChannelRequest({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelRequest; + msgPayPacketFeeAsync({ value }: { + value: import("./ibc.applications.fee.v1/module").MsgPayPacketFeeAsync; }): import("@cosmjs/proto-signing").EncodeObject; - queryTotalAckFeesRequest({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryTotalAckFeesRequest; + msgRegisterCounterpartyPayeeResponse({ value }: { + value: import("./ibc.applications.fee.v1/module").MsgRegisterCounterpartyPayeeResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryPayeeRequest({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryPayeeRequest; + incentivizedAcknowledgement({ value }: { + value: import("./ibc.applications.fee.v1/module").IncentivizedAcknowledgement; }): import("@cosmjs/proto-signing").EncodeObject; metadata({ value }: { value: import("./ibc.applications.fee.v1/module").Metadata; }): import("@cosmjs/proto-signing").EncodeObject; - msgPayPacketFeeResponse({ value }: { - value: import("./ibc.applications.fee.v1/module").MsgPayPacketFeeResponse; + msgRegisterPayee({ value }: { + value: import("./ibc.applications.fee.v1/module").MsgRegisterPayee; }): import("@cosmjs/proto-signing").EncodeObject; - queryIncentivizedPacketResponse({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketResponse; + fee({ value }: { + value: import("./ibc.applications.fee.v1/module").Fee; }): import("@cosmjs/proto-signing").EncodeObject; - queryIncentivizedPacketsForChannelResponse({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsForChannelResponse; + queryTotalRecvFeesRequest({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryTotalRecvFeesRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryIncentivizedPacketsRequest({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsRequest; + feeEnabledChannel({ value }: { + value: import("./ibc.applications.fee.v1/module").FeeEnabledChannel; }): import("@cosmjs/proto-signing").EncodeObject; - queryIncentivizedPacketsResponse({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsResponse; + registeredCounterpartyPayee({ value }: { + value: import("./ibc.applications.fee.v1/module").RegisteredCounterpartyPayee; }): import("@cosmjs/proto-signing").EncodeObject; - queryIncentivizedPacketsForChannelRequest({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsForChannelRequest; + msgRegisterCounterpartyPayee({ value }: { + value: import("./ibc.applications.fee.v1/module").MsgRegisterCounterpartyPayee; + }): import("@cosmjs/proto-signing").EncodeObject; + packetFees({ value }: { + value: import("./ibc.applications.fee.v1/module").PacketFees; + }): import("@cosmjs/proto-signing").EncodeObject; + queryTotalRecvFeesResponse({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryTotalRecvFeesResponse; }): import("@cosmjs/proto-signing").EncodeObject; queryTotalAckFeesResponse({ value }: { value: import("./ibc.applications.fee.v1/module").QueryTotalAckFeesResponse; @@ -4750,41 +4744,47 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ queryTotalTimeoutFeesRequest({ value }: { value: import("./ibc.applications.fee.v1/module").QueryTotalTimeoutFeesRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryTotalTimeoutFeesResponse({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryTotalTimeoutFeesResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryFeeEnabledChannelsRequest({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelsRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - msgPayPacketFee({ value }: { - value: import("./ibc.applications.fee.v1/module").MsgPayPacketFee; + queryFeeEnabledChannelsResponse({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - packetFee({ value }: { - value: import("./ibc.applications.fee.v1/module").PacketFee; + forwardRelayerAddress({ value }: { + value: import("./ibc.applications.fee.v1/module").ForwardRelayerAddress; }): import("@cosmjs/proto-signing").EncodeObject; msgRegisterPayeeResponse({ value }: { value: import("./ibc.applications.fee.v1/module").MsgRegisterPayeeResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgRegisterCounterpartyPayeeResponse({ value }: { - value: import("./ibc.applications.fee.v1/module").MsgRegisterCounterpartyPayeeResponse; + msgPayPacketFeeResponse({ value }: { + value: import("./ibc.applications.fee.v1/module").MsgPayPacketFeeResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryCounterpartyPayeeResponse({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryCounterpartyPayeeResponse; + queryIncentivizedPacketsRequest({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - feeEnabledChannel({ value }: { - value: import("./ibc.applications.fee.v1/module").FeeEnabledChannel; + queryPayeeResponse({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryPayeeResponse; }): import("@cosmjs/proto-signing").EncodeObject; - registeredCounterpartyPayee({ value }: { - value: import("./ibc.applications.fee.v1/module").RegisteredCounterpartyPayee; + msgPayPacketFee({ value }: { + value: import("./ibc.applications.fee.v1/module").MsgPayPacketFee; }): import("@cosmjs/proto-signing").EncodeObject; - forwardRelayerAddress({ value }: { - value: import("./ibc.applications.fee.v1/module").ForwardRelayerAddress; + queryIncentivizedPacketRequest({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgPayPacketFeeAsyncResponse({ value }: { - value: import("./ibc.applications.fee.v1/module").MsgPayPacketFeeAsyncResponse; + queryIncentivizedPacketResponse({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryIncentivizedPacketResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryTotalRecvFeesRequest({ value }: { - value: import("./ibc.applications.fee.v1/module").QueryTotalRecvFeesRequest; + queryCounterpartyPayeeRequest({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryCounterpartyPayeeRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryFeeEnabledChannelsRequest({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelsRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryFeeEnabledChannelRequest({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryFeeEnabledChannelResponse({ value }: { + value: import("./ibc.applications.fee.v1/module").QueryFeeEnabledChannelResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + identifiedPacketFees({ value }: { + value: import("./ibc.applications.fee.v1/module").IdentifiedPacketFees; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -4795,94 +4795,94 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ IbcApplicationsInterchainAccountsControllerV1: { query: import("./ibc.applications.interchain_accounts.controller.v1/rest").Api; tx: { - sendQueryParamsResponse({ value, fee, memo }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").QueryParamsResponse; + sendParams({ value, fee, memo }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").Params; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSendTxResponse({ value, fee, memo }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgSendTxResponse; + sendMsgRegisterInterchainAccountResponse({ value, fee, memo }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgRegisterInterchainAccountResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParams({ value, fee, memo }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgUpdateParams; + sendQueryInterchainAccountResponse({ value, fee, memo }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").QueryInterchainAccountResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendParams({ value, fee, memo }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").Params; + sendMsgUpdateParams({ value, fee, memo }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgUpdateParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsRequest({ value, fee, memo }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").QueryParamsRequest; + sendMsgSendTxResponse({ value, fee, memo }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgSendTxResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRegisterInterchainAccount({ value, fee, memo }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgRegisterInterchainAccount; + sendQueryInterchainAccountRequest({ value, fee, memo }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").QueryInterchainAccountRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgUpdateParamsResponse; + sendQueryParamsRequest({ value, fee, memo }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").QueryParamsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryInterchainAccountRequest({ value, fee, memo }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").QueryInterchainAccountRequest; + sendQueryParamsResponse({ value, fee, memo }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").QueryParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryInterchainAccountResponse({ value, fee, memo }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").QueryInterchainAccountResponse; + sendMsgRegisterInterchainAccount({ value, fee, memo }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgRegisterInterchainAccount; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRegisterInterchainAccountResponse({ value, fee, memo }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgRegisterInterchainAccountResponse; + sendMsgSendTx({ value, fee, memo }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgSendTx; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSendTx({ value, fee, memo }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgSendTx; + sendMsgUpdateParamsResponse({ value, fee, memo }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgUpdateParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - queryParamsResponse({ value }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").QueryParamsResponse; + params({ value }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").Params; }): import("@cosmjs/proto-signing").EncodeObject; - msgSendTxResponse({ value }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgSendTxResponse; + msgRegisterInterchainAccountResponse({ value }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgRegisterInterchainAccountResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryInterchainAccountResponse({ value }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").QueryInterchainAccountResponse; }): import("@cosmjs/proto-signing").EncodeObject; msgUpdateParams({ value }: { value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgUpdateParams; }): import("@cosmjs/proto-signing").EncodeObject; - params({ value }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").Params; + msgSendTxResponse({ value }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgSendTxResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryInterchainAccountRequest({ value }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").QueryInterchainAccountRequest; }): import("@cosmjs/proto-signing").EncodeObject; queryParamsRequest({ value }: { value: import("./ibc.applications.interchain_accounts.controller.v1/module").QueryParamsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgRegisterInterchainAccount({ value }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgRegisterInterchainAccount; - }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParamsResponse({ value }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgUpdateParamsResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryInterchainAccountRequest({ value }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").QueryInterchainAccountRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - queryInterchainAccountResponse({ value }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").QueryInterchainAccountResponse; + queryParamsResponse({ value }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").QueryParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgRegisterInterchainAccountResponse({ value }: { - value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgRegisterInterchainAccountResponse; + msgRegisterInterchainAccount({ value }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgRegisterInterchainAccount; }): import("@cosmjs/proto-signing").EncodeObject; msgSendTx({ value }: { value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgSendTx; }): import("@cosmjs/proto-signing").EncodeObject; + msgUpdateParamsResponse({ value }: { + value: import("./ibc.applications.interchain_accounts.controller.v1/module").MsgUpdateParamsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; registry: [string, import("@cosmjs/proto-signing").GeneratedType][]; @@ -4951,23 +4951,23 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDenomTracesResponse({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").QueryDenomTracesResponse; + sendQueryDenomHashResponse({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").QueryDenomHashResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsResponse({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").QueryParamsResponse; + sendQueryTotalEscrowForDenomRequest({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").QueryTotalEscrowForDenomRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").MsgUpdateParamsResponse; + sendParams({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").Params; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendParams({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").Params; + sendMsgTransfer({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").MsgTransfer; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -4976,28 +4976,28 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTransferAuthorization({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").TransferAuthorization; + sendAllocation({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").Allocation; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgTransfer({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").MsgTransfer; + sendQueryEscrowAddressResponse({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").QueryEscrowAddressResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryEscrowAddressResponse({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").QueryEscrowAddressResponse; + sendGenesisState({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryTotalEscrowForDenomResponse({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").QueryTotalEscrowForDenomResponse; + sendMsgTransferResponse({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").MsgTransferResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendDenomTrace({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").DenomTrace; + sendMsgUpdateParamsResponse({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").MsgUpdateParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -5006,43 +5006,43 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryEscrowAddressRequest({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").QueryEscrowAddressRequest; + sendQueryDenomTracesResponse({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").QueryDenomTracesResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryTotalEscrowForDenomRequest({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").QueryTotalEscrowForDenomRequest; + sendQueryParamsResponse({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").QueryParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").GenesisState; + sendQueryDenomHashRequest({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").QueryDenomHashRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDenomHashResponse({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").QueryDenomHashResponse; + sendQueryEscrowAddressRequest({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").QueryEscrowAddressRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParams({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").MsgUpdateParams; + sendDenomTrace({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").DenomTrace; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendAllocation({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").Allocation; + sendQueryTotalEscrowForDenomResponse({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").QueryTotalEscrowForDenomResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgTransferResponse({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").MsgTransferResponse; + sendTransferAuthorization({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").TransferAuthorization; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryDenomHashRequest({ value, fee, memo }: { - value: import("./ibc.applications.transfer.v1/module").QueryDenomHashRequest; + sendMsgUpdateParams({ value, fee, memo }: { + value: import("./ibc.applications.transfer.v1/module").MsgUpdateParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -5052,63 +5052,63 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ queryDenomTracesRequest({ value }: { value: import("./ibc.applications.transfer.v1/module").QueryDenomTracesRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryDenomTracesResponse({ value }: { - value: import("./ibc.applications.transfer.v1/module").QueryDenomTracesResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsResponse({ value }: { - value: import("./ibc.applications.transfer.v1/module").QueryParamsResponse; + queryDenomHashResponse({ value }: { + value: import("./ibc.applications.transfer.v1/module").QueryDenomHashResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParamsResponse({ value }: { - value: import("./ibc.applications.transfer.v1/module").MsgUpdateParamsResponse; + queryTotalEscrowForDenomRequest({ value }: { + value: import("./ibc.applications.transfer.v1/module").QueryTotalEscrowForDenomRequest; }): import("@cosmjs/proto-signing").EncodeObject; params({ value }: { value: import("./ibc.applications.transfer.v1/module").Params; }): import("@cosmjs/proto-signing").EncodeObject; + msgTransfer({ value }: { + value: import("./ibc.applications.transfer.v1/module").MsgTransfer; + }): import("@cosmjs/proto-signing").EncodeObject; queryParamsRequest({ value }: { value: import("./ibc.applications.transfer.v1/module").QueryParamsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - transferAuthorization({ value }: { - value: import("./ibc.applications.transfer.v1/module").TransferAuthorization; - }): import("@cosmjs/proto-signing").EncodeObject; - msgTransfer({ value }: { - value: import("./ibc.applications.transfer.v1/module").MsgTransfer; + allocation({ value }: { + value: import("./ibc.applications.transfer.v1/module").Allocation; }): import("@cosmjs/proto-signing").EncodeObject; queryEscrowAddressResponse({ value }: { value: import("./ibc.applications.transfer.v1/module").QueryEscrowAddressResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryTotalEscrowForDenomResponse({ value }: { - value: import("./ibc.applications.transfer.v1/module").QueryTotalEscrowForDenomResponse; + genesisState({ value }: { + value: import("./ibc.applications.transfer.v1/module").GenesisState; }): import("@cosmjs/proto-signing").EncodeObject; - denomTrace({ value }: { - value: import("./ibc.applications.transfer.v1/module").DenomTrace; + msgTransferResponse({ value }: { + value: import("./ibc.applications.transfer.v1/module").MsgTransferResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + msgUpdateParamsResponse({ value }: { + value: import("./ibc.applications.transfer.v1/module").MsgUpdateParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; queryDenomTraceRequest({ value }: { value: import("./ibc.applications.transfer.v1/module").QueryDenomTraceRequest; }): import("@cosmjs/proto-signing").EncodeObject; + queryDenomTracesResponse({ value }: { + value: import("./ibc.applications.transfer.v1/module").QueryDenomTracesResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryParamsResponse({ value }: { + value: import("./ibc.applications.transfer.v1/module").QueryParamsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryDenomHashRequest({ value }: { + value: import("./ibc.applications.transfer.v1/module").QueryDenomHashRequest; + }): import("@cosmjs/proto-signing").EncodeObject; queryEscrowAddressRequest({ value }: { value: import("./ibc.applications.transfer.v1/module").QueryEscrowAddressRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryTotalEscrowForDenomRequest({ value }: { - value: import("./ibc.applications.transfer.v1/module").QueryTotalEscrowForDenomRequest; + denomTrace({ value }: { + value: import("./ibc.applications.transfer.v1/module").DenomTrace; }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./ibc.applications.transfer.v1/module").GenesisState; + queryTotalEscrowForDenomResponse({ value }: { + value: import("./ibc.applications.transfer.v1/module").QueryTotalEscrowForDenomResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryDenomHashResponse({ value }: { - value: import("./ibc.applications.transfer.v1/module").QueryDenomHashResponse; + transferAuthorization({ value }: { + value: import("./ibc.applications.transfer.v1/module").TransferAuthorization; }): import("@cosmjs/proto-signing").EncodeObject; msgUpdateParams({ value }: { value: import("./ibc.applications.transfer.v1/module").MsgUpdateParams; }): import("@cosmjs/proto-signing").EncodeObject; - allocation({ value }: { - value: import("./ibc.applications.transfer.v1/module").Allocation; - }): import("@cosmjs/proto-signing").EncodeObject; - msgTransferResponse({ value }: { - value: import("./ibc.applications.transfer.v1/module").MsgTransferResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryDenomHashRequest({ value }: { - value: import("./ibc.applications.transfer.v1/module").QueryDenomHashRequest; - }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; registry: [string, import("@cosmjs/proto-signing").GeneratedType][]; @@ -5118,8 +5118,8 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ IbcCoreChannelV1: { query: import("./ibc.core.channel.v1/rest").Api; tx: { - sendMsgChannelOpenTry({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgChannelOpenTry; + sendQueryUnreceivedPacketsRequest({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryUnreceivedPacketsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -5128,188 +5128,188 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryPacketCommitmentRequest({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentRequest; + sendQueryConnectionChannelsRequest({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryConnectionChannelsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryUnreceivedAcksResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryUnreceivedAcksResponse; + sendQueryUnreceivedAcksRequest({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryUnreceivedAcksRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgTimeoutOnClose({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgTimeoutOnClose; + sendMsgChannelCloseInitResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgChannelCloseInitResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgChannelCloseConfirmResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgChannelCloseConfirmResponse; + sendQueryPacketCommitmentRequest({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryChannelsRequest({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryChannelsRequest; + sendQueryPacketAcknowledgementRequest({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryPacketAcknowledgementsRequest({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementsRequest; + sendMsgChannelCloseInit({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgChannelCloseInit; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryNextSequenceReceiveRequest({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryNextSequenceReceiveRequest; + sendQueryPacketReceiptResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryPacketReceiptResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgChannelOpenConfirmResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgChannelOpenConfirmResponse; + sendMsgTimeoutOnClose({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgTimeoutOnClose; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryNextSequenceSendResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryNextSequenceSendResponse; + sendMsgChannelOpenAckResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgChannelOpenAckResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgAcknowledgementResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgAcknowledgementResponse; + sendQueryChannelsRequest({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryChannelsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryUnreceivedAcksRequest({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryUnreceivedAcksRequest; + sendMsgChannelOpenInitResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgChannelOpenInitResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendAcknowledgement({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").Acknowledgement; + sendQueryChannelResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryChannelResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgChannelCloseInitResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgChannelCloseInitResponse; + sendQueryPacketCommitmentResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendCounterparty({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").Counterparty; + sendPacketSequence({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").PacketSequence; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryPacketCommitmentsResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentsResponse; + sendPacketId({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").PacketId; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryPacketReceiptRequest({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryPacketReceiptRequest; + sendQueryChannelConsensusStateResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryChannelConsensusStateResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryPacketAcknowledgementResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementResponse; + sendMsgRecvPacket({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgRecvPacket; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConnectionChannelsRequest({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryConnectionChannelsRequest; + sendQueryPacketCommitmentsRequest({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConnectionChannelsResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryConnectionChannelsResponse; + sendMsgChannelOpenConfirm({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgChannelOpenConfirm; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgChannelOpenAck({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgChannelOpenAck; + sendMsgChannelCloseConfirm({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgChannelCloseConfirm; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgChannelOpenConfirm({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgChannelOpenConfirm; + sendQueryChannelClientStateRequest({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryChannelClientStateRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryChannelConsensusStateResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryChannelConsensusStateResponse; + sendQueryConnectionChannelsResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryConnectionChannelsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgTimeoutOnCloseResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgTimeoutOnCloseResponse; + sendMsgTimeoutResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgTimeoutResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryChannelsResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryChannelsResponse; + sendQueryPacketCommitmentsResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendPacketId({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").PacketId; + sendQueryPacketAcknowledgementsRequest({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRecvPacket({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgRecvPacket; + sendChannel({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").Channel; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryUnreceivedPacketsResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryUnreceivedPacketsResponse; + sendCounterparty({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").Counterparty; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryChannelClientStateRequest({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryChannelClientStateRequest; + sendMsgChannelOpenInit({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgChannelOpenInit; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryChannelConsensusStateRequest({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryChannelConsensusStateRequest; + sendMsgChannelOpenTry({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgChannelOpenTry; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryUnreceivedPacketsRequest({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryUnreceivedPacketsRequest; + sendMsgTimeout({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgTimeout; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgChannelOpenInit({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgChannelOpenInit; + sendIdentifiedChannel({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").IdentifiedChannel; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgChannelCloseInit({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgChannelCloseInit; + sendQueryNextSequenceReceiveRequest({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryNextSequenceReceiveRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgTimeout({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgTimeout; + sendPacketState({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").PacketState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgChannelOpenAckResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgChannelOpenAckResponse; + sendMsgAcknowledgementResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgAcknowledgementResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRecvPacketResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgRecvPacketResponse; + sendQueryPacketAcknowledgementsResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryChannelResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryChannelResponse; + sendQueryUnreceivedPacketsResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryUnreceivedPacketsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgAcknowledgement({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgAcknowledgement; + sendMsgChannelCloseConfirmResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgChannelCloseConfirmResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -5318,269 +5318,269 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryPacketCommitmentResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentResponse; + sendMsgChannelOpenAck({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgChannelOpenAck; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryPacketReceiptResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryPacketReceiptResponse; + sendMsgAcknowledgement({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgAcknowledgement; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryNextSequenceReceiveResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryNextSequenceReceiveResponse; + sendMsgChannelOpenConfirmResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgChannelOpenConfirmResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendTimeout({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").Timeout; + sendQueryNextSequenceSendResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryNextSequenceSendResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgTimeoutResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgTimeoutResponse; + sendGenesisState({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").GenesisState; + sendQueryPacketReceiptRequest({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryPacketReceiptRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendPacket({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").Packet; + sendQueryUnreceivedAcksResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryUnreceivedAcksResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryPacketCommitmentsRequest({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentsRequest; + sendAcknowledgement({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").Acknowledgement; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgChannelCloseConfirm({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgChannelCloseConfirm; + sendMsgChannelOpenTryResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgChannelOpenTryResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryPacketAcknowledgementsResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementsResponse; + sendQueryNextSequenceSendRequest({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryNextSequenceSendRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendPacketState({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").PacketState; + sendPacket({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").Packet; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendIdentifiedChannel({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").IdentifiedChannel; + sendMsgTimeoutOnCloseResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgTimeoutOnCloseResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryNextSequenceSendRequest({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryNextSequenceSendRequest; + sendQueryChannelsResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryChannelsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendPacketSequence({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").PacketSequence; + sendQueryNextSequenceReceiveResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryNextSequenceReceiveResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendChannel({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").Channel; + sendTimeout({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").Timeout; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgChannelOpenTryResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgChannelOpenTryResponse; + sendMsgRecvPacketResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").MsgRecvPacketResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgChannelOpenInitResponse({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").MsgChannelOpenInitResponse; + sendQueryChannelConsensusStateRequest({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryChannelConsensusStateRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryPacketAcknowledgementRequest({ value, fee, memo }: { - value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementRequest; + sendQueryPacketAcknowledgementResponse({ value, fee, memo }: { + value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - msgChannelOpenTry({ value }: { - value: import("./ibc.core.channel.v1/module").MsgChannelOpenTry; + queryUnreceivedPacketsRequest({ value }: { + value: import("./ibc.core.channel.v1/module").QueryUnreceivedPacketsRequest; }): import("@cosmjs/proto-signing").EncodeObject; queryChannelClientStateResponse({ value }: { value: import("./ibc.core.channel.v1/module").QueryChannelClientStateResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryPacketCommitmentRequest({ value }: { - value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - queryUnreceivedAcksResponse({ value }: { - value: import("./ibc.core.channel.v1/module").QueryUnreceivedAcksResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - msgTimeoutOnClose({ value }: { - value: import("./ibc.core.channel.v1/module").MsgTimeoutOnClose; - }): import("@cosmjs/proto-signing").EncodeObject; - msgChannelCloseConfirmResponse({ value }: { - value: import("./ibc.core.channel.v1/module").MsgChannelCloseConfirmResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryChannelsRequest({ value }: { - value: import("./ibc.core.channel.v1/module").QueryChannelsRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - queryPacketAcknowledgementsRequest({ value }: { - value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementsRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - queryNextSequenceReceiveRequest({ value }: { - value: import("./ibc.core.channel.v1/module").QueryNextSequenceReceiveRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - msgChannelOpenConfirmResponse({ value }: { - value: import("./ibc.core.channel.v1/module").MsgChannelOpenConfirmResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryNextSequenceSendResponse({ value }: { - value: import("./ibc.core.channel.v1/module").QueryNextSequenceSendResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - msgAcknowledgementResponse({ value }: { - value: import("./ibc.core.channel.v1/module").MsgAcknowledgementResponse; + queryConnectionChannelsRequest({ value }: { + value: import("./ibc.core.channel.v1/module").QueryConnectionChannelsRequest; }): import("@cosmjs/proto-signing").EncodeObject; queryUnreceivedAcksRequest({ value }: { value: import("./ibc.core.channel.v1/module").QueryUnreceivedAcksRequest; }): import("@cosmjs/proto-signing").EncodeObject; - acknowledgement({ value }: { - value: import("./ibc.core.channel.v1/module").Acknowledgement; - }): import("@cosmjs/proto-signing").EncodeObject; msgChannelCloseInitResponse({ value }: { value: import("./ibc.core.channel.v1/module").MsgChannelCloseInitResponse; }): import("@cosmjs/proto-signing").EncodeObject; - counterparty({ value }: { - value: import("./ibc.core.channel.v1/module").Counterparty; + queryPacketCommitmentRequest({ value }: { + value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryPacketCommitmentsResponse({ value }: { - value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentsResponse; + queryPacketAcknowledgementRequest({ value }: { + value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryPacketReceiptRequest({ value }: { - value: import("./ibc.core.channel.v1/module").QueryPacketReceiptRequest; + msgChannelCloseInit({ value }: { + value: import("./ibc.core.channel.v1/module").MsgChannelCloseInit; }): import("@cosmjs/proto-signing").EncodeObject; - queryPacketAcknowledgementResponse({ value }: { - value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementResponse; + queryPacketReceiptResponse({ value }: { + value: import("./ibc.core.channel.v1/module").QueryPacketReceiptResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryConnectionChannelsRequest({ value }: { - value: import("./ibc.core.channel.v1/module").QueryConnectionChannelsRequest; + msgTimeoutOnClose({ value }: { + value: import("./ibc.core.channel.v1/module").MsgTimeoutOnClose; }): import("@cosmjs/proto-signing").EncodeObject; - queryConnectionChannelsResponse({ value }: { - value: import("./ibc.core.channel.v1/module").QueryConnectionChannelsResponse; + msgChannelOpenAckResponse({ value }: { + value: import("./ibc.core.channel.v1/module").MsgChannelOpenAckResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgChannelOpenAck({ value }: { - value: import("./ibc.core.channel.v1/module").MsgChannelOpenAck; + queryChannelsRequest({ value }: { + value: import("./ibc.core.channel.v1/module").QueryChannelsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgChannelOpenConfirm({ value }: { - value: import("./ibc.core.channel.v1/module").MsgChannelOpenConfirm; + msgChannelOpenInitResponse({ value }: { + value: import("./ibc.core.channel.v1/module").MsgChannelOpenInitResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryChannelConsensusStateResponse({ value }: { - value: import("./ibc.core.channel.v1/module").QueryChannelConsensusStateResponse; + queryChannelResponse({ value }: { + value: import("./ibc.core.channel.v1/module").QueryChannelResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgTimeoutOnCloseResponse({ value }: { - value: import("./ibc.core.channel.v1/module").MsgTimeoutOnCloseResponse; + queryPacketCommitmentResponse({ value }: { + value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryChannelsResponse({ value }: { - value: import("./ibc.core.channel.v1/module").QueryChannelsResponse; + packetSequence({ value }: { + value: import("./ibc.core.channel.v1/module").PacketSequence; }): import("@cosmjs/proto-signing").EncodeObject; packetId({ value }: { value: import("./ibc.core.channel.v1/module").PacketId; }): import("@cosmjs/proto-signing").EncodeObject; + queryChannelConsensusStateResponse({ value }: { + value: import("./ibc.core.channel.v1/module").QueryChannelConsensusStateResponse; + }): import("@cosmjs/proto-signing").EncodeObject; msgRecvPacket({ value }: { value: import("./ibc.core.channel.v1/module").MsgRecvPacket; }): import("@cosmjs/proto-signing").EncodeObject; - queryUnreceivedPacketsResponse({ value }: { - value: import("./ibc.core.channel.v1/module").QueryUnreceivedPacketsResponse; + queryPacketCommitmentsRequest({ value }: { + value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentsRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + msgChannelOpenConfirm({ value }: { + value: import("./ibc.core.channel.v1/module").MsgChannelOpenConfirm; + }): import("@cosmjs/proto-signing").EncodeObject; + msgChannelCloseConfirm({ value }: { + value: import("./ibc.core.channel.v1/module").MsgChannelCloseConfirm; }): import("@cosmjs/proto-signing").EncodeObject; queryChannelClientStateRequest({ value }: { value: import("./ibc.core.channel.v1/module").QueryChannelClientStateRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryChannelConsensusStateRequest({ value }: { - value: import("./ibc.core.channel.v1/module").QueryChannelConsensusStateRequest; + queryConnectionChannelsResponse({ value }: { + value: import("./ibc.core.channel.v1/module").QueryConnectionChannelsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryUnreceivedPacketsRequest({ value }: { - value: import("./ibc.core.channel.v1/module").QueryUnreceivedPacketsRequest; + msgTimeoutResponse({ value }: { + value: import("./ibc.core.channel.v1/module").MsgTimeoutResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryPacketCommitmentsResponse({ value }: { + value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryPacketAcknowledgementsRequest({ value }: { + value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementsRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + channel({ value }: { + value: import("./ibc.core.channel.v1/module").Channel; + }): import("@cosmjs/proto-signing").EncodeObject; + counterparty({ value }: { + value: import("./ibc.core.channel.v1/module").Counterparty; }): import("@cosmjs/proto-signing").EncodeObject; msgChannelOpenInit({ value }: { value: import("./ibc.core.channel.v1/module").MsgChannelOpenInit; }): import("@cosmjs/proto-signing").EncodeObject; - msgChannelCloseInit({ value }: { - value: import("./ibc.core.channel.v1/module").MsgChannelCloseInit; + msgChannelOpenTry({ value }: { + value: import("./ibc.core.channel.v1/module").MsgChannelOpenTry; }): import("@cosmjs/proto-signing").EncodeObject; msgTimeout({ value }: { value: import("./ibc.core.channel.v1/module").MsgTimeout; }): import("@cosmjs/proto-signing").EncodeObject; - msgChannelOpenAckResponse({ value }: { - value: import("./ibc.core.channel.v1/module").MsgChannelOpenAckResponse; + identifiedChannel({ value }: { + value: import("./ibc.core.channel.v1/module").IdentifiedChannel; }): import("@cosmjs/proto-signing").EncodeObject; - msgRecvPacketResponse({ value }: { - value: import("./ibc.core.channel.v1/module").MsgRecvPacketResponse; + queryNextSequenceReceiveRequest({ value }: { + value: import("./ibc.core.channel.v1/module").QueryNextSequenceReceiveRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryChannelResponse({ value }: { - value: import("./ibc.core.channel.v1/module").QueryChannelResponse; + packetState({ value }: { + value: import("./ibc.core.channel.v1/module").PacketState; }): import("@cosmjs/proto-signing").EncodeObject; - msgAcknowledgement({ value }: { - value: import("./ibc.core.channel.v1/module").MsgAcknowledgement; + msgAcknowledgementResponse({ value }: { + value: import("./ibc.core.channel.v1/module").MsgAcknowledgementResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryChannelRequest({ value }: { - value: import("./ibc.core.channel.v1/module").QueryChannelRequest; + queryPacketAcknowledgementsResponse({ value }: { + value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryPacketCommitmentResponse({ value }: { - value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentResponse; + queryUnreceivedPacketsResponse({ value }: { + value: import("./ibc.core.channel.v1/module").QueryUnreceivedPacketsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryPacketReceiptResponse({ value }: { - value: import("./ibc.core.channel.v1/module").QueryPacketReceiptResponse; + msgChannelCloseConfirmResponse({ value }: { + value: import("./ibc.core.channel.v1/module").MsgChannelCloseConfirmResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryNextSequenceReceiveResponse({ value }: { - value: import("./ibc.core.channel.v1/module").QueryNextSequenceReceiveResponse; + queryChannelRequest({ value }: { + value: import("./ibc.core.channel.v1/module").QueryChannelRequest; }): import("@cosmjs/proto-signing").EncodeObject; - timeout({ value }: { - value: import("./ibc.core.channel.v1/module").Timeout; + msgChannelOpenAck({ value }: { + value: import("./ibc.core.channel.v1/module").MsgChannelOpenAck; }): import("@cosmjs/proto-signing").EncodeObject; - msgTimeoutResponse({ value }: { - value: import("./ibc.core.channel.v1/module").MsgTimeoutResponse; + msgAcknowledgement({ value }: { + value: import("./ibc.core.channel.v1/module").MsgAcknowledgement; }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./ibc.core.channel.v1/module").GenesisState; + msgChannelOpenConfirmResponse({ value }: { + value: import("./ibc.core.channel.v1/module").MsgChannelOpenConfirmResponse; }): import("@cosmjs/proto-signing").EncodeObject; - packet({ value }: { - value: import("./ibc.core.channel.v1/module").Packet; + queryNextSequenceSendResponse({ value }: { + value: import("./ibc.core.channel.v1/module").QueryNextSequenceSendResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryPacketCommitmentsRequest({ value }: { - value: import("./ibc.core.channel.v1/module").QueryPacketCommitmentsRequest; + genesisState({ value }: { + value: import("./ibc.core.channel.v1/module").GenesisState; }): import("@cosmjs/proto-signing").EncodeObject; - msgChannelCloseConfirm({ value }: { - value: import("./ibc.core.channel.v1/module").MsgChannelCloseConfirm; + queryPacketReceiptRequest({ value }: { + value: import("./ibc.core.channel.v1/module").QueryPacketReceiptRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryPacketAcknowledgementsResponse({ value }: { - value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementsResponse; + queryUnreceivedAcksResponse({ value }: { + value: import("./ibc.core.channel.v1/module").QueryUnreceivedAcksResponse; }): import("@cosmjs/proto-signing").EncodeObject; - packetState({ value }: { - value: import("./ibc.core.channel.v1/module").PacketState; + acknowledgement({ value }: { + value: import("./ibc.core.channel.v1/module").Acknowledgement; }): import("@cosmjs/proto-signing").EncodeObject; - identifiedChannel({ value }: { - value: import("./ibc.core.channel.v1/module").IdentifiedChannel; + msgChannelOpenTryResponse({ value }: { + value: import("./ibc.core.channel.v1/module").MsgChannelOpenTryResponse; }): import("@cosmjs/proto-signing").EncodeObject; queryNextSequenceSendRequest({ value }: { value: import("./ibc.core.channel.v1/module").QueryNextSequenceSendRequest; }): import("@cosmjs/proto-signing").EncodeObject; - packetSequence({ value }: { - value: import("./ibc.core.channel.v1/module").PacketSequence; + packet({ value }: { + value: import("./ibc.core.channel.v1/module").Packet; }): import("@cosmjs/proto-signing").EncodeObject; - channel({ value }: { - value: import("./ibc.core.channel.v1/module").Channel; + msgTimeoutOnCloseResponse({ value }: { + value: import("./ibc.core.channel.v1/module").MsgTimeoutOnCloseResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgChannelOpenTryResponse({ value }: { - value: import("./ibc.core.channel.v1/module").MsgChannelOpenTryResponse; + queryChannelsResponse({ value }: { + value: import("./ibc.core.channel.v1/module").QueryChannelsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgChannelOpenInitResponse({ value }: { - value: import("./ibc.core.channel.v1/module").MsgChannelOpenInitResponse; + queryNextSequenceReceiveResponse({ value }: { + value: import("./ibc.core.channel.v1/module").QueryNextSequenceReceiveResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryPacketAcknowledgementRequest({ value }: { - value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementRequest; + timeout({ value }: { + value: import("./ibc.core.channel.v1/module").Timeout; + }): import("@cosmjs/proto-signing").EncodeObject; + msgRecvPacketResponse({ value }: { + value: import("./ibc.core.channel.v1/module").MsgRecvPacketResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryChannelConsensusStateRequest({ value }: { + value: import("./ibc.core.channel.v1/module").QueryChannelConsensusStateRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryPacketAcknowledgementResponse({ value }: { + value: import("./ibc.core.channel.v1/module").QueryPacketAcknowledgementResponse; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -5596,43 +5596,38 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateClientResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").MsgUpdateClientResponse; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendMsgUpgradeClientResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").MsgUpgradeClientResponse; + sendMsgRecoverClient({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").MsgRecoverClient; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendHeight({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").Height; + sendQueryClientStateRequest({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryClientStateRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryClientStateResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryClientStateResponse; + sendQueryConsensusStateRequest({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryConsensusStateRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryClientStateRequest({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryClientStateRequest; + sendQueryConsensusStateHeightsResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryConsensusStateHeightsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConsensusStateHeightsRequest({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryConsensusStateHeightsRequest; + sendQueryUpgradedClientStateResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryUpgradedClientStateResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryClientStatusRequest({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryClientStatusRequest; + sendQueryClientStatesResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryClientStatesResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryClientParamsRequest({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryClientParamsRequest; + sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryUpgradedConsensusStateResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -5641,78 +5636,78 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryClientStatesResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryClientStatesResponse; + sendMsgUpdateClientResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").MsgUpdateClientResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgIBCSoftwareUpgradeResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").MsgIBCSoftwareUpgradeResponse; + sendMsgUpdateParamsResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").MsgUpdateParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryClientParamsResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryClientParamsResponse; + sendQueryClientStatusRequest({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryClientStatusRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgIBCSoftwareUpgrade({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").MsgIBCSoftwareUpgrade; + sendQueryUpgradedClientStateRequest({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryUpgradedClientStateRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgCreateClientResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").MsgCreateClientResponse; + sendHeight({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").Height; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSubmitMisbehaviourResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").MsgSubmitMisbehaviourResponse; + sendMsgUpgradeClientResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").MsgUpgradeClientResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRecoverClientResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").MsgRecoverClientResponse; + sendMsgSubmitMisbehaviour({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").MsgSubmitMisbehaviour; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendIdentifiedClientState({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").IdentifiedClientState; + sendMsgSubmitMisbehaviourResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").MsgSubmitMisbehaviourResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisMetadata({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").GenesisMetadata; + sendQueryClientStatesRequest({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryClientStatesRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryClientStatesRequest({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryClientStatesRequest; + sendQueryConsensusStateHeightsRequest({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryConsensusStateHeightsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendClientUpdateProposal({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").ClientUpdateProposal; + sendQueryClientStatusResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryClientStatusResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParams({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").MsgUpdateParams; + sendMsgUpgradeClient({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").MsgUpgradeClient; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConsensusStateResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryConsensusStateResponse; + sendIdentifiedGenesisMetadata({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").IdentifiedGenesisMetadata; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConsensusStatesRequest({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryConsensusStatesRequest; + sendGenesisMetadata({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").GenesisMetadata; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendConsensusStateWithHeight({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").ConsensusStateWithHeight; + sendMsgIBCSoftwareUpgradeResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").MsgIBCSoftwareUpgradeResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -5721,211 +5716,216 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendIdentifiedGenesisMetadata({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").IdentifiedGenesisMetadata; + sendMsgRecoverClientResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").MsgRecoverClientResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConsensusStateRequest({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryConsensusStateRequest; + sendQueryConsensusStatesRequest({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryConsensusStatesRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryUpgradedClientStateRequest({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryUpgradedClientStateRequest; + sendQueryConsensusStateResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryConsensusStateResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryUpgradedClientStateResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryUpgradedClientStateResponse; + sendQueryConsensusStatesResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryConsensusStatesResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSubmitMisbehaviour({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").MsgSubmitMisbehaviour; + sendConsensusStateWithHeight({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").ConsensusStateWithHeight; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRecoverClient({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").MsgRecoverClient; + sendQueryUpgradedConsensusStateRequest({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryUpgradedConsensusStateRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConsensusStatesResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryConsensusStatesResponse; + sendClientConsensusStates({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").ClientConsensusStates; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendClientConsensusStates({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").ClientConsensusStates; + sendUpgradeProposal({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").UpgradeProposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").GenesisState; + sendMsgCreateClientResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").MsgCreateClientResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryUpgradedConsensusStateRequest({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryUpgradedConsensusStateRequest; + sendMsgIBCSoftwareUpgrade({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").MsgIBCSoftwareUpgrade; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendUpgradeProposal({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").UpgradeProposal; + sendIdentifiedClientState({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").IdentifiedClientState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpgradeClient({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").MsgUpgradeClient; + sendQueryClientParamsRequest({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryClientParamsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").MsgUpdateParamsResponse; + sendGenesisState({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConsensusStateHeightsResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryConsensusStateHeightsResponse; + sendQueryClientStateResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryClientStateResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryClientStatusResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryClientStatusResponse; + sendMsgUpdateParams({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").MsgUpdateParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryUpgradedConsensusStateResponse({ value, fee, memo }: { - value: import("./ibc.core.client.v1/module").QueryUpgradedConsensusStateResponse; + sendQueryClientParamsResponse({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").QueryClientParamsResponse; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendClientUpdateProposal({ value, fee, memo }: { + value: import("./ibc.core.client.v1/module").ClientUpdateProposal; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; msgCreateClient({ value }: { value: import("./ibc.core.client.v1/module").MsgCreateClient; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateClientResponse({ value }: { - value: import("./ibc.core.client.v1/module").MsgUpdateClientResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - msgUpgradeClientResponse({ value }: { - value: import("./ibc.core.client.v1/module").MsgUpgradeClientResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - height({ value }: { - value: import("./ibc.core.client.v1/module").Height; - }): import("@cosmjs/proto-signing").EncodeObject; - queryClientStateResponse({ value }: { - value: import("./ibc.core.client.v1/module").QueryClientStateResponse; + msgRecoverClient({ value }: { + value: import("./ibc.core.client.v1/module").MsgRecoverClient; }): import("@cosmjs/proto-signing").EncodeObject; queryClientStateRequest({ value }: { value: import("./ibc.core.client.v1/module").QueryClientStateRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryConsensusStateHeightsRequest({ value }: { - value: import("./ibc.core.client.v1/module").QueryConsensusStateHeightsRequest; + queryConsensusStateRequest({ value }: { + value: import("./ibc.core.client.v1/module").QueryConsensusStateRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryClientStatusRequest({ value }: { - value: import("./ibc.core.client.v1/module").QueryClientStatusRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - queryClientParamsRequest({ value }: { - value: import("./ibc.core.client.v1/module").QueryClientParamsRequest; + queryConsensusStateHeightsResponse({ value }: { + value: import("./ibc.core.client.v1/module").QueryConsensusStateHeightsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateClient({ value }: { - value: import("./ibc.core.client.v1/module").MsgUpdateClient; + queryUpgradedClientStateResponse({ value }: { + value: import("./ibc.core.client.v1/module").QueryUpgradedClientStateResponse; }): import("@cosmjs/proto-signing").EncodeObject; queryClientStatesResponse({ value }: { value: import("./ibc.core.client.v1/module").QueryClientStatesResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgIbcsoftwareUpgradeResponse({ value }: { - value: import("./ibc.core.client.v1/module").MsgIBCSoftwareUpgradeResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryClientParamsResponse({ value }: { - value: import("./ibc.core.client.v1/module").QueryClientParamsResponse; + queryUpgradedConsensusStateResponse({ value }: { + value: import("./ibc.core.client.v1/module").QueryUpgradedConsensusStateResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgIbcsoftwareUpgrade({ value }: { - value: import("./ibc.core.client.v1/module").MsgIBCSoftwareUpgrade; + msgUpdateClient({ value }: { + value: import("./ibc.core.client.v1/module").MsgUpdateClient; }): import("@cosmjs/proto-signing").EncodeObject; - msgCreateClientResponse({ value }: { - value: import("./ibc.core.client.v1/module").MsgCreateClientResponse; + msgUpdateClientResponse({ value }: { + value: import("./ibc.core.client.v1/module").MsgUpdateClientResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgSubmitMisbehaviourResponse({ value }: { - value: import("./ibc.core.client.v1/module").MsgSubmitMisbehaviourResponse; + msgUpdateParamsResponse({ value }: { + value: import("./ibc.core.client.v1/module").MsgUpdateParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgRecoverClientResponse({ value }: { - value: import("./ibc.core.client.v1/module").MsgRecoverClientResponse; + queryClientStatusRequest({ value }: { + value: import("./ibc.core.client.v1/module").QueryClientStatusRequest; }): import("@cosmjs/proto-signing").EncodeObject; - identifiedClientState({ value }: { - value: import("./ibc.core.client.v1/module").IdentifiedClientState; + queryUpgradedClientStateRequest({ value }: { + value: import("./ibc.core.client.v1/module").QueryUpgradedClientStateRequest; }): import("@cosmjs/proto-signing").EncodeObject; - genesisMetadata({ value }: { - value: import("./ibc.core.client.v1/module").GenesisMetadata; + height({ value }: { + value: import("./ibc.core.client.v1/module").Height; }): import("@cosmjs/proto-signing").EncodeObject; - queryClientStatesRequest({ value }: { - value: import("./ibc.core.client.v1/module").QueryClientStatesRequest; + msgUpgradeClientResponse({ value }: { + value: import("./ibc.core.client.v1/module").MsgUpgradeClientResponse; }): import("@cosmjs/proto-signing").EncodeObject; - clientUpdateProposal({ value }: { - value: import("./ibc.core.client.v1/module").ClientUpdateProposal; + msgSubmitMisbehaviour({ value }: { + value: import("./ibc.core.client.v1/module").MsgSubmitMisbehaviour; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParams({ value }: { - value: import("./ibc.core.client.v1/module").MsgUpdateParams; + msgSubmitMisbehaviourResponse({ value }: { + value: import("./ibc.core.client.v1/module").MsgSubmitMisbehaviourResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryConsensusStateResponse({ value }: { - value: import("./ibc.core.client.v1/module").QueryConsensusStateResponse; + queryClientStatesRequest({ value }: { + value: import("./ibc.core.client.v1/module").QueryClientStatesRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryConsensusStatesRequest({ value }: { - value: import("./ibc.core.client.v1/module").QueryConsensusStatesRequest; + queryConsensusStateHeightsRequest({ value }: { + value: import("./ibc.core.client.v1/module").QueryConsensusStateHeightsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - consensusStateWithHeight({ value }: { - value: import("./ibc.core.client.v1/module").ConsensusStateWithHeight; + queryClientStatusResponse({ value }: { + value: import("./ibc.core.client.v1/module").QueryClientStatusResponse; }): import("@cosmjs/proto-signing").EncodeObject; - params({ value }: { - value: import("./ibc.core.client.v1/module").Params; + msgUpgradeClient({ value }: { + value: import("./ibc.core.client.v1/module").MsgUpgradeClient; }): import("@cosmjs/proto-signing").EncodeObject; identifiedGenesisMetadata({ value }: { value: import("./ibc.core.client.v1/module").IdentifiedGenesisMetadata; }): import("@cosmjs/proto-signing").EncodeObject; - queryConsensusStateRequest({ value }: { - value: import("./ibc.core.client.v1/module").QueryConsensusStateRequest; + genesisMetadata({ value }: { + value: import("./ibc.core.client.v1/module").GenesisMetadata; }): import("@cosmjs/proto-signing").EncodeObject; - queryUpgradedClientStateRequest({ value }: { - value: import("./ibc.core.client.v1/module").QueryUpgradedClientStateRequest; + msgIbcsoftwareUpgradeResponse({ value }: { + value: import("./ibc.core.client.v1/module").MsgIBCSoftwareUpgradeResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryUpgradedClientStateResponse({ value }: { - value: import("./ibc.core.client.v1/module").QueryUpgradedClientStateResponse; + params({ value }: { + value: import("./ibc.core.client.v1/module").Params; }): import("@cosmjs/proto-signing").EncodeObject; - msgSubmitMisbehaviour({ value }: { - value: import("./ibc.core.client.v1/module").MsgSubmitMisbehaviour; + msgRecoverClientResponse({ value }: { + value: import("./ibc.core.client.v1/module").MsgRecoverClientResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgRecoverClient({ value }: { - value: import("./ibc.core.client.v1/module").MsgRecoverClient; + queryConsensusStatesRequest({ value }: { + value: import("./ibc.core.client.v1/module").QueryConsensusStatesRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryConsensusStateResponse({ value }: { + value: import("./ibc.core.client.v1/module").QueryConsensusStateResponse; }): import("@cosmjs/proto-signing").EncodeObject; queryConsensusStatesResponse({ value }: { value: import("./ibc.core.client.v1/module").QueryConsensusStatesResponse; }): import("@cosmjs/proto-signing").EncodeObject; - clientConsensusStates({ value }: { - value: import("./ibc.core.client.v1/module").ClientConsensusStates; - }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./ibc.core.client.v1/module").GenesisState; + consensusStateWithHeight({ value }: { + value: import("./ibc.core.client.v1/module").ConsensusStateWithHeight; }): import("@cosmjs/proto-signing").EncodeObject; queryUpgradedConsensusStateRequest({ value }: { value: import("./ibc.core.client.v1/module").QueryUpgradedConsensusStateRequest; }): import("@cosmjs/proto-signing").EncodeObject; + clientConsensusStates({ value }: { + value: import("./ibc.core.client.v1/module").ClientConsensusStates; + }): import("@cosmjs/proto-signing").EncodeObject; upgradeProposal({ value }: { value: import("./ibc.core.client.v1/module").UpgradeProposal; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpgradeClient({ value }: { - value: import("./ibc.core.client.v1/module").MsgUpgradeClient; + msgCreateClientResponse({ value }: { + value: import("./ibc.core.client.v1/module").MsgCreateClientResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParamsResponse({ value }: { - value: import("./ibc.core.client.v1/module").MsgUpdateParamsResponse; + msgIbcsoftwareUpgrade({ value }: { + value: import("./ibc.core.client.v1/module").MsgIBCSoftwareUpgrade; }): import("@cosmjs/proto-signing").EncodeObject; - queryConsensusStateHeightsResponse({ value }: { - value: import("./ibc.core.client.v1/module").QueryConsensusStateHeightsResponse; + identifiedClientState({ value }: { + value: import("./ibc.core.client.v1/module").IdentifiedClientState; }): import("@cosmjs/proto-signing").EncodeObject; - queryClientStatusResponse({ value }: { - value: import("./ibc.core.client.v1/module").QueryClientStatusResponse; + queryClientParamsRequest({ value }: { + value: import("./ibc.core.client.v1/module").QueryClientParamsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryUpgradedConsensusStateResponse({ value }: { - value: import("./ibc.core.client.v1/module").QueryUpgradedConsensusStateResponse; + genesisState({ value }: { + value: import("./ibc.core.client.v1/module").GenesisState; + }): import("@cosmjs/proto-signing").EncodeObject; + queryClientStateResponse({ value }: { + value: import("./ibc.core.client.v1/module").QueryClientStateResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + msgUpdateParams({ value }: { + value: import("./ibc.core.client.v1/module").MsgUpdateParams; + }): import("@cosmjs/proto-signing").EncodeObject; + queryClientParamsResponse({ value }: { + value: import("./ibc.core.client.v1/module").QueryClientParamsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + clientUpdateProposal({ value }: { + value: import("./ibc.core.client.v1/module").ClientUpdateProposal; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -5936,23 +5936,18 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ IbcCoreConnectionV1: { query: import("./ibc.core.connection.v1/rest").Api; tx: { - sendParams({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").Params; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendMsgConnectionOpenAck({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").MsgConnectionOpenAck; + sendQueryConnectionRequest({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgConnectionOpenAckResponse({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").MsgConnectionOpenAckResponse; + sendQueryClientConnectionsRequest({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").QueryClientConnectionsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendCounterparty({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").Counterparty; + sendQueryConnectionParamsRequest({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionParamsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -5961,38 +5956,38 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParams({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").MsgUpdateParams; + sendMsgConnectionOpenAckResponse({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").MsgConnectionOpenAckResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConnectionsResponse({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionsResponse; + sendMsgUpdateParamsResponse({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").MsgUpdateParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryClientConnectionsRequest({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").QueryClientConnectionsRequest; + sendQueryConnectionClientStateRequest({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionClientStateRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryClientConnectionsResponse({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").QueryClientConnectionsResponse; + sendQueryConnectionParamsResponse({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConnectionParamsRequest({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionParamsRequest; + sendMsgConnectionOpenConfirm({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").MsgConnectionOpenConfirm; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendVersion({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").Version; + sendMsgConnectionOpenConfirmResponse({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").MsgConnectionOpenConfirmResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgConnectionOpenTryResponse({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").MsgConnectionOpenTryResponse; + sendGenesisState({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -6001,38 +5996,33 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConnectionRequest({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionRequest; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendQueryConnectionResponse({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionResponse; + sendConnectionPaths({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").ConnectionPaths; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgConnectionOpenInitResponse({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").MsgConnectionOpenInitResponse; + sendQueryConnectionConsensusStateResponse({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionConsensusStateResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgConnectionOpenConfirmResponse({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").MsgConnectionOpenConfirmResponse; + sendMsgConnectionOpenTryResponse({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").MsgConnectionOpenTryResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").MsgUpdateParamsResponse; + sendMsgConnectionOpenAck({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").MsgConnectionOpenAck; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgConnectionOpenInit({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").MsgConnectionOpenInit; + sendQueryClientConnectionsResponse({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").QueryClientConnectionsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgConnectionOpenConfirm({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").MsgConnectionOpenConfirm; + sendCounterparty({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").Counterparty; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -6041,18 +6031,18 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendConnectionEnd({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").ConnectionEnd; + sendQueryConnectionClientStateResponse({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionClientStateResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConnectionConsensusStateResponse({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionConsensusStateResponse; + sendMsgConnectionOpenInit({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").MsgConnectionOpenInit; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").GenesisState; + sendMsgConnectionOpenInitResponse({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").MsgConnectionOpenInitResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -6061,120 +6051,130 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendConnectionPaths({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").ConnectionPaths; + sendParams({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").Params; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConnectionClientStateRequest({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionClientStateRequest; + sendQueryConnectionConsensusStateRequest({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionConsensusStateRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConnectionConsensusStateRequest({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionConsensusStateRequest; + sendMsgUpdateParams({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").MsgUpdateParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConnectionClientStateResponse({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionClientStateResponse; + sendVersion({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").Version; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryConnectionParamsResponse({ value, fee, memo }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionParamsResponse; + sendConnectionEnd({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").ConnectionEnd; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - params({ value }: { - value: import("./ibc.core.connection.v1/module").Params; + sendQueryConnectionResponse({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionResponse; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendQueryConnectionsResponse({ value, fee, memo }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionsResponse; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + queryConnectionRequest({ value }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgConnectionOpenAck({ value }: { - value: import("./ibc.core.connection.v1/module").MsgConnectionOpenAck; - }): import("@cosmjs/proto-signing").EncodeObject; - msgConnectionOpenAckResponse({ value }: { - value: import("./ibc.core.connection.v1/module").MsgConnectionOpenAckResponse; + queryClientConnectionsRequest({ value }: { + value: import("./ibc.core.connection.v1/module").QueryClientConnectionsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - counterparty({ value }: { - value: import("./ibc.core.connection.v1/module").Counterparty; + queryConnectionParamsRequest({ value }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionParamsRequest; }): import("@cosmjs/proto-signing").EncodeObject; msgConnectionOpenTry({ value }: { value: import("./ibc.core.connection.v1/module").MsgConnectionOpenTry; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParams({ value }: { - value: import("./ibc.core.connection.v1/module").MsgUpdateParams; + msgConnectionOpenAckResponse({ value }: { + value: import("./ibc.core.connection.v1/module").MsgConnectionOpenAckResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryConnectionsResponse({ value }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionsResponse; + msgUpdateParamsResponse({ value }: { + value: import("./ibc.core.connection.v1/module").MsgUpdateParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryClientConnectionsRequest({ value }: { - value: import("./ibc.core.connection.v1/module").QueryClientConnectionsRequest; + queryConnectionClientStateRequest({ value }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionClientStateRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryClientConnectionsResponse({ value }: { - value: import("./ibc.core.connection.v1/module").QueryClientConnectionsResponse; + queryConnectionParamsResponse({ value }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryConnectionParamsRequest({ value }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionParamsRequest; + msgConnectionOpenConfirm({ value }: { + value: import("./ibc.core.connection.v1/module").MsgConnectionOpenConfirm; }): import("@cosmjs/proto-signing").EncodeObject; - version({ value }: { - value: import("./ibc.core.connection.v1/module").Version; + msgConnectionOpenConfirmResponse({ value }: { + value: import("./ibc.core.connection.v1/module").MsgConnectionOpenConfirmResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgConnectionOpenTryResponse({ value }: { - value: import("./ibc.core.connection.v1/module").MsgConnectionOpenTryResponse; + genesisState({ value }: { + value: import("./ibc.core.connection.v1/module").GenesisState; }): import("@cosmjs/proto-signing").EncodeObject; clientPaths({ value }: { value: import("./ibc.core.connection.v1/module").ClientPaths; }): import("@cosmjs/proto-signing").EncodeObject; - queryConnectionRequest({ value }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - queryConnectionResponse({ value }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionResponse; + connectionPaths({ value }: { + value: import("./ibc.core.connection.v1/module").ConnectionPaths; }): import("@cosmjs/proto-signing").EncodeObject; - msgConnectionOpenInitResponse({ value }: { - value: import("./ibc.core.connection.v1/module").MsgConnectionOpenInitResponse; + queryConnectionConsensusStateResponse({ value }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionConsensusStateResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgConnectionOpenConfirmResponse({ value }: { - value: import("./ibc.core.connection.v1/module").MsgConnectionOpenConfirmResponse; + msgConnectionOpenTryResponse({ value }: { + value: import("./ibc.core.connection.v1/module").MsgConnectionOpenTryResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParamsResponse({ value }: { - value: import("./ibc.core.connection.v1/module").MsgUpdateParamsResponse; + msgConnectionOpenAck({ value }: { + value: import("./ibc.core.connection.v1/module").MsgConnectionOpenAck; }): import("@cosmjs/proto-signing").EncodeObject; - msgConnectionOpenInit({ value }: { - value: import("./ibc.core.connection.v1/module").MsgConnectionOpenInit; + queryClientConnectionsResponse({ value }: { + value: import("./ibc.core.connection.v1/module").QueryClientConnectionsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgConnectionOpenConfirm({ value }: { - value: import("./ibc.core.connection.v1/module").MsgConnectionOpenConfirm; + counterparty({ value }: { + value: import("./ibc.core.connection.v1/module").Counterparty; }): import("@cosmjs/proto-signing").EncodeObject; queryConnectionsRequest({ value }: { value: import("./ibc.core.connection.v1/module").QueryConnectionsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - connectionEnd({ value }: { - value: import("./ibc.core.connection.v1/module").ConnectionEnd; + queryConnectionClientStateResponse({ value }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionClientStateResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryConnectionConsensusStateResponse({ value }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionConsensusStateResponse; + msgConnectionOpenInit({ value }: { + value: import("./ibc.core.connection.v1/module").MsgConnectionOpenInit; }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./ibc.core.connection.v1/module").GenesisState; + msgConnectionOpenInitResponse({ value }: { + value: import("./ibc.core.connection.v1/module").MsgConnectionOpenInitResponse; }): import("@cosmjs/proto-signing").EncodeObject; identifiedConnection({ value }: { value: import("./ibc.core.connection.v1/module").IdentifiedConnection; }): import("@cosmjs/proto-signing").EncodeObject; - connectionPaths({ value }: { - value: import("./ibc.core.connection.v1/module").ConnectionPaths; - }): import("@cosmjs/proto-signing").EncodeObject; - queryConnectionClientStateRequest({ value }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionClientStateRequest; + params({ value }: { + value: import("./ibc.core.connection.v1/module").Params; }): import("@cosmjs/proto-signing").EncodeObject; queryConnectionConsensusStateRequest({ value }: { value: import("./ibc.core.connection.v1/module").QueryConnectionConsensusStateRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryConnectionClientStateResponse({ value }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionClientStateResponse; + msgUpdateParams({ value }: { + value: import("./ibc.core.connection.v1/module").MsgUpdateParams; }): import("@cosmjs/proto-signing").EncodeObject; - queryConnectionParamsResponse({ value }: { - value: import("./ibc.core.connection.v1/module").QueryConnectionParamsResponse; + version({ value }: { + value: import("./ibc.core.connection.v1/module").Version; + }): import("@cosmjs/proto-signing").EncodeObject; + connectionEnd({ value }: { + value: import("./ibc.core.connection.v1/module").ConnectionEnd; + }): import("@cosmjs/proto-signing").EncodeObject; + queryConnectionResponse({ value }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryConnectionsResponse({ value }: { + value: import("./ibc.core.connection.v1/module").QueryConnectionsResponse; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -6185,38 +6185,38 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ WardenIntent: { query: import("./warden.intent/rest").Api; tx: { - sendQueryIntentByIdRequest({ value, fee, memo }: { - value: import("./warden.intent/module").QueryIntentByIdRequest; + sendMsgUpdateParams({ value, fee, memo }: { + value: import("./warden.intent/module").MsgUpdateParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryIntentsResponse({ value, fee, memo }: { - value: import("./warden.intent/module").QueryIntentsResponse; + sendMsgNewIntentResponse({ value, fee, memo }: { + value: import("./warden.intent/module").MsgNewIntentResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewIntentResponse({ value, fee, memo }: { - value: import("./warden.intent/module").MsgNewIntentResponse; + sendAction({ value, fee, memo }: { + value: import("./warden.intent/module").Action; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendParams({ value, fee, memo }: { - value: import("./warden.intent/module").Params; + sendMsgRevokeAction({ value, fee, memo }: { + value: import("./warden.intent/module").MsgRevokeAction; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendApprover({ value, fee, memo }: { - value: import("./warden.intent/module").Approver; + sendQueryParamsRequest({ value, fee, memo }: { + value: import("./warden.intent/module").QueryParamsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryActionsRequest({ value, fee, memo }: { - value: import("./warden.intent/module").QueryActionsRequest; + sendQueryIntentsResponse({ value, fee, memo }: { + value: import("./warden.intent/module").QueryIntentsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: { - value: import("./warden.intent/module").MsgUpdateParamsResponse; + sendQueryActionsByAddressResponse({ value, fee, memo }: { + value: import("./warden.intent/module").QueryActionsByAddressResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -6225,18 +6225,23 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendIntent({ value, fee, memo }: { - value: import("./warden.intent/module").Intent; + sendMsgNewIntent({ value, fee, memo }: { + value: import("./warden.intent/module").MsgNewIntent; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsRequest({ value, fee, memo }: { - value: import("./warden.intent/module").QueryParamsRequest; + sendMsgActionCreated({ value, fee, memo }: { + value: import("./warden.intent/module").MsgActionCreated; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryIntentsRequest({ value, fee, memo }: { - value: import("./warden.intent/module").QueryIntentsRequest; + sendApprover({ value, fee, memo }: { + value: import("./warden.intent/module").Approver; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendGenesisState({ value, fee, memo }: { + value: import("./warden.intent/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -6245,63 +6250,63 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewIntent({ value, fee, memo }: { - value: import("./warden.intent/module").MsgNewIntent; + sendMsgApproveAction({ value, fee, memo }: { + value: import("./warden.intent/module").MsgApproveAction; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendAction({ value, fee, memo }: { - value: import("./warden.intent/module").Action; + sendMsgRevokeActionResponse({ value, fee, memo }: { + value: import("./warden.intent/module").MsgRevokeActionResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgActionCreated({ value, fee, memo }: { - value: import("./warden.intent/module").MsgActionCreated; + sendIntent({ value, fee, memo }: { + value: import("./warden.intent/module").Intent; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryActionsByAddressRequest({ value, fee, memo }: { - value: import("./warden.intent/module").QueryActionsByAddressRequest; + sendMsgUpdateParamsResponse({ value, fee, memo }: { + value: import("./warden.intent/module").MsgUpdateParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryActionByIdResponse({ value, fee, memo }: { - value: import("./warden.intent/module").QueryActionByIdResponse; + sendQueryParamsResponse({ value, fee, memo }: { + value: import("./warden.intent/module").QueryParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRevokeAction({ value, fee, memo }: { - value: import("./warden.intent/module").MsgRevokeAction; + sendQueryActionsResponse({ value, fee, memo }: { + value: import("./warden.intent/module").QueryActionsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./warden.intent/module").GenesisState; + sendParams({ value, fee, memo }: { + value: import("./warden.intent/module").Params; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParams({ value, fee, memo }: { - value: import("./warden.intent/module").MsgUpdateParams; + sendQueryActionsByAddressRequest({ value, fee, memo }: { + value: import("./warden.intent/module").QueryActionsByAddressRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgApproveAction({ value, fee, memo }: { - value: import("./warden.intent/module").MsgApproveAction; + sendQueryActionByIdResponse({ value, fee, memo }: { + value: import("./warden.intent/module").QueryActionByIdResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRevokeActionResponse({ value, fee, memo }: { - value: import("./warden.intent/module").MsgRevokeActionResponse; + sendQueryActionsRequest({ value, fee, memo }: { + value: import("./warden.intent/module").QueryActionsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsResponse({ value, fee, memo }: { - value: import("./warden.intent/module").QueryParamsResponse; + sendQueryIntentsRequest({ value, fee, memo }: { + value: import("./warden.intent/module").QueryIntentsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryActionsResponse({ value, fee, memo }: { - value: import("./warden.intent/module").QueryActionsResponse; + sendQueryIntentByIdRequest({ value, fee, memo }: { + value: import("./warden.intent/module").QueryIntentByIdRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -6310,70 +6315,44 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryActionsByAddressResponse({ value, fee, memo }: { - value: import("./warden.intent/module").QueryActionsByAddressResponse; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - queryIntentByIdRequest({ value }: { - value: import("./warden.intent/module").QueryIntentByIdRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - queryIntentsResponse({ value }: { - value: import("./warden.intent/module").QueryIntentsResponse; + msgUpdateParams({ value }: { + value: import("./warden.intent/module").MsgUpdateParams; }): import("@cosmjs/proto-signing").EncodeObject; msgNewIntentResponse({ value }: { value: import("./warden.intent/module").MsgNewIntentResponse; }): import("@cosmjs/proto-signing").EncodeObject; - params({ value }: { - value: import("./warden.intent/module").Params; - }): import("@cosmjs/proto-signing").EncodeObject; - approver({ value }: { - value: import("./warden.intent/module").Approver; - }): import("@cosmjs/proto-signing").EncodeObject; - queryActionsRequest({ value }: { - value: import("./warden.intent/module").QueryActionsRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParamsResponse({ value }: { - value: import("./warden.intent/module").MsgUpdateParamsResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - msgApproveActionResponse({ value }: { - value: import("./warden.intent/module").MsgApproveActionResponse; + action({ value }: { + value: import("./warden.intent/module").Action; }): import("@cosmjs/proto-signing").EncodeObject; - intent({ value }: { - value: import("./warden.intent/module").Intent; + msgRevokeAction({ value }: { + value: import("./warden.intent/module").MsgRevokeAction; }): import("@cosmjs/proto-signing").EncodeObject; queryParamsRequest({ value }: { value: import("./warden.intent/module").QueryParamsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryIntentsRequest({ value }: { - value: import("./warden.intent/module").QueryIntentsRequest; + queryIntentsResponse({ value }: { + value: import("./warden.intent/module").QueryIntentsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryActionByIdRequest({ value }: { - value: import("./warden.intent/module").QueryActionByIdRequest; + queryActionsByAddressResponse({ value }: { + value: import("./warden.intent/module").QueryActionsByAddressResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + msgApproveActionResponse({ value }: { + value: import("./warden.intent/module").MsgApproveActionResponse; }): import("@cosmjs/proto-signing").EncodeObject; msgNewIntent({ value }: { value: import("./warden.intent/module").MsgNewIntent; }): import("@cosmjs/proto-signing").EncodeObject; - action({ value }: { - value: import("./warden.intent/module").Action; - }): import("@cosmjs/proto-signing").EncodeObject; msgActionCreated({ value }: { value: import("./warden.intent/module").MsgActionCreated; }): import("@cosmjs/proto-signing").EncodeObject; - queryActionsByAddressRequest({ value }: { - value: import("./warden.intent/module").QueryActionsByAddressRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - queryActionByIdResponse({ value }: { - value: import("./warden.intent/module").QueryActionByIdResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - msgRevokeAction({ value }: { - value: import("./warden.intent/module").MsgRevokeAction; + approver({ value }: { + value: import("./warden.intent/module").Approver; }): import("@cosmjs/proto-signing").EncodeObject; genesisState({ value }: { value: import("./warden.intent/module").GenesisState; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParams({ value }: { - value: import("./warden.intent/module").MsgUpdateParams; + queryActionByIdRequest({ value }: { + value: import("./warden.intent/module").QueryActionByIdRequest; }): import("@cosmjs/proto-signing").EncodeObject; msgApproveAction({ value }: { value: import("./warden.intent/module").MsgApproveAction; @@ -6381,18 +6360,39 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ msgRevokeActionResponse({ value }: { value: import("./warden.intent/module").MsgRevokeActionResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsResponse({ value }: { - value: import("./warden.intent/module").QueryParamsResponse; - }): import("@cosmjs/proto-signing").EncodeObject; + intent({ value }: { + value: import("./warden.intent/module").Intent; + }): import("@cosmjs/proto-signing").EncodeObject; + msgUpdateParamsResponse({ value }: { + value: import("./warden.intent/module").MsgUpdateParamsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryParamsResponse({ value }: { + value: import("./warden.intent/module").QueryParamsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; queryActionsResponse({ value }: { value: import("./warden.intent/module").QueryActionsResponse; }): import("@cosmjs/proto-signing").EncodeObject; + params({ value }: { + value: import("./warden.intent/module").Params; + }): import("@cosmjs/proto-signing").EncodeObject; + queryActionsByAddressRequest({ value }: { + value: import("./warden.intent/module").QueryActionsByAddressRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryActionByIdResponse({ value }: { + value: import("./warden.intent/module").QueryActionByIdResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryActionsRequest({ value }: { + value: import("./warden.intent/module").QueryActionsRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryIntentsRequest({ value }: { + value: import("./warden.intent/module").QueryIntentsRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryIntentByIdRequest({ value }: { + value: import("./warden.intent/module").QueryIntentByIdRequest; + }): import("@cosmjs/proto-signing").EncodeObject; queryIntentByIdResponse({ value }: { value: import("./warden.intent/module").QueryIntentByIdResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryActionsByAddressResponse({ value }: { - value: import("./warden.intent/module").QueryActionsByAddressResponse; - }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; registry: [string, import("@cosmjs/proto-signing").GeneratedType][]; @@ -6402,63 +6402,63 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ WardenWardenV1Beta1: { query: import("./warden.warden.v1beta1/rest").Api; tx: { - sendMsgUpdateSpaceResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateSpaceResponse; + sendQueryKeychainByAddressRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QueryKeychainByAddressRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewSignTransactionRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgNewSignTransactionRequest; + sendQueryKeysRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QueryKeysRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeysResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QueryKeysResponse; + sendQuerySignTransactionRequestsRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParams({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateParams; + sendMsgUpdateKeyRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateKeyRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSpace({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").Space; + sendParams({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").Params; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSignTransactionRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").SignTransactionRequest; + sendQuerySpaceByAddressRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QuerySpaceByAddressRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeyRequestsResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QueryKeyRequestsResponse; + sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestByIdRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewKeyRequestResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgNewKeyRequestResponse; + sendMsgAddSpaceOwner({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgAddSpaceOwner; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewKeychain({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgNewKeychain; + sendMsgNewSignatureRequestResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgNewSignatureRequestResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSignRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").SignRequest; + sendQueryKeychainByAddressResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QueryKeychainByAddressResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewSpace({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgNewSpace; + sendQueryKeysResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QueryKeysResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateSpace({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateSpace; + sendMsgUpdateParams({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -6467,468 +6467,468 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewSignatureRequestResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgNewSignatureRequestResponse; + sendMsgUpdateSpaceResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateSpaceResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeyRequestByIdResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QueryKeyRequestByIdResponse; + sendMsgNewKeyRequestResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgNewKeyRequestResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewKeychainResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgNewKeychainResponse; + sendMsgUpdateKeyRequestResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateKeyRequestResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateKeychain({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateKeychain; + sendGenesisState({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeychainByAddressResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QueryKeychainByAddressResponse; + sendQuerySignatureRequestByIdRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QuerySignatureRequestByIdRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewSpaceResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgNewSpaceResponse; + sendSignTransactionRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").SignTransactionRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestByIdRequest; + sendMsgNewKey({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgNewKey; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgAddKeychainParty({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgAddKeychainParty; + sendMsgNewSignTransactionRequestResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgNewSignTransactionRequestResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").GenesisState; + sendMetadataEthereum({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MetadataEthereum; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendKey({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").Key; + sendQueryKeyRequestByIdResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QueryKeyRequestByIdResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeychainsResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QueryKeychainsResponse; + sendMsgAddSpaceOwnerResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgAddSpaceOwnerResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignatureRequestsRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QuerySignatureRequestsRequest; + sendQuerySignatureRequestsResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QuerySignatureRequestsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgAddSpaceOwnerResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgAddSpaceOwnerResponse; + sendQuerySignTransactionRequestsResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySpacesByOwnerRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QuerySpacesByOwnerRequest; + sendQuerySignatureRequestByIdResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QuerySignatureRequestByIdResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeyRequestByIdRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QueryKeyRequestByIdRequest; + sendMsgNewKeychain({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgNewKeychain; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignTransactionRequestsRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestsRequest; + sendMsgAddKeychainParty({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgAddKeychainParty; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgAddSpaceOwner({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgAddSpaceOwner; + sendMsgAddKeychainPartyResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgAddKeychainPartyResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewSignTransactionRequestResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgNewSignTransactionRequestResponse; + sendMsgFulfilSignatureRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgFulfilSignatureRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySpaceByAddressResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QuerySpaceByAddressResponse; + sendMsgNewSignTransactionRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgNewSignTransactionRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeyRequestsRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QueryKeyRequestsRequest; + sendQueryParamsResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QueryParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewSignatureRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgNewSignatureRequest; + sendWalletKeyResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").WalletKeyResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMetadataEthereum({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MetadataEthereum; + sendMsgNewKeychainResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgNewKeychainResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendKeyRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").KeyRequest; + sendMsgUpdateKeychainResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateKeychainResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySpaceByAddressRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QuerySpaceByAddressRequest; + sendQuerySpacesResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QuerySpacesResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewKey({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgNewKey; + sendQueryKeychainsRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QueryKeychainsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignatureRequestsResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QuerySignatureRequestsResponse; + sendQuerySpacesRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QuerySpacesRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgSignedData({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgSignedData; + sendMsgNewSpaceResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgNewSpaceResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgFulfilSignatureRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgFulfilSignatureRequest; + sendQueryParamsRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QueryParamsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeychainsRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QueryKeychainsRequest; + sendKeyResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").KeyResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeychainByAddressRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QueryKeychainByAddressRequest; + sendMsgNewSpace({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgNewSpace; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateParamsResponse; + sendMsgRemoveSpaceOwner({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgRemoveSpaceOwner; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateKeyRequestResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateKeyRequestResponse; + sendKeyRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").KeyRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgFulfilSignatureRequestResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgFulfilSignatureRequestResponse; + sendKeychainFees({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").KeychainFees; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendKeyResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").KeyResponse; + sendQuerySpaceByAddressResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QuerySpaceByAddressResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignTransactionRequestsResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestsResponse; + sendQuerySignatureRequestsRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QuerySignatureRequestsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignatureRequestByIdResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QuerySignatureRequestByIdResponse; + sendMsgFulfilSignatureRequestResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgFulfilSignatureRequestResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestByIdResponse; + sendSpace({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").Space; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgRemoveSpaceOwnerResponse; + sendQuerySpacesByOwnerRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QuerySpacesByOwnerRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateKeychainResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateKeychainResponse; + sendSignTransactionRequestResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").SignTransactionRequestResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendKeychainFees({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").KeychainFees; + sendMsgUpdateSpace({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateSpace; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySpacesRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QuerySpacesRequest; + sendQueryKeyRequestByIdRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QueryKeyRequestByIdRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgAddKeychainPartyResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgAddKeychainPartyResponse; + sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgRemoveSpaceOwnerResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySpacesResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QuerySpacesResponse; + sendMsgSignedData({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgSignedData; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendWalletKeyResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").WalletKeyResponse; + sendQueryKeyRequestsRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QueryKeyRequestsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignatureRequestByIdRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QuerySignatureRequestByIdRequest; + sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestByIdResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSignTransactionRequestResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").SignTransactionRequestResponse; + sendMsgUpdateParamsResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendKeychain({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").Keychain; + sendMsgNewSignatureRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgNewSignatureRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendParams({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").Params; + sendQueryKeyRequestsResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QueryKeyRequestsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeysRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QueryKeysRequest; + sendSignRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").SignRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateKeyRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateKeyRequest; + sendKeychain({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").Keychain; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRemoveSpaceOwner({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").MsgRemoveSpaceOwner; + sendQueryKeychainsResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").QueryKeychainsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QueryParamsRequest; + sendMsgUpdateKeychain({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateKeychain; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta1/module").QueryParamsResponse; + sendKey({ value, fee, memo }: { + value: import("./warden.warden.v1beta1/module").Key; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - msgUpdateSpaceResponse({ value }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateSpaceResponse; + queryKeychainByAddressRequest({ value }: { + value: import("./warden.warden.v1beta1/module").QueryKeychainByAddressRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewSignTransactionRequest({ value }: { - value: import("./warden.warden.v1beta1/module").MsgNewSignTransactionRequest; + queryKeysRequest({ value }: { + value: import("./warden.warden.v1beta1/module").QueryKeysRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryKeysResponse({ value }: { - value: import("./warden.warden.v1beta1/module").QueryKeysResponse; + querySignTransactionRequestsRequest({ value }: { + value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParams({ value }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateParams; + msgUpdateKeyRequest({ value }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateKeyRequest; }): import("@cosmjs/proto-signing").EncodeObject; - space({ value }: { - value: import("./warden.warden.v1beta1/module").Space; + params({ value }: { + value: import("./warden.warden.v1beta1/module").Params; }): import("@cosmjs/proto-signing").EncodeObject; - signTransactionRequest({ value }: { - value: import("./warden.warden.v1beta1/module").SignTransactionRequest; + querySpaceByAddressRequest({ value }: { + value: import("./warden.warden.v1beta1/module").QuerySpaceByAddressRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryKeyRequestsResponse({ value }: { - value: import("./warden.warden.v1beta1/module").QueryKeyRequestsResponse; + querySignTransactionRequestByIdRequest({ value }: { + value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestByIdRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewKeyRequestResponse({ value }: { - value: import("./warden.warden.v1beta1/module").MsgNewKeyRequestResponse; + msgAddSpaceOwner({ value }: { + value: import("./warden.warden.v1beta1/module").MsgAddSpaceOwner; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewKeychain({ value }: { - value: import("./warden.warden.v1beta1/module").MsgNewKeychain; + msgNewSignatureRequestResponse({ value }: { + value: import("./warden.warden.v1beta1/module").MsgNewSignatureRequestResponse; }): import("@cosmjs/proto-signing").EncodeObject; - signRequest({ value }: { - value: import("./warden.warden.v1beta1/module").SignRequest; + queryKeychainByAddressResponse({ value }: { + value: import("./warden.warden.v1beta1/module").QueryKeychainByAddressResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewSpace({ value }: { - value: import("./warden.warden.v1beta1/module").MsgNewSpace; + queryKeysResponse({ value }: { + value: import("./warden.warden.v1beta1/module").QueryKeysResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateSpace({ value }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateSpace; + msgUpdateParams({ value }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateParams; }): import("@cosmjs/proto-signing").EncodeObject; msgNewKeyRequest({ value }: { value: import("./warden.warden.v1beta1/module").MsgNewKeyRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewSignatureRequestResponse({ value }: { - value: import("./warden.warden.v1beta1/module").MsgNewSignatureRequestResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - queryKeyRequestByIdResponse({ value }: { - value: import("./warden.warden.v1beta1/module").QueryKeyRequestByIdResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - msgNewKeychainResponse({ value }: { - value: import("./warden.warden.v1beta1/module").MsgNewKeychainResponse; + msgUpdateSpaceResponse({ value }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateSpaceResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateKeychain({ value }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateKeychain; + msgNewKeyRequestResponse({ value }: { + value: import("./warden.warden.v1beta1/module").MsgNewKeyRequestResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryKeychainByAddressResponse({ value }: { - value: import("./warden.warden.v1beta1/module").QueryKeychainByAddressResponse; + msgUpdateKeyRequestResponse({ value }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateKeyRequestResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewSpaceResponse({ value }: { - value: import("./warden.warden.v1beta1/module").MsgNewSpaceResponse; + genesisState({ value }: { + value: import("./warden.warden.v1beta1/module").GenesisState; }): import("@cosmjs/proto-signing").EncodeObject; - querySignTransactionRequestByIdRequest({ value }: { - value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestByIdRequest; + querySignatureRequestByIdRequest({ value }: { + value: import("./warden.warden.v1beta1/module").QuerySignatureRequestByIdRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgAddKeychainParty({ value }: { - value: import("./warden.warden.v1beta1/module").MsgAddKeychainParty; + signTransactionRequest({ value }: { + value: import("./warden.warden.v1beta1/module").SignTransactionRequest; }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./warden.warden.v1beta1/module").GenesisState; + msgNewKey({ value }: { + value: import("./warden.warden.v1beta1/module").MsgNewKey; }): import("@cosmjs/proto-signing").EncodeObject; - key({ value }: { - value: import("./warden.warden.v1beta1/module").Key; + msgNewSignTransactionRequestResponse({ value }: { + value: import("./warden.warden.v1beta1/module").MsgNewSignTransactionRequestResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryKeychainsResponse({ value }: { - value: import("./warden.warden.v1beta1/module").QueryKeychainsResponse; + metadataEthereum({ value }: { + value: import("./warden.warden.v1beta1/module").MetadataEthereum; }): import("@cosmjs/proto-signing").EncodeObject; - querySignatureRequestsRequest({ value }: { - value: import("./warden.warden.v1beta1/module").QuerySignatureRequestsRequest; + queryKeyRequestByIdResponse({ value }: { + value: import("./warden.warden.v1beta1/module").QueryKeyRequestByIdResponse; }): import("@cosmjs/proto-signing").EncodeObject; msgAddSpaceOwnerResponse({ value }: { value: import("./warden.warden.v1beta1/module").MsgAddSpaceOwnerResponse; }): import("@cosmjs/proto-signing").EncodeObject; - querySpacesByOwnerRequest({ value }: { - value: import("./warden.warden.v1beta1/module").QuerySpacesByOwnerRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - queryKeyRequestByIdRequest({ value }: { - value: import("./warden.warden.v1beta1/module").QueryKeyRequestByIdRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - querySignTransactionRequestsRequest({ value }: { - value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestsRequest; + querySignatureRequestsResponse({ value }: { + value: import("./warden.warden.v1beta1/module").QuerySignatureRequestsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgAddSpaceOwner({ value }: { - value: import("./warden.warden.v1beta1/module").MsgAddSpaceOwner; + querySignTransactionRequestsResponse({ value }: { + value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewSignTransactionRequestResponse({ value }: { - value: import("./warden.warden.v1beta1/module").MsgNewSignTransactionRequestResponse; + querySignatureRequestByIdResponse({ value }: { + value: import("./warden.warden.v1beta1/module").QuerySignatureRequestByIdResponse; }): import("@cosmjs/proto-signing").EncodeObject; - querySpaceByAddressResponse({ value }: { - value: import("./warden.warden.v1beta1/module").QuerySpaceByAddressResponse; + msgNewKeychain({ value }: { + value: import("./warden.warden.v1beta1/module").MsgNewKeychain; }): import("@cosmjs/proto-signing").EncodeObject; - queryKeyRequestsRequest({ value }: { - value: import("./warden.warden.v1beta1/module").QueryKeyRequestsRequest; + msgAddKeychainParty({ value }: { + value: import("./warden.warden.v1beta1/module").MsgAddKeychainParty; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewSignatureRequest({ value }: { - value: import("./warden.warden.v1beta1/module").MsgNewSignatureRequest; + msgAddKeychainPartyResponse({ value }: { + value: import("./warden.warden.v1beta1/module").MsgAddKeychainPartyResponse; }): import("@cosmjs/proto-signing").EncodeObject; - metadataEthereum({ value }: { - value: import("./warden.warden.v1beta1/module").MetadataEthereum; + msgFulfilSignatureRequest({ value }: { + value: import("./warden.warden.v1beta1/module").MsgFulfilSignatureRequest; }): import("@cosmjs/proto-signing").EncodeObject; - keyRequest({ value }: { - value: import("./warden.warden.v1beta1/module").KeyRequest; + msgNewSignTransactionRequest({ value }: { + value: import("./warden.warden.v1beta1/module").MsgNewSignTransactionRequest; }): import("@cosmjs/proto-signing").EncodeObject; - querySpaceByAddressRequest({ value }: { - value: import("./warden.warden.v1beta1/module").QuerySpaceByAddressRequest; + queryParamsResponse({ value }: { + value: import("./warden.warden.v1beta1/module").QueryParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewKey({ value }: { - value: import("./warden.warden.v1beta1/module").MsgNewKey; + walletKeyResponse({ value }: { + value: import("./warden.warden.v1beta1/module").WalletKeyResponse; }): import("@cosmjs/proto-signing").EncodeObject; - querySignatureRequestsResponse({ value }: { - value: import("./warden.warden.v1beta1/module").QuerySignatureRequestsResponse; + msgNewKeychainResponse({ value }: { + value: import("./warden.warden.v1beta1/module").MsgNewKeychainResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgSignedData({ value }: { - value: import("./warden.warden.v1beta1/module").MsgSignedData; + msgUpdateKeychainResponse({ value }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateKeychainResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgFulfilSignatureRequest({ value }: { - value: import("./warden.warden.v1beta1/module").MsgFulfilSignatureRequest; + querySpacesResponse({ value }: { + value: import("./warden.warden.v1beta1/module").QuerySpacesResponse; }): import("@cosmjs/proto-signing").EncodeObject; queryKeychainsRequest({ value }: { value: import("./warden.warden.v1beta1/module").QueryKeychainsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryKeychainByAddressRequest({ value }: { - value: import("./warden.warden.v1beta1/module").QueryKeychainByAddressRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParamsResponse({ value }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateParamsResponse; + querySpacesRequest({ value }: { + value: import("./warden.warden.v1beta1/module").QuerySpacesRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateKeyRequestResponse({ value }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateKeyRequestResponse; + msgNewSpaceResponse({ value }: { + value: import("./warden.warden.v1beta1/module").MsgNewSpaceResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgFulfilSignatureRequestResponse({ value }: { - value: import("./warden.warden.v1beta1/module").MsgFulfilSignatureRequestResponse; + queryParamsRequest({ value }: { + value: import("./warden.warden.v1beta1/module").QueryParamsRequest; }): import("@cosmjs/proto-signing").EncodeObject; keyResponse({ value }: { value: import("./warden.warden.v1beta1/module").KeyResponse; }): import("@cosmjs/proto-signing").EncodeObject; - querySignTransactionRequestsResponse({ value }: { - value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestsResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - querySignatureRequestByIdResponse({ value }: { - value: import("./warden.warden.v1beta1/module").QuerySignatureRequestByIdResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - querySignTransactionRequestByIdResponse({ value }: { - value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestByIdResponse; + msgNewSpace({ value }: { + value: import("./warden.warden.v1beta1/module").MsgNewSpace; }): import("@cosmjs/proto-signing").EncodeObject; - msgRemoveSpaceOwnerResponse({ value }: { - value: import("./warden.warden.v1beta1/module").MsgRemoveSpaceOwnerResponse; + msgRemoveSpaceOwner({ value }: { + value: import("./warden.warden.v1beta1/module").MsgRemoveSpaceOwner; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateKeychainResponse({ value }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateKeychainResponse; + keyRequest({ value }: { + value: import("./warden.warden.v1beta1/module").KeyRequest; }): import("@cosmjs/proto-signing").EncodeObject; keychainFees({ value }: { value: import("./warden.warden.v1beta1/module").KeychainFees; }): import("@cosmjs/proto-signing").EncodeObject; - querySpacesRequest({ value }: { - value: import("./warden.warden.v1beta1/module").QuerySpacesRequest; + querySpaceByAddressResponse({ value }: { + value: import("./warden.warden.v1beta1/module").QuerySpaceByAddressResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgAddKeychainPartyResponse({ value }: { - value: import("./warden.warden.v1beta1/module").MsgAddKeychainPartyResponse; + querySignatureRequestsRequest({ value }: { + value: import("./warden.warden.v1beta1/module").QuerySignatureRequestsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - querySpacesResponse({ value }: { - value: import("./warden.warden.v1beta1/module").QuerySpacesResponse; + msgFulfilSignatureRequestResponse({ value }: { + value: import("./warden.warden.v1beta1/module").MsgFulfilSignatureRequestResponse; }): import("@cosmjs/proto-signing").EncodeObject; - walletKeyResponse({ value }: { - value: import("./warden.warden.v1beta1/module").WalletKeyResponse; + space({ value }: { + value: import("./warden.warden.v1beta1/module").Space; }): import("@cosmjs/proto-signing").EncodeObject; - querySignatureRequestByIdRequest({ value }: { - value: import("./warden.warden.v1beta1/module").QuerySignatureRequestByIdRequest; + querySpacesByOwnerRequest({ value }: { + value: import("./warden.warden.v1beta1/module").QuerySpacesByOwnerRequest; }): import("@cosmjs/proto-signing").EncodeObject; signTransactionRequestResponse({ value }: { value: import("./warden.warden.v1beta1/module").SignTransactionRequestResponse; }): import("@cosmjs/proto-signing").EncodeObject; - keychain({ value }: { - value: import("./warden.warden.v1beta1/module").Keychain; + msgUpdateSpace({ value }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateSpace; }): import("@cosmjs/proto-signing").EncodeObject; - params({ value }: { - value: import("./warden.warden.v1beta1/module").Params; + queryKeyRequestByIdRequest({ value }: { + value: import("./warden.warden.v1beta1/module").QueryKeyRequestByIdRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryKeysRequest({ value }: { - value: import("./warden.warden.v1beta1/module").QueryKeysRequest; + msgRemoveSpaceOwnerResponse({ value }: { + value: import("./warden.warden.v1beta1/module").MsgRemoveSpaceOwnerResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateKeyRequest({ value }: { - value: import("./warden.warden.v1beta1/module").MsgUpdateKeyRequest; + msgSignedData({ value }: { + value: import("./warden.warden.v1beta1/module").MsgSignedData; }): import("@cosmjs/proto-signing").EncodeObject; - msgRemoveSpaceOwner({ value }: { - value: import("./warden.warden.v1beta1/module").MsgRemoveSpaceOwner; + queryKeyRequestsRequest({ value }: { + value: import("./warden.warden.v1beta1/module").QueryKeyRequestsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsRequest({ value }: { - value: import("./warden.warden.v1beta1/module").QueryParamsRequest; + querySignTransactionRequestByIdResponse({ value }: { + value: import("./warden.warden.v1beta1/module").QuerySignTransactionRequestByIdResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsResponse({ value }: { - value: import("./warden.warden.v1beta1/module").QueryParamsResponse; + msgUpdateParamsResponse({ value }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateParamsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + msgNewSignatureRequest({ value }: { + value: import("./warden.warden.v1beta1/module").MsgNewSignatureRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryKeyRequestsResponse({ value }: { + value: import("./warden.warden.v1beta1/module").QueryKeyRequestsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + signRequest({ value }: { + value: import("./warden.warden.v1beta1/module").SignRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + keychain({ value }: { + value: import("./warden.warden.v1beta1/module").Keychain; + }): import("@cosmjs/proto-signing").EncodeObject; + queryKeychainsResponse({ value }: { + value: import("./warden.warden.v1beta1/module").QueryKeychainsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + msgUpdateKeychain({ value }: { + value: import("./warden.warden.v1beta1/module").MsgUpdateKeychain; + }): import("@cosmjs/proto-signing").EncodeObject; + key({ value }: { + value: import("./warden.warden.v1beta1/module").Key; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; @@ -6939,93 +6939,83 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ WardenWardenV1Beta2: { query: import("./warden.warden.v1beta2/rest").Api; tx: { - sendMsgNewKeychain({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgNewKeychain; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendMsgUpdateKeychain({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgUpdateKeychain; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendSpace({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").Space; + sendMsgNewSignTransactionRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgNewSignTransactionRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateKeychainResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgUpdateKeychainResponse; + sendQueryAllKeysRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QueryAllKeysRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySpacesByOwnerRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QuerySpacesByOwnerRequest; + sendQuerySignTransactionRequestsResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QuerySignTransactionRequestsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeyRequestsResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QueryKeyRequestsResponse; + sendMsgAddSpaceOwnerResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgAddSpaceOwnerResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSignTransactionRequestResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").SignTransactionRequestResponse; + sendMsgNewKeyRequestResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgNewKeyRequestResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRemoveSpaceOwner({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgRemoveSpaceOwner; + sendQuerySpacesRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QuerySpacesRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendKeyRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").KeyRequest; + sendQueryKeysResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QueryKeysResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewSignatureRequestResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgNewSignatureRequestResponse; + sendWalletKeyResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").WalletKeyResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeychainsRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QueryKeychainsRequest; + sendKeychain({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").Keychain; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeychainByIdRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QueryKeychainByIdRequest; + sendQuerySignatureRequestsResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QuerySignatureRequestsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgRemoveSpaceOwnerResponse; + sendSignTransactionRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").SignTransactionRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeychainsResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QueryKeychainsResponse; + sendSpace({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").Space; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeyRequestsRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QueryKeyRequestsRequest; + sendMsgAddKeychainPartyResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgAddKeychainPartyResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewKeyRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgNewKeyRequest; + sendKeyRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").KeyRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgAddSpaceOwner({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgAddSpaceOwner; + sendMsgNewKey({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgNewKey; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewSignatureRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgNewSignatureRequest; + sendMsgUpdateKeyRequestResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateKeyRequestResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -7034,48 +7024,28 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QuerySignTransactionRequestByIdRequest; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendKey({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").Key; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendKeychainFees({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").KeychainFees; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendQueryKeychainByIdResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QueryKeychainByIdResponse; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendMsgNewKeyRequestResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgNewKeyRequestResponse; + sendMsgNewSpaceResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgNewSpaceResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgAddKeychainPartyResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgAddKeychainPartyResponse; + sendMsgFulfilSignatureRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgFulfilSignatureRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateSpaceResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgUpdateSpaceResponse; + sendMsgNewKeychain({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgNewKeychain; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewSignTransactionRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgNewSignTransactionRequest; + sendQueryKeysBySpaceIdRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QueryKeysBySpaceIdRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendParams({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").Params; + sendGenesisState({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").GenesisState; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -7089,23 +7059,23 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewSpace({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgNewSpace; + sendQuerySignatureRequestByIdRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QuerySignatureRequestByIdRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendWalletKeyResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").WalletKeyResponse; + sendSignRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").SignRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateKeyRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgUpdateKeyRequest; + sendMsgAddKeychainParty({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgAddKeychainParty; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewSignTransactionRequestResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgNewSignTransactionRequestResponse; + sendMsgUpdateSpaceResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateSpaceResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -7114,48 +7084,48 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignatureRequestByIdRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QuerySignatureRequestByIdRequest; + sendMsgUpdateParamsResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateParamsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewKey({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgNewKey; + sendMsgUpdateKeyRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateKeyRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgAddKeychainParty({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgAddKeychainParty; + sendQueryKeychainsResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QueryKeychainsResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateKeyRequestResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgUpdateKeyRequestResponse; + sendQueryKeyRequestsRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QueryKeyRequestsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignTransactionRequestsRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QuerySignTransactionRequestsRequest; + sendQuerySignatureRequestByIdResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QuerySignatureRequestByIdResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignTransactionRequestsResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QuerySignTransactionRequestsResponse; + sendQuerySignTransactionRequestsRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QuerySignTransactionRequestsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendKeychain({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").Keychain; + sendMsgNewKeychainResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgNewKeychainResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignatureRequestsResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QuerySignatureRequestsResponse; + sendQuerySpacesByOwnerRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QuerySpacesByOwnerRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryParamsRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QueryParamsRequest; + sendMsgSignedData({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgSignedData; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -7164,83 +7134,78 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgFulfilSignatureRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgFulfilSignatureRequest; - fee?: import("@cosmjs/amino").StdFee; - memo?: string; - }): Promise; - sendMsgSignedData({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgSignedData; + sendQueryKeychainByIdRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QueryKeychainByIdRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeysRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QueryKeysRequest; + sendQueryKeyByIdRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QueryKeyByIdRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendGenesisState({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").GenesisState; + sendKey({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").Key; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgAddSpaceOwnerResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgAddSpaceOwnerResponse; + sendMsgNewKeyRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgNewKeyRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateSpace({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgUpdateSpace; + sendMsgNewSignatureRequestResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgNewSignatureRequestResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySpacesRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QuerySpacesRequest; + sendKeychainFees({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").KeychainFees; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeysResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QueryKeysResponse; + sendMsgAddSpaceOwner({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgAddSpaceOwner; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendKeyResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").KeyResponse; + sendMsgUpdateKey({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateKey; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSignTransactionRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").SignTransactionRequest; + sendQuerySpaceByIdResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QuerySpaceByIdResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewSpaceResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgNewSpaceResponse; + sendQueryKeyResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QueryKeyResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgNewKeychainResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgNewKeychainResponse; + sendQuerySignatureRequestsRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QuerySignatureRequestsRequest; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySpaceByIdResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QuerySpaceByIdResponse; + sendMsgUpdateParams({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateParams; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignatureRequestByIdResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QuerySignatureRequestByIdResponse; + sendMsgRemoveSpaceOwner({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgRemoveSpaceOwner; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendSignRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").SignRequest; + sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgRemoveSpaceOwnerResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgUpdateParamsResponse; + sendMsgUpdateSpace({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateSpace; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; @@ -7249,109 +7214,146 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQueryKeyRequestByIdResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QueryKeyRequestByIdResponse; + sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QuerySignTransactionRequestByIdResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignatureRequestsRequest({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QuerySignatureRequestsRequest; + sendParams({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").Params; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").QuerySignTransactionRequestByIdResponse; + sendMsgNewSpace({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgNewSpace; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - sendMsgUpdateParams({ value, fee, memo }: { - value: import("./warden.warden.v1beta2/module").MsgUpdateParams; + sendQueryKeychainByIdResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QueryKeychainByIdResponse; fee?: import("@cosmjs/amino").StdFee; memo?: string; }): Promise; - msgNewKeychain({ value }: { - value: import("./warden.warden.v1beta2/module").MsgNewKeychain; - }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateKeychain({ value }: { + sendQueryKeyRequestByIdResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QueryKeyRequestByIdResponse; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendSignTransactionRequestResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").SignTransactionRequestResponse; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendMsgUpdateKeychain({ value, fee, memo }: { value: import("./warden.warden.v1beta2/module").MsgUpdateKeychain; - }): import("@cosmjs/proto-signing").EncodeObject; - space({ value }: { - value: import("./warden.warden.v1beta2/module").Space; - }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateKeychainResponse({ value }: { + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendMsgNewSignatureRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgNewSignatureRequest; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendQueryKeychainsRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QueryKeychainsRequest; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendMsgNewSignTransactionRequestResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgNewSignTransactionRequestResponse; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendQueryParamsRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QueryParamsRequest; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendQueryKeyRequestsResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QueryKeyRequestsResponse; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").QuerySignTransactionRequestByIdRequest; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendMsgUpdateKeychainResponse({ value, fee, memo }: { value: import("./warden.warden.v1beta2/module").MsgUpdateKeychainResponse; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + sendMsgUpdateKeyResponse({ value, fee, memo }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateKeyResponse; + fee?: import("@cosmjs/amino").StdFee; + memo?: string; + }): Promise; + msgNewSignTransactionRequest({ value }: { + value: import("./warden.warden.v1beta2/module").MsgNewSignTransactionRequest; }): import("@cosmjs/proto-signing").EncodeObject; - querySpacesByOwnerRequest({ value }: { - value: import("./warden.warden.v1beta2/module").QuerySpacesByOwnerRequest; + queryAllKeysRequest({ value }: { + value: import("./warden.warden.v1beta2/module").QueryAllKeysRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryKeyRequestsResponse({ value }: { - value: import("./warden.warden.v1beta2/module").QueryKeyRequestsResponse; + querySignTransactionRequestsResponse({ value }: { + value: import("./warden.warden.v1beta2/module").QuerySignTransactionRequestsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - signTransactionRequestResponse({ value }: { - value: import("./warden.warden.v1beta2/module").SignTransactionRequestResponse; + msgAddSpaceOwnerResponse({ value }: { + value: import("./warden.warden.v1beta2/module").MsgAddSpaceOwnerResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgRemoveSpaceOwner({ value }: { - value: import("./warden.warden.v1beta2/module").MsgRemoveSpaceOwner; + msgNewKeyRequestResponse({ value }: { + value: import("./warden.warden.v1beta2/module").MsgNewKeyRequestResponse; }): import("@cosmjs/proto-signing").EncodeObject; - keyRequest({ value }: { - value: import("./warden.warden.v1beta2/module").KeyRequest; + querySpacesRequest({ value }: { + value: import("./warden.warden.v1beta2/module").QuerySpacesRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewSignatureRequestResponse({ value }: { - value: import("./warden.warden.v1beta2/module").MsgNewSignatureRequestResponse; + queryKeysResponse({ value }: { + value: import("./warden.warden.v1beta2/module").QueryKeysResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryKeychainsRequest({ value }: { - value: import("./warden.warden.v1beta2/module").QueryKeychainsRequest; + walletKeyResponse({ value }: { + value: import("./warden.warden.v1beta2/module").WalletKeyResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryKeychainByIdRequest({ value }: { - value: import("./warden.warden.v1beta2/module").QueryKeychainByIdRequest; + keychain({ value }: { + value: import("./warden.warden.v1beta2/module").Keychain; }): import("@cosmjs/proto-signing").EncodeObject; - msgRemoveSpaceOwnerResponse({ value }: { - value: import("./warden.warden.v1beta2/module").MsgRemoveSpaceOwnerResponse; + querySignatureRequestsResponse({ value }: { + value: import("./warden.warden.v1beta2/module").QuerySignatureRequestsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - queryKeychainsResponse({ value }: { - value: import("./warden.warden.v1beta2/module").QueryKeychainsResponse; + signTransactionRequest({ value }: { + value: import("./warden.warden.v1beta2/module").SignTransactionRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryKeyRequestsRequest({ value }: { - value: import("./warden.warden.v1beta2/module").QueryKeyRequestsRequest; + space({ value }: { + value: import("./warden.warden.v1beta2/module").Space; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewKeyRequest({ value }: { - value: import("./warden.warden.v1beta2/module").MsgNewKeyRequest; + msgAddKeychainPartyResponse({ value }: { + value: import("./warden.warden.v1beta2/module").MsgAddKeychainPartyResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgAddSpaceOwner({ value }: { - value: import("./warden.warden.v1beta2/module").MsgAddSpaceOwner; + keyRequest({ value }: { + value: import("./warden.warden.v1beta2/module").KeyRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewSignatureRequest({ value }: { - value: import("./warden.warden.v1beta2/module").MsgNewSignatureRequest; + msgNewKey({ value }: { + value: import("./warden.warden.v1beta2/module").MsgNewKey; + }): import("@cosmjs/proto-signing").EncodeObject; + msgUpdateKeyRequestResponse({ value }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateKeyRequestResponse; }): import("@cosmjs/proto-signing").EncodeObject; querySpacesResponse({ value }: { value: import("./warden.warden.v1beta2/module").QuerySpacesResponse; }): import("@cosmjs/proto-signing").EncodeObject; - querySignTransactionRequestByIdRequest({ value }: { - value: import("./warden.warden.v1beta2/module").QuerySignTransactionRequestByIdRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - key({ value }: { - value: import("./warden.warden.v1beta2/module").Key; - }): import("@cosmjs/proto-signing").EncodeObject; - keychainFees({ value }: { - value: import("./warden.warden.v1beta2/module").KeychainFees; - }): import("@cosmjs/proto-signing").EncodeObject; - queryKeychainByIdResponse({ value }: { - value: import("./warden.warden.v1beta2/module").QueryKeychainByIdResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - msgNewKeyRequestResponse({ value }: { - value: import("./warden.warden.v1beta2/module").MsgNewKeyRequestResponse; + msgNewSpaceResponse({ value }: { + value: import("./warden.warden.v1beta2/module").MsgNewSpaceResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgAddKeychainPartyResponse({ value }: { - value: import("./warden.warden.v1beta2/module").MsgAddKeychainPartyResponse; + msgFulfilSignatureRequest({ value }: { + value: import("./warden.warden.v1beta2/module").MsgFulfilSignatureRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateSpaceResponse({ value }: { - value: import("./warden.warden.v1beta2/module").MsgUpdateSpaceResponse; + msgNewKeychain({ value }: { + value: import("./warden.warden.v1beta2/module").MsgNewKeychain; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewSignTransactionRequest({ value }: { - value: import("./warden.warden.v1beta2/module").MsgNewSignTransactionRequest; + queryKeysBySpaceIdRequest({ value }: { + value: import("./warden.warden.v1beta2/module").QueryKeysBySpaceIdRequest; }): import("@cosmjs/proto-signing").EncodeObject; - params({ value }: { - value: import("./warden.warden.v1beta2/module").Params; + genesisState({ value }: { + value: import("./warden.warden.v1beta2/module").GenesisState; }): import("@cosmjs/proto-signing").EncodeObject; querySpaceByIdRequest({ value }: { value: import("./warden.warden.v1beta2/module").QuerySpaceByIdRequest; @@ -7359,113 +7361,143 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{ queryKeyRequestByIdRequest({ value }: { value: import("./warden.warden.v1beta2/module").QueryKeyRequestByIdRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewSpace({ value }: { - value: import("./warden.warden.v1beta2/module").MsgNewSpace; + querySignatureRequestByIdRequest({ value }: { + value: import("./warden.warden.v1beta2/module").QuerySignatureRequestByIdRequest; }): import("@cosmjs/proto-signing").EncodeObject; - walletKeyResponse({ value }: { - value: import("./warden.warden.v1beta2/module").WalletKeyResponse; + signRequest({ value }: { + value: import("./warden.warden.v1beta2/module").SignRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateKeyRequest({ value }: { - value: import("./warden.warden.v1beta2/module").MsgUpdateKeyRequest; + msgAddKeychainParty({ value }: { + value: import("./warden.warden.v1beta2/module").MsgAddKeychainParty; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewSignTransactionRequestResponse({ value }: { - value: import("./warden.warden.v1beta2/module").MsgNewSignTransactionRequestResponse; + msgUpdateSpaceResponse({ value }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateSpaceResponse; }): import("@cosmjs/proto-signing").EncodeObject; queryParamsResponse({ value }: { value: import("./warden.warden.v1beta2/module").QueryParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - querySignatureRequestByIdRequest({ value }: { - value: import("./warden.warden.v1beta2/module").QuerySignatureRequestByIdRequest; + msgUpdateParamsResponse({ value }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateParamsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewKey({ value }: { - value: import("./warden.warden.v1beta2/module").MsgNewKey; + msgUpdateKeyRequest({ value }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateKeyRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgAddKeychainParty({ value }: { - value: import("./warden.warden.v1beta2/module").MsgAddKeychainParty; + queryKeychainsResponse({ value }: { + value: import("./warden.warden.v1beta2/module").QueryKeychainsResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateKeyRequestResponse({ value }: { - value: import("./warden.warden.v1beta2/module").MsgUpdateKeyRequestResponse; + queryKeyRequestsRequest({ value }: { + value: import("./warden.warden.v1beta2/module").QueryKeyRequestsRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + querySignatureRequestByIdResponse({ value }: { + value: import("./warden.warden.v1beta2/module").QuerySignatureRequestByIdResponse; }): import("@cosmjs/proto-signing").EncodeObject; querySignTransactionRequestsRequest({ value }: { value: import("./warden.warden.v1beta2/module").QuerySignTransactionRequestsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - querySignTransactionRequestsResponse({ value }: { - value: import("./warden.warden.v1beta2/module").QuerySignTransactionRequestsResponse; - }): import("@cosmjs/proto-signing").EncodeObject; - keychain({ value }: { - value: import("./warden.warden.v1beta2/module").Keychain; + msgNewKeychainResponse({ value }: { + value: import("./warden.warden.v1beta2/module").MsgNewKeychainResponse; }): import("@cosmjs/proto-signing").EncodeObject; - querySignatureRequestsResponse({ value }: { - value: import("./warden.warden.v1beta2/module").QuerySignatureRequestsResponse; + querySpacesByOwnerRequest({ value }: { + value: import("./warden.warden.v1beta2/module").QuerySpacesByOwnerRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryParamsRequest({ value }: { - value: import("./warden.warden.v1beta2/module").QueryParamsRequest; + msgSignedData({ value }: { + value: import("./warden.warden.v1beta2/module").MsgSignedData; }): import("@cosmjs/proto-signing").EncodeObject; metadataEthereum({ value }: { value: import("./warden.warden.v1beta2/module").MetadataEthereum; }): import("@cosmjs/proto-signing").EncodeObject; - msgFulfilSignatureRequest({ value }: { - value: import("./warden.warden.v1beta2/module").MsgFulfilSignatureRequest; - }): import("@cosmjs/proto-signing").EncodeObject; - msgSignedData({ value }: { - value: import("./warden.warden.v1beta2/module").MsgSignedData; + queryKeychainByIdRequest({ value }: { + value: import("./warden.warden.v1beta2/module").QueryKeychainByIdRequest; }): import("@cosmjs/proto-signing").EncodeObject; - queryKeysRequest({ value }: { - value: import("./warden.warden.v1beta2/module").QueryKeysRequest; + queryKeyByIdRequest({ value }: { + value: import("./warden.warden.v1beta2/module").QueryKeyByIdRequest; }): import("@cosmjs/proto-signing").EncodeObject; - genesisState({ value }: { - value: import("./warden.warden.v1beta2/module").GenesisState; + key({ value }: { + value: import("./warden.warden.v1beta2/module").Key; }): import("@cosmjs/proto-signing").EncodeObject; - msgAddSpaceOwnerResponse({ value }: { - value: import("./warden.warden.v1beta2/module").MsgAddSpaceOwnerResponse; + msgNewKeyRequest({ value }: { + value: import("./warden.warden.v1beta2/module").MsgNewKeyRequest; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateSpace({ value }: { - value: import("./warden.warden.v1beta2/module").MsgUpdateSpace; + msgNewSignatureRequestResponse({ value }: { + value: import("./warden.warden.v1beta2/module").MsgNewSignatureRequestResponse; }): import("@cosmjs/proto-signing").EncodeObject; - querySpacesRequest({ value }: { - value: import("./warden.warden.v1beta2/module").QuerySpacesRequest; + keychainFees({ value }: { + value: import("./warden.warden.v1beta2/module").KeychainFees; }): import("@cosmjs/proto-signing").EncodeObject; - queryKeysResponse({ value }: { - value: import("./warden.warden.v1beta2/module").QueryKeysResponse; + msgAddSpaceOwner({ value }: { + value: import("./warden.warden.v1beta2/module").MsgAddSpaceOwner; }): import("@cosmjs/proto-signing").EncodeObject; - keyResponse({ value }: { - value: import("./warden.warden.v1beta2/module").KeyResponse; + msgUpdateKey({ value }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateKey; }): import("@cosmjs/proto-signing").EncodeObject; - signTransactionRequest({ value }: { - value: import("./warden.warden.v1beta2/module").SignTransactionRequest; + querySpaceByIdResponse({ value }: { + value: import("./warden.warden.v1beta2/module").QuerySpaceByIdResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewSpaceResponse({ value }: { - value: import("./warden.warden.v1beta2/module").MsgNewSpaceResponse; + queryKeyResponse({ value }: { + value: import("./warden.warden.v1beta2/module").QueryKeyResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgNewKeychainResponse({ value }: { - value: import("./warden.warden.v1beta2/module").MsgNewKeychainResponse; + querySignatureRequestsRequest({ value }: { + value: import("./warden.warden.v1beta2/module").QuerySignatureRequestsRequest; }): import("@cosmjs/proto-signing").EncodeObject; - querySpaceByIdResponse({ value }: { - value: import("./warden.warden.v1beta2/module").QuerySpaceByIdResponse; + msgUpdateParams({ value }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateParams; }): import("@cosmjs/proto-signing").EncodeObject; - querySignatureRequestByIdResponse({ value }: { - value: import("./warden.warden.v1beta2/module").QuerySignatureRequestByIdResponse; + msgRemoveSpaceOwner({ value }: { + value: import("./warden.warden.v1beta2/module").MsgRemoveSpaceOwner; }): import("@cosmjs/proto-signing").EncodeObject; - signRequest({ value }: { - value: import("./warden.warden.v1beta2/module").SignRequest; + msgRemoveSpaceOwnerResponse({ value }: { + value: import("./warden.warden.v1beta2/module").MsgRemoveSpaceOwnerResponse; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParamsResponse({ value }: { - value: import("./warden.warden.v1beta2/module").MsgUpdateParamsResponse; + msgUpdateSpace({ value }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateSpace; }): import("@cosmjs/proto-signing").EncodeObject; msgFulfilSignatureRequestResponse({ value }: { value: import("./warden.warden.v1beta2/module").MsgFulfilSignatureRequestResponse; }): import("@cosmjs/proto-signing").EncodeObject; + querySignTransactionRequestByIdResponse({ value }: { + value: import("./warden.warden.v1beta2/module").QuerySignTransactionRequestByIdResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + params({ value }: { + value: import("./warden.warden.v1beta2/module").Params; + }): import("@cosmjs/proto-signing").EncodeObject; + msgNewSpace({ value }: { + value: import("./warden.warden.v1beta2/module").MsgNewSpace; + }): import("@cosmjs/proto-signing").EncodeObject; + queryKeychainByIdResponse({ value }: { + value: import("./warden.warden.v1beta2/module").QueryKeychainByIdResponse; + }): import("@cosmjs/proto-signing").EncodeObject; queryKeyRequestByIdResponse({ value }: { value: import("./warden.warden.v1beta2/module").QueryKeyRequestByIdResponse; }): import("@cosmjs/proto-signing").EncodeObject; - querySignatureRequestsRequest({ value }: { - value: import("./warden.warden.v1beta2/module").QuerySignatureRequestsRequest; + signTransactionRequestResponse({ value }: { + value: import("./warden.warden.v1beta2/module").SignTransactionRequestResponse; }): import("@cosmjs/proto-signing").EncodeObject; - querySignTransactionRequestByIdResponse({ value }: { - value: import("./warden.warden.v1beta2/module").QuerySignTransactionRequestByIdResponse; + msgUpdateKeychain({ value }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateKeychain; }): import("@cosmjs/proto-signing").EncodeObject; - msgUpdateParams({ value }: { - value: import("./warden.warden.v1beta2/module").MsgUpdateParams; + msgNewSignatureRequest({ value }: { + value: import("./warden.warden.v1beta2/module").MsgNewSignatureRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryKeychainsRequest({ value }: { + value: import("./warden.warden.v1beta2/module").QueryKeychainsRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + msgNewSignTransactionRequestResponse({ value }: { + value: import("./warden.warden.v1beta2/module").MsgNewSignTransactionRequestResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + queryParamsRequest({ value }: { + value: import("./warden.warden.v1beta2/module").QueryParamsRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + queryKeyRequestsResponse({ value }: { + value: import("./warden.warden.v1beta2/module").QueryKeyRequestsResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + querySignTransactionRequestByIdRequest({ value }: { + value: import("./warden.warden.v1beta2/module").QuerySignTransactionRequestByIdRequest; + }): import("@cosmjs/proto-signing").EncodeObject; + msgUpdateKeychainResponse({ value }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateKeychainResponse; + }): import("@cosmjs/proto-signing").EncodeObject; + msgUpdateKeyResponse({ value }: { + value: import("./warden.warden.v1beta2/module").MsgUpdateKeyResponse; }): import("@cosmjs/proto-signing").EncodeObject; }; structure: Record; diff --git a/ts-client/lib/warden.intent/module.d.ts b/ts-client/lib/warden.intent/module.d.ts index 39fc4d2b1..8aedbfae1 100644 --- a/ts-client/lib/warden.intent/module.d.ts +++ b/ts-client/lib/warden.intent/module.d.ts @@ -2,65 +2,65 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { QueryIntentByIdRequest } from "./types/warden/intent/query"; -import { QueryIntentsResponse } from "./types/warden/intent/query"; +import { MsgUpdateParams } from "./types/warden/intent/tx"; import { MsgNewIntentResponse } from "./types/warden/intent/tx"; -import { Params } from "./types/warden/intent/params"; -import { Approver } from "./types/warden/intent/action"; -import { QueryActionsRequest } from "./types/warden/intent/query"; -import { MsgUpdateParamsResponse } from "./types/warden/intent/tx"; -import { MsgApproveActionResponse } from "./types/warden/intent/tx"; -import { Intent } from "./types/warden/intent/intent"; +import { Action } from "./types/warden/intent/action"; +import { MsgRevokeAction } from "./types/warden/intent/tx"; import { QueryParamsRequest } from "./types/warden/intent/query"; -import { QueryIntentsRequest } from "./types/warden/intent/query"; -import { QueryActionByIdRequest } from "./types/warden/intent/query"; +import { QueryIntentsResponse } from "./types/warden/intent/query"; +import { QueryActionsByAddressResponse } from "./types/warden/intent/query"; +import { MsgApproveActionResponse } from "./types/warden/intent/tx"; import { MsgNewIntent } from "./types/warden/intent/tx"; -import { Action } from "./types/warden/intent/action"; import { MsgActionCreated } from "./types/warden/intent/action"; -import { QueryActionsByAddressRequest } from "./types/warden/intent/query"; -import { QueryActionByIdResponse } from "./types/warden/intent/query"; -import { MsgRevokeAction } from "./types/warden/intent/tx"; +import { Approver } from "./types/warden/intent/action"; import { GenesisState } from "./types/warden/intent/genesis"; -import { MsgUpdateParams } from "./types/warden/intent/tx"; +import { QueryActionByIdRequest } from "./types/warden/intent/query"; import { MsgApproveAction } from "./types/warden/intent/tx"; import { MsgRevokeActionResponse } from "./types/warden/intent/tx"; +import { Intent } from "./types/warden/intent/intent"; +import { MsgUpdateParamsResponse } from "./types/warden/intent/tx"; import { QueryParamsResponse } from "./types/warden/intent/query"; import { QueryActionsResponse } from "./types/warden/intent/query"; +import { Params } from "./types/warden/intent/params"; +import { QueryActionsByAddressRequest } from "./types/warden/intent/query"; +import { QueryActionByIdResponse } from "./types/warden/intent/query"; +import { QueryActionsRequest } from "./types/warden/intent/query"; +import { QueryIntentsRequest } from "./types/warden/intent/query"; +import { QueryIntentByIdRequest } from "./types/warden/intent/query"; import { QueryIntentByIdResponse } from "./types/warden/intent/query"; -import { QueryActionsByAddressResponse } from "./types/warden/intent/query"; -export { QueryIntentByIdRequest, QueryIntentsResponse, MsgNewIntentResponse, Params, Approver, QueryActionsRequest, MsgUpdateParamsResponse, MsgApproveActionResponse, Intent, QueryParamsRequest, QueryIntentsRequest, QueryActionByIdRequest, MsgNewIntent, Action, MsgActionCreated, QueryActionsByAddressRequest, QueryActionByIdResponse, MsgRevokeAction, GenesisState, MsgUpdateParams, MsgApproveAction, MsgRevokeActionResponse, QueryParamsResponse, QueryActionsResponse, QueryIntentByIdResponse, QueryActionsByAddressResponse }; -type sendQueryIntentByIdRequestParams = { - value: QueryIntentByIdRequest; +export { MsgUpdateParams, MsgNewIntentResponse, Action, MsgRevokeAction, QueryParamsRequest, QueryIntentsResponse, QueryActionsByAddressResponse, MsgApproveActionResponse, MsgNewIntent, MsgActionCreated, Approver, GenesisState, QueryActionByIdRequest, MsgApproveAction, MsgRevokeActionResponse, Intent, MsgUpdateParamsResponse, QueryParamsResponse, QueryActionsResponse, Params, QueryActionsByAddressRequest, QueryActionByIdResponse, QueryActionsRequest, QueryIntentsRequest, QueryIntentByIdRequest, QueryIntentByIdResponse }; +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams; fee?: StdFee; memo?: string; }; -type sendQueryIntentsResponseParams = { - value: QueryIntentsResponse; +type sendMsgNewIntentResponseParams = { + value: MsgNewIntentResponse; fee?: StdFee; memo?: string; }; -type sendMsgNewIntentResponseParams = { - value: MsgNewIntentResponse; +type sendActionParams = { + value: Action; fee?: StdFee; memo?: string; }; -type sendParamsParams = { - value: Params; +type sendMsgRevokeActionParams = { + value: MsgRevokeAction; fee?: StdFee; memo?: string; }; -type sendApproverParams = { - value: Approver; +type sendQueryParamsRequestParams = { + value: QueryParamsRequest; fee?: StdFee; memo?: string; }; -type sendQueryActionsRequestParams = { - value: QueryActionsRequest; +type sendQueryIntentsResponseParams = { + value: QueryIntentsResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type sendQueryActionsByAddressResponseParams = { + value: QueryActionsByAddressResponse; fee?: StdFee; memo?: string; }; @@ -69,18 +69,23 @@ type sendMsgApproveActionResponseParams = { fee?: StdFee; memo?: string; }; -type sendIntentParams = { - value: Intent; +type sendMsgNewIntentParams = { + value: MsgNewIntent; fee?: StdFee; memo?: string; }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest; +type sendMsgActionCreatedParams = { + value: MsgActionCreated; fee?: StdFee; memo?: string; }; -type sendQueryIntentsRequestParams = { - value: QueryIntentsRequest; +type sendApproverParams = { + value: Approver; + fee?: StdFee; + memo?: string; +}; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; @@ -89,63 +94,63 @@ type sendQueryActionByIdRequestParams = { fee?: StdFee; memo?: string; }; -type sendMsgNewIntentParams = { - value: MsgNewIntent; +type sendMsgApproveActionParams = { + value: MsgApproveAction; fee?: StdFee; memo?: string; }; -type sendActionParams = { - value: Action; +type sendMsgRevokeActionResponseParams = { + value: MsgRevokeActionResponse; fee?: StdFee; memo?: string; }; -type sendMsgActionCreatedParams = { - value: MsgActionCreated; +type sendIntentParams = { + value: Intent; fee?: StdFee; memo?: string; }; -type sendQueryActionsByAddressRequestParams = { - value: QueryActionsByAddressRequest; +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; fee?: StdFee; memo?: string; }; -type sendQueryActionByIdResponseParams = { - value: QueryActionByIdResponse; +type sendQueryParamsResponseParams = { + value: QueryParamsResponse; fee?: StdFee; memo?: string; }; -type sendMsgRevokeActionParams = { - value: MsgRevokeAction; +type sendQueryActionsResponseParams = { + value: QueryActionsResponse; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendParamsParams = { + value: Params; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams; +type sendQueryActionsByAddressRequestParams = { + value: QueryActionsByAddressRequest; fee?: StdFee; memo?: string; }; -type sendMsgApproveActionParams = { - value: MsgApproveAction; +type sendQueryActionByIdResponseParams = { + value: QueryActionByIdResponse; fee?: StdFee; memo?: string; }; -type sendMsgRevokeActionResponseParams = { - value: MsgRevokeActionResponse; +type sendQueryActionsRequestParams = { + value: QueryActionsRequest; fee?: StdFee; memo?: string; }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse; +type sendQueryIntentsRequestParams = { + value: QueryIntentsRequest; fee?: StdFee; memo?: string; }; -type sendQueryActionsResponseParams = { - value: QueryActionsResponse; +type sendQueryIntentByIdRequestParams = { + value: QueryIntentByIdRequest; fee?: StdFee; memo?: string; }; @@ -154,70 +159,44 @@ type sendQueryIntentByIdResponseParams = { fee?: StdFee; memo?: string; }; -type sendQueryActionsByAddressResponseParams = { - value: QueryActionsByAddressResponse; - fee?: StdFee; - memo?: string; -}; -type queryIntentByIdRequestParams = { - value: QueryIntentByIdRequest; -}; -type queryIntentsResponseParams = { - value: QueryIntentsResponse; +type msgUpdateParamsParams = { + value: MsgUpdateParams; }; type msgNewIntentResponseParams = { value: MsgNewIntentResponse; }; -type paramsParams = { - value: Params; -}; -type approverParams = { - value: Approver; -}; -type queryActionsRequestParams = { - value: QueryActionsRequest; -}; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; -}; -type msgApproveActionResponseParams = { - value: MsgApproveActionResponse; +type actionParams = { + value: Action; }; -type intentParams = { - value: Intent; +type msgRevokeActionParams = { + value: MsgRevokeAction; }; type queryParamsRequestParams = { value: QueryParamsRequest; }; -type queryIntentsRequestParams = { - value: QueryIntentsRequest; +type queryIntentsResponseParams = { + value: QueryIntentsResponse; }; -type queryActionByIdRequestParams = { - value: QueryActionByIdRequest; +type queryActionsByAddressResponseParams = { + value: QueryActionsByAddressResponse; +}; +type msgApproveActionResponseParams = { + value: MsgApproveActionResponse; }; type msgNewIntentParams = { value: MsgNewIntent; }; -type actionParams = { - value: Action; -}; type msgActionCreatedParams = { value: MsgActionCreated; }; -type queryActionsByAddressRequestParams = { - value: QueryActionsByAddressRequest; -}; -type queryActionByIdResponseParams = { - value: QueryActionByIdResponse; -}; -type msgRevokeActionParams = { - value: MsgRevokeAction; +type approverParams = { + value: Approver; }; type genesisStateParams = { value: GenesisState; }; -type msgUpdateParamsParams = { - value: MsgUpdateParams; +type queryActionByIdRequestParams = { + value: QueryActionByIdRequest; }; type msgApproveActionParams = { value: MsgApproveAction; @@ -225,18 +204,39 @@ type msgApproveActionParams = { type msgRevokeActionResponseParams = { value: MsgRevokeActionResponse; }; +type intentParams = { + value: Intent; +}; +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; +}; type queryParamsResponseParams = { value: QueryParamsResponse; }; type queryActionsResponseParams = { value: QueryActionsResponse; }; +type paramsParams = { + value: Params; +}; +type queryActionsByAddressRequestParams = { + value: QueryActionsByAddressRequest; +}; +type queryActionByIdResponseParams = { + value: QueryActionByIdResponse; +}; +type queryActionsRequestParams = { + value: QueryActionsRequest; +}; +type queryIntentsRequestParams = { + value: QueryIntentsRequest; +}; +type queryIntentByIdRequestParams = { + value: QueryIntentByIdRequest; +}; type queryIntentByIdResponseParams = { value: QueryIntentByIdResponse; }; -type queryActionsByAddressResponseParams = { - value: QueryActionsByAddressResponse; -}; export declare const registry: Registry; interface TxClientOptions { addr: string; @@ -244,58 +244,58 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendQueryIntentByIdRequest({ value, fee, memo }: sendQueryIntentByIdRequestParams): Promise; - sendQueryIntentsResponse({ value, fee, memo }: sendQueryIntentsResponseParams): Promise; + sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; sendMsgNewIntentResponse({ value, fee, memo }: sendMsgNewIntentResponseParams): Promise; - sendParams({ value, fee, memo }: sendParamsParams): Promise; - sendApprover({ value, fee, memo }: sendApproverParams): Promise; - sendQueryActionsRequest({ value, fee, memo }: sendQueryActionsRequestParams): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; - sendMsgApproveActionResponse({ value, fee, memo }: sendMsgApproveActionResponseParams): Promise; - sendIntent({ value, fee, memo }: sendIntentParams): Promise; + sendAction({ value, fee, memo }: sendActionParams): Promise; + sendMsgRevokeAction({ value, fee, memo }: sendMsgRevokeActionParams): Promise; sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; - sendQueryIntentsRequest({ value, fee, memo }: sendQueryIntentsRequestParams): Promise; - sendQueryActionByIdRequest({ value, fee, memo }: sendQueryActionByIdRequestParams): Promise; + sendQueryIntentsResponse({ value, fee, memo }: sendQueryIntentsResponseParams): Promise; + sendQueryActionsByAddressResponse({ value, fee, memo }: sendQueryActionsByAddressResponseParams): Promise; + sendMsgApproveActionResponse({ value, fee, memo }: sendMsgApproveActionResponseParams): Promise; sendMsgNewIntent({ value, fee, memo }: sendMsgNewIntentParams): Promise; - sendAction({ value, fee, memo }: sendActionParams): Promise; sendMsgActionCreated({ value, fee, memo }: sendMsgActionCreatedParams): Promise; - sendQueryActionsByAddressRequest({ value, fee, memo }: sendQueryActionsByAddressRequestParams): Promise; - sendQueryActionByIdResponse({ value, fee, memo }: sendQueryActionByIdResponseParams): Promise; - sendMsgRevokeAction({ value, fee, memo }: sendMsgRevokeActionParams): Promise; + sendApprover({ value, fee, memo }: sendApproverParams): Promise; sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; + sendQueryActionByIdRequest({ value, fee, memo }: sendQueryActionByIdRequestParams): Promise; sendMsgApproveAction({ value, fee, memo }: sendMsgApproveActionParams): Promise; sendMsgRevokeActionResponse({ value, fee, memo }: sendMsgRevokeActionResponseParams): Promise; + sendIntent({ value, fee, memo }: sendIntentParams): Promise; + sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; sendQueryActionsResponse({ value, fee, memo }: sendQueryActionsResponseParams): Promise; + sendParams({ value, fee, memo }: sendParamsParams): Promise; + sendQueryActionsByAddressRequest({ value, fee, memo }: sendQueryActionsByAddressRequestParams): Promise; + sendQueryActionByIdResponse({ value, fee, memo }: sendQueryActionByIdResponseParams): Promise; + sendQueryActionsRequest({ value, fee, memo }: sendQueryActionsRequestParams): Promise; + sendQueryIntentsRequest({ value, fee, memo }: sendQueryIntentsRequestParams): Promise; + sendQueryIntentByIdRequest({ value, fee, memo }: sendQueryIntentByIdRequestParams): Promise; sendQueryIntentByIdResponse({ value, fee, memo }: sendQueryIntentByIdResponseParams): Promise; - sendQueryActionsByAddressResponse({ value, fee, memo }: sendQueryActionsByAddressResponseParams): Promise; - queryIntentByIdRequest({ value }: queryIntentByIdRequestParams): EncodeObject; - queryIntentsResponse({ value }: queryIntentsResponseParams): EncodeObject; + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; msgNewIntentResponse({ value }: msgNewIntentResponseParams): EncodeObject; - params({ value }: paramsParams): EncodeObject; - approver({ value }: approverParams): EncodeObject; - queryActionsRequest({ value }: queryActionsRequestParams): EncodeObject; - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; - msgApproveActionResponse({ value }: msgApproveActionResponseParams): EncodeObject; - intent({ value }: intentParams): EncodeObject; + action({ value }: actionParams): EncodeObject; + msgRevokeAction({ value }: msgRevokeActionParams): EncodeObject; queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; - queryIntentsRequest({ value }: queryIntentsRequestParams): EncodeObject; - queryActionByIdRequest({ value }: queryActionByIdRequestParams): EncodeObject; + queryIntentsResponse({ value }: queryIntentsResponseParams): EncodeObject; + queryActionsByAddressResponse({ value }: queryActionsByAddressResponseParams): EncodeObject; + msgApproveActionResponse({ value }: msgApproveActionResponseParams): EncodeObject; msgNewIntent({ value }: msgNewIntentParams): EncodeObject; - action({ value }: actionParams): EncodeObject; msgActionCreated({ value }: msgActionCreatedParams): EncodeObject; - queryActionsByAddressRequest({ value }: queryActionsByAddressRequestParams): EncodeObject; - queryActionByIdResponse({ value }: queryActionByIdResponseParams): EncodeObject; - msgRevokeAction({ value }: msgRevokeActionParams): EncodeObject; + approver({ value }: approverParams): EncodeObject; genesisState({ value }: genesisStateParams): EncodeObject; - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; + queryActionByIdRequest({ value }: queryActionByIdRequestParams): EncodeObject; msgApproveAction({ value }: msgApproveActionParams): EncodeObject; msgRevokeActionResponse({ value }: msgRevokeActionResponseParams): EncodeObject; + intent({ value }: intentParams): EncodeObject; + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; queryActionsResponse({ value }: queryActionsResponseParams): EncodeObject; + params({ value }: paramsParams): EncodeObject; + queryActionsByAddressRequest({ value }: queryActionsByAddressRequestParams): EncodeObject; + queryActionByIdResponse({ value }: queryActionByIdResponseParams): EncodeObject; + queryActionsRequest({ value }: queryActionsRequestParams): EncodeObject; + queryIntentsRequest({ value }: queryIntentsRequestParams): EncodeObject; + queryIntentByIdRequest({ value }: queryIntentByIdRequestParams): EncodeObject; queryIntentByIdResponse({ value }: queryIntentByIdResponseParams): EncodeObject; - queryActionsByAddressResponse({ value }: queryActionsByAddressResponseParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/warden.intent/module.js b/ts-client/lib/warden.intent/module.js index 966b6ec2f..955876c0c 100644 --- a/ts-client/lib/warden.intent/module.js +++ b/ts-client/lib/warden.intent/module.js @@ -3,33 +3,33 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { QueryIntentByIdRequest } from "./types/warden/intent/query"; -import { QueryIntentsResponse } from "./types/warden/intent/query"; +import { MsgUpdateParams } from "./types/warden/intent/tx"; import { MsgNewIntentResponse } from "./types/warden/intent/tx"; -import { Params } from "./types/warden/intent/params"; -import { Approver } from "./types/warden/intent/action"; -import { QueryActionsRequest } from "./types/warden/intent/query"; -import { MsgUpdateParamsResponse } from "./types/warden/intent/tx"; -import { MsgApproveActionResponse } from "./types/warden/intent/tx"; -import { Intent } from "./types/warden/intent/intent"; +import { Action } from "./types/warden/intent/action"; +import { MsgRevokeAction } from "./types/warden/intent/tx"; import { QueryParamsRequest } from "./types/warden/intent/query"; -import { QueryIntentsRequest } from "./types/warden/intent/query"; -import { QueryActionByIdRequest } from "./types/warden/intent/query"; +import { QueryIntentsResponse } from "./types/warden/intent/query"; +import { QueryActionsByAddressResponse } from "./types/warden/intent/query"; +import { MsgApproveActionResponse } from "./types/warden/intent/tx"; import { MsgNewIntent } from "./types/warden/intent/tx"; -import { Action } from "./types/warden/intent/action"; import { MsgActionCreated } from "./types/warden/intent/action"; -import { QueryActionsByAddressRequest } from "./types/warden/intent/query"; -import { QueryActionByIdResponse } from "./types/warden/intent/query"; -import { MsgRevokeAction } from "./types/warden/intent/tx"; +import { Approver } from "./types/warden/intent/action"; import { GenesisState } from "./types/warden/intent/genesis"; -import { MsgUpdateParams } from "./types/warden/intent/tx"; +import { QueryActionByIdRequest } from "./types/warden/intent/query"; import { MsgApproveAction } from "./types/warden/intent/tx"; import { MsgRevokeActionResponse } from "./types/warden/intent/tx"; +import { Intent } from "./types/warden/intent/intent"; +import { MsgUpdateParamsResponse } from "./types/warden/intent/tx"; import { QueryParamsResponse } from "./types/warden/intent/query"; import { QueryActionsResponse } from "./types/warden/intent/query"; +import { Params } from "./types/warden/intent/params"; +import { QueryActionsByAddressRequest } from "./types/warden/intent/query"; +import { QueryActionByIdResponse } from "./types/warden/intent/query"; +import { QueryActionsRequest } from "./types/warden/intent/query"; +import { QueryIntentsRequest } from "./types/warden/intent/query"; +import { QueryIntentByIdRequest } from "./types/warden/intent/query"; import { QueryIntentByIdResponse } from "./types/warden/intent/query"; -import { QueryActionsByAddressResponse } from "./types/warden/intent/query"; -export { QueryIntentByIdRequest, QueryIntentsResponse, MsgNewIntentResponse, Params, Approver, QueryActionsRequest, MsgUpdateParamsResponse, MsgApproveActionResponse, Intent, QueryParamsRequest, QueryIntentsRequest, QueryActionByIdRequest, MsgNewIntent, Action, MsgActionCreated, QueryActionsByAddressRequest, QueryActionByIdResponse, MsgRevokeAction, GenesisState, MsgUpdateParams, MsgApproveAction, MsgRevokeActionResponse, QueryParamsResponse, QueryActionsResponse, QueryIntentByIdResponse, QueryActionsByAddressResponse }; +export { MsgUpdateParams, MsgNewIntentResponse, Action, MsgRevokeAction, QueryParamsRequest, QueryIntentsResponse, QueryActionsByAddressResponse, MsgApproveActionResponse, MsgNewIntent, MsgActionCreated, Approver, GenesisState, QueryActionByIdRequest, MsgApproveAction, MsgRevokeActionResponse, Intent, MsgUpdateParamsResponse, QueryParamsResponse, QueryActionsResponse, Params, QueryActionsByAddressRequest, QueryActionByIdResponse, QueryActionsRequest, QueryIntentsRequest, QueryIntentByIdRequest, QueryIntentByIdResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -45,102 +45,102 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendQueryIntentByIdRequest({ value, fee, memo }) { + async sendMsgUpdateParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryIntentByIdRequest: 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.queryIntentByIdRequest({ value: QueryIntentByIdRequest.fromPartial(value) }); + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryIntentByIdRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); } }, - async sendQueryIntentsResponse({ value, fee, memo }) { + async sendMsgNewIntentResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryIntentsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewIntentResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryIntentsResponse({ value: QueryIntentsResponse.fromPartial(value) }); + let msg = this.msgNewIntentResponse({ value: MsgNewIntentResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryIntentsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewIntentResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewIntentResponse({ value, fee, memo }) { + async sendAction({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewIntentResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendAction: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewIntentResponse({ value: MsgNewIntentResponse.fromPartial(value) }); + let msg = this.action({ value: Action.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewIntentResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendAction: Could not broadcast Tx: ' + e.message); } }, - async sendParams({ value, fee, memo }) { + async sendMsgRevokeAction({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgRevokeAction: Unable to 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.msgRevokeAction({ value: MsgRevokeAction.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRevokeAction: Could not broadcast Tx: ' + e.message); } }, - async sendApprover({ value, fee, memo }) { + async sendQueryParamsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendApprover: 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.approver({ value: Approver.fromPartial(value) }); + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendApprover: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryActionsRequest({ value, fee, memo }) { + async sendQueryIntentsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryActionsRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryIntentsResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryActionsRequest({ value: QueryActionsRequest.fromPartial(value) }); + let msg = this.queryIntentsResponse({ value: QueryIntentsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryActionsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryIntentsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }) { + async sendQueryActionsByAddressResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryActionsByAddressResponse: Unable to 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.queryActionsByAddressResponse({ value: QueryActionsByAddressResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryActionsByAddressResponse: Could not broadcast Tx: ' + e.message); } }, async sendMsgApproveActionResponse({ value, fee, memo }) { @@ -157,312 +157,312 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgApproveActionResponse: Could not broadcast Tx: ' + e.message); } }, - async sendIntent({ value, fee, memo }) { + async sendMsgNewIntent({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendIntent: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewIntent: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.intent({ value: Intent.fromPartial(value) }); + let msg = this.msgNewIntent({ value: MsgNewIntent.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendIntent: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewIntent: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsRequest({ value, fee, memo }) { + async sendMsgActionCreated({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgActionCreated: Unable to 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.msgActionCreated({ value: MsgActionCreated.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgActionCreated: Could not broadcast Tx: ' + e.message); } }, - async sendQueryIntentsRequest({ value, fee, memo }) { + async sendApprover({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryIntentsRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendApprover: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryIntentsRequest({ value: QueryIntentsRequest.fromPartial(value) }); + let msg = this.approver({ value: Approver.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryIntentsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendApprover: Could not broadcast Tx: ' + e.message); } }, - async sendQueryActionByIdRequest({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryActionByIdRequest: 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.queryActionByIdRequest({ value: QueryActionByIdRequest.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryActionByIdRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewIntent({ value, fee, memo }) { + async sendQueryActionByIdRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewIntent: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryActionByIdRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewIntent({ value: MsgNewIntent.fromPartial(value) }); + let msg = this.queryActionByIdRequest({ value: QueryActionByIdRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewIntent: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryActionByIdRequest: Could not broadcast Tx: ' + e.message); } }, - async sendAction({ value, fee, memo }) { + async sendMsgApproveAction({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendAction: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgApproveAction: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.action({ value: Action.fromPartial(value) }); + let msg = this.msgApproveAction({ value: MsgApproveAction.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendAction: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgApproveAction: Could not broadcast Tx: ' + e.message); } }, - async sendMsgActionCreated({ value, fee, memo }) { + async sendMsgRevokeActionResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgActionCreated: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgRevokeActionResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgActionCreated({ value: MsgActionCreated.fromPartial(value) }); + let msg = this.msgRevokeActionResponse({ value: MsgRevokeActionResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgActionCreated: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRevokeActionResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryActionsByAddressRequest({ value, fee, memo }) { + async sendIntent({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryActionsByAddressRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendIntent: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryActionsByAddressRequest({ value: QueryActionsByAddressRequest.fromPartial(value) }); + let msg = this.intent({ value: Intent.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryActionsByAddressRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendIntent: Could not broadcast Tx: ' + e.message); } }, - async sendQueryActionByIdResponse({ value, fee, memo }) { + async sendMsgUpdateParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryActionByIdResponse: 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.queryActionByIdResponse({ value: QueryActionByIdResponse.fromPartial(value) }); + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryActionByIdResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRevokeAction({ value, fee, memo }) { + async sendQueryParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRevokeAction: 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.msgRevokeAction({ value: MsgRevokeAction.fromPartial(value) }); + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRevokeAction: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendQueryActionsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryActionsResponse: Unable to 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.queryActionsResponse({ value: QueryActionsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryActionsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParams({ value, fee, memo }) { + async sendParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: 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.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); + let msg = this.params({ value: Params.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); } }, - async sendMsgApproveAction({ value, fee, memo }) { + async sendQueryActionsByAddressRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgApproveAction: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryActionsByAddressRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgApproveAction({ value: MsgApproveAction.fromPartial(value) }); + let msg = this.queryActionsByAddressRequest({ value: QueryActionsByAddressRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgApproveAction: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryActionsByAddressRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRevokeActionResponse({ value, fee, memo }) { + async sendQueryActionByIdResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRevokeActionResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryActionByIdResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgRevokeActionResponse({ value: MsgRevokeActionResponse.fromPartial(value) }); + let msg = this.queryActionByIdResponse({ value: QueryActionByIdResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRevokeActionResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryActionByIdResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsResponse({ value, fee, memo }) { + async sendQueryActionsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryActionsRequest: Unable to 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.queryActionsRequest({ value: QueryActionsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryActionsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryActionsResponse({ value, fee, memo }) { + async sendQueryIntentsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryActionsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryIntentsRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryActionsResponse({ value: QueryActionsResponse.fromPartial(value) }); + let msg = this.queryIntentsRequest({ value: QueryIntentsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryActionsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryIntentsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryIntentByIdResponse({ value, fee, memo }) { + async sendQueryIntentByIdRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryIntentByIdResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryIntentByIdRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryIntentByIdResponse({ value: QueryIntentByIdResponse.fromPartial(value) }); + let msg = this.queryIntentByIdRequest({ value: QueryIntentByIdRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryIntentByIdResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryIntentByIdRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryActionsByAddressResponse({ value, fee, memo }) { + async sendQueryIntentByIdResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryActionsByAddressResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryIntentByIdResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryActionsByAddressResponse({ value: QueryActionsByAddressResponse.fromPartial(value) }); + let msg = this.queryIntentByIdResponse({ value: QueryIntentByIdResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryActionsByAddressResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryIntentByIdResponse: Could not broadcast Tx: ' + e.message); } }, - queryIntentByIdRequest({ value }) { + msgUpdateParams({ value }) { try { - return { typeUrl: "/warden.intent.QueryIntentByIdRequest", value: QueryIntentByIdRequest.fromPartial(value) }; + return { typeUrl: "/warden.intent.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryIntentByIdRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); } }, - queryIntentsResponse({ value }) { + msgNewIntentResponse({ value }) { try { - return { typeUrl: "/warden.intent.QueryIntentsResponse", value: QueryIntentsResponse.fromPartial(value) }; + return { typeUrl: "/warden.intent.MsgNewIntentResponse", value: MsgNewIntentResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryIntentsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewIntentResponse: Could not create message: ' + e.message); } }, - msgNewIntentResponse({ value }) { + action({ value }) { try { - return { typeUrl: "/warden.intent.MsgNewIntentResponse", value: MsgNewIntentResponse.fromPartial(value) }; + return { typeUrl: "/warden.intent.Action", value: Action.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewIntentResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Action: Could not create message: ' + e.message); } }, - params({ value }) { + msgRevokeAction({ value }) { try { - return { typeUrl: "/warden.intent.Params", value: Params.fromPartial(value) }; + return { typeUrl: "/warden.intent.MsgRevokeAction", value: MsgRevokeAction.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Params: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRevokeAction: Could not create message: ' + e.message); } }, - approver({ value }) { + queryParamsRequest({ value }) { try { - return { typeUrl: "/warden.intent.Approver", value: Approver.fromPartial(value) }; + return { typeUrl: "/warden.intent.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Approver: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); } }, - queryActionsRequest({ value }) { + queryIntentsResponse({ value }) { try { - return { typeUrl: "/warden.intent.QueryActionsRequest", value: QueryActionsRequest.fromPartial(value) }; + return { typeUrl: "/warden.intent.QueryIntentsResponse", value: QueryIntentsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryActionsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryIntentsResponse: Could not create message: ' + e.message); } }, - msgUpdateParamsResponse({ value }) { + queryActionsByAddressResponse({ value }) { try { - return { typeUrl: "/warden.intent.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; + return { typeUrl: "/warden.intent.QueryActionsByAddressResponse", value: QueryActionsByAddressResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryActionsByAddressResponse: Could not create message: ' + e.message); } }, msgApproveActionResponse({ value }) { @@ -473,28 +473,36 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgApproveActionResponse: Could not create message: ' + e.message); } }, - intent({ value }) { + msgNewIntent({ value }) { try { - return { typeUrl: "/warden.intent.Intent", value: Intent.fromPartial(value) }; + return { typeUrl: "/warden.intent.MsgNewIntent", value: MsgNewIntent.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Intent: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewIntent: Could not create message: ' + e.message); } }, - queryParamsRequest({ value }) { + msgActionCreated({ value }) { try { - return { typeUrl: "/warden.intent.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; + return { typeUrl: "/warden.intent.MsgActionCreated", value: MsgActionCreated.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgActionCreated: Could not create message: ' + e.message); } }, - queryIntentsRequest({ value }) { + approver({ value }) { try { - return { typeUrl: "/warden.intent.QueryIntentsRequest", value: QueryIntentsRequest.fromPartial(value) }; + return { typeUrl: "/warden.intent.Approver", value: Approver.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryIntentsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:Approver: Could not create message: ' + e.message); + } + }, + genesisState({ value }) { + try { + return { typeUrl: "/warden.intent.GenesisState", value: GenesisState.fromPartial(value) }; + } + catch (e) { + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, queryActionByIdRequest({ value }) { @@ -505,100 +513,100 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:QueryActionByIdRequest: Could not create message: ' + e.message); } }, - msgNewIntent({ value }) { + msgApproveAction({ value }) { try { - return { typeUrl: "/warden.intent.MsgNewIntent", value: MsgNewIntent.fromPartial(value) }; + return { typeUrl: "/warden.intent.MsgApproveAction", value: MsgApproveAction.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewIntent: Could not create message: ' + e.message); + throw new Error('TxClient:MsgApproveAction: Could not create message: ' + e.message); } }, - action({ value }) { + msgRevokeActionResponse({ value }) { try { - return { typeUrl: "/warden.intent.Action", value: Action.fromPartial(value) }; + return { typeUrl: "/warden.intent.MsgRevokeActionResponse", value: MsgRevokeActionResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Action: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRevokeActionResponse: Could not create message: ' + e.message); } }, - msgActionCreated({ value }) { + intent({ value }) { try { - return { typeUrl: "/warden.intent.MsgActionCreated", value: MsgActionCreated.fromPartial(value) }; + return { typeUrl: "/warden.intent.Intent", value: Intent.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgActionCreated: Could not create message: ' + e.message); + throw new Error('TxClient:Intent: Could not create message: ' + e.message); } }, - queryActionsByAddressRequest({ value }) { + msgUpdateParamsResponse({ value }) { try { - return { typeUrl: "/warden.intent.QueryActionsByAddressRequest", value: QueryActionsByAddressRequest.fromPartial(value) }; + return { typeUrl: "/warden.intent.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryActionsByAddressRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); } }, - queryActionByIdResponse({ value }) { + queryParamsResponse({ value }) { try { - return { typeUrl: "/warden.intent.QueryActionByIdResponse", value: QueryActionByIdResponse.fromPartial(value) }; + return { typeUrl: "/warden.intent.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryActionByIdResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); } }, - msgRevokeAction({ value }) { + queryActionsResponse({ value }) { try { - return { typeUrl: "/warden.intent.MsgRevokeAction", value: MsgRevokeAction.fromPartial(value) }; + return { typeUrl: "/warden.intent.QueryActionsResponse", value: QueryActionsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRevokeAction: Could not create message: ' + e.message); + throw new Error('TxClient:QueryActionsResponse: Could not create message: ' + e.message); } }, - genesisState({ value }) { + params({ value }) { try { - return { typeUrl: "/warden.intent.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/warden.intent.Params", value: Params.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:Params: Could not create message: ' + e.message); } }, - msgUpdateParams({ value }) { + queryActionsByAddressRequest({ value }) { try { - return { typeUrl: "/warden.intent.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; + return { typeUrl: "/warden.intent.QueryActionsByAddressRequest", value: QueryActionsByAddressRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); + throw new Error('TxClient:QueryActionsByAddressRequest: Could not create message: ' + e.message); } }, - msgApproveAction({ value }) { + queryActionByIdResponse({ value }) { try { - return { typeUrl: "/warden.intent.MsgApproveAction", value: MsgApproveAction.fromPartial(value) }; + return { typeUrl: "/warden.intent.QueryActionByIdResponse", value: QueryActionByIdResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgApproveAction: Could not create message: ' + e.message); + throw new Error('TxClient:QueryActionByIdResponse: Could not create message: ' + e.message); } }, - msgRevokeActionResponse({ value }) { + queryActionsRequest({ value }) { try { - return { typeUrl: "/warden.intent.MsgRevokeActionResponse", value: MsgRevokeActionResponse.fromPartial(value) }; + return { typeUrl: "/warden.intent.QueryActionsRequest", value: QueryActionsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRevokeActionResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryActionsRequest: Could not create message: ' + e.message); } }, - queryParamsResponse({ value }) { + queryIntentsRequest({ value }) { try { - return { typeUrl: "/warden.intent.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; + return { typeUrl: "/warden.intent.QueryIntentsRequest", value: QueryIntentsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryIntentsRequest: Could not create message: ' + e.message); } }, - queryActionsResponse({ value }) { + queryIntentByIdRequest({ value }) { try { - return { typeUrl: "/warden.intent.QueryActionsResponse", value: QueryActionsResponse.fromPartial(value) }; + return { typeUrl: "/warden.intent.QueryIntentByIdRequest", value: QueryIntentByIdRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryActionsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryIntentByIdRequest: Could not create message: ' + e.message); } }, queryIntentByIdResponse({ value }) { @@ -609,14 +617,6 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:QueryIntentByIdResponse: Could not create message: ' + e.message); } }, - queryActionsByAddressResponse({ value }) { - try { - return { typeUrl: "/warden.intent.QueryActionsByAddressResponse", value: QueryActionsByAddressResponse.fromPartial(value) }; - } - catch (e) { - throw new Error('TxClient:QueryActionsByAddressResponse: Could not create message: ' + e.message); - } - }, }; }; export const queryClient = ({ addr: addr } = { addr: "http://localhost:1317" }) => { diff --git a/ts-client/lib/warden.intent/registry.js b/ts-client/lib/warden.intent/registry.js index be10bf990..9edce1dea 100644 --- a/ts-client/lib/warden.intent/registry.js +++ b/ts-client/lib/warden.intent/registry.js @@ -1,55 +1,55 @@ -import { QueryIntentByIdRequest } from "./types/warden/intent/query"; -import { QueryIntentsResponse } from "./types/warden/intent/query"; +import { MsgUpdateParams } from "./types/warden/intent/tx"; import { MsgNewIntentResponse } from "./types/warden/intent/tx"; -import { Params } from "./types/warden/intent/params"; -import { Approver } from "./types/warden/intent/action"; -import { QueryActionsRequest } from "./types/warden/intent/query"; -import { MsgUpdateParamsResponse } from "./types/warden/intent/tx"; -import { MsgApproveActionResponse } from "./types/warden/intent/tx"; -import { Intent } from "./types/warden/intent/intent"; +import { Action } from "./types/warden/intent/action"; +import { MsgRevokeAction } from "./types/warden/intent/tx"; import { QueryParamsRequest } from "./types/warden/intent/query"; -import { QueryIntentsRequest } from "./types/warden/intent/query"; -import { QueryActionByIdRequest } from "./types/warden/intent/query"; +import { QueryIntentsResponse } from "./types/warden/intent/query"; +import { QueryActionsByAddressResponse } from "./types/warden/intent/query"; +import { MsgApproveActionResponse } from "./types/warden/intent/tx"; import { MsgNewIntent } from "./types/warden/intent/tx"; -import { Action } from "./types/warden/intent/action"; import { MsgActionCreated } from "./types/warden/intent/action"; -import { QueryActionsByAddressRequest } from "./types/warden/intent/query"; -import { QueryActionByIdResponse } from "./types/warden/intent/query"; -import { MsgRevokeAction } from "./types/warden/intent/tx"; +import { Approver } from "./types/warden/intent/action"; import { GenesisState } from "./types/warden/intent/genesis"; -import { MsgUpdateParams } from "./types/warden/intent/tx"; +import { QueryActionByIdRequest } from "./types/warden/intent/query"; import { MsgApproveAction } from "./types/warden/intent/tx"; import { MsgRevokeActionResponse } from "./types/warden/intent/tx"; +import { Intent } from "./types/warden/intent/intent"; +import { MsgUpdateParamsResponse } from "./types/warden/intent/tx"; import { QueryParamsResponse } from "./types/warden/intent/query"; import { QueryActionsResponse } from "./types/warden/intent/query"; +import { Params } from "./types/warden/intent/params"; +import { QueryActionsByAddressRequest } from "./types/warden/intent/query"; +import { QueryActionByIdResponse } from "./types/warden/intent/query"; +import { QueryActionsRequest } from "./types/warden/intent/query"; +import { QueryIntentsRequest } from "./types/warden/intent/query"; +import { QueryIntentByIdRequest } from "./types/warden/intent/query"; import { QueryIntentByIdResponse } from "./types/warden/intent/query"; -import { QueryActionsByAddressResponse } from "./types/warden/intent/query"; const msgTypes = [ - ["/warden.intent.QueryIntentByIdRequest", QueryIntentByIdRequest], - ["/warden.intent.QueryIntentsResponse", QueryIntentsResponse], + ["/warden.intent.MsgUpdateParams", MsgUpdateParams], ["/warden.intent.MsgNewIntentResponse", MsgNewIntentResponse], - ["/warden.intent.Params", Params], - ["/warden.intent.Approver", Approver], - ["/warden.intent.QueryActionsRequest", QueryActionsRequest], - ["/warden.intent.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/warden.intent.MsgApproveActionResponse", MsgApproveActionResponse], - ["/warden.intent.Intent", Intent], + ["/warden.intent.Action", Action], + ["/warden.intent.MsgRevokeAction", MsgRevokeAction], ["/warden.intent.QueryParamsRequest", QueryParamsRequest], - ["/warden.intent.QueryIntentsRequest", QueryIntentsRequest], - ["/warden.intent.QueryActionByIdRequest", QueryActionByIdRequest], + ["/warden.intent.QueryIntentsResponse", QueryIntentsResponse], + ["/warden.intent.QueryActionsByAddressResponse", QueryActionsByAddressResponse], + ["/warden.intent.MsgApproveActionResponse", MsgApproveActionResponse], ["/warden.intent.MsgNewIntent", MsgNewIntent], - ["/warden.intent.Action", Action], ["/warden.intent.MsgActionCreated", MsgActionCreated], - ["/warden.intent.QueryActionsByAddressRequest", QueryActionsByAddressRequest], - ["/warden.intent.QueryActionByIdResponse", QueryActionByIdResponse], - ["/warden.intent.MsgRevokeAction", MsgRevokeAction], + ["/warden.intent.Approver", Approver], ["/warden.intent.GenesisState", GenesisState], - ["/warden.intent.MsgUpdateParams", MsgUpdateParams], + ["/warden.intent.QueryActionByIdRequest", QueryActionByIdRequest], ["/warden.intent.MsgApproveAction", MsgApproveAction], ["/warden.intent.MsgRevokeActionResponse", MsgRevokeActionResponse], + ["/warden.intent.Intent", Intent], + ["/warden.intent.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ["/warden.intent.QueryParamsResponse", QueryParamsResponse], ["/warden.intent.QueryActionsResponse", QueryActionsResponse], + ["/warden.intent.Params", Params], + ["/warden.intent.QueryActionsByAddressRequest", QueryActionsByAddressRequest], + ["/warden.intent.QueryActionByIdResponse", QueryActionByIdResponse], + ["/warden.intent.QueryActionsRequest", QueryActionsRequest], + ["/warden.intent.QueryIntentsRequest", QueryIntentsRequest], + ["/warden.intent.QueryIntentByIdRequest", QueryIntentByIdRequest], ["/warden.intent.QueryIntentByIdResponse", QueryIntentByIdResponse], - ["/warden.intent.QueryActionsByAddressResponse", QueryActionsByAddressResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/warden.intent/rest.d.ts b/ts-client/lib/warden.intent/rest.d.ts index cf3e24655..13237d7f9 100644 --- a/ts-client/lib/warden.intent/rest.d.ts +++ b/ts-client/lib/warden.intent/rest.d.ts @@ -17,8 +17,6 @@ export interface Action { approved_at?: string; }[]; status?: "ACTION_STATUS_UNSPECIFIED" | "ACTION_STATUS_PENDING" | "ACTION_STATUS_COMPLETED" | "ACTION_STATUS_REVOKED" | "ACTION_STATUS_TIMEOUT"; - /** @format uint64 */ - intent_id?: string; msg?: { "@type"?: string; }; @@ -32,6 +30,13 @@ export interface Action { created_at?: string; /** @format date-time */ updated_at?: string; + intent?: { + id?: string; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; } export declare enum ActionStatus { ACTION_STATUS_UNSPECIFIED = "ACTION_STATUS_UNSPECIFIED", @@ -48,8 +53,10 @@ export interface Approver { export interface Intent { /** @format uint64 */ id?: string; + creator?: string; name?: string; definition?: string; + addresses?: string[]; } export interface PageRequest { /** @format byte */ @@ -76,7 +83,6 @@ export interface QueryActionByIdResponse { approved_at?: string; }[]; status?: "ACTION_STATUS_UNSPECIFIED" | "ACTION_STATUS_PENDING" | "ACTION_STATUS_COMPLETED" | "ACTION_STATUS_REVOKED" | "ACTION_STATUS_TIMEOUT"; - intent_id?: string; msg?: { "@type"?: string; }; @@ -87,6 +93,13 @@ export interface QueryActionByIdResponse { btl?: string; created_at?: string; updated_at?: string; + intent?: { + id?: string; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; }; } export interface QueryActionsByAddressResponse { @@ -101,7 +114,6 @@ export interface QueryActionsByAddressResponse { approved_at?: string; }[]; status?: "ACTION_STATUS_UNSPECIFIED" | "ACTION_STATUS_PENDING" | "ACTION_STATUS_COMPLETED" | "ACTION_STATUS_REVOKED" | "ACTION_STATUS_TIMEOUT"; - intent_id?: string; msg?: { "@type"?: string; }; @@ -112,6 +124,13 @@ export interface QueryActionsByAddressResponse { btl?: string; created_at?: string; updated_at?: string; + intent?: { + id?: string; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; }[]; } export interface QueryActionsResponse { @@ -126,7 +145,6 @@ export interface QueryActionsResponse { approved_at?: string; }[]; status?: "ACTION_STATUS_UNSPECIFIED" | "ACTION_STATUS_PENDING" | "ACTION_STATUS_COMPLETED" | "ACTION_STATUS_REVOKED" | "ACTION_STATUS_TIMEOUT"; - intent_id?: string; msg?: { "@type"?: string; }; @@ -137,13 +155,22 @@ export interface QueryActionsResponse { btl?: string; created_at?: string; updated_at?: string; + intent?: { + id?: string; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; }[]; } export interface QueryIntentByIdResponse { intent?: { id?: string; + creator?: string; name?: string; definition?: string; + addresses?: string[]; }; } export interface QueryIntentsResponse { @@ -153,8 +180,10 @@ export interface QueryIntentsResponse { }; intents?: { id?: string; + creator?: string; name?: string; definition?: string; + addresses?: string[]; }[]; } export interface QueryParamsResponse { @@ -229,7 +258,6 @@ export declare class Api extends HttpClient extends HttpClient>; /** @@ -267,7 +302,6 @@ export declare class Api extends HttpClient extends HttpClient>; /** @@ -307,7 +348,6 @@ export declare class Api extends HttpClient extends HttpClient>; /** @@ -332,8 +379,10 @@ export declare class Api extends HttpClient Promise>; /** @@ -356,8 +405,10 @@ export declare class Api extends HttpClient>; /** diff --git a/ts-client/lib/warden.intent/types/warden/intent/action.d.ts b/ts-client/lib/warden.intent/types/warden/intent/action.d.ts index 6138b0b0d..fa481944f 100644 --- a/ts-client/lib/warden.intent/types/warden/intent/action.d.ts +++ b/ts-client/lib/warden.intent/types/warden/intent/action.d.ts @@ -1,5 +1,6 @@ import _m0 from "protobufjs/minimal"; import { Any } from "../../google/protobuf/any"; +import { Intent } from "./intent"; export declare const protobufPackage = "warden.intent"; /** Current status of an action. */ export declare enum ActionStatus { @@ -28,12 +29,6 @@ export interface Action { id: number; approvers: Approver[]; status: ActionStatus; - /** - * Optional intent id that must be satisfied by the approvers. - * If not specified, it's up to the creator of the action to decide what to - * apply. - */ - intentId: number; /** * Original message that started the action, it will be executed when the * intent is satisfied. @@ -51,6 +46,12 @@ export interface Action { createdAt: Date | undefined; /** updated_at is a timestamp specifying when the action's status was updated */ updatedAt: Date | undefined; + /** + * intent is the intent that this action is associated with. Instead of + * storing the intent ID, we store the entire intent object so that is + * immutable and cannot be changed later. + */ + intent: Intent | undefined; } /** MsgActionCreated is returned by rpc that creates an action. */ export interface MsgActionCreated { @@ -88,7 +89,6 @@ export declare const Action: { approvedAt?: Date | undefined; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -101,6 +101,13 @@ export declare const Action: { btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; } & { id?: number; approvers?: { @@ -117,7 +124,6 @@ export declare const Action: { approvedAt?: Date | undefined; }[]>]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -136,7 +142,20 @@ export declare const Action: { btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; - } & { [K_4 in Exclude]: never; }>(base?: I): Action; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + } & { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[] & string[] & { [K_4 in Exclude]: never; }; + } & { [K_5 in Exclude]: never; }; + } & { [K_6 in Exclude]: never; }>(base?: I): Action; fromPartial]: never; })[] & { [K_6 in Exclude]: never; })[] & { [K_8 in Exclude]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_7 in Exclude]: never; }; + } & { [K_9 in Exclude]: never; }; result?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_8 in Exclude]: never; }; + } & { [K_10 in Exclude]: never; }; creator?: string; btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; - } & { [K_9 in Exclude]: never; }>(object: I_1): Action; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + } & { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[] & string[] & { [K_11 in Exclude]: never; }; + } & { [K_12 in Exclude]: never; }; + } & { [K_13 in Exclude]: never; }>(object: I_1): Action; }; export declare const MsgActionCreated: { encode(message: MsgActionCreated, writer?: _m0.Writer): _m0.Writer; @@ -207,7 +244,6 @@ export declare const MsgActionCreated: { approvedAt?: Date | undefined; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -220,6 +256,13 @@ export declare const MsgActionCreated: { btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; }; } & { action?: { @@ -229,7 +272,6 @@ export declare const MsgActionCreated: { approvedAt?: Date | undefined; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -242,6 +284,13 @@ export declare const MsgActionCreated: { btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; } & { id?: number; approvers?: { @@ -258,7 +307,6 @@ export declare const MsgActionCreated: { approvedAt?: Date | undefined; }[]>]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -277,8 +325,21 @@ export declare const MsgActionCreated: { btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; - } & { [K_4 in Exclude]: never; }; - } & { [K_5 in Exclude]: never; }>(base?: I): MsgActionCreated; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + } & { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[] & string[] & { [K_4 in Exclude]: never; }; + } & { [K_5 in Exclude]: never; }; + } & { [K_6 in Exclude]: never; }; + } & { [K_7 in Exclude]: never; }>(base?: I): MsgActionCreated; fromPartial]: never; })[] & { [K_7 in Exclude]: never; })[] & { [K_9 in Exclude]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_8 in Exclude]: never; }; + } & { [K_10 in Exclude]: never; }; result?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_9 in Exclude]: never; }; + } & { [K_11 in Exclude]: never; }; creator?: string; btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; - } & { [K_10 in Exclude]: never; }; - } & { [K_11 in Exclude]: never; }>(object: I_1): MsgActionCreated; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + } & { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[] & string[] & { [K_12 in Exclude]: never; }; + } & { [K_13 in Exclude]: never; }; + } & { [K_14 in Exclude]: never; }; + } & { [K_15 in Exclude]: never; }>(object: I_1): MsgActionCreated; }; 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 {} ? { diff --git a/ts-client/lib/warden.intent/types/warden/intent/action.js b/ts-client/lib/warden.intent/types/warden/intent/action.js index 87bb50d41..4e85635aa 100644 --- a/ts-client/lib/warden.intent/types/warden/intent/action.js +++ b/ts-client/lib/warden.intent/types/warden/intent/action.js @@ -3,6 +3,7 @@ import Long from "long"; import _m0 from "protobufjs/minimal"; import { Any } from "../../google/protobuf/any"; import { Timestamp } from "../../google/protobuf/timestamp"; +import { Intent } from "./intent"; export const protobufPackage = "warden.intent"; /** Current status of an action. */ export var ActionStatus; @@ -130,13 +131,13 @@ function createBaseAction() { id: 0, approvers: [], status: 0, - intentId: 0, msg: undefined, result: undefined, creator: "", btl: 0, createdAt: undefined, updatedAt: undefined, + intent: undefined, }; } export const Action = { @@ -150,9 +151,6 @@ export const Action = { if (message.status !== 0) { writer.uint32(24).int32(message.status); } - if (message.intentId !== 0) { - writer.uint32(32).uint64(message.intentId); - } if (message.msg !== undefined) { Any.encode(message.msg, writer.uint32(42).fork()).ldelim(); } @@ -171,6 +169,9 @@ export const Action = { if (message.updatedAt !== undefined) { Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(82).fork()).ldelim(); } + if (message.intent !== undefined) { + Intent.encode(message.intent, writer.uint32(90).fork()).ldelim(); + } return writer; }, decode(input, length) { @@ -198,12 +199,6 @@ export const Action = { } message.status = reader.int32(); continue; - case 4: - if (tag !== 32) { - break; - } - message.intentId = longToNumber(reader.uint64()); - continue; case 5: if (tag !== 42) { break; @@ -240,6 +235,12 @@ export const Action = { } message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); continue; + case 11: + if (tag !== 90) { + break; + } + message.intent = Intent.decode(reader, reader.uint32()); + continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -253,13 +254,13 @@ export const Action = { id: isSet(object.id) ? Number(object.id) : 0, approvers: Array.isArray(object?.approvers) ? object.approvers.map((e) => Approver.fromJSON(e)) : [], status: isSet(object.status) ? actionStatusFromJSON(object.status) : 0, - intentId: isSet(object.intentId) ? Number(object.intentId) : 0, msg: isSet(object.msg) ? Any.fromJSON(object.msg) : undefined, result: isSet(object.result) ? Any.fromJSON(object.result) : undefined, creator: isSet(object.creator) ? String(object.creator) : "", btl: isSet(object.btl) ? Number(object.btl) : 0, createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined, updatedAt: isSet(object.updatedAt) ? fromJsonTimestamp(object.updatedAt) : undefined, + intent: isSet(object.intent) ? Intent.fromJSON(object.intent) : undefined, }; }, toJSON(message) { @@ -273,9 +274,6 @@ export const Action = { if (message.status !== 0) { obj.status = actionStatusToJSON(message.status); } - if (message.intentId !== 0) { - obj.intentId = Math.round(message.intentId); - } if (message.msg !== undefined) { obj.msg = Any.toJSON(message.msg); } @@ -294,6 +292,9 @@ export const Action = { if (message.updatedAt !== undefined) { obj.updatedAt = message.updatedAt.toISOString(); } + if (message.intent !== undefined) { + obj.intent = Intent.toJSON(message.intent); + } return obj; }, create(base) { @@ -304,7 +305,6 @@ export const Action = { message.id = object.id ?? 0; message.approvers = object.approvers?.map((e) => Approver.fromPartial(e)) || []; message.status = object.status ?? 0; - message.intentId = object.intentId ?? 0; message.msg = (object.msg !== undefined && object.msg !== null) ? Any.fromPartial(object.msg) : undefined; message.result = (object.result !== undefined && object.result !== null) ? Any.fromPartial(object.result) @@ -313,6 +313,9 @@ export const Action = { message.btl = object.btl ?? 0; message.createdAt = object.createdAt ?? undefined; message.updatedAt = object.updatedAt ?? undefined; + message.intent = (object.intent !== undefined && object.intent !== null) + ? Intent.fromPartial(object.intent) + : undefined; return message; }, }; diff --git a/ts-client/lib/warden.intent/types/warden/intent/intent.d.ts b/ts-client/lib/warden.intent/types/warden/intent/intent.d.ts index db29f0707..9bba2fde2 100644 --- a/ts-client/lib/warden.intent/types/warden/intent/intent.d.ts +++ b/ts-client/lib/warden.intent/types/warden/intent/intent.d.ts @@ -2,9 +2,12 @@ import _m0 from "protobufjs/minimal"; export declare const protobufPackage = "warden.intent"; export interface Intent { id: number; + creator: string; name: string; /** The definition of the intent written in the Shield language. */ definition: string; + /** The list of addresses referenced from the intent definition. */ + addresses: string[]; } export declare const Intent: { encode(message: Intent, writer?: _m0.Writer): _m0.Writer; @@ -13,22 +16,30 @@ export declare const Intent: { toJSON(message: Intent): unknown; create]: never; }>(base?: I): Intent; + addresses?: string[] & string[] & { [K in Exclude]: never; }; + } & { [K_1 in Exclude]: never; }>(base?: I): Intent; fromPartial]: never; }>(object: I_1): Intent; + addresses?: string[] & string[] & { [K_2 in Exclude]: never; }; + } & { [K_3 in Exclude]: never; }>(object: I_1): Intent; }; 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 {} ? { diff --git a/ts-client/lib/warden.intent/types/warden/intent/intent.js b/ts-client/lib/warden.intent/types/warden/intent/intent.js index b4de9c2bc..59b1dcf0f 100644 --- a/ts-client/lib/warden.intent/types/warden/intent/intent.js +++ b/ts-client/lib/warden.intent/types/warden/intent/intent.js @@ -3,18 +3,24 @@ import Long from "long"; import _m0 from "protobufjs/minimal"; export const protobufPackage = "warden.intent"; function createBaseIntent() { - return { id: 0, name: "", definition: "" }; + return { id: 0, creator: "", name: "", definition: "", addresses: [] }; } export const Intent = { encode(message, writer = _m0.Writer.create()) { if (message.id !== 0) { writer.uint32(8).uint64(message.id); } + if (message.creator !== "") { + writer.uint32(18).string(message.creator); + } if (message.name !== "") { - writer.uint32(18).string(message.name); + writer.uint32(26).string(message.name); } if (message.definition !== "") { - writer.uint32(26).string(message.definition); + writer.uint32(34).string(message.definition); + } + for (const v of message.addresses) { + writer.uint32(42).string(v); } return writer; }, @@ -35,14 +41,26 @@ export const Intent = { if (tag !== 18) { break; } - message.name = reader.string(); + message.creator = reader.string(); continue; case 3: if (tag !== 26) { break; } + message.name = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } message.definition = reader.string(); continue; + case 5: + if (tag !== 42) { + break; + } + message.addresses.push(reader.string()); + continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -54,8 +72,10 @@ export const Intent = { fromJSON(object) { return { id: isSet(object.id) ? Number(object.id) : 0, + creator: isSet(object.creator) ? String(object.creator) : "", name: isSet(object.name) ? String(object.name) : "", definition: isSet(object.definition) ? String(object.definition) : "", + addresses: Array.isArray(object?.addresses) ? object.addresses.map((e) => String(e)) : [], }; }, toJSON(message) { @@ -63,12 +83,18 @@ export const Intent = { if (message.id !== 0) { obj.id = Math.round(message.id); } + if (message.creator !== "") { + obj.creator = message.creator; + } if (message.name !== "") { obj.name = message.name; } if (message.definition !== "") { obj.definition = message.definition; } + if (message.addresses?.length) { + obj.addresses = message.addresses; + } return obj; }, create(base) { @@ -77,8 +103,10 @@ export const Intent = { fromPartial(object) { const message = createBaseIntent(); message.id = object.id ?? 0; + message.creator = object.creator ?? ""; message.name = object.name ?? ""; message.definition = object.definition ?? ""; + message.addresses = object.addresses?.map((e) => e) || []; return message; }, }; diff --git a/ts-client/lib/warden.intent/types/warden/intent/query.d.ts b/ts-client/lib/warden.intent/types/warden/intent/query.d.ts index cba065431..f4a557694 100644 --- a/ts-client/lib/warden.intent/types/warden/intent/query.d.ts +++ b/ts-client/lib/warden.intent/types/warden/intent/query.d.ts @@ -140,7 +140,6 @@ export declare const QueryActionsResponse: { approvedAt?: Date; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -153,6 +152,13 @@ export declare const QueryActionsResponse: { btl?: number; createdAt?: Date; updatedAt?: Date; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; }[]; } & { pagination?: { @@ -169,7 +175,6 @@ export declare const QueryActionsResponse: { approvedAt?: Date; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -182,6 +187,13 @@ export declare const QueryActionsResponse: { btl?: number; createdAt?: Date; updatedAt?: Date; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; }[] & ({ id?: number; approvers?: { @@ -189,7 +201,6 @@ export declare const QueryActionsResponse: { approvedAt?: Date; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -202,6 +213,13 @@ export declare const QueryActionsResponse: { btl?: number; createdAt?: Date; updatedAt?: Date; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; } & { id?: number; approvers?: { @@ -218,7 +236,6 @@ export declare const QueryActionsResponse: { approvedAt?: Date; }[]>]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -237,14 +254,26 @@ export declare const QueryActionsResponse: { btl?: number; createdAt?: Date; updatedAt?: Date; - } & { [K_5 in Exclude]: never; })[] & { [K_6 in Exclude]: never; }; + } & { [K_6 in Exclude]: never; }; + } & { [K_7 in Exclude]: never; })[] & { [K_8 in Exclude]: never; }; - } & { [K_7 in Exclude]: never; }>(base?: I): QueryActionsResponse; + } & { [K_9 in Exclude]: never; }>(base?: I): QueryActionsResponse; fromPartial]: never; }; + } & { [K_10 in Exclude]: never; }; actions?: { id?: number; approvers?: { @@ -300,7 +342,6 @@ export declare const QueryActionsResponse: { approvedAt?: Date; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -313,6 +354,13 @@ export declare const QueryActionsResponse: { btl?: number; createdAt?: Date; updatedAt?: Date; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; }[] & ({ id?: number; approvers?: { @@ -320,7 +368,6 @@ export declare const QueryActionsResponse: { approvedAt?: Date; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -333,6 +380,13 @@ export declare const QueryActionsResponse: { btl?: number; createdAt?: Date; updatedAt?: Date; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; } & { id?: number; approvers?: { @@ -344,38 +398,49 @@ export declare const QueryActionsResponse: { } & { address?: string; approvedAt?: Date; - } & { [K_9 in Exclude]: never; })[] & { [K_10 in Exclude]: never; })[] & { [K_12 in Exclude]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_11 in Exclude]: never; }; + } & { [K_13 in Exclude]: never; }; result?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_12 in Exclude]: never; }; + } & { [K_14 in Exclude]: never; }; creator?: string; btl?: number; createdAt?: Date; updatedAt?: Date; - } & { [K_13 in Exclude]: never; })[] & { [K_14 in Exclude]: never; }; + } & { [K_16 in Exclude]: never; }; + } & { [K_17 in Exclude]: never; })[] & { [K_18 in Exclude]: never; }; - } & { [K_15 in Exclude]: never; }>(object: I_1): QueryActionsResponse; + } & { [K_19 in Exclude]: never; }>(object: I_1): QueryActionsResponse; }; export declare const QueryIntentsRequest: { encode(message: QueryIntentsRequest, writer?: _m0.Writer): _m0.Writer; @@ -455,8 +527,10 @@ export declare const QueryIntentsResponse: { }; intents?: { id?: number; + creator?: string; name?: string; definition?: string; + addresses?: string[]; }[]; } & { pagination?: { @@ -468,22 +542,30 @@ export declare const QueryIntentsResponse: { } & { [K in Exclude]: never; }; intents?: { id?: number; + creator?: string; name?: string; definition?: string; + addresses?: string[]; }[] & ({ id?: number; + creator?: string; name?: string; definition?: string; + addresses?: string[]; } & { id?: number; + creator?: string; name?: string; definition?: string; - } & { [K_1 in Exclude]: never; })[] & { [K_2 in Exclude]: never; }; + } & { [K_2 in Exclude]: never; })[] & { [K_3 in Exclude]: never; }; - } & { [K_3 in Exclude]: never; }>(base?: I): QueryIntentsResponse; + } & { [K_4 in Exclude]: never; }>(base?: I): QueryIntentsResponse; fromPartial]: never; }; + } & { [K_5 in Exclude]: never; }; intents?: { id?: number; + creator?: string; name?: string; definition?: string; + addresses?: string[]; }[] & ({ id?: number; + creator?: string; name?: string; definition?: string; + addresses?: string[]; } & { id?: number; + creator?: string; name?: string; definition?: string; - } & { [K_5 in Exclude]: never; })[] & { [K_6 in Exclude]: never; }; + } & { [K_7 in Exclude]: never; })[] & { [K_8 in Exclude]: never; }; - } & { [K_7 in Exclude]: never; }>(object: I_1): QueryIntentsResponse; + } & { [K_9 in Exclude]: never; }>(object: I_1): QueryIntentsResponse; }; export declare const QueryIntentByIdRequest: { encode(message: QueryIntentByIdRequest, writer?: _m0.Writer): _m0.Writer; @@ -545,37 +637,49 @@ export declare const QueryIntentByIdResponse: { create]: never; }; - } & { [K_1 in Exclude]: never; }>(base?: I): QueryIntentByIdResponse; + addresses?: string[] & string[] & { [K in Exclude]: never; }; + } & { [K_1 in Exclude]: never; }; + } & { [K_2 in Exclude]: never; }>(base?: I): QueryIntentByIdResponse; fromPartial]: never; }; - } & { [K_3 in Exclude]: never; }>(object: I_1): QueryIntentByIdResponse; + addresses?: string[] & string[] & { [K_3 in Exclude]: never; }; + } & { [K_4 in Exclude]: never; }; + } & { [K_5 in Exclude]: never; }>(object: I_1): QueryIntentByIdResponse; }; export declare const QueryActionsByAddressRequest: { encode(message: QueryActionsByAddressRequest, writer?: _m0.Writer): _m0.Writer; @@ -654,7 +758,6 @@ export declare const QueryActionsByAddressResponse: { approvedAt?: Date; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -667,6 +770,13 @@ export declare const QueryActionsByAddressResponse: { btl?: number; createdAt?: Date; updatedAt?: Date; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; }[]; } & { pagination?: { @@ -683,7 +793,6 @@ export declare const QueryActionsByAddressResponse: { approvedAt?: Date; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -696,6 +805,13 @@ export declare const QueryActionsByAddressResponse: { btl?: number; createdAt?: Date; updatedAt?: Date; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; }[] & ({ id?: number; approvers?: { @@ -703,7 +819,6 @@ export declare const QueryActionsByAddressResponse: { approvedAt?: Date; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -716,6 +831,13 @@ export declare const QueryActionsByAddressResponse: { btl?: number; createdAt?: Date; updatedAt?: Date; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; } & { id?: number; approvers?: { @@ -732,7 +854,6 @@ export declare const QueryActionsByAddressResponse: { approvedAt?: Date; }[]>]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -751,14 +872,26 @@ export declare const QueryActionsByAddressResponse: { btl?: number; createdAt?: Date; updatedAt?: Date; - } & { [K_5 in Exclude]: never; })[] & { [K_6 in Exclude]: never; }; + } & { [K_6 in Exclude]: never; }; + } & { [K_7 in Exclude]: never; })[] & { [K_8 in Exclude]: never; }; - } & { [K_7 in Exclude]: never; }>(base?: I): QueryActionsByAddressResponse; + } & { [K_9 in Exclude]: never; }>(base?: I): QueryActionsByAddressResponse; fromPartial]: never; }; + } & { [K_10 in Exclude]: never; }; actions?: { id?: number; approvers?: { @@ -814,7 +960,6 @@ export declare const QueryActionsByAddressResponse: { approvedAt?: Date; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -827,6 +972,13 @@ export declare const QueryActionsByAddressResponse: { btl?: number; createdAt?: Date; updatedAt?: Date; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; }[] & ({ id?: number; approvers?: { @@ -834,7 +986,6 @@ export declare const QueryActionsByAddressResponse: { approvedAt?: Date; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -847,6 +998,13 @@ export declare const QueryActionsByAddressResponse: { btl?: number; createdAt?: Date; updatedAt?: Date; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; } & { id?: number; approvers?: { @@ -858,38 +1016,49 @@ export declare const QueryActionsByAddressResponse: { } & { address?: string; approvedAt?: Date; - } & { [K_9 in Exclude]: never; })[] & { [K_10 in Exclude]: never; })[] & { [K_12 in Exclude]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_11 in Exclude]: never; }; + } & { [K_13 in Exclude]: never; }; result?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_12 in Exclude]: never; }; + } & { [K_14 in Exclude]: never; }; creator?: string; btl?: number; createdAt?: Date; updatedAt?: Date; - } & { [K_13 in Exclude]: never; })[] & { [K_14 in Exclude]: never; }; + } & { [K_16 in Exclude]: never; }; + } & { [K_17 in Exclude]: never; })[] & { [K_18 in Exclude]: never; }; - } & { [K_15 in Exclude]: never; }>(object: I_1): QueryActionsByAddressResponse; + } & { [K_19 in Exclude]: never; }>(object: I_1): QueryActionsByAddressResponse; }; export declare const QueryActionByIdRequest: { encode(message: QueryActionByIdRequest, writer?: _m0.Writer): _m0.Writer; @@ -934,7 +1110,6 @@ export declare const QueryActionByIdResponse: { approvedAt?: Date; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -947,6 +1122,13 @@ export declare const QueryActionByIdResponse: { btl?: number; createdAt?: Date; updatedAt?: Date; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; }; } & { action?: { @@ -956,7 +1138,6 @@ export declare const QueryActionByIdResponse: { approvedAt?: Date; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -969,6 +1150,13 @@ export declare const QueryActionByIdResponse: { btl?: number; createdAt?: Date; updatedAt?: Date; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; } & { id?: number; approvers?: { @@ -985,7 +1173,6 @@ export declare const QueryActionByIdResponse: { approvedAt?: Date; }[]>]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -1004,8 +1191,21 @@ export declare const QueryActionByIdResponse: { btl?: number; createdAt?: Date; updatedAt?: Date; - } & { [K_4 in Exclude]: never; }; - } & { [K_5 in Exclude]: never; }>(base?: I): QueryActionByIdResponse; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + } & { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[] & string[] & { [K_4 in Exclude]: never; }; + } & { [K_5 in Exclude]: never; }; + } & { [K_6 in Exclude]: never; }; + } & { [K_7 in Exclude]: never; }>(base?: I): QueryActionByIdResponse; fromPartial]: never; })[] & { [K_7 in Exclude]: never; })[] & { [K_9 in Exclude]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_8 in Exclude]: never; }; + } & { [K_10 in Exclude]: never; }; result?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_9 in Exclude]: never; }; + } & { [K_11 in Exclude]: never; }; creator?: string; btl?: number; createdAt?: Date; updatedAt?: Date; - } & { [K_10 in Exclude]: never; }; - } & { [K_11 in Exclude]: never; }>(object: I_1): QueryActionByIdResponse; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + } & { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[] & string[] & { [K_12 in Exclude]: never; }; + } & { [K_13 in Exclude]: never; }; + } & { [K_14 in Exclude]: never; }; + } & { [K_15 in Exclude]: never; }>(object: I_1): QueryActionByIdResponse; }; /** Query defines the gRPC querier service. */ export interface Query { diff --git a/ts-client/lib/warden.warden.v1beta1/module.d.ts b/ts-client/lib/warden.warden.v1beta1/module.d.ts index 81028177f..4a611ab02 100644 --- a/ts-client/lib/warden.warden.v1beta1/module.d.ts +++ b/ts-client/lib/warden.warden.v1beta1/module.d.ts @@ -2,130 +2,130 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeychainByAddressRequest } from "./types/warden/warden/v1beta1/query"; +import { QueryKeysRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySignTransactionRequestsRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta1/tx"; +import { Params } from "./types/warden/warden/v1beta1/params"; +import { QuerySpaceByAddressRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeychainByAddressResponse } from "./types/warden/warden/v1beta1/query"; import { QueryKeysResponse } from "./types/warden/warden/v1beta1/query"; import { MsgUpdateParams } from "./types/warden/warden/v1beta1/tx"; -import { Space } from "./types/warden/warden/v1beta1/space"; -import { SignTransactionRequest } from "./types/warden/warden/v1beta1/signature"; -import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewKeychain } from "./types/warden/warden/v1beta1/tx"; -import { SignRequest } from "./types/warden/warden/v1beta1/signature"; -import { MsgNewSpace } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateSpace } from "./types/warden/warden/v1beta1/tx"; import { MsgNewKeyRequest } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgNewKeychainResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateKeychain } from "./types/warden/warden/v1beta1/tx"; -import { QueryKeychainByAddressResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgAddKeychainParty } from "./types/warden/warden/v1beta1/tx"; +import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; import { GenesisState } from "./types/warden/warden/v1beta1/genesis"; -import { Key } from "./types/warden/warden/v1beta1/key"; -import { QueryKeychainsResponse } from "./types/warden/warden/v1beta1/query"; -import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryKeyRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; -import { QuerySignTransactionRequestsRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta1/tx"; +import { QuerySignatureRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; +import { SignTransactionRequest } from "./types/warden/warden/v1beta1/signature"; +import { MsgNewKey } from "./types/warden/warden/v1beta1/tx"; import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySpaceByAddressResponse } from "./types/warden/warden/v1beta1/query"; -import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta1/tx"; import { MetadataEthereum } from "./types/warden/warden/v1beta1/tx"; -import { KeyRequest } from "./types/warden/warden/v1beta1/key"; -import { QuerySpaceByAddressRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgNewKey } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; import { QuerySignatureRequestsResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgSignedData } from "./types/warden/warden/v1beta1/tx"; -import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta1/tx"; -import { QueryKeychainsRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryKeychainByAddressRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { KeyResponse } from "./types/warden/warden/v1beta1/query"; import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta1/query"; import { QuerySignatureRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; -import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta1/tx"; -import { KeychainFees } from "./types/warden/warden/v1beta1/keychain"; -import { QuerySpacesRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgNewKeychain } from "./types/warden/warden/v1beta1/tx"; +import { MsgAddKeychainParty } from "./types/warden/warden/v1beta1/tx"; import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySpacesResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta1/tx"; +import { QueryParamsResponse } from "./types/warden/warden/v1beta1/query"; import { WalletKeyResponse } from "./types/warden/warden/v1beta1/query"; -import { QuerySignatureRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgNewKeychainResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta1/tx"; +import { QuerySpacesResponse } from "./types/warden/warden/v1beta1/query"; +import { QueryKeychainsRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySpacesRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta1/tx"; +import { QueryParamsRequest } from "./types/warden/warden/v1beta1/query"; +import { KeyResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgNewSpace } from "./types/warden/warden/v1beta1/tx"; +import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta1/tx"; +import { KeyRequest } from "./types/warden/warden/v1beta1/key"; +import { KeychainFees } from "./types/warden/warden/v1beta1/keychain"; +import { QuerySpaceByAddressResponse } from "./types/warden/warden/v1beta1/query"; +import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { Space } from "./types/warden/warden/v1beta1/space"; +import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta1/query"; import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateSpace } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgSignedData } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta1/query"; +import { SignRequest } from "./types/warden/warden/v1beta1/signature"; import { Keychain } from "./types/warden/warden/v1beta1/keychain"; -import { Params } from "./types/warden/warden/v1beta1/params"; -import { QueryKeysRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta1/tx"; -import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta1/tx"; -import { QueryParamsRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryParamsResponse } from "./types/warden/warden/v1beta1/query"; -export { MsgUpdateSpaceResponse, MsgNewSignTransactionRequest, QueryKeysResponse, MsgUpdateParams, Space, SignTransactionRequest, QueryKeyRequestsResponse, MsgNewKeyRequestResponse, MsgNewKeychain, SignRequest, MsgNewSpace, MsgUpdateSpace, MsgNewKeyRequest, MsgNewSignatureRequestResponse, QueryKeyRequestByIdResponse, MsgNewKeychainResponse, MsgUpdateKeychain, QueryKeychainByAddressResponse, MsgNewSpaceResponse, QuerySignTransactionRequestByIdRequest, MsgAddKeychainParty, GenesisState, Key, QueryKeychainsResponse, QuerySignatureRequestsRequest, MsgAddSpaceOwnerResponse, QuerySpacesByOwnerRequest, QueryKeyRequestByIdRequest, QuerySignTransactionRequestsRequest, MsgAddSpaceOwner, MsgNewSignTransactionRequestResponse, QuerySpaceByAddressResponse, QueryKeyRequestsRequest, MsgNewSignatureRequest, MetadataEthereum, KeyRequest, QuerySpaceByAddressRequest, MsgNewKey, QuerySignatureRequestsResponse, MsgSignedData, MsgFulfilSignatureRequest, QueryKeychainsRequest, QueryKeychainByAddressRequest, MsgUpdateParamsResponse, MsgUpdateKeyRequestResponse, MsgFulfilSignatureRequestResponse, KeyResponse, QuerySignTransactionRequestsResponse, QuerySignatureRequestByIdResponse, QuerySignTransactionRequestByIdResponse, MsgRemoveSpaceOwnerResponse, MsgUpdateKeychainResponse, KeychainFees, QuerySpacesRequest, MsgAddKeychainPartyResponse, QuerySpacesResponse, WalletKeyResponse, QuerySignatureRequestByIdRequest, SignTransactionRequestResponse, Keychain, Params, QueryKeysRequest, MsgUpdateKeyRequest, MsgRemoveSpaceOwner, QueryParamsRequest, QueryParamsResponse }; -type sendMsgUpdateSpaceResponseParams = { - value: MsgUpdateSpaceResponse; +import { QueryKeychainsResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateKeychain } from "./types/warden/warden/v1beta1/tx"; +import { Key } from "./types/warden/warden/v1beta1/key"; +export { QueryKeychainByAddressRequest, QueryKeysRequest, QuerySignTransactionRequestsRequest, MsgUpdateKeyRequest, Params, QuerySpaceByAddressRequest, QuerySignTransactionRequestByIdRequest, MsgAddSpaceOwner, MsgNewSignatureRequestResponse, QueryKeychainByAddressResponse, QueryKeysResponse, MsgUpdateParams, MsgNewKeyRequest, MsgUpdateSpaceResponse, MsgNewKeyRequestResponse, MsgUpdateKeyRequestResponse, GenesisState, QuerySignatureRequestByIdRequest, SignTransactionRequest, MsgNewKey, MsgNewSignTransactionRequestResponse, MetadataEthereum, QueryKeyRequestByIdResponse, MsgAddSpaceOwnerResponse, QuerySignatureRequestsResponse, QuerySignTransactionRequestsResponse, QuerySignatureRequestByIdResponse, MsgNewKeychain, MsgAddKeychainParty, MsgAddKeychainPartyResponse, MsgFulfilSignatureRequest, MsgNewSignTransactionRequest, QueryParamsResponse, WalletKeyResponse, MsgNewKeychainResponse, MsgUpdateKeychainResponse, QuerySpacesResponse, QueryKeychainsRequest, QuerySpacesRequest, MsgNewSpaceResponse, QueryParamsRequest, KeyResponse, MsgNewSpace, MsgRemoveSpaceOwner, KeyRequest, KeychainFees, QuerySpaceByAddressResponse, QuerySignatureRequestsRequest, MsgFulfilSignatureRequestResponse, Space, QuerySpacesByOwnerRequest, SignTransactionRequestResponse, MsgUpdateSpace, QueryKeyRequestByIdRequest, MsgRemoveSpaceOwnerResponse, MsgSignedData, QueryKeyRequestsRequest, QuerySignTransactionRequestByIdResponse, MsgUpdateParamsResponse, MsgNewSignatureRequest, QueryKeyRequestsResponse, SignRequest, Keychain, QueryKeychainsResponse, MsgUpdateKeychain, Key }; +type sendQueryKeychainByAddressRequestParams = { + value: QueryKeychainByAddressRequest; fee?: StdFee; memo?: string; }; -type sendMsgNewSignTransactionRequestParams = { - value: MsgNewSignTransactionRequest; +type sendQueryKeysRequestParams = { + value: QueryKeysRequest; fee?: StdFee; memo?: string; }; -type sendQueryKeysResponseParams = { - value: QueryKeysResponse; +type sendQuerySignTransactionRequestsRequestParams = { + value: QuerySignTransactionRequestsRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams; +type sendMsgUpdateKeyRequestParams = { + value: MsgUpdateKeyRequest; fee?: StdFee; memo?: string; }; -type sendSpaceParams = { - value: Space; +type sendParamsParams = { + value: Params; fee?: StdFee; memo?: string; }; -type sendSignTransactionRequestParams = { - value: SignTransactionRequest; +type sendQuerySpaceByAddressRequestParams = { + value: QuerySpaceByAddressRequest; fee?: StdFee; memo?: string; }; -type sendQueryKeyRequestsResponseParams = { - value: QueryKeyRequestsResponse; +type sendQuerySignTransactionRequestByIdRequestParams = { + value: QuerySignTransactionRequestByIdRequest; fee?: StdFee; memo?: string; }; -type sendMsgNewKeyRequestResponseParams = { - value: MsgNewKeyRequestResponse; +type sendMsgAddSpaceOwnerParams = { + value: MsgAddSpaceOwner; fee?: StdFee; memo?: string; }; -type sendMsgNewKeychainParams = { - value: MsgNewKeychain; +type sendMsgNewSignatureRequestResponseParams = { + value: MsgNewSignatureRequestResponse; fee?: StdFee; memo?: string; }; -type sendSignRequestParams = { - value: SignRequest; +type sendQueryKeychainByAddressResponseParams = { + value: QueryKeychainByAddressResponse; fee?: StdFee; memo?: string; }; -type sendMsgNewSpaceParams = { - value: MsgNewSpace; +type sendQueryKeysResponseParams = { + value: QueryKeysResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateSpaceParams = { - value: MsgUpdateSpace; +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams; fee?: StdFee; memo?: string; }; @@ -134,276 +134,300 @@ type sendMsgNewKeyRequestParams = { fee?: StdFee; memo?: string; }; -type sendMsgNewSignatureRequestResponseParams = { - value: MsgNewSignatureRequestResponse; +type sendMsgUpdateSpaceResponseParams = { + value: MsgUpdateSpaceResponse; fee?: StdFee; memo?: string; }; -type sendQueryKeyRequestByIdResponseParams = { - value: QueryKeyRequestByIdResponse; +type sendMsgNewKeyRequestResponseParams = { + value: MsgNewKeyRequestResponse; fee?: StdFee; memo?: string; }; -type sendMsgNewKeychainResponseParams = { - value: MsgNewKeychainResponse; +type sendMsgUpdateKeyRequestResponseParams = { + value: MsgUpdateKeyRequestResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateKeychainParams = { - value: MsgUpdateKeychain; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendQueryKeychainByAddressResponseParams = { - value: QueryKeychainByAddressResponse; +type sendQuerySignatureRequestByIdRequestParams = { + value: QuerySignatureRequestByIdRequest; fee?: StdFee; memo?: string; }; -type sendMsgNewSpaceResponseParams = { - value: MsgNewSpaceResponse; +type sendSignTransactionRequestParams = { + value: SignTransactionRequest; fee?: StdFee; memo?: string; }; -type sendQuerySignTransactionRequestByIdRequestParams = { - value: QuerySignTransactionRequestByIdRequest; +type sendMsgNewKeyParams = { + value: MsgNewKey; fee?: StdFee; memo?: string; }; -type sendMsgAddKeychainPartyParams = { - value: MsgAddKeychainParty; +type sendMsgNewSignTransactionRequestResponseParams = { + value: MsgNewSignTransactionRequestResponse; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendMetadataEthereumParams = { + value: MetadataEthereum; fee?: StdFee; memo?: string; }; -type sendKeyParams = { - value: Key; +type sendQueryKeyRequestByIdResponseParams = { + value: QueryKeyRequestByIdResponse; fee?: StdFee; memo?: string; }; -type sendQueryKeychainsResponseParams = { - value: QueryKeychainsResponse; +type sendMsgAddSpaceOwnerResponseParams = { + value: MsgAddSpaceOwnerResponse; fee?: StdFee; memo?: string; }; -type sendQuerySignatureRequestsRequestParams = { - value: QuerySignatureRequestsRequest; +type sendQuerySignatureRequestsResponseParams = { + value: QuerySignatureRequestsResponse; fee?: StdFee; memo?: string; }; -type sendMsgAddSpaceOwnerResponseParams = { - value: MsgAddSpaceOwnerResponse; +type sendQuerySignTransactionRequestsResponseParams = { + value: QuerySignTransactionRequestsResponse; fee?: StdFee; memo?: string; }; -type sendQuerySpacesByOwnerRequestParams = { - value: QuerySpacesByOwnerRequest; +type sendQuerySignatureRequestByIdResponseParams = { + value: QuerySignatureRequestByIdResponse; fee?: StdFee; memo?: string; }; -type sendQueryKeyRequestByIdRequestParams = { - value: QueryKeyRequestByIdRequest; +type sendMsgNewKeychainParams = { + value: MsgNewKeychain; fee?: StdFee; memo?: string; }; -type sendQuerySignTransactionRequestsRequestParams = { - value: QuerySignTransactionRequestsRequest; +type sendMsgAddKeychainPartyParams = { + value: MsgAddKeychainParty; fee?: StdFee; memo?: string; }; -type sendMsgAddSpaceOwnerParams = { - value: MsgAddSpaceOwner; +type sendMsgAddKeychainPartyResponseParams = { + value: MsgAddKeychainPartyResponse; fee?: StdFee; memo?: string; }; -type sendMsgNewSignTransactionRequestResponseParams = { - value: MsgNewSignTransactionRequestResponse; +type sendMsgFulfilSignatureRequestParams = { + value: MsgFulfilSignatureRequest; fee?: StdFee; memo?: string; }; -type sendQuerySpaceByAddressResponseParams = { - value: QuerySpaceByAddressResponse; +type sendMsgNewSignTransactionRequestParams = { + value: MsgNewSignTransactionRequest; fee?: StdFee; memo?: string; }; -type sendQueryKeyRequestsRequestParams = { - value: QueryKeyRequestsRequest; +type sendQueryParamsResponseParams = { + value: QueryParamsResponse; fee?: StdFee; memo?: string; }; -type sendMsgNewSignatureRequestParams = { - value: MsgNewSignatureRequest; +type sendWalletKeyResponseParams = { + value: WalletKeyResponse; fee?: StdFee; memo?: string; }; -type sendMetadataEthereumParams = { - value: MetadataEthereum; +type sendMsgNewKeychainResponseParams = { + value: MsgNewKeychainResponse; fee?: StdFee; memo?: string; }; -type sendKeyRequestParams = { - value: KeyRequest; +type sendMsgUpdateKeychainResponseParams = { + value: MsgUpdateKeychainResponse; fee?: StdFee; memo?: string; }; -type sendQuerySpaceByAddressRequestParams = { - value: QuerySpaceByAddressRequest; +type sendQuerySpacesResponseParams = { + value: QuerySpacesResponse; fee?: StdFee; memo?: string; }; -type sendMsgNewKeyParams = { - value: MsgNewKey; +type sendQueryKeychainsRequestParams = { + value: QueryKeychainsRequest; fee?: StdFee; memo?: string; }; -type sendQuerySignatureRequestsResponseParams = { - value: QuerySignatureRequestsResponse; +type sendQuerySpacesRequestParams = { + value: QuerySpacesRequest; fee?: StdFee; memo?: string; }; -type sendMsgSignedDataParams = { - value: MsgSignedData; +type sendMsgNewSpaceResponseParams = { + value: MsgNewSpaceResponse; fee?: StdFee; memo?: string; }; -type sendMsgFulfilSignatureRequestParams = { - value: MsgFulfilSignatureRequest; +type sendQueryParamsRequestParams = { + value: QueryParamsRequest; fee?: StdFee; memo?: string; }; -type sendQueryKeychainsRequestParams = { - value: QueryKeychainsRequest; +type sendKeyResponseParams = { + value: KeyResponse; fee?: StdFee; memo?: string; }; -type sendQueryKeychainByAddressRequestParams = { - value: QueryKeychainByAddressRequest; +type sendMsgNewSpaceParams = { + value: MsgNewSpace; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type sendMsgRemoveSpaceOwnerParams = { + value: MsgRemoveSpaceOwner; fee?: StdFee; memo?: string; }; -type sendMsgUpdateKeyRequestResponseParams = { - value: MsgUpdateKeyRequestResponse; +type sendKeyRequestParams = { + value: KeyRequest; fee?: StdFee; memo?: string; }; -type sendMsgFulfilSignatureRequestResponseParams = { - value: MsgFulfilSignatureRequestResponse; +type sendKeychainFeesParams = { + value: KeychainFees; fee?: StdFee; memo?: string; }; -type sendKeyResponseParams = { - value: KeyResponse; +type sendQuerySpaceByAddressResponseParams = { + value: QuerySpaceByAddressResponse; fee?: StdFee; memo?: string; }; -type sendQuerySignTransactionRequestsResponseParams = { - value: QuerySignTransactionRequestsResponse; +type sendQuerySignatureRequestsRequestParams = { + value: QuerySignatureRequestsRequest; fee?: StdFee; memo?: string; }; -type sendQuerySignatureRequestByIdResponseParams = { - value: QuerySignatureRequestByIdResponse; +type sendMsgFulfilSignatureRequestResponseParams = { + value: MsgFulfilSignatureRequestResponse; fee?: StdFee; memo?: string; }; -type sendQuerySignTransactionRequestByIdResponseParams = { - value: QuerySignTransactionRequestByIdResponse; +type sendSpaceParams = { + value: Space; fee?: StdFee; memo?: string; }; -type sendMsgRemoveSpaceOwnerResponseParams = { - value: MsgRemoveSpaceOwnerResponse; +type sendQuerySpacesByOwnerRequestParams = { + value: QuerySpacesByOwnerRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateKeychainResponseParams = { - value: MsgUpdateKeychainResponse; +type sendSignTransactionRequestResponseParams = { + value: SignTransactionRequestResponse; fee?: StdFee; memo?: string; }; -type sendKeychainFeesParams = { - value: KeychainFees; +type sendMsgUpdateSpaceParams = { + value: MsgUpdateSpace; fee?: StdFee; memo?: string; }; -type sendQuerySpacesRequestParams = { - value: QuerySpacesRequest; +type sendQueryKeyRequestByIdRequestParams = { + value: QueryKeyRequestByIdRequest; fee?: StdFee; memo?: string; }; -type sendMsgAddKeychainPartyResponseParams = { - value: MsgAddKeychainPartyResponse; +type sendMsgRemoveSpaceOwnerResponseParams = { + value: MsgRemoveSpaceOwnerResponse; fee?: StdFee; memo?: string; }; -type sendQuerySpacesResponseParams = { - value: QuerySpacesResponse; +type sendMsgSignedDataParams = { + value: MsgSignedData; fee?: StdFee; memo?: string; }; -type sendWalletKeyResponseParams = { - value: WalletKeyResponse; +type sendQueryKeyRequestsRequestParams = { + value: QueryKeyRequestsRequest; fee?: StdFee; memo?: string; }; -type sendQuerySignatureRequestByIdRequestParams = { - value: QuerySignatureRequestByIdRequest; +type sendQuerySignTransactionRequestByIdResponseParams = { + value: QuerySignTransactionRequestByIdResponse; fee?: StdFee; memo?: string; }; -type sendSignTransactionRequestResponseParams = { - value: SignTransactionRequestResponse; +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; fee?: StdFee; memo?: string; }; -type sendKeychainParams = { - value: Keychain; +type sendMsgNewSignatureRequestParams = { + value: MsgNewSignatureRequest; fee?: StdFee; memo?: string; }; -type sendParamsParams = { - value: Params; +type sendQueryKeyRequestsResponseParams = { + value: QueryKeyRequestsResponse; fee?: StdFee; memo?: string; }; -type sendQueryKeysRequestParams = { - value: QueryKeysRequest; +type sendSignRequestParams = { + value: SignRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateKeyRequestParams = { - value: MsgUpdateKeyRequest; +type sendKeychainParams = { + value: Keychain; fee?: StdFee; memo?: string; }; -type sendMsgRemoveSpaceOwnerParams = { - value: MsgRemoveSpaceOwner; +type sendQueryKeychainsResponseParams = { + value: QueryKeychainsResponse; fee?: StdFee; memo?: string; }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest; +type sendMsgUpdateKeychainParams = { + value: MsgUpdateKeychain; fee?: StdFee; memo?: string; }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse; +type sendKeyParams = { + value: Key; fee?: StdFee; memo?: string; }; -type msgUpdateSpaceResponseParams = { - value: MsgUpdateSpaceResponse; +type queryKeychainByAddressRequestParams = { + value: QueryKeychainByAddressRequest; }; -type msgNewSignTransactionRequestParams = { - value: MsgNewSignTransactionRequest; +type queryKeysRequestParams = { + value: QueryKeysRequest; +}; +type querySignTransactionRequestsRequestParams = { + value: QuerySignTransactionRequestsRequest; +}; +type msgUpdateKeyRequestParams = { + value: MsgUpdateKeyRequest; +}; +type paramsParams = { + value: Params; +}; +type querySpaceByAddressRequestParams = { + value: QuerySpaceByAddressRequest; +}; +type querySignTransactionRequestByIdRequestParams = { + value: QuerySignTransactionRequestByIdRequest; +}; +type msgAddSpaceOwnerParams = { + value: MsgAddSpaceOwner; +}; +type msgNewSignatureRequestResponseParams = { + value: MsgNewSignatureRequestResponse; +}; +type queryKeychainByAddressResponseParams = { + value: QueryKeychainByAddressResponse; }; type queryKeysResponseParams = { value: QueryKeysResponse; @@ -411,191 +435,167 @@ type queryKeysResponseParams = { type msgUpdateParamsParams = { value: MsgUpdateParams; }; -type spaceParams = { - value: Space; -}; -type signTransactionRequestParams = { - value: SignTransactionRequest; +type msgNewKeyRequestParams = { + value: MsgNewKeyRequest; }; -type queryKeyRequestsResponseParams = { - value: QueryKeyRequestsResponse; +type msgUpdateSpaceResponseParams = { + value: MsgUpdateSpaceResponse; }; type msgNewKeyRequestResponseParams = { value: MsgNewKeyRequestResponse; }; -type msgNewKeychainParams = { - value: MsgNewKeychain; +type msgUpdateKeyRequestResponseParams = { + value: MsgUpdateKeyRequestResponse; }; -type signRequestParams = { - value: SignRequest; +type genesisStateParams = { + value: GenesisState; }; -type msgNewSpaceParams = { - value: MsgNewSpace; +type querySignatureRequestByIdRequestParams = { + value: QuerySignatureRequestByIdRequest; }; -type msgUpdateSpaceParams = { - value: MsgUpdateSpace; +type signTransactionRequestParams = { + value: SignTransactionRequest; }; -type msgNewKeyRequestParams = { - value: MsgNewKeyRequest; +type msgNewKeyParams = { + value: MsgNewKey; }; -type msgNewSignatureRequestResponseParams = { - value: MsgNewSignatureRequestResponse; +type msgNewSignTransactionRequestResponseParams = { + value: MsgNewSignTransactionRequestResponse; +}; +type metadataEthereumParams = { + value: MetadataEthereum; }; type queryKeyRequestByIdResponseParams = { value: QueryKeyRequestByIdResponse; }; -type msgNewKeychainResponseParams = { - value: MsgNewKeychainResponse; +type msgAddSpaceOwnerResponseParams = { + value: MsgAddSpaceOwnerResponse; }; -type msgUpdateKeychainParams = { - value: MsgUpdateKeychain; +type querySignatureRequestsResponseParams = { + value: QuerySignatureRequestsResponse; }; -type queryKeychainByAddressResponseParams = { - value: QueryKeychainByAddressResponse; +type querySignTransactionRequestsResponseParams = { + value: QuerySignTransactionRequestsResponse; }; -type msgNewSpaceResponseParams = { - value: MsgNewSpaceResponse; +type querySignatureRequestByIdResponseParams = { + value: QuerySignatureRequestByIdResponse; }; -type querySignTransactionRequestByIdRequestParams = { - value: QuerySignTransactionRequestByIdRequest; +type msgNewKeychainParams = { + value: MsgNewKeychain; }; type msgAddKeychainPartyParams = { value: MsgAddKeychainParty; }; -type genesisStateParams = { - value: GenesisState; +type msgAddKeychainPartyResponseParams = { + value: MsgAddKeychainPartyResponse; }; -type keyParams = { - value: Key; +type msgFulfilSignatureRequestParams = { + value: MsgFulfilSignatureRequest; }; -type queryKeychainsResponseParams = { - value: QueryKeychainsResponse; +type msgNewSignTransactionRequestParams = { + value: MsgNewSignTransactionRequest; }; -type querySignatureRequestsRequestParams = { - value: QuerySignatureRequestsRequest; +type queryParamsResponseParams = { + value: QueryParamsResponse; }; -type msgAddSpaceOwnerResponseParams = { - value: MsgAddSpaceOwnerResponse; +type walletKeyResponseParams = { + value: WalletKeyResponse; }; -type querySpacesByOwnerRequestParams = { - value: QuerySpacesByOwnerRequest; +type msgNewKeychainResponseParams = { + value: MsgNewKeychainResponse; }; -type queryKeyRequestByIdRequestParams = { - value: QueryKeyRequestByIdRequest; +type msgUpdateKeychainResponseParams = { + value: MsgUpdateKeychainResponse; }; -type querySignTransactionRequestsRequestParams = { - value: QuerySignTransactionRequestsRequest; +type querySpacesResponseParams = { + value: QuerySpacesResponse; }; -type msgAddSpaceOwnerParams = { - value: MsgAddSpaceOwner; +type queryKeychainsRequestParams = { + value: QueryKeychainsRequest; }; -type msgNewSignTransactionRequestResponseParams = { - value: MsgNewSignTransactionRequestResponse; +type querySpacesRequestParams = { + value: QuerySpacesRequest; }; -type querySpaceByAddressResponseParams = { - value: QuerySpaceByAddressResponse; +type msgNewSpaceResponseParams = { + value: MsgNewSpaceResponse; }; -type queryKeyRequestsRequestParams = { - value: QueryKeyRequestsRequest; +type queryParamsRequestParams = { + value: QueryParamsRequest; }; -type msgNewSignatureRequestParams = { - value: MsgNewSignatureRequest; +type keyResponseParams = { + value: KeyResponse; }; -type metadataEthereumParams = { - value: MetadataEthereum; +type msgNewSpaceParams = { + value: MsgNewSpace; +}; +type msgRemoveSpaceOwnerParams = { + value: MsgRemoveSpaceOwner; }; type keyRequestParams = { value: KeyRequest; }; -type querySpaceByAddressRequestParams = { - value: QuerySpaceByAddressRequest; -}; -type msgNewKeyParams = { - value: MsgNewKey; -}; -type querySignatureRequestsResponseParams = { - value: QuerySignatureRequestsResponse; -}; -type msgSignedDataParams = { - value: MsgSignedData; -}; -type msgFulfilSignatureRequestParams = { - value: MsgFulfilSignatureRequest; -}; -type queryKeychainsRequestParams = { - value: QueryKeychainsRequest; -}; -type queryKeychainByAddressRequestParams = { - value: QueryKeychainByAddressRequest; +type keychainFeesParams = { + value: KeychainFees; }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type querySpaceByAddressResponseParams = { + value: QuerySpaceByAddressResponse; }; -type msgUpdateKeyRequestResponseParams = { - value: MsgUpdateKeyRequestResponse; +type querySignatureRequestsRequestParams = { + value: QuerySignatureRequestsRequest; }; type msgFulfilSignatureRequestResponseParams = { value: MsgFulfilSignatureRequestResponse; }; -type keyResponseParams = { - value: KeyResponse; +type spaceParams = { + value: Space; }; -type querySignTransactionRequestsResponseParams = { - value: QuerySignTransactionRequestsResponse; +type querySpacesByOwnerRequestParams = { + value: QuerySpacesByOwnerRequest; }; -type querySignatureRequestByIdResponseParams = { - value: QuerySignatureRequestByIdResponse; +type signTransactionRequestResponseParams = { + value: SignTransactionRequestResponse; }; -type querySignTransactionRequestByIdResponseParams = { - value: QuerySignTransactionRequestByIdResponse; +type msgUpdateSpaceParams = { + value: MsgUpdateSpace; +}; +type queryKeyRequestByIdRequestParams = { + value: QueryKeyRequestByIdRequest; }; type msgRemoveSpaceOwnerResponseParams = { value: MsgRemoveSpaceOwnerResponse; }; -type msgUpdateKeychainResponseParams = { - value: MsgUpdateKeychainResponse; -}; -type keychainFeesParams = { - value: KeychainFees; +type msgSignedDataParams = { + value: MsgSignedData; }; -type querySpacesRequestParams = { - value: QuerySpacesRequest; +type queryKeyRequestsRequestParams = { + value: QueryKeyRequestsRequest; }; -type msgAddKeychainPartyResponseParams = { - value: MsgAddKeychainPartyResponse; +type querySignTransactionRequestByIdResponseParams = { + value: QuerySignTransactionRequestByIdResponse; }; -type querySpacesResponseParams = { - value: QuerySpacesResponse; +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; }; -type walletKeyResponseParams = { - value: WalletKeyResponse; +type msgNewSignatureRequestParams = { + value: MsgNewSignatureRequest; }; -type querySignatureRequestByIdRequestParams = { - value: QuerySignatureRequestByIdRequest; +type queryKeyRequestsResponseParams = { + value: QueryKeyRequestsResponse; }; -type signTransactionRequestResponseParams = { - value: SignTransactionRequestResponse; +type signRequestParams = { + value: SignRequest; }; type keychainParams = { value: Keychain; }; -type paramsParams = { - value: Params; -}; -type queryKeysRequestParams = { - value: QueryKeysRequest; -}; -type msgUpdateKeyRequestParams = { - value: MsgUpdateKeyRequest; -}; -type msgRemoveSpaceOwnerParams = { - value: MsgRemoveSpaceOwner; +type queryKeychainsResponseParams = { + value: QueryKeychainsResponse; }; -type queryParamsRequestParams = { - value: QueryParamsRequest; +type msgUpdateKeychainParams = { + value: MsgUpdateKeychain; }; -type queryParamsResponseParams = { - value: QueryParamsResponse; +type keyParams = { + value: Key; }; export declare const registry: Registry; interface TxClientOptions { @@ -604,138 +604,138 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendMsgUpdateSpaceResponse({ value, fee, memo }: sendMsgUpdateSpaceResponseParams): Promise; - sendMsgNewSignTransactionRequest({ value, fee, memo }: sendMsgNewSignTransactionRequestParams): Promise; + sendQueryKeychainByAddressRequest({ value, fee, memo }: sendQueryKeychainByAddressRequestParams): Promise; + sendQueryKeysRequest({ value, fee, memo }: sendQueryKeysRequestParams): Promise; + sendQuerySignTransactionRequestsRequest({ value, fee, memo }: sendQuerySignTransactionRequestsRequestParams): Promise; + sendMsgUpdateKeyRequest({ value, fee, memo }: sendMsgUpdateKeyRequestParams): Promise; + sendParams({ value, fee, memo }: sendParamsParams): Promise; + sendQuerySpaceByAddressRequest({ value, fee, memo }: sendQuerySpaceByAddressRequestParams): Promise; + sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }: sendQuerySignTransactionRequestByIdRequestParams): Promise; + sendMsgAddSpaceOwner({ value, fee, memo }: sendMsgAddSpaceOwnerParams): Promise; + sendMsgNewSignatureRequestResponse({ value, fee, memo }: sendMsgNewSignatureRequestResponseParams): Promise; + sendQueryKeychainByAddressResponse({ value, fee, memo }: sendQueryKeychainByAddressResponseParams): Promise; sendQueryKeysResponse({ value, fee, memo }: sendQueryKeysResponseParams): Promise; sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; - sendSpace({ value, fee, memo }: sendSpaceParams): Promise; - sendSignTransactionRequest({ value, fee, memo }: sendSignTransactionRequestParams): Promise; - sendQueryKeyRequestsResponse({ value, fee, memo }: sendQueryKeyRequestsResponseParams): Promise; - sendMsgNewKeyRequestResponse({ value, fee, memo }: sendMsgNewKeyRequestResponseParams): Promise; - sendMsgNewKeychain({ value, fee, memo }: sendMsgNewKeychainParams): Promise; - sendSignRequest({ value, fee, memo }: sendSignRequestParams): Promise; - sendMsgNewSpace({ value, fee, memo }: sendMsgNewSpaceParams): Promise; - sendMsgUpdateSpace({ value, fee, memo }: sendMsgUpdateSpaceParams): Promise; sendMsgNewKeyRequest({ value, fee, memo }: sendMsgNewKeyRequestParams): Promise; - sendMsgNewSignatureRequestResponse({ value, fee, memo }: sendMsgNewSignatureRequestResponseParams): Promise; - sendQueryKeyRequestByIdResponse({ value, fee, memo }: sendQueryKeyRequestByIdResponseParams): Promise; - sendMsgNewKeychainResponse({ value, fee, memo }: sendMsgNewKeychainResponseParams): Promise; - sendMsgUpdateKeychain({ value, fee, memo }: sendMsgUpdateKeychainParams): Promise; - sendQueryKeychainByAddressResponse({ value, fee, memo }: sendQueryKeychainByAddressResponseParams): Promise; - sendMsgNewSpaceResponse({ value, fee, memo }: sendMsgNewSpaceResponseParams): Promise; - sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }: sendQuerySignTransactionRequestByIdRequestParams): Promise; - sendMsgAddKeychainParty({ value, fee, memo }: sendMsgAddKeychainPartyParams): Promise; + sendMsgUpdateSpaceResponse({ value, fee, memo }: sendMsgUpdateSpaceResponseParams): Promise; + sendMsgNewKeyRequestResponse({ value, fee, memo }: sendMsgNewKeyRequestResponseParams): Promise; + sendMsgUpdateKeyRequestResponse({ value, fee, memo }: sendMsgUpdateKeyRequestResponseParams): Promise; sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendKey({ value, fee, memo }: sendKeyParams): Promise; - sendQueryKeychainsResponse({ value, fee, memo }: sendQueryKeychainsResponseParams): Promise; - sendQuerySignatureRequestsRequest({ value, fee, memo }: sendQuerySignatureRequestsRequestParams): Promise; - sendMsgAddSpaceOwnerResponse({ value, fee, memo }: sendMsgAddSpaceOwnerResponseParams): Promise; - sendQuerySpacesByOwnerRequest({ value, fee, memo }: sendQuerySpacesByOwnerRequestParams): Promise; - sendQueryKeyRequestByIdRequest({ value, fee, memo }: sendQueryKeyRequestByIdRequestParams): Promise; - sendQuerySignTransactionRequestsRequest({ value, fee, memo }: sendQuerySignTransactionRequestsRequestParams): Promise; - sendMsgAddSpaceOwner({ value, fee, memo }: sendMsgAddSpaceOwnerParams): Promise; + sendQuerySignatureRequestByIdRequest({ value, fee, memo }: sendQuerySignatureRequestByIdRequestParams): Promise; + sendSignTransactionRequest({ value, fee, memo }: sendSignTransactionRequestParams): Promise; + sendMsgNewKey({ value, fee, memo }: sendMsgNewKeyParams): Promise; sendMsgNewSignTransactionRequestResponse({ value, fee, memo }: sendMsgNewSignTransactionRequestResponseParams): Promise; - sendQuerySpaceByAddressResponse({ value, fee, memo }: sendQuerySpaceByAddressResponseParams): Promise; - sendQueryKeyRequestsRequest({ value, fee, memo }: sendQueryKeyRequestsRequestParams): Promise; - sendMsgNewSignatureRequest({ value, fee, memo }: sendMsgNewSignatureRequestParams): Promise; sendMetadataEthereum({ value, fee, memo }: sendMetadataEthereumParams): Promise; - sendKeyRequest({ value, fee, memo }: sendKeyRequestParams): Promise; - sendQuerySpaceByAddressRequest({ value, fee, memo }: sendQuerySpaceByAddressRequestParams): Promise; - sendMsgNewKey({ value, fee, memo }: sendMsgNewKeyParams): Promise; + sendQueryKeyRequestByIdResponse({ value, fee, memo }: sendQueryKeyRequestByIdResponseParams): Promise; + sendMsgAddSpaceOwnerResponse({ value, fee, memo }: sendMsgAddSpaceOwnerResponseParams): Promise; sendQuerySignatureRequestsResponse({ value, fee, memo }: sendQuerySignatureRequestsResponseParams): Promise; - sendMsgSignedData({ value, fee, memo }: sendMsgSignedDataParams): Promise; - sendMsgFulfilSignatureRequest({ value, fee, memo }: sendMsgFulfilSignatureRequestParams): Promise; - sendQueryKeychainsRequest({ value, fee, memo }: sendQueryKeychainsRequestParams): Promise; - sendQueryKeychainByAddressRequest({ value, fee, memo }: sendQueryKeychainByAddressRequestParams): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; - sendMsgUpdateKeyRequestResponse({ value, fee, memo }: sendMsgUpdateKeyRequestResponseParams): Promise; - sendMsgFulfilSignatureRequestResponse({ value, fee, memo }: sendMsgFulfilSignatureRequestResponseParams): Promise; - sendKeyResponse({ value, fee, memo }: sendKeyResponseParams): Promise; sendQuerySignTransactionRequestsResponse({ value, fee, memo }: sendQuerySignTransactionRequestsResponseParams): Promise; sendQuerySignatureRequestByIdResponse({ value, fee, memo }: sendQuerySignatureRequestByIdResponseParams): Promise; - sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }: sendQuerySignTransactionRequestByIdResponseParams): Promise; - sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }: sendMsgRemoveSpaceOwnerResponseParams): Promise; - sendMsgUpdateKeychainResponse({ value, fee, memo }: sendMsgUpdateKeychainResponseParams): Promise; - sendKeychainFees({ value, fee, memo }: sendKeychainFeesParams): Promise; - sendQuerySpacesRequest({ value, fee, memo }: sendQuerySpacesRequestParams): Promise; + sendMsgNewKeychain({ value, fee, memo }: sendMsgNewKeychainParams): Promise; + sendMsgAddKeychainParty({ value, fee, memo }: sendMsgAddKeychainPartyParams): Promise; sendMsgAddKeychainPartyResponse({ value, fee, memo }: sendMsgAddKeychainPartyResponseParams): Promise; - sendQuerySpacesResponse({ value, fee, memo }: sendQuerySpacesResponseParams): Promise; + sendMsgFulfilSignatureRequest({ value, fee, memo }: sendMsgFulfilSignatureRequestParams): Promise; + sendMsgNewSignTransactionRequest({ value, fee, memo }: sendMsgNewSignTransactionRequestParams): Promise; + sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; sendWalletKeyResponse({ value, fee, memo }: sendWalletKeyResponseParams): Promise; - sendQuerySignatureRequestByIdRequest({ value, fee, memo }: sendQuerySignatureRequestByIdRequestParams): Promise; + sendMsgNewKeychainResponse({ value, fee, memo }: sendMsgNewKeychainResponseParams): Promise; + sendMsgUpdateKeychainResponse({ value, fee, memo }: sendMsgUpdateKeychainResponseParams): Promise; + sendQuerySpacesResponse({ value, fee, memo }: sendQuerySpacesResponseParams): Promise; + sendQueryKeychainsRequest({ value, fee, memo }: sendQueryKeychainsRequestParams): Promise; + sendQuerySpacesRequest({ value, fee, memo }: sendQuerySpacesRequestParams): Promise; + sendMsgNewSpaceResponse({ value, fee, memo }: sendMsgNewSpaceResponseParams): Promise; + sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; + sendKeyResponse({ value, fee, memo }: sendKeyResponseParams): Promise; + sendMsgNewSpace({ value, fee, memo }: sendMsgNewSpaceParams): Promise; + sendMsgRemoveSpaceOwner({ value, fee, memo }: sendMsgRemoveSpaceOwnerParams): Promise; + sendKeyRequest({ value, fee, memo }: sendKeyRequestParams): Promise; + sendKeychainFees({ value, fee, memo }: sendKeychainFeesParams): Promise; + sendQuerySpaceByAddressResponse({ value, fee, memo }: sendQuerySpaceByAddressResponseParams): Promise; + sendQuerySignatureRequestsRequest({ value, fee, memo }: sendQuerySignatureRequestsRequestParams): Promise; + sendMsgFulfilSignatureRequestResponse({ value, fee, memo }: sendMsgFulfilSignatureRequestResponseParams): Promise; + sendSpace({ value, fee, memo }: sendSpaceParams): Promise; + sendQuerySpacesByOwnerRequest({ value, fee, memo }: sendQuerySpacesByOwnerRequestParams): Promise; sendSignTransactionRequestResponse({ value, fee, memo }: sendSignTransactionRequestResponseParams): Promise; + sendMsgUpdateSpace({ value, fee, memo }: sendMsgUpdateSpaceParams): Promise; + sendQueryKeyRequestByIdRequest({ value, fee, memo }: sendQueryKeyRequestByIdRequestParams): Promise; + sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }: sendMsgRemoveSpaceOwnerResponseParams): Promise; + sendMsgSignedData({ value, fee, memo }: sendMsgSignedDataParams): Promise; + sendQueryKeyRequestsRequest({ value, fee, memo }: sendQueryKeyRequestsRequestParams): Promise; + sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }: sendQuerySignTransactionRequestByIdResponseParams): Promise; + sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; + sendMsgNewSignatureRequest({ value, fee, memo }: sendMsgNewSignatureRequestParams): Promise; + sendQueryKeyRequestsResponse({ value, fee, memo }: sendQueryKeyRequestsResponseParams): Promise; + sendSignRequest({ value, fee, memo }: sendSignRequestParams): Promise; sendKeychain({ value, fee, memo }: sendKeychainParams): Promise; - sendParams({ value, fee, memo }: sendParamsParams): Promise; - sendQueryKeysRequest({ value, fee, memo }: sendQueryKeysRequestParams): Promise; - sendMsgUpdateKeyRequest({ value, fee, memo }: sendMsgUpdateKeyRequestParams): Promise; - sendMsgRemoveSpaceOwner({ value, fee, memo }: sendMsgRemoveSpaceOwnerParams): Promise; - sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; - sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; - msgUpdateSpaceResponse({ value }: msgUpdateSpaceResponseParams): EncodeObject; - msgNewSignTransactionRequest({ value }: msgNewSignTransactionRequestParams): EncodeObject; + sendQueryKeychainsResponse({ value, fee, memo }: sendQueryKeychainsResponseParams): Promise; + sendMsgUpdateKeychain({ value, fee, memo }: sendMsgUpdateKeychainParams): Promise; + sendKey({ value, fee, memo }: sendKeyParams): Promise; + queryKeychainByAddressRequest({ value }: queryKeychainByAddressRequestParams): EncodeObject; + queryKeysRequest({ value }: queryKeysRequestParams): EncodeObject; + querySignTransactionRequestsRequest({ value }: querySignTransactionRequestsRequestParams): EncodeObject; + msgUpdateKeyRequest({ value }: msgUpdateKeyRequestParams): EncodeObject; + params({ value }: paramsParams): EncodeObject; + querySpaceByAddressRequest({ value }: querySpaceByAddressRequestParams): EncodeObject; + querySignTransactionRequestByIdRequest({ value }: querySignTransactionRequestByIdRequestParams): EncodeObject; + msgAddSpaceOwner({ value }: msgAddSpaceOwnerParams): EncodeObject; + msgNewSignatureRequestResponse({ value }: msgNewSignatureRequestResponseParams): EncodeObject; + queryKeychainByAddressResponse({ value }: queryKeychainByAddressResponseParams): EncodeObject; queryKeysResponse({ value }: queryKeysResponseParams): EncodeObject; msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; - space({ value }: spaceParams): EncodeObject; - signTransactionRequest({ value }: signTransactionRequestParams): EncodeObject; - queryKeyRequestsResponse({ value }: queryKeyRequestsResponseParams): EncodeObject; - msgNewKeyRequestResponse({ value }: msgNewKeyRequestResponseParams): EncodeObject; - msgNewKeychain({ value }: msgNewKeychainParams): EncodeObject; - signRequest({ value }: signRequestParams): EncodeObject; - msgNewSpace({ value }: msgNewSpaceParams): EncodeObject; - msgUpdateSpace({ value }: msgUpdateSpaceParams): EncodeObject; msgNewKeyRequest({ value }: msgNewKeyRequestParams): EncodeObject; - msgNewSignatureRequestResponse({ value }: msgNewSignatureRequestResponseParams): EncodeObject; - queryKeyRequestByIdResponse({ value }: queryKeyRequestByIdResponseParams): EncodeObject; - msgNewKeychainResponse({ value }: msgNewKeychainResponseParams): EncodeObject; - msgUpdateKeychain({ value }: msgUpdateKeychainParams): EncodeObject; - queryKeychainByAddressResponse({ value }: queryKeychainByAddressResponseParams): EncodeObject; - msgNewSpaceResponse({ value }: msgNewSpaceResponseParams): EncodeObject; - querySignTransactionRequestByIdRequest({ value }: querySignTransactionRequestByIdRequestParams): EncodeObject; - msgAddKeychainParty({ value }: msgAddKeychainPartyParams): EncodeObject; + msgUpdateSpaceResponse({ value }: msgUpdateSpaceResponseParams): EncodeObject; + msgNewKeyRequestResponse({ value }: msgNewKeyRequestResponseParams): EncodeObject; + msgUpdateKeyRequestResponse({ value }: msgUpdateKeyRequestResponseParams): EncodeObject; genesisState({ value }: genesisStateParams): EncodeObject; - key({ value }: keyParams): EncodeObject; - queryKeychainsResponse({ value }: queryKeychainsResponseParams): EncodeObject; - querySignatureRequestsRequest({ value }: querySignatureRequestsRequestParams): EncodeObject; - msgAddSpaceOwnerResponse({ value }: msgAddSpaceOwnerResponseParams): EncodeObject; - querySpacesByOwnerRequest({ value }: querySpacesByOwnerRequestParams): EncodeObject; - queryKeyRequestByIdRequest({ value }: queryKeyRequestByIdRequestParams): EncodeObject; - querySignTransactionRequestsRequest({ value }: querySignTransactionRequestsRequestParams): EncodeObject; - msgAddSpaceOwner({ value }: msgAddSpaceOwnerParams): EncodeObject; + querySignatureRequestByIdRequest({ value }: querySignatureRequestByIdRequestParams): EncodeObject; + signTransactionRequest({ value }: signTransactionRequestParams): EncodeObject; + msgNewKey({ value }: msgNewKeyParams): EncodeObject; msgNewSignTransactionRequestResponse({ value }: msgNewSignTransactionRequestResponseParams): EncodeObject; - querySpaceByAddressResponse({ value }: querySpaceByAddressResponseParams): EncodeObject; - queryKeyRequestsRequest({ value }: queryKeyRequestsRequestParams): EncodeObject; - msgNewSignatureRequest({ value }: msgNewSignatureRequestParams): EncodeObject; metadataEthereum({ value }: metadataEthereumParams): EncodeObject; - keyRequest({ value }: keyRequestParams): EncodeObject; - querySpaceByAddressRequest({ value }: querySpaceByAddressRequestParams): EncodeObject; - msgNewKey({ value }: msgNewKeyParams): EncodeObject; + queryKeyRequestByIdResponse({ value }: queryKeyRequestByIdResponseParams): EncodeObject; + msgAddSpaceOwnerResponse({ value }: msgAddSpaceOwnerResponseParams): EncodeObject; querySignatureRequestsResponse({ value }: querySignatureRequestsResponseParams): EncodeObject; - msgSignedData({ value }: msgSignedDataParams): EncodeObject; - msgFulfilSignatureRequest({ value }: msgFulfilSignatureRequestParams): EncodeObject; - queryKeychainsRequest({ value }: queryKeychainsRequestParams): EncodeObject; - queryKeychainByAddressRequest({ value }: queryKeychainByAddressRequestParams): EncodeObject; - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; - msgUpdateKeyRequestResponse({ value }: msgUpdateKeyRequestResponseParams): EncodeObject; - msgFulfilSignatureRequestResponse({ value }: msgFulfilSignatureRequestResponseParams): EncodeObject; - keyResponse({ value }: keyResponseParams): EncodeObject; querySignTransactionRequestsResponse({ value }: querySignTransactionRequestsResponseParams): EncodeObject; querySignatureRequestByIdResponse({ value }: querySignatureRequestByIdResponseParams): EncodeObject; - querySignTransactionRequestByIdResponse({ value }: querySignTransactionRequestByIdResponseParams): EncodeObject; - msgRemoveSpaceOwnerResponse({ value }: msgRemoveSpaceOwnerResponseParams): EncodeObject; - msgUpdateKeychainResponse({ value }: msgUpdateKeychainResponseParams): EncodeObject; - keychainFees({ value }: keychainFeesParams): EncodeObject; - querySpacesRequest({ value }: querySpacesRequestParams): EncodeObject; + msgNewKeychain({ value }: msgNewKeychainParams): EncodeObject; + msgAddKeychainParty({ value }: msgAddKeychainPartyParams): EncodeObject; msgAddKeychainPartyResponse({ value }: msgAddKeychainPartyResponseParams): EncodeObject; - querySpacesResponse({ value }: querySpacesResponseParams): EncodeObject; + msgFulfilSignatureRequest({ value }: msgFulfilSignatureRequestParams): EncodeObject; + msgNewSignTransactionRequest({ value }: msgNewSignTransactionRequestParams): EncodeObject; + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; walletKeyResponse({ value }: walletKeyResponseParams): EncodeObject; - querySignatureRequestByIdRequest({ value }: querySignatureRequestByIdRequestParams): EncodeObject; + msgNewKeychainResponse({ value }: msgNewKeychainResponseParams): EncodeObject; + msgUpdateKeychainResponse({ value }: msgUpdateKeychainResponseParams): EncodeObject; + querySpacesResponse({ value }: querySpacesResponseParams): EncodeObject; + queryKeychainsRequest({ value }: queryKeychainsRequestParams): EncodeObject; + querySpacesRequest({ value }: querySpacesRequestParams): EncodeObject; + msgNewSpaceResponse({ value }: msgNewSpaceResponseParams): EncodeObject; + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; + keyResponse({ value }: keyResponseParams): EncodeObject; + msgNewSpace({ value }: msgNewSpaceParams): EncodeObject; + msgRemoveSpaceOwner({ value }: msgRemoveSpaceOwnerParams): EncodeObject; + keyRequest({ value }: keyRequestParams): EncodeObject; + keychainFees({ value }: keychainFeesParams): EncodeObject; + querySpaceByAddressResponse({ value }: querySpaceByAddressResponseParams): EncodeObject; + querySignatureRequestsRequest({ value }: querySignatureRequestsRequestParams): EncodeObject; + msgFulfilSignatureRequestResponse({ value }: msgFulfilSignatureRequestResponseParams): EncodeObject; + space({ value }: spaceParams): EncodeObject; + querySpacesByOwnerRequest({ value }: querySpacesByOwnerRequestParams): EncodeObject; signTransactionRequestResponse({ value }: signTransactionRequestResponseParams): EncodeObject; + msgUpdateSpace({ value }: msgUpdateSpaceParams): EncodeObject; + queryKeyRequestByIdRequest({ value }: queryKeyRequestByIdRequestParams): EncodeObject; + msgRemoveSpaceOwnerResponse({ value }: msgRemoveSpaceOwnerResponseParams): EncodeObject; + msgSignedData({ value }: msgSignedDataParams): EncodeObject; + queryKeyRequestsRequest({ value }: queryKeyRequestsRequestParams): EncodeObject; + querySignTransactionRequestByIdResponse({ value }: querySignTransactionRequestByIdResponseParams): EncodeObject; + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; + msgNewSignatureRequest({ value }: msgNewSignatureRequestParams): EncodeObject; + queryKeyRequestsResponse({ value }: queryKeyRequestsResponseParams): EncodeObject; + signRequest({ value }: signRequestParams): EncodeObject; keychain({ value }: keychainParams): EncodeObject; - params({ value }: paramsParams): EncodeObject; - queryKeysRequest({ value }: queryKeysRequestParams): EncodeObject; - msgUpdateKeyRequest({ value }: msgUpdateKeyRequestParams): EncodeObject; - msgRemoveSpaceOwner({ value }: msgRemoveSpaceOwnerParams): EncodeObject; - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; + queryKeychainsResponse({ value }: queryKeychainsResponseParams): EncodeObject; + msgUpdateKeychain({ value }: msgUpdateKeychainParams): EncodeObject; + key({ value }: keyParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/warden.warden.v1beta1/module.js b/ts-client/lib/warden.warden.v1beta1/module.js index 894eacab7..1879d8788 100644 --- a/ts-client/lib/warden.warden.v1beta1/module.js +++ b/ts-client/lib/warden.warden.v1beta1/module.js @@ -3,73 +3,73 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeychainByAddressRequest } from "./types/warden/warden/v1beta1/query"; +import { QueryKeysRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySignTransactionRequestsRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta1/tx"; +import { Params } from "./types/warden/warden/v1beta1/params"; +import { QuerySpaceByAddressRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeychainByAddressResponse } from "./types/warden/warden/v1beta1/query"; import { QueryKeysResponse } from "./types/warden/warden/v1beta1/query"; import { MsgUpdateParams } from "./types/warden/warden/v1beta1/tx"; -import { Space } from "./types/warden/warden/v1beta1/space"; -import { SignTransactionRequest } from "./types/warden/warden/v1beta1/signature"; -import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewKeychain } from "./types/warden/warden/v1beta1/tx"; -import { SignRequest } from "./types/warden/warden/v1beta1/signature"; -import { MsgNewSpace } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateSpace } from "./types/warden/warden/v1beta1/tx"; import { MsgNewKeyRequest } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgNewKeychainResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateKeychain } from "./types/warden/warden/v1beta1/tx"; -import { QueryKeychainByAddressResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgAddKeychainParty } from "./types/warden/warden/v1beta1/tx"; +import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; import { GenesisState } from "./types/warden/warden/v1beta1/genesis"; -import { Key } from "./types/warden/warden/v1beta1/key"; -import { QueryKeychainsResponse } from "./types/warden/warden/v1beta1/query"; -import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryKeyRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; -import { QuerySignTransactionRequestsRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta1/tx"; +import { QuerySignatureRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; +import { SignTransactionRequest } from "./types/warden/warden/v1beta1/signature"; +import { MsgNewKey } from "./types/warden/warden/v1beta1/tx"; import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySpaceByAddressResponse } from "./types/warden/warden/v1beta1/query"; -import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta1/tx"; import { MetadataEthereum } from "./types/warden/warden/v1beta1/tx"; -import { KeyRequest } from "./types/warden/warden/v1beta1/key"; -import { QuerySpaceByAddressRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgNewKey } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; import { QuerySignatureRequestsResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgSignedData } from "./types/warden/warden/v1beta1/tx"; -import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta1/tx"; -import { QueryKeychainsRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryKeychainByAddressRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { KeyResponse } from "./types/warden/warden/v1beta1/query"; import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta1/query"; import { QuerySignatureRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; -import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta1/tx"; -import { KeychainFees } from "./types/warden/warden/v1beta1/keychain"; -import { QuerySpacesRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgNewKeychain } from "./types/warden/warden/v1beta1/tx"; +import { MsgAddKeychainParty } from "./types/warden/warden/v1beta1/tx"; import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySpacesResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta1/tx"; +import { QueryParamsResponse } from "./types/warden/warden/v1beta1/query"; import { WalletKeyResponse } from "./types/warden/warden/v1beta1/query"; -import { QuerySignatureRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgNewKeychainResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta1/tx"; +import { QuerySpacesResponse } from "./types/warden/warden/v1beta1/query"; +import { QueryKeychainsRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySpacesRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta1/tx"; +import { QueryParamsRequest } from "./types/warden/warden/v1beta1/query"; +import { KeyResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgNewSpace } from "./types/warden/warden/v1beta1/tx"; +import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta1/tx"; +import { KeyRequest } from "./types/warden/warden/v1beta1/key"; +import { KeychainFees } from "./types/warden/warden/v1beta1/keychain"; +import { QuerySpaceByAddressResponse } from "./types/warden/warden/v1beta1/query"; +import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { Space } from "./types/warden/warden/v1beta1/space"; +import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta1/query"; import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateSpace } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgSignedData } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta1/query"; +import { SignRequest } from "./types/warden/warden/v1beta1/signature"; import { Keychain } from "./types/warden/warden/v1beta1/keychain"; -import { Params } from "./types/warden/warden/v1beta1/params"; -import { QueryKeysRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta1/tx"; -import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta1/tx"; -import { QueryParamsRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryParamsResponse } from "./types/warden/warden/v1beta1/query"; -export { MsgUpdateSpaceResponse, MsgNewSignTransactionRequest, QueryKeysResponse, MsgUpdateParams, Space, SignTransactionRequest, QueryKeyRequestsResponse, MsgNewKeyRequestResponse, MsgNewKeychain, SignRequest, MsgNewSpace, MsgUpdateSpace, MsgNewKeyRequest, MsgNewSignatureRequestResponse, QueryKeyRequestByIdResponse, MsgNewKeychainResponse, MsgUpdateKeychain, QueryKeychainByAddressResponse, MsgNewSpaceResponse, QuerySignTransactionRequestByIdRequest, MsgAddKeychainParty, GenesisState, Key, QueryKeychainsResponse, QuerySignatureRequestsRequest, MsgAddSpaceOwnerResponse, QuerySpacesByOwnerRequest, QueryKeyRequestByIdRequest, QuerySignTransactionRequestsRequest, MsgAddSpaceOwner, MsgNewSignTransactionRequestResponse, QuerySpaceByAddressResponse, QueryKeyRequestsRequest, MsgNewSignatureRequest, MetadataEthereum, KeyRequest, QuerySpaceByAddressRequest, MsgNewKey, QuerySignatureRequestsResponse, MsgSignedData, MsgFulfilSignatureRequest, QueryKeychainsRequest, QueryKeychainByAddressRequest, MsgUpdateParamsResponse, MsgUpdateKeyRequestResponse, MsgFulfilSignatureRequestResponse, KeyResponse, QuerySignTransactionRequestsResponse, QuerySignatureRequestByIdResponse, QuerySignTransactionRequestByIdResponse, MsgRemoveSpaceOwnerResponse, MsgUpdateKeychainResponse, KeychainFees, QuerySpacesRequest, MsgAddKeychainPartyResponse, QuerySpacesResponse, WalletKeyResponse, QuerySignatureRequestByIdRequest, SignTransactionRequestResponse, Keychain, Params, QueryKeysRequest, MsgUpdateKeyRequest, MsgRemoveSpaceOwner, QueryParamsRequest, QueryParamsResponse }; +import { QueryKeychainsResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateKeychain } from "./types/warden/warden/v1beta1/tx"; +import { Key } from "./types/warden/warden/v1beta1/key"; +export { QueryKeychainByAddressRequest, QueryKeysRequest, QuerySignTransactionRequestsRequest, MsgUpdateKeyRequest, Params, QuerySpaceByAddressRequest, QuerySignTransactionRequestByIdRequest, MsgAddSpaceOwner, MsgNewSignatureRequestResponse, QueryKeychainByAddressResponse, QueryKeysResponse, MsgUpdateParams, MsgNewKeyRequest, MsgUpdateSpaceResponse, MsgNewKeyRequestResponse, MsgUpdateKeyRequestResponse, GenesisState, QuerySignatureRequestByIdRequest, SignTransactionRequest, MsgNewKey, MsgNewSignTransactionRequestResponse, MetadataEthereum, QueryKeyRequestByIdResponse, MsgAddSpaceOwnerResponse, QuerySignatureRequestsResponse, QuerySignTransactionRequestsResponse, QuerySignatureRequestByIdResponse, MsgNewKeychain, MsgAddKeychainParty, MsgAddKeychainPartyResponse, MsgFulfilSignatureRequest, MsgNewSignTransactionRequest, QueryParamsResponse, WalletKeyResponse, MsgNewKeychainResponse, MsgUpdateKeychainResponse, QuerySpacesResponse, QueryKeychainsRequest, QuerySpacesRequest, MsgNewSpaceResponse, QueryParamsRequest, KeyResponse, MsgNewSpace, MsgRemoveSpaceOwner, KeyRequest, KeychainFees, QuerySpaceByAddressResponse, QuerySignatureRequestsRequest, MsgFulfilSignatureRequestResponse, Space, QuerySpacesByOwnerRequest, SignTransactionRequestResponse, MsgUpdateSpace, QueryKeyRequestByIdRequest, MsgRemoveSpaceOwnerResponse, MsgSignedData, QueryKeyRequestsRequest, QuerySignTransactionRequestByIdResponse, MsgUpdateParamsResponse, MsgNewSignatureRequest, QueryKeyRequestsResponse, SignRequest, Keychain, QueryKeychainsResponse, MsgUpdateKeychain, Key }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -85,172 +85,172 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendMsgUpdateSpaceResponse({ value, fee, memo }) { + async sendQueryKeychainByAddressRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateSpaceResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeychainByAddressRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgUpdateSpaceResponse({ value: MsgUpdateSpaceResponse.fromPartial(value) }); + let msg = this.queryKeychainByAddressRequest({ value: QueryKeychainByAddressRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateSpaceResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeychainByAddressRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewSignTransactionRequest({ value, fee, memo }) { + async sendQueryKeysRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewSignTransactionRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeysRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewSignTransactionRequest({ value: MsgNewSignTransactionRequest.fromPartial(value) }); + let msg = this.queryKeysRequest({ value: QueryKeysRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewSignTransactionRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeysRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeysResponse({ value, fee, memo }) { + async sendQuerySignTransactionRequestsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeysResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeysResponse({ value: QueryKeysResponse.fromPartial(value) }); + let msg = this.querySignTransactionRequestsRequest({ value: QuerySignTransactionRequestsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeysResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParams({ value, fee, memo }) { + async sendMsgUpdateKeyRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgUpdateKeyRequest: Unable to 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.msgUpdateKeyRequest({ value: MsgUpdateKeyRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateKeyRequest: Could not broadcast Tx: ' + e.message); } }, - async sendSpace({ value, fee, memo }) { + async sendParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSpace: 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.space({ value: Space.fromPartial(value) }); + let msg = this.params({ value: Params.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSpace: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); } }, - async sendSignTransactionRequest({ value, fee, memo }) { + async sendQuerySpaceByAddressRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSignTransactionRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySpaceByAddressRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.signTransactionRequest({ value: SignTransactionRequest.fromPartial(value) }); + let msg = this.querySpaceByAddressRequest({ value: QuerySpaceByAddressRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSignTransactionRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySpaceByAddressRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeyRequestsResponse({ value, fee, memo }) { + async sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeyRequestsResponse({ value: QueryKeyRequestsResponse.fromPartial(value) }); + let msg = this.querySignTransactionRequestByIdRequest({ value: QuerySignTransactionRequestByIdRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeyRequestsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewKeyRequestResponse({ value, fee, memo }) { + async sendMsgAddSpaceOwner({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewKeyRequestResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgAddSpaceOwner: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewKeyRequestResponse({ value: MsgNewKeyRequestResponse.fromPartial(value) }); + let msg = this.msgAddSpaceOwner({ value: MsgAddSpaceOwner.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewKeyRequestResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgAddSpaceOwner: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewKeychain({ value, fee, memo }) { + async sendMsgNewSignatureRequestResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewKeychain: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewKeychain({ value: MsgNewKeychain.fromPartial(value) }); + let msg = this.msgNewSignatureRequestResponse({ value: MsgNewSignatureRequestResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewKeychain: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Could not broadcast Tx: ' + e.message); } }, - async sendSignRequest({ value, fee, memo }) { + async sendQueryKeychainByAddressResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSignRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeychainByAddressResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.signRequest({ value: SignRequest.fromPartial(value) }); + let msg = this.queryKeychainByAddressResponse({ value: QueryKeychainByAddressResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSignRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeychainByAddressResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewSpace({ value, fee, memo }) { + async sendQueryKeysResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewSpace: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeysResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewSpace({ value: MsgNewSpace.fromPartial(value) }); + let msg = this.queryKeysResponse({ value: QueryKeysResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewSpace: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeysResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateSpace({ value, fee, memo }) { + async sendMsgUpdateParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateSpace: 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.msgUpdateSpace({ value: MsgUpdateSpace.fromPartial(value) }); + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateSpace: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); } }, async sendMsgNewKeyRequest({ value, fee, memo }) { @@ -267,842 +267,842 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendMsgNewKeyRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewSignatureRequestResponse({ value, fee, memo }) { + async sendMsgUpdateSpaceResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgUpdateSpaceResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewSignatureRequestResponse({ value: MsgNewSignatureRequestResponse.fromPartial(value) }); + let msg = this.msgUpdateSpaceResponse({ value: MsgUpdateSpaceResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateSpaceResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeyRequestByIdResponse({ value, fee, memo }) { + async sendMsgNewKeyRequestResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestByIdResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewKeyRequestResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeyRequestByIdResponse({ value: QueryKeyRequestByIdResponse.fromPartial(value) }); + let msg = this.msgNewKeyRequestResponse({ value: MsgNewKeyRequestResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeyRequestByIdResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewKeyRequestResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewKeychainResponse({ value, fee, memo }) { + async sendMsgUpdateKeyRequestResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewKeychainResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewKeychainResponse({ value: MsgNewKeychainResponse.fromPartial(value) }); + let msg = this.msgUpdateKeyRequestResponse({ value: MsgUpdateKeyRequestResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewKeychainResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateKeychain({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeychain: 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.msgUpdateKeychain({ value: MsgUpdateKeychain.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateKeychain: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeychainByAddressResponse({ value, fee, memo }) { + async sendQuerySignatureRequestByIdRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeychainByAddressResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeychainByAddressResponse({ value: QueryKeychainByAddressResponse.fromPartial(value) }); + let msg = this.querySignatureRequestByIdRequest({ value: QuerySignatureRequestByIdRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeychainByAddressResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewSpaceResponse({ value, fee, memo }) { + async sendSignTransactionRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewSpaceResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendSignTransactionRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewSpaceResponse({ value: MsgNewSpaceResponse.fromPartial(value) }); + let msg = this.signTransactionRequest({ value: SignTransactionRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewSpaceResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSignTransactionRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }) { + async sendMsgNewKey({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewKey: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignTransactionRequestByIdRequest({ value: QuerySignTransactionRequestByIdRequest.fromPartial(value) }); + let msg = this.msgNewKey({ value: MsgNewKey.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewKey: Could not broadcast Tx: ' + e.message); } }, - async sendMsgAddKeychainParty({ value, fee, memo }) { + async sendMsgNewSignTransactionRequestResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgAddKeychainParty: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgAddKeychainParty({ value: MsgAddKeychainParty.fromPartial(value) }); + let msg = this.msgNewSignTransactionRequestResponse({ value: MsgNewSignTransactionRequestResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgAddKeychainParty: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendMetadataEthereum({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMetadataEthereum: Unable to 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.metadataEthereum({ value: MetadataEthereum.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMetadataEthereum: Could not broadcast Tx: ' + e.message); } }, - async sendKey({ value, fee, memo }) { + async sendQueryKeyRequestByIdResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendKey: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeyRequestByIdResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.key({ value: Key.fromPartial(value) }); + let msg = this.queryKeyRequestByIdResponse({ value: QueryKeyRequestByIdResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendKey: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeyRequestByIdResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeychainsResponse({ value, fee, memo }) { + async sendMsgAddSpaceOwnerResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeychainsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeychainsResponse({ value: QueryKeychainsResponse.fromPartial(value) }); + let msg = this.msgAddSpaceOwnerResponse({ value: MsgAddSpaceOwnerResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeychainsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignatureRequestsRequest({ value, fee, memo }) { + async sendQuerySignatureRequestsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestsRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySignatureRequestsResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignatureRequestsRequest({ value: QuerySignatureRequestsRequest.fromPartial(value) }); + let msg = this.querySignatureRequestsResponse({ value: QuerySignatureRequestsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignatureRequestsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySignatureRequestsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgAddSpaceOwnerResponse({ value, fee, memo }) { + async sendQuerySignTransactionRequestsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySignTransactionRequestsResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgAddSpaceOwnerResponse({ value: MsgAddSpaceOwnerResponse.fromPartial(value) }); + let msg = this.querySignTransactionRequestsResponse({ value: QuerySignTransactionRequestsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySignTransactionRequestsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySpacesByOwnerRequest({ value, fee, memo }) { + async sendQuerySignatureRequestByIdResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySpacesByOwnerRequest({ value: QuerySpacesByOwnerRequest.fromPartial(value) }); + let msg = this.querySignatureRequestByIdResponse({ value: QuerySignatureRequestByIdResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeyRequestByIdRequest({ value, fee, memo }) { + async sendMsgNewKeychain({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewKeychain: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeyRequestByIdRequest({ value: QueryKeyRequestByIdRequest.fromPartial(value) }); + let msg = this.msgNewKeychain({ value: MsgNewKeychain.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewKeychain: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignTransactionRequestsRequest({ value, fee, memo }) { + async sendMsgAddKeychainParty({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgAddKeychainParty: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignTransactionRequestsRequest({ value: QuerySignTransactionRequestsRequest.fromPartial(value) }); + let msg = this.msgAddKeychainParty({ value: MsgAddKeychainParty.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgAddKeychainParty: Could not broadcast Tx: ' + e.message); } }, - async sendMsgAddSpaceOwner({ value, fee, memo }) { + async sendMsgAddKeychainPartyResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgAddSpaceOwner: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgAddKeychainPartyResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgAddSpaceOwner({ value: MsgAddSpaceOwner.fromPartial(value) }); + let msg = this.msgAddKeychainPartyResponse({ value: MsgAddKeychainPartyResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgAddSpaceOwner: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgAddKeychainPartyResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewSignTransactionRequestResponse({ value, fee, memo }) { + async sendMsgFulfilSignatureRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgFulfilSignatureRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewSignTransactionRequestResponse({ value: MsgNewSignTransactionRequestResponse.fromPartial(value) }); + let msg = this.msgFulfilSignatureRequest({ value: MsgFulfilSignatureRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgFulfilSignatureRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySpaceByAddressResponse({ value, fee, memo }) { + async sendMsgNewSignTransactionRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySpaceByAddressResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewSignTransactionRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySpaceByAddressResponse({ value: QuerySpaceByAddressResponse.fromPartial(value) }); + let msg = this.msgNewSignTransactionRequest({ value: MsgNewSignTransactionRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySpaceByAddressResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewSignTransactionRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeyRequestsRequest({ value, fee, memo }) { + async sendQueryParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestsRequest: 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.queryKeyRequestsRequest({ value: QueryKeyRequestsRequest.fromPartial(value) }); + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeyRequestsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewSignatureRequest({ value, fee, memo }) { + async sendWalletKeyResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewSignatureRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendWalletKeyResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewSignatureRequest({ value: MsgNewSignatureRequest.fromPartial(value) }); + let msg = this.walletKeyResponse({ value: WalletKeyResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewSignatureRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendWalletKeyResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMetadataEthereum({ value, fee, memo }) { + async sendMsgNewKeychainResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMetadataEthereum: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewKeychainResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.metadataEthereum({ value: MetadataEthereum.fromPartial(value) }); + let msg = this.msgNewKeychainResponse({ value: MsgNewKeychainResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMetadataEthereum: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewKeychainResponse: Could not broadcast Tx: ' + e.message); } }, - async sendKeyRequest({ value, fee, memo }) { + async sendMsgUpdateKeychainResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendKeyRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgUpdateKeychainResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.keyRequest({ value: KeyRequest.fromPartial(value) }); + let msg = this.msgUpdateKeychainResponse({ value: MsgUpdateKeychainResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendKeyRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateKeychainResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySpaceByAddressRequest({ value, fee, memo }) { + async sendQuerySpacesResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySpaceByAddressRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySpacesResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySpaceByAddressRequest({ value: QuerySpaceByAddressRequest.fromPartial(value) }); + let msg = this.querySpacesResponse({ value: QuerySpacesResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySpaceByAddressRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySpacesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewKey({ value, fee, memo }) { + async sendQueryKeychainsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewKey: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeychainsRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewKey({ value: MsgNewKey.fromPartial(value) }); + let msg = this.queryKeychainsRequest({ value: QueryKeychainsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewKey: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeychainsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignatureRequestsResponse({ value, fee, memo }) { + async sendQuerySpacesRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySpacesRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignatureRequestsResponse({ value: QuerySignatureRequestsResponse.fromPartial(value) }); + let msg = this.querySpacesRequest({ value: QuerySpacesRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignatureRequestsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySpacesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSignedData({ value, fee, memo }) { + async sendMsgNewSpaceResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSignedData: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewSpaceResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgSignedData({ value: MsgSignedData.fromPartial(value) }); + let msg = this.msgNewSpaceResponse({ value: MsgNewSpaceResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSignedData: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewSpaceResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgFulfilSignatureRequest({ value, fee, memo }) { + async sendQueryParamsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgFulfilSignatureRequest: 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.msgFulfilSignatureRequest({ value: MsgFulfilSignatureRequest.fromPartial(value) }); + let msg = this.queryParamsRequest({ value: QueryParamsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgFulfilSignatureRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeychainsRequest({ value, fee, memo }) { + async sendKeyResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeychainsRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendKeyResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeychainsRequest({ value: QueryKeychainsRequest.fromPartial(value) }); + let msg = this.keyResponse({ value: KeyResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeychainsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendKeyResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeychainByAddressRequest({ value, fee, memo }) { + async sendMsgNewSpace({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeychainByAddressRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewSpace: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeychainByAddressRequest({ value: QueryKeychainByAddressRequest.fromPartial(value) }); + let msg = this.msgNewSpace({ value: MsgNewSpace.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeychainByAddressRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewSpace: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }) { + async sendMsgRemoveSpaceOwner({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgRemoveSpaceOwner: Unable to 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.msgRemoveSpaceOwner({ value: MsgRemoveSpaceOwner.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRemoveSpaceOwner: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateKeyRequestResponse({ value, fee, memo }) { + async sendKeyRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendKeyRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgUpdateKeyRequestResponse({ value: MsgUpdateKeyRequestResponse.fromPartial(value) }); + let msg = this.keyRequest({ value: KeyRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendKeyRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgFulfilSignatureRequestResponse({ value, fee, memo }) { + async sendKeychainFees({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendKeychainFees: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgFulfilSignatureRequestResponse({ value: MsgFulfilSignatureRequestResponse.fromPartial(value) }); + let msg = this.keychainFees({ value: KeychainFees.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendKeychainFees: Could not broadcast Tx: ' + e.message); } }, - async sendKeyResponse({ value, fee, memo }) { + async sendQuerySpaceByAddressResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendKeyResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySpaceByAddressResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.keyResponse({ value: KeyResponse.fromPartial(value) }); + let msg = this.querySpaceByAddressResponse({ value: QuerySpaceByAddressResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendKeyResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySpaceByAddressResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignTransactionRequestsResponse({ value, fee, memo }) { + async sendQuerySignatureRequestsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySignatureRequestsRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignTransactionRequestsResponse({ value: QuerySignTransactionRequestsResponse.fromPartial(value) }); + let msg = this.querySignatureRequestsRequest({ value: QuerySignatureRequestsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignTransactionRequestsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySignatureRequestsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignatureRequestByIdResponse({ value, fee, memo }) { + async sendMsgFulfilSignatureRequestResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignatureRequestByIdResponse({ value: QuerySignatureRequestByIdResponse.fromPartial(value) }); + let msg = this.msgFulfilSignatureRequestResponse({ value: MsgFulfilSignatureRequestResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }) { + async sendSpace({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendSpace: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignTransactionRequestByIdResponse({ value: QuerySignTransactionRequestByIdResponse.fromPartial(value) }); + let msg = this.space({ value: Space.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSpace: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }) { + async sendQuerySpacesByOwnerRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgRemoveSpaceOwnerResponse({ value: MsgRemoveSpaceOwnerResponse.fromPartial(value) }); + let msg = this.querySpacesByOwnerRequest({ value: QuerySpacesByOwnerRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateKeychainResponse({ value, fee, memo }) { + async sendSignTransactionRequestResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeychainResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendSignTransactionRequestResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgUpdateKeychainResponse({ value: MsgUpdateKeychainResponse.fromPartial(value) }); + let msg = this.signTransactionRequestResponse({ value: SignTransactionRequestResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateKeychainResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSignTransactionRequestResponse: Could not broadcast Tx: ' + e.message); } }, - async sendKeychainFees({ value, fee, memo }) { + async sendMsgUpdateSpace({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendKeychainFees: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgUpdateSpace: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.keychainFees({ value: KeychainFees.fromPartial(value) }); + let msg = this.msgUpdateSpace({ value: MsgUpdateSpace.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendKeychainFees: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateSpace: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySpacesRequest({ value, fee, memo }) { + async sendQueryKeyRequestByIdRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySpacesRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySpacesRequest({ value: QuerySpacesRequest.fromPartial(value) }); + let msg = this.queryKeyRequestByIdRequest({ value: QueryKeyRequestByIdRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySpacesRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgAddKeychainPartyResponse({ value, fee, memo }) { + async sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgAddKeychainPartyResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgAddKeychainPartyResponse({ value: MsgAddKeychainPartyResponse.fromPartial(value) }); + let msg = this.msgRemoveSpaceOwnerResponse({ value: MsgRemoveSpaceOwnerResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgAddKeychainPartyResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySpacesResponse({ value, fee, memo }) { + async sendMsgSignedData({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySpacesResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgSignedData: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySpacesResponse({ value: QuerySpacesResponse.fromPartial(value) }); + let msg = this.msgSignedData({ value: MsgSignedData.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySpacesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSignedData: Could not broadcast Tx: ' + e.message); } }, - async sendWalletKeyResponse({ value, fee, memo }) { + async sendQueryKeyRequestsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendWalletKeyResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeyRequestsRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.walletKeyResponse({ value: WalletKeyResponse.fromPartial(value) }); + let msg = this.queryKeyRequestsRequest({ value: QueryKeyRequestsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendWalletKeyResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeyRequestsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignatureRequestByIdRequest({ value, fee, memo }) { + async sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignatureRequestByIdRequest({ value: QuerySignatureRequestByIdRequest.fromPartial(value) }); + let msg = this.querySignTransactionRequestByIdResponse({ value: QuerySignTransactionRequestByIdResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: Could not broadcast Tx: ' + e.message); } }, - async sendSignTransactionRequestResponse({ value, fee, memo }) { + async sendMsgUpdateParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSignTransactionRequestResponse: 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.signTransactionRequestResponse({ value: SignTransactionRequestResponse.fromPartial(value) }); + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSignTransactionRequestResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendKeychain({ value, fee, memo }) { + async sendMsgNewSignatureRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendKeychain: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewSignatureRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.keychain({ value: Keychain.fromPartial(value) }); + let msg = this.msgNewSignatureRequest({ value: MsgNewSignatureRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendKeychain: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewSignatureRequest: Could not broadcast Tx: ' + e.message); } }, - async sendParams({ value, fee, memo }) { + async sendQueryKeyRequestsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeyRequestsResponse: Unable to 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.queryKeyRequestsResponse({ value: QueryKeyRequestsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeyRequestsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeysRequest({ value, fee, memo }) { + async sendSignRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeysRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendSignRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeysRequest({ value: QueryKeysRequest.fromPartial(value) }); + let msg = this.signRequest({ value: SignRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeysRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSignRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateKeyRequest({ value, fee, memo }) { + async sendKeychain({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeyRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendKeychain: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgUpdateKeyRequest({ value: MsgUpdateKeyRequest.fromPartial(value) }); + let msg = this.keychain({ value: Keychain.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateKeyRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendKeychain: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRemoveSpaceOwner({ value, fee, memo }) { + async sendQueryKeychainsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRemoveSpaceOwner: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeychainsResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgRemoveSpaceOwner({ value: MsgRemoveSpaceOwner.fromPartial(value) }); + let msg = this.queryKeychainsResponse({ value: QueryKeychainsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRemoveSpaceOwner: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeychainsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsRequest({ value, fee, memo }) { + async sendMsgUpdateKeychain({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgUpdateKeychain: Unable to 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.msgUpdateKeychain({ value: MsgUpdateKeychain.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateKeychain: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsResponse({ value, fee, memo }) { + async sendKey({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendKey: Unable to 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.key({ value: Key.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendKey: Could not broadcast Tx: ' + e.message); } }, - msgUpdateSpaceResponse({ value }) { + queryKeychainByAddressRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateSpaceResponse", value: MsgUpdateSpaceResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QueryKeychainByAddressRequest", value: QueryKeychainByAddressRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateSpaceResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeychainByAddressRequest: Could not create message: ' + e.message); } }, - msgNewSignTransactionRequest({ value }) { + queryKeysRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewSignTransactionRequest", value: MsgNewSignTransactionRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QueryKeysRequest", value: QueryKeysRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewSignTransactionRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeysRequest: Could not create message: ' + e.message); } }, - queryKeysResponse({ value }) { + querySignTransactionRequestsRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeysResponse", value: QueryKeysResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestsRequest", value: QuerySignTransactionRequestsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeysResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignTransactionRequestsRequest: Could not create message: ' + e.message); } }, - msgUpdateParams({ value }) { + msgUpdateKeyRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeyRequest", value: MsgUpdateKeyRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateKeyRequest: Could not create message: ' + e.message); } }, - space({ value }) { + params({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.Space", value: Space.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.Params", value: Params.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Space: Could not create message: ' + e.message); + throw new Error('TxClient:Params: Could not create message: ' + e.message); } }, - signTransactionRequest({ value }) { + querySpaceByAddressRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.SignTransactionRequest", value: SignTransactionRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QuerySpaceByAddressRequest", value: QuerySpaceByAddressRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:SignTransactionRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySpaceByAddressRequest: Could not create message: ' + e.message); } }, - queryKeyRequestsResponse({ value }) { + querySignTransactionRequestByIdRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestsResponse", value: QueryKeyRequestsResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestByIdRequest", value: QuerySignTransactionRequestByIdRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeyRequestsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignTransactionRequestByIdRequest: Could not create message: ' + e.message); } }, - msgNewKeyRequestResponse({ value }) { + msgAddSpaceOwner({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewKeyRequestResponse", value: MsgNewKeyRequestResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgAddSpaceOwner", value: MsgAddSpaceOwner.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewKeyRequestResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgAddSpaceOwner: Could not create message: ' + e.message); } }, - msgNewKeychain({ value }) { + msgNewSignatureRequestResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewKeychain", value: MsgNewKeychain.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgNewSignatureRequestResponse", value: MsgNewSignatureRequestResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewKeychain: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewSignatureRequestResponse: Could not create message: ' + e.message); } }, - signRequest({ value }) { + queryKeychainByAddressResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.SignRequest", value: SignRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QueryKeychainByAddressResponse", value: QueryKeychainByAddressResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:SignRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeychainByAddressResponse: Could not create message: ' + e.message); } }, - msgNewSpace({ value }) { + queryKeysResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewSpace", value: MsgNewSpace.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QueryKeysResponse", value: QueryKeysResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewSpace: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeysResponse: Could not create message: ' + e.message); } }, - msgUpdateSpace({ value }) { + msgUpdateParams({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateSpace", value: MsgUpdateSpace.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateSpace: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); } }, msgNewKeyRequest({ value }) { @@ -1113,428 +1113,428 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgNewKeyRequest: Could not create message: ' + e.message); } }, - msgNewSignatureRequestResponse({ value }) { + msgUpdateSpaceResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewSignatureRequestResponse", value: MsgNewSignatureRequestResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateSpaceResponse", value: MsgUpdateSpaceResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewSignatureRequestResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateSpaceResponse: Could not create message: ' + e.message); } }, - queryKeyRequestByIdResponse({ value }) { + msgNewKeyRequestResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestByIdResponse", value: QueryKeyRequestByIdResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgNewKeyRequestResponse", value: MsgNewKeyRequestResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeyRequestByIdResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewKeyRequestResponse: Could not create message: ' + e.message); } }, - msgNewKeychainResponse({ value }) { + msgUpdateKeyRequestResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewKeychainResponse", value: MsgNewKeychainResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeyRequestResponse", value: MsgUpdateKeyRequestResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewKeychainResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateKeyRequestResponse: Could not create message: ' + e.message); } }, - msgUpdateKeychain({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeychain", value: MsgUpdateKeychain.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateKeychain: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - queryKeychainByAddressResponse({ value }) { + querySignatureRequestByIdRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeychainByAddressResponse", value: QueryKeychainByAddressResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestByIdRequest", value: QuerySignatureRequestByIdRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeychainByAddressResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignatureRequestByIdRequest: Could not create message: ' + e.message); } }, - msgNewSpaceResponse({ value }) { + signTransactionRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewSpaceResponse", value: MsgNewSpaceResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.SignTransactionRequest", value: SignTransactionRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewSpaceResponse: Could not create message: ' + e.message); + throw new Error('TxClient:SignTransactionRequest: Could not create message: ' + e.message); } }, - querySignTransactionRequestByIdRequest({ value }) { + msgNewKey({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestByIdRequest", value: QuerySignTransactionRequestByIdRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgNewKey", value: MsgNewKey.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignTransactionRequestByIdRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewKey: Could not create message: ' + e.message); } }, - msgAddKeychainParty({ value }) { + msgNewSignTransactionRequestResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgAddKeychainParty", value: MsgAddKeychainParty.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgNewSignTransactionRequestResponse", value: MsgNewSignTransactionRequestResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgAddKeychainParty: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewSignTransactionRequestResponse: Could not create message: ' + e.message); } }, - genesisState({ value }) { + metadataEthereum({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MetadataEthereum", value: MetadataEthereum.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:MetadataEthereum: Could not create message: ' + e.message); } }, - key({ value }) { + queryKeyRequestByIdResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.Key", value: Key.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestByIdResponse", value: QueryKeyRequestByIdResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Key: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeyRequestByIdResponse: Could not create message: ' + e.message); } }, - queryKeychainsResponse({ value }) { + msgAddSpaceOwnerResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeychainsResponse", value: QueryKeychainsResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgAddSpaceOwnerResponse", value: MsgAddSpaceOwnerResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeychainsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgAddSpaceOwnerResponse: Could not create message: ' + e.message); } }, - querySignatureRequestsRequest({ value }) { + querySignatureRequestsResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestsRequest", value: QuerySignatureRequestsRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestsResponse", value: QuerySignatureRequestsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignatureRequestsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignatureRequestsResponse: Could not create message: ' + e.message); } }, - msgAddSpaceOwnerResponse({ value }) { + querySignTransactionRequestsResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgAddSpaceOwnerResponse", value: MsgAddSpaceOwnerResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestsResponse", value: QuerySignTransactionRequestsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgAddSpaceOwnerResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignTransactionRequestsResponse: Could not create message: ' + e.message); } }, - querySpacesByOwnerRequest({ value }) { + querySignatureRequestByIdResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySpacesByOwnerRequest", value: QuerySpacesByOwnerRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestByIdResponse", value: QuerySignatureRequestByIdResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySpacesByOwnerRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignatureRequestByIdResponse: Could not create message: ' + e.message); } }, - queryKeyRequestByIdRequest({ value }) { + msgNewKeychain({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestByIdRequest", value: QueryKeyRequestByIdRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgNewKeychain", value: MsgNewKeychain.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeyRequestByIdRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewKeychain: Could not create message: ' + e.message); } }, - querySignTransactionRequestsRequest({ value }) { + msgAddKeychainParty({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestsRequest", value: QuerySignTransactionRequestsRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgAddKeychainParty", value: MsgAddKeychainParty.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignTransactionRequestsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgAddKeychainParty: Could not create message: ' + e.message); } }, - msgAddSpaceOwner({ value }) { + msgAddKeychainPartyResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgAddSpaceOwner", value: MsgAddSpaceOwner.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgAddKeychainPartyResponse", value: MsgAddKeychainPartyResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgAddSpaceOwner: Could not create message: ' + e.message); + throw new Error('TxClient:MsgAddKeychainPartyResponse: Could not create message: ' + e.message); } }, - msgNewSignTransactionRequestResponse({ value }) { + msgFulfilSignatureRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewSignTransactionRequestResponse", value: MsgNewSignTransactionRequestResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgFulfilSignatureRequest", value: MsgFulfilSignatureRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewSignTransactionRequestResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgFulfilSignatureRequest: Could not create message: ' + e.message); } }, - querySpaceByAddressResponse({ value }) { + msgNewSignTransactionRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySpaceByAddressResponse", value: QuerySpaceByAddressResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgNewSignTransactionRequest", value: MsgNewSignTransactionRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySpaceByAddressResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewSignTransactionRequest: Could not create message: ' + e.message); } }, - queryKeyRequestsRequest({ value }) { + queryParamsResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestsRequest", value: QueryKeyRequestsRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeyRequestsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); } }, - msgNewSignatureRequest({ value }) { + walletKeyResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewSignatureRequest", value: MsgNewSignatureRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.WalletKeyResponse", value: WalletKeyResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewSignatureRequest: Could not create message: ' + e.message); + throw new Error('TxClient:WalletKeyResponse: Could not create message: ' + e.message); } }, - metadataEthereum({ value }) { + msgNewKeychainResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MetadataEthereum", value: MetadataEthereum.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgNewKeychainResponse", value: MsgNewKeychainResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MetadataEthereum: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewKeychainResponse: Could not create message: ' + e.message); } }, - keyRequest({ value }) { + msgUpdateKeychainResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.KeyRequest", value: KeyRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeychainResponse", value: MsgUpdateKeychainResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:KeyRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateKeychainResponse: Could not create message: ' + e.message); } }, - querySpaceByAddressRequest({ value }) { + querySpacesResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySpaceByAddressRequest", value: QuerySpaceByAddressRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QuerySpacesResponse", value: QuerySpacesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySpaceByAddressRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySpacesResponse: Could not create message: ' + e.message); } }, - msgNewKey({ value }) { + queryKeychainsRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewKey", value: MsgNewKey.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QueryKeychainsRequest", value: QueryKeychainsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewKey: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeychainsRequest: Could not create message: ' + e.message); } }, - querySignatureRequestsResponse({ value }) { + querySpacesRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestsResponse", value: QuerySignatureRequestsResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QuerySpacesRequest", value: QuerySpacesRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignatureRequestsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySpacesRequest: Could not create message: ' + e.message); } }, - msgSignedData({ value }) { + msgNewSpaceResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgSignedData", value: MsgSignedData.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgNewSpaceResponse", value: MsgNewSpaceResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSignedData: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewSpaceResponse: Could not create message: ' + e.message); } }, - msgFulfilSignatureRequest({ value }) { + queryParamsRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgFulfilSignatureRequest", value: MsgFulfilSignatureRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgFulfilSignatureRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); } }, - queryKeychainsRequest({ value }) { + keyResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeychainsRequest", value: QueryKeychainsRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.KeyResponse", value: KeyResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeychainsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:KeyResponse: Could not create message: ' + e.message); } }, - queryKeychainByAddressRequest({ value }) { + msgNewSpace({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeychainByAddressRequest", value: QueryKeychainByAddressRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgNewSpace", value: MsgNewSpace.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeychainByAddressRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewSpace: Could not create message: ' + e.message); } }, - msgUpdateParamsResponse({ value }) { + msgRemoveSpaceOwner({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgRemoveSpaceOwner", value: MsgRemoveSpaceOwner.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRemoveSpaceOwner: Could not create message: ' + e.message); } }, - msgUpdateKeyRequestResponse({ value }) { + keyRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeyRequestResponse", value: MsgUpdateKeyRequestResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.KeyRequest", value: KeyRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateKeyRequestResponse: Could not create message: ' + e.message); + throw new Error('TxClient:KeyRequest: Could not create message: ' + e.message); } }, - msgFulfilSignatureRequestResponse({ value }) { + keychainFees({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgFulfilSignatureRequestResponse", value: MsgFulfilSignatureRequestResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.KeychainFees", value: KeychainFees.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgFulfilSignatureRequestResponse: Could not create message: ' + e.message); + throw new Error('TxClient:KeychainFees: Could not create message: ' + e.message); } }, - keyResponse({ value }) { + querySpaceByAddressResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.KeyResponse", value: KeyResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QuerySpaceByAddressResponse", value: QuerySpaceByAddressResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:KeyResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySpaceByAddressResponse: Could not create message: ' + e.message); } }, - querySignTransactionRequestsResponse({ value }) { + querySignatureRequestsRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestsResponse", value: QuerySignTransactionRequestsResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestsRequest", value: QuerySignatureRequestsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignTransactionRequestsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignatureRequestsRequest: Could not create message: ' + e.message); } }, - querySignatureRequestByIdResponse({ value }) { + msgFulfilSignatureRequestResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestByIdResponse", value: QuerySignatureRequestByIdResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgFulfilSignatureRequestResponse", value: MsgFulfilSignatureRequestResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignatureRequestByIdResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgFulfilSignatureRequestResponse: Could not create message: ' + e.message); } }, - querySignTransactionRequestByIdResponse({ value }) { + space({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestByIdResponse", value: QuerySignTransactionRequestByIdResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.Space", value: Space.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignTransactionRequestByIdResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Space: Could not create message: ' + e.message); } }, - msgRemoveSpaceOwnerResponse({ value }) { + querySpacesByOwnerRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgRemoveSpaceOwnerResponse", value: MsgRemoveSpaceOwnerResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QuerySpacesByOwnerRequest", value: QuerySpacesByOwnerRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRemoveSpaceOwnerResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySpacesByOwnerRequest: Could not create message: ' + e.message); } }, - msgUpdateKeychainResponse({ value }) { + signTransactionRequestResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeychainResponse", value: MsgUpdateKeychainResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.SignTransactionRequestResponse", value: SignTransactionRequestResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateKeychainResponse: Could not create message: ' + e.message); + throw new Error('TxClient:SignTransactionRequestResponse: Could not create message: ' + e.message); } }, - keychainFees({ value }) { + msgUpdateSpace({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.KeychainFees", value: KeychainFees.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateSpace", value: MsgUpdateSpace.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:KeychainFees: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateSpace: Could not create message: ' + e.message); } }, - querySpacesRequest({ value }) { + queryKeyRequestByIdRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySpacesRequest", value: QuerySpacesRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestByIdRequest", value: QueryKeyRequestByIdRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySpacesRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeyRequestByIdRequest: Could not create message: ' + e.message); } }, - msgAddKeychainPartyResponse({ value }) { + msgRemoveSpaceOwnerResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgAddKeychainPartyResponse", value: MsgAddKeychainPartyResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgRemoveSpaceOwnerResponse", value: MsgRemoveSpaceOwnerResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgAddKeychainPartyResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRemoveSpaceOwnerResponse: Could not create message: ' + e.message); } }, - querySpacesResponse({ value }) { + msgSignedData({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySpacesResponse", value: QuerySpacesResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgSignedData", value: MsgSignedData.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySpacesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSignedData: Could not create message: ' + e.message); } }, - walletKeyResponse({ value }) { + queryKeyRequestsRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.WalletKeyResponse", value: WalletKeyResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestsRequest", value: QueryKeyRequestsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:WalletKeyResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeyRequestsRequest: Could not create message: ' + e.message); } }, - querySignatureRequestByIdRequest({ value }) { + querySignTransactionRequestByIdResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestByIdRequest", value: QuerySignatureRequestByIdRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestByIdResponse", value: QuerySignTransactionRequestByIdResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignatureRequestByIdRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignTransactionRequestByIdResponse: Could not create message: ' + e.message); } }, - signTransactionRequestResponse({ value }) { + msgUpdateParamsResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.SignTransactionRequestResponse", value: SignTransactionRequestResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:SignTransactionRequestResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); } }, - keychain({ value }) { + msgNewSignatureRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.Keychain", value: Keychain.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgNewSignatureRequest", value: MsgNewSignatureRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Keychain: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewSignatureRequest: Could not create message: ' + e.message); } }, - params({ value }) { + queryKeyRequestsResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.Params", value: Params.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestsResponse", value: QueryKeyRequestsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Params: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeyRequestsResponse: Could not create message: ' + e.message); } }, - queryKeysRequest({ value }) { + signRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeysRequest", value: QueryKeysRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.SignRequest", value: SignRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeysRequest: Could not create message: ' + e.message); + throw new Error('TxClient:SignRequest: Could not create message: ' + e.message); } }, - msgUpdateKeyRequest({ value }) { + keychain({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeyRequest", value: MsgUpdateKeyRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.Keychain", value: Keychain.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateKeyRequest: Could not create message: ' + e.message); + throw new Error('TxClient:Keychain: Could not create message: ' + e.message); } }, - msgRemoveSpaceOwner({ value }) { + queryKeychainsResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.MsgRemoveSpaceOwner", value: MsgRemoveSpaceOwner.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.QueryKeychainsResponse", value: QueryKeychainsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRemoveSpaceOwner: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeychainsResponse: Could not create message: ' + e.message); } }, - queryParamsRequest({ value }) { + msgUpdateKeychain({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeychain", value: MsgUpdateKeychain.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateKeychain: Could not create message: ' + e.message); } }, - queryParamsResponse({ value }) { + key({ value }) { try { - return { typeUrl: "/warden.warden.v1beta1.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta1.Key", value: Key.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Key: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/warden.warden.v1beta1/registry.js b/ts-client/lib/warden.warden.v1beta1/registry.js index ceb8d3801..001011c16 100644 --- a/ts-client/lib/warden.warden.v1beta1/registry.js +++ b/ts-client/lib/warden.warden.v1beta1/registry.js @@ -1,135 +1,135 @@ -import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeychainByAddressRequest } from "./types/warden/warden/v1beta1/query"; +import { QueryKeysRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySignTransactionRequestsRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta1/tx"; +import { Params } from "./types/warden/warden/v1beta1/params"; +import { QuerySpaceByAddressRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeychainByAddressResponse } from "./types/warden/warden/v1beta1/query"; import { QueryKeysResponse } from "./types/warden/warden/v1beta1/query"; import { MsgUpdateParams } from "./types/warden/warden/v1beta1/tx"; -import { Space } from "./types/warden/warden/v1beta1/space"; -import { SignTransactionRequest } from "./types/warden/warden/v1beta1/signature"; -import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewKeychain } from "./types/warden/warden/v1beta1/tx"; -import { SignRequest } from "./types/warden/warden/v1beta1/signature"; -import { MsgNewSpace } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateSpace } from "./types/warden/warden/v1beta1/tx"; import { MsgNewKeyRequest } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgNewKeychainResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateKeychain } from "./types/warden/warden/v1beta1/tx"; -import { QueryKeychainByAddressResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgAddKeychainParty } from "./types/warden/warden/v1beta1/tx"; +import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; import { GenesisState } from "./types/warden/warden/v1beta1/genesis"; -import { Key } from "./types/warden/warden/v1beta1/key"; -import { QueryKeychainsResponse } from "./types/warden/warden/v1beta1/query"; -import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryKeyRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; -import { QuerySignTransactionRequestsRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta1/tx"; +import { QuerySignatureRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; +import { SignTransactionRequest } from "./types/warden/warden/v1beta1/signature"; +import { MsgNewKey } from "./types/warden/warden/v1beta1/tx"; import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySpaceByAddressResponse } from "./types/warden/warden/v1beta1/query"; -import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta1/tx"; import { MetadataEthereum } from "./types/warden/warden/v1beta1/tx"; -import { KeyRequest } from "./types/warden/warden/v1beta1/key"; -import { QuerySpaceByAddressRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgNewKey } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; import { QuerySignatureRequestsResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgSignedData } from "./types/warden/warden/v1beta1/tx"; -import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta1/tx"; -import { QueryKeychainsRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryKeychainByAddressRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { KeyResponse } from "./types/warden/warden/v1beta1/query"; import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta1/query"; import { QuerySignatureRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; -import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta1/tx"; -import { KeychainFees } from "./types/warden/warden/v1beta1/keychain"; -import { QuerySpacesRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgNewKeychain } from "./types/warden/warden/v1beta1/tx"; +import { MsgAddKeychainParty } from "./types/warden/warden/v1beta1/tx"; import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySpacesResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta1/tx"; +import { QueryParamsResponse } from "./types/warden/warden/v1beta1/query"; import { WalletKeyResponse } from "./types/warden/warden/v1beta1/query"; -import { QuerySignatureRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgNewKeychainResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta1/tx"; +import { QuerySpacesResponse } from "./types/warden/warden/v1beta1/query"; +import { QueryKeychainsRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySpacesRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta1/tx"; +import { QueryParamsRequest } from "./types/warden/warden/v1beta1/query"; +import { KeyResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgNewSpace } from "./types/warden/warden/v1beta1/tx"; +import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta1/tx"; +import { KeyRequest } from "./types/warden/warden/v1beta1/key"; +import { KeychainFees } from "./types/warden/warden/v1beta1/keychain"; +import { QuerySpaceByAddressResponse } from "./types/warden/warden/v1beta1/query"; +import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { Space } from "./types/warden/warden/v1beta1/space"; +import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta1/query"; import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateSpace } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgSignedData } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta1/query"; +import { SignRequest } from "./types/warden/warden/v1beta1/signature"; import { Keychain } from "./types/warden/warden/v1beta1/keychain"; -import { Params } from "./types/warden/warden/v1beta1/params"; -import { QueryKeysRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta1/tx"; -import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta1/tx"; -import { QueryParamsRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryParamsResponse } from "./types/warden/warden/v1beta1/query"; +import { QueryKeychainsResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateKeychain } from "./types/warden/warden/v1beta1/tx"; +import { Key } from "./types/warden/warden/v1beta1/key"; const msgTypes = [ - ["/warden.warden.v1beta1.MsgUpdateSpaceResponse", MsgUpdateSpaceResponse], - ["/warden.warden.v1beta1.MsgNewSignTransactionRequest", MsgNewSignTransactionRequest], + ["/warden.warden.v1beta1.QueryKeychainByAddressRequest", QueryKeychainByAddressRequest], + ["/warden.warden.v1beta1.QueryKeysRequest", QueryKeysRequest], + ["/warden.warden.v1beta1.QuerySignTransactionRequestsRequest", QuerySignTransactionRequestsRequest], + ["/warden.warden.v1beta1.MsgUpdateKeyRequest", MsgUpdateKeyRequest], + ["/warden.warden.v1beta1.Params", Params], + ["/warden.warden.v1beta1.QuerySpaceByAddressRequest", QuerySpaceByAddressRequest], + ["/warden.warden.v1beta1.QuerySignTransactionRequestByIdRequest", QuerySignTransactionRequestByIdRequest], + ["/warden.warden.v1beta1.MsgAddSpaceOwner", MsgAddSpaceOwner], + ["/warden.warden.v1beta1.MsgNewSignatureRequestResponse", MsgNewSignatureRequestResponse], + ["/warden.warden.v1beta1.QueryKeychainByAddressResponse", QueryKeychainByAddressResponse], ["/warden.warden.v1beta1.QueryKeysResponse", QueryKeysResponse], ["/warden.warden.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/warden.warden.v1beta1.Space", Space], - ["/warden.warden.v1beta1.SignTransactionRequest", SignTransactionRequest], - ["/warden.warden.v1beta1.QueryKeyRequestsResponse", QueryKeyRequestsResponse], - ["/warden.warden.v1beta1.MsgNewKeyRequestResponse", MsgNewKeyRequestResponse], - ["/warden.warden.v1beta1.MsgNewKeychain", MsgNewKeychain], - ["/warden.warden.v1beta1.SignRequest", SignRequest], - ["/warden.warden.v1beta1.MsgNewSpace", MsgNewSpace], - ["/warden.warden.v1beta1.MsgUpdateSpace", MsgUpdateSpace], ["/warden.warden.v1beta1.MsgNewKeyRequest", MsgNewKeyRequest], - ["/warden.warden.v1beta1.MsgNewSignatureRequestResponse", MsgNewSignatureRequestResponse], - ["/warden.warden.v1beta1.QueryKeyRequestByIdResponse", QueryKeyRequestByIdResponse], - ["/warden.warden.v1beta1.MsgNewKeychainResponse", MsgNewKeychainResponse], - ["/warden.warden.v1beta1.MsgUpdateKeychain", MsgUpdateKeychain], - ["/warden.warden.v1beta1.QueryKeychainByAddressResponse", QueryKeychainByAddressResponse], - ["/warden.warden.v1beta1.MsgNewSpaceResponse", MsgNewSpaceResponse], - ["/warden.warden.v1beta1.QuerySignTransactionRequestByIdRequest", QuerySignTransactionRequestByIdRequest], - ["/warden.warden.v1beta1.MsgAddKeychainParty", MsgAddKeychainParty], + ["/warden.warden.v1beta1.MsgUpdateSpaceResponse", MsgUpdateSpaceResponse], + ["/warden.warden.v1beta1.MsgNewKeyRequestResponse", MsgNewKeyRequestResponse], + ["/warden.warden.v1beta1.MsgUpdateKeyRequestResponse", MsgUpdateKeyRequestResponse], ["/warden.warden.v1beta1.GenesisState", GenesisState], - ["/warden.warden.v1beta1.Key", Key], - ["/warden.warden.v1beta1.QueryKeychainsResponse", QueryKeychainsResponse], - ["/warden.warden.v1beta1.QuerySignatureRequestsRequest", QuerySignatureRequestsRequest], - ["/warden.warden.v1beta1.MsgAddSpaceOwnerResponse", MsgAddSpaceOwnerResponse], - ["/warden.warden.v1beta1.QuerySpacesByOwnerRequest", QuerySpacesByOwnerRequest], - ["/warden.warden.v1beta1.QueryKeyRequestByIdRequest", QueryKeyRequestByIdRequest], - ["/warden.warden.v1beta1.QuerySignTransactionRequestsRequest", QuerySignTransactionRequestsRequest], - ["/warden.warden.v1beta1.MsgAddSpaceOwner", MsgAddSpaceOwner], + ["/warden.warden.v1beta1.QuerySignatureRequestByIdRequest", QuerySignatureRequestByIdRequest], + ["/warden.warden.v1beta1.SignTransactionRequest", SignTransactionRequest], + ["/warden.warden.v1beta1.MsgNewKey", MsgNewKey], ["/warden.warden.v1beta1.MsgNewSignTransactionRequestResponse", MsgNewSignTransactionRequestResponse], - ["/warden.warden.v1beta1.QuerySpaceByAddressResponse", QuerySpaceByAddressResponse], - ["/warden.warden.v1beta1.QueryKeyRequestsRequest", QueryKeyRequestsRequest], - ["/warden.warden.v1beta1.MsgNewSignatureRequest", MsgNewSignatureRequest], ["/warden.warden.v1beta1.MetadataEthereum", MetadataEthereum], - ["/warden.warden.v1beta1.KeyRequest", KeyRequest], - ["/warden.warden.v1beta1.QuerySpaceByAddressRequest", QuerySpaceByAddressRequest], - ["/warden.warden.v1beta1.MsgNewKey", MsgNewKey], + ["/warden.warden.v1beta1.QueryKeyRequestByIdResponse", QueryKeyRequestByIdResponse], + ["/warden.warden.v1beta1.MsgAddSpaceOwnerResponse", MsgAddSpaceOwnerResponse], ["/warden.warden.v1beta1.QuerySignatureRequestsResponse", QuerySignatureRequestsResponse], - ["/warden.warden.v1beta1.MsgSignedData", MsgSignedData], - ["/warden.warden.v1beta1.MsgFulfilSignatureRequest", MsgFulfilSignatureRequest], - ["/warden.warden.v1beta1.QueryKeychainsRequest", QueryKeychainsRequest], - ["/warden.warden.v1beta1.QueryKeychainByAddressRequest", QueryKeychainByAddressRequest], - ["/warden.warden.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/warden.warden.v1beta1.MsgUpdateKeyRequestResponse", MsgUpdateKeyRequestResponse], - ["/warden.warden.v1beta1.MsgFulfilSignatureRequestResponse", MsgFulfilSignatureRequestResponse], - ["/warden.warden.v1beta1.KeyResponse", KeyResponse], ["/warden.warden.v1beta1.QuerySignTransactionRequestsResponse", QuerySignTransactionRequestsResponse], ["/warden.warden.v1beta1.QuerySignatureRequestByIdResponse", QuerySignatureRequestByIdResponse], - ["/warden.warden.v1beta1.QuerySignTransactionRequestByIdResponse", QuerySignTransactionRequestByIdResponse], - ["/warden.warden.v1beta1.MsgRemoveSpaceOwnerResponse", MsgRemoveSpaceOwnerResponse], - ["/warden.warden.v1beta1.MsgUpdateKeychainResponse", MsgUpdateKeychainResponse], - ["/warden.warden.v1beta1.KeychainFees", KeychainFees], - ["/warden.warden.v1beta1.QuerySpacesRequest", QuerySpacesRequest], + ["/warden.warden.v1beta1.MsgNewKeychain", MsgNewKeychain], + ["/warden.warden.v1beta1.MsgAddKeychainParty", MsgAddKeychainParty], ["/warden.warden.v1beta1.MsgAddKeychainPartyResponse", MsgAddKeychainPartyResponse], - ["/warden.warden.v1beta1.QuerySpacesResponse", QuerySpacesResponse], + ["/warden.warden.v1beta1.MsgFulfilSignatureRequest", MsgFulfilSignatureRequest], + ["/warden.warden.v1beta1.MsgNewSignTransactionRequest", MsgNewSignTransactionRequest], + ["/warden.warden.v1beta1.QueryParamsResponse", QueryParamsResponse], ["/warden.warden.v1beta1.WalletKeyResponse", WalletKeyResponse], - ["/warden.warden.v1beta1.QuerySignatureRequestByIdRequest", QuerySignatureRequestByIdRequest], + ["/warden.warden.v1beta1.MsgNewKeychainResponse", MsgNewKeychainResponse], + ["/warden.warden.v1beta1.MsgUpdateKeychainResponse", MsgUpdateKeychainResponse], + ["/warden.warden.v1beta1.QuerySpacesResponse", QuerySpacesResponse], + ["/warden.warden.v1beta1.QueryKeychainsRequest", QueryKeychainsRequest], + ["/warden.warden.v1beta1.QuerySpacesRequest", QuerySpacesRequest], + ["/warden.warden.v1beta1.MsgNewSpaceResponse", MsgNewSpaceResponse], + ["/warden.warden.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/warden.warden.v1beta1.KeyResponse", KeyResponse], + ["/warden.warden.v1beta1.MsgNewSpace", MsgNewSpace], + ["/warden.warden.v1beta1.MsgRemoveSpaceOwner", MsgRemoveSpaceOwner], + ["/warden.warden.v1beta1.KeyRequest", KeyRequest], + ["/warden.warden.v1beta1.KeychainFees", KeychainFees], + ["/warden.warden.v1beta1.QuerySpaceByAddressResponse", QuerySpaceByAddressResponse], + ["/warden.warden.v1beta1.QuerySignatureRequestsRequest", QuerySignatureRequestsRequest], + ["/warden.warden.v1beta1.MsgFulfilSignatureRequestResponse", MsgFulfilSignatureRequestResponse], + ["/warden.warden.v1beta1.Space", Space], + ["/warden.warden.v1beta1.QuerySpacesByOwnerRequest", QuerySpacesByOwnerRequest], ["/warden.warden.v1beta1.SignTransactionRequestResponse", SignTransactionRequestResponse], + ["/warden.warden.v1beta1.MsgUpdateSpace", MsgUpdateSpace], + ["/warden.warden.v1beta1.QueryKeyRequestByIdRequest", QueryKeyRequestByIdRequest], + ["/warden.warden.v1beta1.MsgRemoveSpaceOwnerResponse", MsgRemoveSpaceOwnerResponse], + ["/warden.warden.v1beta1.MsgSignedData", MsgSignedData], + ["/warden.warden.v1beta1.QueryKeyRequestsRequest", QueryKeyRequestsRequest], + ["/warden.warden.v1beta1.QuerySignTransactionRequestByIdResponse", QuerySignTransactionRequestByIdResponse], + ["/warden.warden.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/warden.warden.v1beta1.MsgNewSignatureRequest", MsgNewSignatureRequest], + ["/warden.warden.v1beta1.QueryKeyRequestsResponse", QueryKeyRequestsResponse], + ["/warden.warden.v1beta1.SignRequest", SignRequest], ["/warden.warden.v1beta1.Keychain", Keychain], - ["/warden.warden.v1beta1.Params", Params], - ["/warden.warden.v1beta1.QueryKeysRequest", QueryKeysRequest], - ["/warden.warden.v1beta1.MsgUpdateKeyRequest", MsgUpdateKeyRequest], - ["/warden.warden.v1beta1.MsgRemoveSpaceOwner", MsgRemoveSpaceOwner], - ["/warden.warden.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/warden.warden.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/warden.warden.v1beta1.QueryKeychainsResponse", QueryKeychainsResponse], + ["/warden.warden.v1beta1.MsgUpdateKeychain", MsgUpdateKeychain], + ["/warden.warden.v1beta1.Key", Key], ]; export { msgTypes }; diff --git a/ts-client/lib/warden.warden.v1beta1/rest.d.ts b/ts-client/lib/warden.warden.v1beta1/rest.d.ts index bbba947aa..dad059203 100644 --- a/ts-client/lib/warden.warden.v1beta1/rest.d.ts +++ b/ts-client/lib/warden.warden.v1beta1/rest.d.ts @@ -336,8 +336,6 @@ export interface Action { approved_at?: string; }[]; status?: "ACTION_STATUS_UNSPECIFIED" | "ACTION_STATUS_PENDING" | "ACTION_STATUS_COMPLETED" | "ACTION_STATUS_REVOKED" | "ACTION_STATUS_TIMEOUT"; - /** @format uint64 */ - intent_id?: string; msg?: { "@type"?: string; }; @@ -351,6 +349,13 @@ export interface Action { created_at?: string; /** @format date-time */ updated_at?: string; + intent?: { + id?: string; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; } export declare enum ActionStatus { ACTION_STATUS_UNSPECIFIED = "ACTION_STATUS_UNSPECIFIED", @@ -364,6 +369,14 @@ export interface Approver { /** @format date-time */ approved_at?: string; } +export interface Intent { + /** @format uint64 */ + id?: string; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; +} export interface MsgActionCreated { action?: { id?: string; @@ -372,7 +385,6 @@ export interface MsgActionCreated { approved_at?: string; }[]; status?: "ACTION_STATUS_UNSPECIFIED" | "ACTION_STATUS_PENDING" | "ACTION_STATUS_COMPLETED" | "ACTION_STATUS_REVOKED" | "ACTION_STATUS_TIMEOUT"; - intent_id?: string; msg?: { "@type"?: string; }; @@ -383,6 +395,13 @@ export interface MsgActionCreated { btl?: string; created_at?: string; updated_at?: string; + intent?: { + id?: string; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; }; } export type MsgAddKeychainPartyResponse = object; diff --git a/ts-client/lib/warden.warden.v1beta1/types/warden/intent/action.d.ts b/ts-client/lib/warden.warden.v1beta1/types/warden/intent/action.d.ts index 6138b0b0d..fa481944f 100644 --- a/ts-client/lib/warden.warden.v1beta1/types/warden/intent/action.d.ts +++ b/ts-client/lib/warden.warden.v1beta1/types/warden/intent/action.d.ts @@ -1,5 +1,6 @@ import _m0 from "protobufjs/minimal"; import { Any } from "../../google/protobuf/any"; +import { Intent } from "./intent"; export declare const protobufPackage = "warden.intent"; /** Current status of an action. */ export declare enum ActionStatus { @@ -28,12 +29,6 @@ export interface Action { id: number; approvers: Approver[]; status: ActionStatus; - /** - * Optional intent id that must be satisfied by the approvers. - * If not specified, it's up to the creator of the action to decide what to - * apply. - */ - intentId: number; /** * Original message that started the action, it will be executed when the * intent is satisfied. @@ -51,6 +46,12 @@ export interface Action { createdAt: Date | undefined; /** updated_at is a timestamp specifying when the action's status was updated */ updatedAt: Date | undefined; + /** + * intent is the intent that this action is associated with. Instead of + * storing the intent ID, we store the entire intent object so that is + * immutable and cannot be changed later. + */ + intent: Intent | undefined; } /** MsgActionCreated is returned by rpc that creates an action. */ export interface MsgActionCreated { @@ -88,7 +89,6 @@ export declare const Action: { approvedAt?: Date | undefined; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -101,6 +101,13 @@ export declare const Action: { btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; } & { id?: number; approvers?: { @@ -117,7 +124,6 @@ export declare const Action: { approvedAt?: Date | undefined; }[]>]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -136,7 +142,20 @@ export declare const Action: { btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; - } & { [K_4 in Exclude]: never; }>(base?: I): Action; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + } & { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[] & string[] & { [K_4 in Exclude]: never; }; + } & { [K_5 in Exclude]: never; }; + } & { [K_6 in Exclude]: never; }>(base?: I): Action; fromPartial]: never; })[] & { [K_6 in Exclude]: never; })[] & { [K_8 in Exclude]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_7 in Exclude]: never; }; + } & { [K_9 in Exclude]: never; }; result?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_8 in Exclude]: never; }; + } & { [K_10 in Exclude]: never; }; creator?: string; btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; - } & { [K_9 in Exclude]: never; }>(object: I_1): Action; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + } & { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[] & string[] & { [K_11 in Exclude]: never; }; + } & { [K_12 in Exclude]: never; }; + } & { [K_13 in Exclude]: never; }>(object: I_1): Action; }; export declare const MsgActionCreated: { encode(message: MsgActionCreated, writer?: _m0.Writer): _m0.Writer; @@ -207,7 +244,6 @@ export declare const MsgActionCreated: { approvedAt?: Date | undefined; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -220,6 +256,13 @@ export declare const MsgActionCreated: { btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; }; } & { action?: { @@ -229,7 +272,6 @@ export declare const MsgActionCreated: { approvedAt?: Date | undefined; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -242,6 +284,13 @@ export declare const MsgActionCreated: { btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; } & { id?: number; approvers?: { @@ -258,7 +307,6 @@ export declare const MsgActionCreated: { approvedAt?: Date | undefined; }[]>]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -277,8 +325,21 @@ export declare const MsgActionCreated: { btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; - } & { [K_4 in Exclude]: never; }; - } & { [K_5 in Exclude]: never; }>(base?: I): MsgActionCreated; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + } & { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[] & string[] & { [K_4 in Exclude]: never; }; + } & { [K_5 in Exclude]: never; }; + } & { [K_6 in Exclude]: never; }; + } & { [K_7 in Exclude]: never; }>(base?: I): MsgActionCreated; fromPartial]: never; })[] & { [K_7 in Exclude]: never; })[] & { [K_9 in Exclude]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_8 in Exclude]: never; }; + } & { [K_10 in Exclude]: never; }; result?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_9 in Exclude]: never; }; + } & { [K_11 in Exclude]: never; }; creator?: string; btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; - } & { [K_10 in Exclude]: never; }; - } & { [K_11 in Exclude]: never; }>(object: I_1): MsgActionCreated; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + } & { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[] & string[] & { [K_12 in Exclude]: never; }; + } & { [K_13 in Exclude]: never; }; + } & { [K_14 in Exclude]: never; }; + } & { [K_15 in Exclude]: never; }>(object: I_1): MsgActionCreated; }; 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 {} ? { diff --git a/ts-client/lib/warden.warden.v1beta1/types/warden/intent/action.js b/ts-client/lib/warden.warden.v1beta1/types/warden/intent/action.js index 87bb50d41..4e85635aa 100644 --- a/ts-client/lib/warden.warden.v1beta1/types/warden/intent/action.js +++ b/ts-client/lib/warden.warden.v1beta1/types/warden/intent/action.js @@ -3,6 +3,7 @@ import Long from "long"; import _m0 from "protobufjs/minimal"; import { Any } from "../../google/protobuf/any"; import { Timestamp } from "../../google/protobuf/timestamp"; +import { Intent } from "./intent"; export const protobufPackage = "warden.intent"; /** Current status of an action. */ export var ActionStatus; @@ -130,13 +131,13 @@ function createBaseAction() { id: 0, approvers: [], status: 0, - intentId: 0, msg: undefined, result: undefined, creator: "", btl: 0, createdAt: undefined, updatedAt: undefined, + intent: undefined, }; } export const Action = { @@ -150,9 +151,6 @@ export const Action = { if (message.status !== 0) { writer.uint32(24).int32(message.status); } - if (message.intentId !== 0) { - writer.uint32(32).uint64(message.intentId); - } if (message.msg !== undefined) { Any.encode(message.msg, writer.uint32(42).fork()).ldelim(); } @@ -171,6 +169,9 @@ export const Action = { if (message.updatedAt !== undefined) { Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(82).fork()).ldelim(); } + if (message.intent !== undefined) { + Intent.encode(message.intent, writer.uint32(90).fork()).ldelim(); + } return writer; }, decode(input, length) { @@ -198,12 +199,6 @@ export const Action = { } message.status = reader.int32(); continue; - case 4: - if (tag !== 32) { - break; - } - message.intentId = longToNumber(reader.uint64()); - continue; case 5: if (tag !== 42) { break; @@ -240,6 +235,12 @@ export const Action = { } message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); continue; + case 11: + if (tag !== 90) { + break; + } + message.intent = Intent.decode(reader, reader.uint32()); + continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -253,13 +254,13 @@ export const Action = { id: isSet(object.id) ? Number(object.id) : 0, approvers: Array.isArray(object?.approvers) ? object.approvers.map((e) => Approver.fromJSON(e)) : [], status: isSet(object.status) ? actionStatusFromJSON(object.status) : 0, - intentId: isSet(object.intentId) ? Number(object.intentId) : 0, msg: isSet(object.msg) ? Any.fromJSON(object.msg) : undefined, result: isSet(object.result) ? Any.fromJSON(object.result) : undefined, creator: isSet(object.creator) ? String(object.creator) : "", btl: isSet(object.btl) ? Number(object.btl) : 0, createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined, updatedAt: isSet(object.updatedAt) ? fromJsonTimestamp(object.updatedAt) : undefined, + intent: isSet(object.intent) ? Intent.fromJSON(object.intent) : undefined, }; }, toJSON(message) { @@ -273,9 +274,6 @@ export const Action = { if (message.status !== 0) { obj.status = actionStatusToJSON(message.status); } - if (message.intentId !== 0) { - obj.intentId = Math.round(message.intentId); - } if (message.msg !== undefined) { obj.msg = Any.toJSON(message.msg); } @@ -294,6 +292,9 @@ export const Action = { if (message.updatedAt !== undefined) { obj.updatedAt = message.updatedAt.toISOString(); } + if (message.intent !== undefined) { + obj.intent = Intent.toJSON(message.intent); + } return obj; }, create(base) { @@ -304,7 +305,6 @@ export const Action = { message.id = object.id ?? 0; message.approvers = object.approvers?.map((e) => Approver.fromPartial(e)) || []; message.status = object.status ?? 0; - message.intentId = object.intentId ?? 0; message.msg = (object.msg !== undefined && object.msg !== null) ? Any.fromPartial(object.msg) : undefined; message.result = (object.result !== undefined && object.result !== null) ? Any.fromPartial(object.result) @@ -313,6 +313,9 @@ export const Action = { message.btl = object.btl ?? 0; message.createdAt = object.createdAt ?? undefined; message.updatedAt = object.updatedAt ?? undefined; + message.intent = (object.intent !== undefined && object.intent !== null) + ? Intent.fromPartial(object.intent) + : undefined; return message; }, }; diff --git a/ts-client/lib/warden.warden.v1beta1/types/warden/intent/intent.d.ts b/ts-client/lib/warden.warden.v1beta1/types/warden/intent/intent.d.ts new file mode 100644 index 000000000..9bba2fde2 --- /dev/null +++ b/ts-client/lib/warden.warden.v1beta1/types/warden/intent/intent.d.ts @@ -0,0 +1,54 @@ +import _m0 from "protobufjs/minimal"; +export declare const protobufPackage = "warden.intent"; +export interface Intent { + id: number; + creator: string; + name: string; + /** The definition of the intent written in the Shield language. */ + definition: string; + /** The list of addresses referenced from the intent definition. */ + addresses: string[]; +} +export declare const Intent: { + encode(message: Intent, writer?: _m0.Writer): _m0.Writer; + decode(input: _m0.Reader | Uint8Array, length?: number): Intent; + fromJSON(object: any): Intent; + toJSON(message: Intent): unknown; + create]: never; }; + } & { [K_1 in Exclude]: never; }>(base?: I): Intent; + fromPartial]: never; }; + } & { [K_3 in Exclude]: never; }>(object: I_1): Intent; +}; +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; +}; +export {}; diff --git a/ts-client/lib/warden.warden.v1beta1/types/warden/intent/intent.js b/ts-client/lib/warden.warden.v1beta1/types/warden/intent/intent.js new file mode 100644 index 000000000..59b1dcf0f --- /dev/null +++ b/ts-client/lib/warden.warden.v1beta1/types/warden/intent/intent.js @@ -0,0 +1,140 @@ +/* eslint-disable */ +import Long from "long"; +import _m0 from "protobufjs/minimal"; +export const protobufPackage = "warden.intent"; +function createBaseIntent() { + return { id: 0, creator: "", name: "", definition: "", addresses: [] }; +} +export const Intent = { + encode(message, writer = _m0.Writer.create()) { + if (message.id !== 0) { + writer.uint32(8).uint64(message.id); + } + if (message.creator !== "") { + writer.uint32(18).string(message.creator); + } + if (message.name !== "") { + writer.uint32(26).string(message.name); + } + if (message.definition !== "") { + writer.uint32(34).string(message.definition); + } + for (const v of message.addresses) { + writer.uint32(42).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseIntent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 8) { + break; + } + message.id = longToNumber(reader.uint64()); + continue; + case 2: + if (tag !== 18) { + break; + } + message.creator = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + message.name = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + message.definition = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + message.addresses.push(reader.string()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + fromJSON(object) { + return { + id: isSet(object.id) ? Number(object.id) : 0, + creator: isSet(object.creator) ? String(object.creator) : "", + name: isSet(object.name) ? String(object.name) : "", + definition: isSet(object.definition) ? String(object.definition) : "", + addresses: Array.isArray(object?.addresses) ? object.addresses.map((e) => String(e)) : [], + }; + }, + toJSON(message) { + const obj = {}; + if (message.id !== 0) { + obj.id = Math.round(message.id); + } + if (message.creator !== "") { + obj.creator = message.creator; + } + if (message.name !== "") { + obj.name = message.name; + } + if (message.definition !== "") { + obj.definition = message.definition; + } + if (message.addresses?.length) { + obj.addresses = message.addresses; + } + return obj; + }, + create(base) { + return Intent.fromPartial(base ?? {}); + }, + fromPartial(object) { + const message = createBaseIntent(); + message.id = object.id ?? 0; + message.creator = object.creator ?? ""; + message.name = object.name ?? ""; + message.definition = object.definition ?? ""; + message.addresses = object.addresses?.map((e) => e) || []; + return message; + }, +}; +const tsProtoGlobalThis = (() => { + if (typeof globalThis !== "undefined") { + return globalThis; + } + if (typeof self !== "undefined") { + return self; + } + if (typeof window !== "undefined") { + return window; + } + if (typeof global !== "undefined") { + return global; + } + throw "Unable to locate global object"; +})(); +function longToNumber(long) { + if (long.gt(Number.MAX_SAFE_INTEGER)) { + throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER"); + } + return long.toNumber(); +} +if (_m0.util.Long !== Long) { + _m0.util.Long = Long; + _m0.configure(); +} +function isSet(value) { + return value !== null && value !== undefined; +} diff --git a/ts-client/lib/warden.warden.v1beta2/module.d.ts b/ts-client/lib/warden.warden.v1beta2/module.d.ts index d9bfcffc7..bf1a53743 100644 --- a/ts-client/lib/warden.warden.v1beta2/module.d.ts +++ b/ts-client/lib/warden.warden.v1beta2/module.d.ts @@ -2,160 +2,154 @@ import { DeliverTxResponse, StdFee } from "@cosmjs/stargate"; import { EncodeObject, GeneratedType, OfflineSigner, Registry } from "@cosmjs/proto-signing"; import { IgniteClient } from "../client"; import { Api } from "./rest"; -import { MsgNewKeychain } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateKeychain } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta2/tx"; +import { QueryAllKeysRequest } from "./types/warden/warden/v1beta2/query"; +import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySpacesRequest } from "./types/warden/warden/v1beta2/query"; +import { QueryKeysResponse } from "./types/warden/warden/v1beta2/query"; +import { WalletKeyResponse } from "./types/warden/warden/v1beta2/query"; +import { Keychain } from "./types/warden/warden/v1beta2/keychain"; +import { QuerySignatureRequestsResponse } from "./types/warden/warden/v1beta2/query"; +import { SignTransactionRequest } from "./types/warden/warden/v1beta2/signature"; import { Space } from "./types/warden/warden/v1beta2/space"; -import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta2/tx"; -import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta2/query"; -import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta2/query"; -import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta2/query"; -import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta2/tx"; +import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta2/tx"; import { KeyRequest } from "./types/warden/warden/v1beta2/key"; -import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeychainsRequest } from "./types/warden/warden/v1beta2/query"; -import { QueryKeychainByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeychainsResponse } from "./types/warden/warden/v1beta2/query"; -import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgNewKeyRequest } from "./types/warden/warden/v1beta2/tx"; -import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewKey } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; import { QuerySpacesResponse } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { Key } from "./types/warden/warden/v1beta2/key"; -import { KeychainFees } from "./types/warden/warden/v1beta2/keychain"; -import { QueryKeychainByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta2/tx"; -import { Params } from "./types/warden/warden/v1beta2/params"; +import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewKeychain } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeysBySpaceIdRequest } from "./types/warden/warden/v1beta2/query"; +import { GenesisState } from "./types/warden/warden/v1beta2/genesis"; import { QuerySpaceByIdRequest } from "./types/warden/warden/v1beta2/query"; import { QueryKeyRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgNewSpace } from "./types/warden/warden/v1beta2/tx"; -import { WalletKeyResponse } from "./types/warden/warden/v1beta2/query"; -import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { QueryParamsResponse } from "./types/warden/warden/v1beta2/query"; import { QuerySignatureRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgNewKey } from "./types/warden/warden/v1beta2/tx"; +import { SignRequest } from "./types/warden/warden/v1beta2/signature"; import { MsgAddKeychainParty } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta2/tx"; +import { QueryParamsResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainsResponse } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta2/query"; +import { QuerySignatureRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; import { QuerySignTransactionRequestsRequest } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta2/query"; -import { Keychain } from "./types/warden/warden/v1beta2/keychain"; -import { QuerySignatureRequestsResponse } from "./types/warden/warden/v1beta2/query"; -import { QueryParamsRequest } from "./types/warden/warden/v1beta2/query"; -import { MetadataEthereum } from "./types/warden/warden/v1beta2/tx"; -import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta2/tx"; -import { MsgSignedData } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeysRequest } from "./types/warden/warden/v1beta2/query"; -import { GenesisState } from "./types/warden/warden/v1beta2/genesis"; -import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateSpace } from "./types/warden/warden/v1beta2/tx"; -import { QuerySpacesRequest } from "./types/warden/warden/v1beta2/query"; -import { QueryKeysResponse } from "./types/warden/warden/v1beta2/query"; -import { KeyResponse } from "./types/warden/warden/v1beta2/query"; -import { SignTransactionRequest } from "./types/warden/warden/v1beta2/signature"; -import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta2/tx"; import { MsgNewKeychainResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgSignedData } from "./types/warden/warden/v1beta2/tx"; +import { MetadataEthereum } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { Key } from "./types/warden/warden/v1beta2/key"; +import { MsgNewKeyRequest } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { KeychainFees } from "./types/warden/warden/v1beta2/keychain"; +import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKey } from "./types/warden/warden/v1beta2/tx"; import { QuerySpaceByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { QuerySignatureRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { SignRequest } from "./types/warden/warden/v1beta2/signature"; -import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyResponse } from "./types/warden/warden/v1beta2/query"; import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; import { MsgUpdateParams } from "./types/warden/warden/v1beta2/tx"; -export { MsgNewKeychain, MsgUpdateKeychain, Space, MsgUpdateKeychainResponse, QuerySpacesByOwnerRequest, QueryKeyRequestsResponse, SignTransactionRequestResponse, MsgRemoveSpaceOwner, KeyRequest, MsgNewSignatureRequestResponse, QueryKeychainsRequest, QueryKeychainByIdRequest, MsgRemoveSpaceOwnerResponse, QueryKeychainsResponse, QueryKeyRequestsRequest, MsgNewKeyRequest, MsgAddSpaceOwner, MsgNewSignatureRequest, QuerySpacesResponse, QuerySignTransactionRequestByIdRequest, Key, KeychainFees, QueryKeychainByIdResponse, MsgNewKeyRequestResponse, MsgAddKeychainPartyResponse, MsgUpdateSpaceResponse, MsgNewSignTransactionRequest, Params, QuerySpaceByIdRequest, QueryKeyRequestByIdRequest, MsgNewSpace, WalletKeyResponse, MsgUpdateKeyRequest, MsgNewSignTransactionRequestResponse, QueryParamsResponse, QuerySignatureRequestByIdRequest, MsgNewKey, MsgAddKeychainParty, MsgUpdateKeyRequestResponse, QuerySignTransactionRequestsRequest, QuerySignTransactionRequestsResponse, Keychain, QuerySignatureRequestsResponse, QueryParamsRequest, MetadataEthereum, MsgFulfilSignatureRequest, MsgSignedData, QueryKeysRequest, GenesisState, MsgAddSpaceOwnerResponse, MsgUpdateSpace, QuerySpacesRequest, QueryKeysResponse, KeyResponse, SignTransactionRequest, MsgNewSpaceResponse, MsgNewKeychainResponse, QuerySpaceByIdResponse, QuerySignatureRequestByIdResponse, SignRequest, MsgUpdateParamsResponse, MsgFulfilSignatureRequestResponse, QueryKeyRequestByIdResponse, QuerySignatureRequestsRequest, QuerySignTransactionRequestByIdResponse, MsgUpdateParams }; -type sendMsgNewKeychainParams = { - value: MsgNewKeychain; - fee?: StdFee; - memo?: string; -}; -type sendMsgUpdateKeychainParams = { - value: MsgUpdateKeychain; - fee?: StdFee; - memo?: string; -}; -type sendSpaceParams = { - value: Space; +import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta2/tx"; +import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateSpace } from "./types/warden/warden/v1beta2/tx"; +import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { Params } from "./types/warden/warden/v1beta2/params"; +import { MsgNewSpace } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateKeychain } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainsRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QueryParamsRequest } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta2/query"; +import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKeyResponse } from "./types/warden/warden/v1beta2/tx"; +export { MsgNewSignTransactionRequest, QueryAllKeysRequest, QuerySignTransactionRequestsResponse, MsgAddSpaceOwnerResponse, MsgNewKeyRequestResponse, QuerySpacesRequest, QueryKeysResponse, WalletKeyResponse, Keychain, QuerySignatureRequestsResponse, SignTransactionRequest, Space, MsgAddKeychainPartyResponse, KeyRequest, MsgNewKey, MsgUpdateKeyRequestResponse, QuerySpacesResponse, MsgNewSpaceResponse, MsgFulfilSignatureRequest, MsgNewKeychain, QueryKeysBySpaceIdRequest, GenesisState, QuerySpaceByIdRequest, QueryKeyRequestByIdRequest, QuerySignatureRequestByIdRequest, SignRequest, MsgAddKeychainParty, MsgUpdateSpaceResponse, QueryParamsResponse, MsgUpdateParamsResponse, MsgUpdateKeyRequest, QueryKeychainsResponse, QueryKeyRequestsRequest, QuerySignatureRequestByIdResponse, QuerySignTransactionRequestsRequest, MsgNewKeychainResponse, QuerySpacesByOwnerRequest, MsgSignedData, MetadataEthereum, QueryKeychainByIdRequest, QueryKeyByIdRequest, Key, MsgNewKeyRequest, MsgNewSignatureRequestResponse, KeychainFees, MsgAddSpaceOwner, MsgUpdateKey, QuerySpaceByIdResponse, QueryKeyResponse, QuerySignatureRequestsRequest, MsgUpdateParams, MsgRemoveSpaceOwner, MsgRemoveSpaceOwnerResponse, MsgUpdateSpace, MsgFulfilSignatureRequestResponse, QuerySignTransactionRequestByIdResponse, Params, MsgNewSpace, QueryKeychainByIdResponse, QueryKeyRequestByIdResponse, SignTransactionRequestResponse, MsgUpdateKeychain, MsgNewSignatureRequest, QueryKeychainsRequest, MsgNewSignTransactionRequestResponse, QueryParamsRequest, QueryKeyRequestsResponse, QuerySignTransactionRequestByIdRequest, MsgUpdateKeychainResponse, MsgUpdateKeyResponse }; +type sendMsgNewSignTransactionRequestParams = { + value: MsgNewSignTransactionRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateKeychainResponseParams = { - value: MsgUpdateKeychainResponse; +type sendQueryAllKeysRequestParams = { + value: QueryAllKeysRequest; fee?: StdFee; memo?: string; }; -type sendQuerySpacesByOwnerRequestParams = { - value: QuerySpacesByOwnerRequest; +type sendQuerySignTransactionRequestsResponseParams = { + value: QuerySignTransactionRequestsResponse; fee?: StdFee; memo?: string; }; -type sendQueryKeyRequestsResponseParams = { - value: QueryKeyRequestsResponse; +type sendMsgAddSpaceOwnerResponseParams = { + value: MsgAddSpaceOwnerResponse; fee?: StdFee; memo?: string; }; -type sendSignTransactionRequestResponseParams = { - value: SignTransactionRequestResponse; +type sendMsgNewKeyRequestResponseParams = { + value: MsgNewKeyRequestResponse; fee?: StdFee; memo?: string; }; -type sendMsgRemoveSpaceOwnerParams = { - value: MsgRemoveSpaceOwner; +type sendQuerySpacesRequestParams = { + value: QuerySpacesRequest; fee?: StdFee; memo?: string; }; -type sendKeyRequestParams = { - value: KeyRequest; +type sendQueryKeysResponseParams = { + value: QueryKeysResponse; fee?: StdFee; memo?: string; }; -type sendMsgNewSignatureRequestResponseParams = { - value: MsgNewSignatureRequestResponse; +type sendWalletKeyResponseParams = { + value: WalletKeyResponse; fee?: StdFee; memo?: string; }; -type sendQueryKeychainsRequestParams = { - value: QueryKeychainsRequest; +type sendKeychainParams = { + value: Keychain; fee?: StdFee; memo?: string; }; -type sendQueryKeychainByIdRequestParams = { - value: QueryKeychainByIdRequest; +type sendQuerySignatureRequestsResponseParams = { + value: QuerySignatureRequestsResponse; fee?: StdFee; memo?: string; }; -type sendMsgRemoveSpaceOwnerResponseParams = { - value: MsgRemoveSpaceOwnerResponse; +type sendSignTransactionRequestParams = { + value: SignTransactionRequest; fee?: StdFee; memo?: string; }; -type sendQueryKeychainsResponseParams = { - value: QueryKeychainsResponse; +type sendSpaceParams = { + value: Space; fee?: StdFee; memo?: string; }; -type sendQueryKeyRequestsRequestParams = { - value: QueryKeyRequestsRequest; +type sendMsgAddKeychainPartyResponseParams = { + value: MsgAddKeychainPartyResponse; fee?: StdFee; memo?: string; }; -type sendMsgNewKeyRequestParams = { - value: MsgNewKeyRequest; +type sendKeyRequestParams = { + value: KeyRequest; fee?: StdFee; memo?: string; }; -type sendMsgAddSpaceOwnerParams = { - value: MsgAddSpaceOwner; +type sendMsgNewKeyParams = { + value: MsgNewKey; fee?: StdFee; memo?: string; }; -type sendMsgNewSignatureRequestParams = { - value: MsgNewSignatureRequest; +type sendMsgUpdateKeyRequestResponseParams = { + value: MsgUpdateKeyRequestResponse; fee?: StdFee; memo?: string; }; @@ -164,68 +158,68 @@ type sendQuerySpacesResponseParams = { fee?: StdFee; memo?: string; }; -type sendQuerySignTransactionRequestByIdRequestParams = { - value: QuerySignTransactionRequestByIdRequest; +type sendMsgNewSpaceResponseParams = { + value: MsgNewSpaceResponse; fee?: StdFee; memo?: string; }; -type sendKeyParams = { - value: Key; +type sendMsgFulfilSignatureRequestParams = { + value: MsgFulfilSignatureRequest; fee?: StdFee; memo?: string; }; -type sendKeychainFeesParams = { - value: KeychainFees; +type sendMsgNewKeychainParams = { + value: MsgNewKeychain; fee?: StdFee; memo?: string; }; -type sendQueryKeychainByIdResponseParams = { - value: QueryKeychainByIdResponse; +type sendQueryKeysBySpaceIdRequestParams = { + value: QueryKeysBySpaceIdRequest; fee?: StdFee; memo?: string; }; -type sendMsgNewKeyRequestResponseParams = { - value: MsgNewKeyRequestResponse; +type sendGenesisStateParams = { + value: GenesisState; fee?: StdFee; memo?: string; }; -type sendMsgAddKeychainPartyResponseParams = { - value: MsgAddKeychainPartyResponse; +type sendQuerySpaceByIdRequestParams = { + value: QuerySpaceByIdRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateSpaceResponseParams = { - value: MsgUpdateSpaceResponse; +type sendQueryKeyRequestByIdRequestParams = { + value: QueryKeyRequestByIdRequest; fee?: StdFee; memo?: string; }; -type sendMsgNewSignTransactionRequestParams = { - value: MsgNewSignTransactionRequest; +type sendQuerySignatureRequestByIdRequestParams = { + value: QuerySignatureRequestByIdRequest; fee?: StdFee; memo?: string; }; -type sendParamsParams = { - value: Params; +type sendSignRequestParams = { + value: SignRequest; fee?: StdFee; memo?: string; }; -type sendQuerySpaceByIdRequestParams = { - value: QuerySpaceByIdRequest; +type sendMsgAddKeychainPartyParams = { + value: MsgAddKeychainParty; fee?: StdFee; memo?: string; }; -type sendQueryKeyRequestByIdRequestParams = { - value: QueryKeyRequestByIdRequest; +type sendMsgUpdateSpaceResponseParams = { + value: MsgUpdateSpaceResponse; fee?: StdFee; memo?: string; }; -type sendMsgNewSpaceParams = { - value: MsgNewSpace; +type sendQueryParamsResponseParams = { + value: QueryParamsResponse; fee?: StdFee; memo?: string; }; -type sendWalletKeyResponseParams = { - value: WalletKeyResponse; +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; fee?: StdFee; memo?: string; }; @@ -234,254 +228,266 @@ type sendMsgUpdateKeyRequestParams = { fee?: StdFee; memo?: string; }; -type sendMsgNewSignTransactionRequestResponseParams = { - value: MsgNewSignTransactionRequestResponse; +type sendQueryKeychainsResponseParams = { + value: QueryKeychainsResponse; fee?: StdFee; memo?: string; }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse; +type sendQueryKeyRequestsRequestParams = { + value: QueryKeyRequestsRequest; fee?: StdFee; memo?: string; }; -type sendQuerySignatureRequestByIdRequestParams = { - value: QuerySignatureRequestByIdRequest; +type sendQuerySignatureRequestByIdResponseParams = { + value: QuerySignatureRequestByIdResponse; fee?: StdFee; memo?: string; }; -type sendMsgNewKeyParams = { - value: MsgNewKey; +type sendQuerySignTransactionRequestsRequestParams = { + value: QuerySignTransactionRequestsRequest; fee?: StdFee; memo?: string; }; -type sendMsgAddKeychainPartyParams = { - value: MsgAddKeychainParty; +type sendMsgNewKeychainResponseParams = { + value: MsgNewKeychainResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateKeyRequestResponseParams = { - value: MsgUpdateKeyRequestResponse; +type sendQuerySpacesByOwnerRequestParams = { + value: QuerySpacesByOwnerRequest; fee?: StdFee; memo?: string; }; -type sendQuerySignTransactionRequestsRequestParams = { - value: QuerySignTransactionRequestsRequest; +type sendMsgSignedDataParams = { + value: MsgSignedData; fee?: StdFee; memo?: string; }; -type sendQuerySignTransactionRequestsResponseParams = { - value: QuerySignTransactionRequestsResponse; +type sendMetadataEthereumParams = { + value: MetadataEthereum; fee?: StdFee; memo?: string; }; -type sendKeychainParams = { - value: Keychain; +type sendQueryKeychainByIdRequestParams = { + value: QueryKeychainByIdRequest; fee?: StdFee; memo?: string; }; -type sendQuerySignatureRequestsResponseParams = { - value: QuerySignatureRequestsResponse; +type sendQueryKeyByIdRequestParams = { + value: QueryKeyByIdRequest; fee?: StdFee; memo?: string; }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest; +type sendKeyParams = { + value: Key; fee?: StdFee; memo?: string; }; -type sendMetadataEthereumParams = { - value: MetadataEthereum; +type sendMsgNewKeyRequestParams = { + value: MsgNewKeyRequest; fee?: StdFee; memo?: string; }; -type sendMsgFulfilSignatureRequestParams = { - value: MsgFulfilSignatureRequest; +type sendMsgNewSignatureRequestResponseParams = { + value: MsgNewSignatureRequestResponse; fee?: StdFee; memo?: string; }; -type sendMsgSignedDataParams = { - value: MsgSignedData; +type sendKeychainFeesParams = { + value: KeychainFees; fee?: StdFee; memo?: string; }; -type sendQueryKeysRequestParams = { - value: QueryKeysRequest; +type sendMsgAddSpaceOwnerParams = { + value: MsgAddSpaceOwner; fee?: StdFee; memo?: string; }; -type sendGenesisStateParams = { - value: GenesisState; +type sendMsgUpdateKeyParams = { + value: MsgUpdateKey; fee?: StdFee; memo?: string; }; -type sendMsgAddSpaceOwnerResponseParams = { - value: MsgAddSpaceOwnerResponse; +type sendQuerySpaceByIdResponseParams = { + value: QuerySpaceByIdResponse; fee?: StdFee; memo?: string; }; -type sendMsgUpdateSpaceParams = { - value: MsgUpdateSpace; +type sendQueryKeyResponseParams = { + value: QueryKeyResponse; fee?: StdFee; memo?: string; }; -type sendQuerySpacesRequestParams = { - value: QuerySpacesRequest; +type sendQuerySignatureRequestsRequestParams = { + value: QuerySignatureRequestsRequest; fee?: StdFee; memo?: string; }; -type sendQueryKeysResponseParams = { - value: QueryKeysResponse; +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams; fee?: StdFee; memo?: string; }; -type sendKeyResponseParams = { - value: KeyResponse; +type sendMsgRemoveSpaceOwnerParams = { + value: MsgRemoveSpaceOwner; fee?: StdFee; memo?: string; }; -type sendSignTransactionRequestParams = { - value: SignTransactionRequest; +type sendMsgRemoveSpaceOwnerResponseParams = { + value: MsgRemoveSpaceOwnerResponse; fee?: StdFee; memo?: string; }; -type sendMsgNewSpaceResponseParams = { - value: MsgNewSpaceResponse; +type sendMsgUpdateSpaceParams = { + value: MsgUpdateSpace; fee?: StdFee; memo?: string; }; -type sendMsgNewKeychainResponseParams = { - value: MsgNewKeychainResponse; +type sendMsgFulfilSignatureRequestResponseParams = { + value: MsgFulfilSignatureRequestResponse; fee?: StdFee; memo?: string; }; -type sendQuerySpaceByIdResponseParams = { - value: QuerySpaceByIdResponse; +type sendQuerySignTransactionRequestByIdResponseParams = { + value: QuerySignTransactionRequestByIdResponse; fee?: StdFee; memo?: string; }; -type sendQuerySignatureRequestByIdResponseParams = { - value: QuerySignatureRequestByIdResponse; +type sendParamsParams = { + value: Params; fee?: StdFee; memo?: string; }; -type sendSignRequestParams = { - value: SignRequest; +type sendMsgNewSpaceParams = { + value: MsgNewSpace; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type sendQueryKeychainByIdResponseParams = { + value: QueryKeychainByIdResponse; fee?: StdFee; memo?: string; }; -type sendMsgFulfilSignatureRequestResponseParams = { - value: MsgFulfilSignatureRequestResponse; +type sendQueryKeyRequestByIdResponseParams = { + value: QueryKeyRequestByIdResponse; fee?: StdFee; memo?: string; }; -type sendQueryKeyRequestByIdResponseParams = { - value: QueryKeyRequestByIdResponse; +type sendSignTransactionRequestResponseParams = { + value: SignTransactionRequestResponse; fee?: StdFee; memo?: string; }; -type sendQuerySignatureRequestsRequestParams = { - value: QuerySignatureRequestsRequest; +type sendMsgUpdateKeychainParams = { + value: MsgUpdateKeychain; fee?: StdFee; memo?: string; }; -type sendQuerySignTransactionRequestByIdResponseParams = { - value: QuerySignTransactionRequestByIdResponse; +type sendMsgNewSignatureRequestParams = { + value: MsgNewSignatureRequest; fee?: StdFee; memo?: string; }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams; +type sendQueryKeychainsRequestParams = { + value: QueryKeychainsRequest; fee?: StdFee; memo?: string; }; -type msgNewKeychainParams = { - value: MsgNewKeychain; +type sendMsgNewSignTransactionRequestResponseParams = { + value: MsgNewSignTransactionRequestResponse; + fee?: StdFee; + memo?: string; }; -type msgUpdateKeychainParams = { - value: MsgUpdateKeychain; +type sendQueryParamsRequestParams = { + value: QueryParamsRequest; + fee?: StdFee; + memo?: string; }; -type spaceParams = { - value: Space; +type sendQueryKeyRequestsResponseParams = { + value: QueryKeyRequestsResponse; + fee?: StdFee; + memo?: string; }; -type msgUpdateKeychainResponseParams = { - value: MsgUpdateKeychainResponse; +type sendQuerySignTransactionRequestByIdRequestParams = { + value: QuerySignTransactionRequestByIdRequest; + fee?: StdFee; + memo?: string; }; -type querySpacesByOwnerRequestParams = { - value: QuerySpacesByOwnerRequest; +type sendMsgUpdateKeychainResponseParams = { + value: MsgUpdateKeychainResponse; + fee?: StdFee; + memo?: string; }; -type queryKeyRequestsResponseParams = { - value: QueryKeyRequestsResponse; +type sendMsgUpdateKeyResponseParams = { + value: MsgUpdateKeyResponse; + fee?: StdFee; + memo?: string; }; -type signTransactionRequestResponseParams = { - value: SignTransactionRequestResponse; +type msgNewSignTransactionRequestParams = { + value: MsgNewSignTransactionRequest; }; -type msgRemoveSpaceOwnerParams = { - value: MsgRemoveSpaceOwner; +type queryAllKeysRequestParams = { + value: QueryAllKeysRequest; }; -type keyRequestParams = { - value: KeyRequest; +type querySignTransactionRequestsResponseParams = { + value: QuerySignTransactionRequestsResponse; }; -type msgNewSignatureRequestResponseParams = { - value: MsgNewSignatureRequestResponse; +type msgAddSpaceOwnerResponseParams = { + value: MsgAddSpaceOwnerResponse; }; -type queryKeychainsRequestParams = { - value: QueryKeychainsRequest; +type msgNewKeyRequestResponseParams = { + value: MsgNewKeyRequestResponse; }; -type queryKeychainByIdRequestParams = { - value: QueryKeychainByIdRequest; +type querySpacesRequestParams = { + value: QuerySpacesRequest; }; -type msgRemoveSpaceOwnerResponseParams = { - value: MsgRemoveSpaceOwnerResponse; +type queryKeysResponseParams = { + value: QueryKeysResponse; }; -type queryKeychainsResponseParams = { - value: QueryKeychainsResponse; +type walletKeyResponseParams = { + value: WalletKeyResponse; }; -type queryKeyRequestsRequestParams = { - value: QueryKeyRequestsRequest; +type keychainParams = { + value: Keychain; }; -type msgNewKeyRequestParams = { - value: MsgNewKeyRequest; +type querySignatureRequestsResponseParams = { + value: QuerySignatureRequestsResponse; }; -type msgAddSpaceOwnerParams = { - value: MsgAddSpaceOwner; +type signTransactionRequestParams = { + value: SignTransactionRequest; }; -type msgNewSignatureRequestParams = { - value: MsgNewSignatureRequest; +type spaceParams = { + value: Space; }; -type querySpacesResponseParams = { - value: QuerySpacesResponse; +type msgAddKeychainPartyResponseParams = { + value: MsgAddKeychainPartyResponse; }; -type querySignTransactionRequestByIdRequestParams = { - value: QuerySignTransactionRequestByIdRequest; +type keyRequestParams = { + value: KeyRequest; }; -type keyParams = { - value: Key; +type msgNewKeyParams = { + value: MsgNewKey; }; -type keychainFeesParams = { - value: KeychainFees; +type msgUpdateKeyRequestResponseParams = { + value: MsgUpdateKeyRequestResponse; }; -type queryKeychainByIdResponseParams = { - value: QueryKeychainByIdResponse; +type querySpacesResponseParams = { + value: QuerySpacesResponse; }; -type msgNewKeyRequestResponseParams = { - value: MsgNewKeyRequestResponse; +type msgNewSpaceResponseParams = { + value: MsgNewSpaceResponse; }; -type msgAddKeychainPartyResponseParams = { - value: MsgAddKeychainPartyResponse; +type msgFulfilSignatureRequestParams = { + value: MsgFulfilSignatureRequest; }; -type msgUpdateSpaceResponseParams = { - value: MsgUpdateSpaceResponse; +type msgNewKeychainParams = { + value: MsgNewKeychain; }; -type msgNewSignTransactionRequestParams = { - value: MsgNewSignTransactionRequest; +type queryKeysBySpaceIdRequestParams = { + value: QueryKeysBySpaceIdRequest; }; -type paramsParams = { - value: Params; +type genesisStateParams = { + value: GenesisState; }; type querySpaceByIdRequestParams = { value: QuerySpaceByIdRequest; @@ -489,113 +495,143 @@ type querySpaceByIdRequestParams = { type queryKeyRequestByIdRequestParams = { value: QueryKeyRequestByIdRequest; }; -type msgNewSpaceParams = { - value: MsgNewSpace; +type querySignatureRequestByIdRequestParams = { + value: QuerySignatureRequestByIdRequest; }; -type walletKeyResponseParams = { - value: WalletKeyResponse; +type signRequestParams = { + value: SignRequest; }; -type msgUpdateKeyRequestParams = { - value: MsgUpdateKeyRequest; +type msgAddKeychainPartyParams = { + value: MsgAddKeychainParty; }; -type msgNewSignTransactionRequestResponseParams = { - value: MsgNewSignTransactionRequestResponse; +type msgUpdateSpaceResponseParams = { + value: MsgUpdateSpaceResponse; }; type queryParamsResponseParams = { value: QueryParamsResponse; }; -type querySignatureRequestByIdRequestParams = { - value: QuerySignatureRequestByIdRequest; +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse; }; -type msgNewKeyParams = { - value: MsgNewKey; +type msgUpdateKeyRequestParams = { + value: MsgUpdateKeyRequest; }; -type msgAddKeychainPartyParams = { - value: MsgAddKeychainParty; +type queryKeychainsResponseParams = { + value: QueryKeychainsResponse; }; -type msgUpdateKeyRequestResponseParams = { - value: MsgUpdateKeyRequestResponse; +type queryKeyRequestsRequestParams = { + value: QueryKeyRequestsRequest; +}; +type querySignatureRequestByIdResponseParams = { + value: QuerySignatureRequestByIdResponse; }; type querySignTransactionRequestsRequestParams = { value: QuerySignTransactionRequestsRequest; }; -type querySignTransactionRequestsResponseParams = { - value: QuerySignTransactionRequestsResponse; -}; -type keychainParams = { - value: Keychain; +type msgNewKeychainResponseParams = { + value: MsgNewKeychainResponse; }; -type querySignatureRequestsResponseParams = { - value: QuerySignatureRequestsResponse; +type querySpacesByOwnerRequestParams = { + value: QuerySpacesByOwnerRequest; }; -type queryParamsRequestParams = { - value: QueryParamsRequest; +type msgSignedDataParams = { + value: MsgSignedData; }; type metadataEthereumParams = { value: MetadataEthereum; }; -type msgFulfilSignatureRequestParams = { - value: MsgFulfilSignatureRequest; -}; -type msgSignedDataParams = { - value: MsgSignedData; +type queryKeychainByIdRequestParams = { + value: QueryKeychainByIdRequest; }; -type queryKeysRequestParams = { - value: QueryKeysRequest; +type queryKeyByIdRequestParams = { + value: QueryKeyByIdRequest; }; -type genesisStateParams = { - value: GenesisState; +type keyParams = { + value: Key; }; -type msgAddSpaceOwnerResponseParams = { - value: MsgAddSpaceOwnerResponse; +type msgNewKeyRequestParams = { + value: MsgNewKeyRequest; }; -type msgUpdateSpaceParams = { - value: MsgUpdateSpace; +type msgNewSignatureRequestResponseParams = { + value: MsgNewSignatureRequestResponse; }; -type querySpacesRequestParams = { - value: QuerySpacesRequest; +type keychainFeesParams = { + value: KeychainFees; }; -type queryKeysResponseParams = { - value: QueryKeysResponse; +type msgAddSpaceOwnerParams = { + value: MsgAddSpaceOwner; }; -type keyResponseParams = { - value: KeyResponse; +type msgUpdateKeyParams = { + value: MsgUpdateKey; }; -type signTransactionRequestParams = { - value: SignTransactionRequest; +type querySpaceByIdResponseParams = { + value: QuerySpaceByIdResponse; }; -type msgNewSpaceResponseParams = { - value: MsgNewSpaceResponse; +type queryKeyResponseParams = { + value: QueryKeyResponse; }; -type msgNewKeychainResponseParams = { - value: MsgNewKeychainResponse; +type querySignatureRequestsRequestParams = { + value: QuerySignatureRequestsRequest; }; -type querySpaceByIdResponseParams = { - value: QuerySpaceByIdResponse; +type msgUpdateParamsParams = { + value: MsgUpdateParams; }; -type querySignatureRequestByIdResponseParams = { - value: QuerySignatureRequestByIdResponse; +type msgRemoveSpaceOwnerParams = { + value: MsgRemoveSpaceOwner; }; -type signRequestParams = { - value: SignRequest; +type msgRemoveSpaceOwnerResponseParams = { + value: MsgRemoveSpaceOwnerResponse; }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse; +type msgUpdateSpaceParams = { + value: MsgUpdateSpace; }; type msgFulfilSignatureRequestResponseParams = { value: MsgFulfilSignatureRequestResponse; }; +type querySignTransactionRequestByIdResponseParams = { + value: QuerySignTransactionRequestByIdResponse; +}; +type paramsParams = { + value: Params; +}; +type msgNewSpaceParams = { + value: MsgNewSpace; +}; +type queryKeychainByIdResponseParams = { + value: QueryKeychainByIdResponse; +}; type queryKeyRequestByIdResponseParams = { value: QueryKeyRequestByIdResponse; }; -type querySignatureRequestsRequestParams = { - value: QuerySignatureRequestsRequest; +type signTransactionRequestResponseParams = { + value: SignTransactionRequestResponse; }; -type querySignTransactionRequestByIdResponseParams = { - value: QuerySignTransactionRequestByIdResponse; +type msgUpdateKeychainParams = { + value: MsgUpdateKeychain; }; -type msgUpdateParamsParams = { - value: MsgUpdateParams; +type msgNewSignatureRequestParams = { + value: MsgNewSignatureRequest; +}; +type queryKeychainsRequestParams = { + value: QueryKeychainsRequest; +}; +type msgNewSignTransactionRequestResponseParams = { + value: MsgNewSignTransactionRequestResponse; +}; +type queryParamsRequestParams = { + value: QueryParamsRequest; +}; +type queryKeyRequestsResponseParams = { + value: QueryKeyRequestsResponse; +}; +type querySignTransactionRequestByIdRequestParams = { + value: QuerySignTransactionRequestByIdRequest; +}; +type msgUpdateKeychainResponseParams = { + value: MsgUpdateKeychainResponse; +}; +type msgUpdateKeyResponseParams = { + value: MsgUpdateKeyResponse; }; export declare const registry: Registry; interface TxClientOptions { @@ -604,138 +640,146 @@ interface TxClientOptions { signer?: OfflineSigner; } export declare const txClient: ({ signer, prefix, addr }?: TxClientOptions) => { - sendMsgNewKeychain({ value, fee, memo }: sendMsgNewKeychainParams): Promise; - sendMsgUpdateKeychain({ value, fee, memo }: sendMsgUpdateKeychainParams): Promise; + sendMsgNewSignTransactionRequest({ value, fee, memo }: sendMsgNewSignTransactionRequestParams): Promise; + sendQueryAllKeysRequest({ value, fee, memo }: sendQueryAllKeysRequestParams): Promise; + sendQuerySignTransactionRequestsResponse({ value, fee, memo }: sendQuerySignTransactionRequestsResponseParams): Promise; + sendMsgAddSpaceOwnerResponse({ value, fee, memo }: sendMsgAddSpaceOwnerResponseParams): Promise; + sendMsgNewKeyRequestResponse({ value, fee, memo }: sendMsgNewKeyRequestResponseParams): Promise; + sendQuerySpacesRequest({ value, fee, memo }: sendQuerySpacesRequestParams): Promise; + sendQueryKeysResponse({ value, fee, memo }: sendQueryKeysResponseParams): Promise; + sendWalletKeyResponse({ value, fee, memo }: sendWalletKeyResponseParams): Promise; + sendKeychain({ value, fee, memo }: sendKeychainParams): Promise; + sendQuerySignatureRequestsResponse({ value, fee, memo }: sendQuerySignatureRequestsResponseParams): Promise; + sendSignTransactionRequest({ value, fee, memo }: sendSignTransactionRequestParams): Promise; sendSpace({ value, fee, memo }: sendSpaceParams): Promise; - sendMsgUpdateKeychainResponse({ value, fee, memo }: sendMsgUpdateKeychainResponseParams): Promise; - sendQuerySpacesByOwnerRequest({ value, fee, memo }: sendQuerySpacesByOwnerRequestParams): Promise; - sendQueryKeyRequestsResponse({ value, fee, memo }: sendQueryKeyRequestsResponseParams): Promise; - sendSignTransactionRequestResponse({ value, fee, memo }: sendSignTransactionRequestResponseParams): Promise; - sendMsgRemoveSpaceOwner({ value, fee, memo }: sendMsgRemoveSpaceOwnerParams): Promise; + sendMsgAddKeychainPartyResponse({ value, fee, memo }: sendMsgAddKeychainPartyResponseParams): Promise; sendKeyRequest({ value, fee, memo }: sendKeyRequestParams): Promise; - sendMsgNewSignatureRequestResponse({ value, fee, memo }: sendMsgNewSignatureRequestResponseParams): Promise; - sendQueryKeychainsRequest({ value, fee, memo }: sendQueryKeychainsRequestParams): Promise; - sendQueryKeychainByIdRequest({ value, fee, memo }: sendQueryKeychainByIdRequestParams): Promise; - sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }: sendMsgRemoveSpaceOwnerResponseParams): Promise; - sendQueryKeychainsResponse({ value, fee, memo }: sendQueryKeychainsResponseParams): Promise; - sendQueryKeyRequestsRequest({ value, fee, memo }: sendQueryKeyRequestsRequestParams): Promise; - sendMsgNewKeyRequest({ value, fee, memo }: sendMsgNewKeyRequestParams): Promise; - sendMsgAddSpaceOwner({ value, fee, memo }: sendMsgAddSpaceOwnerParams): Promise; - sendMsgNewSignatureRequest({ value, fee, memo }: sendMsgNewSignatureRequestParams): Promise; + sendMsgNewKey({ value, fee, memo }: sendMsgNewKeyParams): Promise; + sendMsgUpdateKeyRequestResponse({ value, fee, memo }: sendMsgUpdateKeyRequestResponseParams): Promise; sendQuerySpacesResponse({ value, fee, memo }: sendQuerySpacesResponseParams): Promise; - sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }: sendQuerySignTransactionRequestByIdRequestParams): Promise; - sendKey({ value, fee, memo }: sendKeyParams): Promise; - sendKeychainFees({ value, fee, memo }: sendKeychainFeesParams): Promise; - sendQueryKeychainByIdResponse({ value, fee, memo }: sendQueryKeychainByIdResponseParams): Promise; - sendMsgNewKeyRequestResponse({ value, fee, memo }: sendMsgNewKeyRequestResponseParams): Promise; - sendMsgAddKeychainPartyResponse({ value, fee, memo }: sendMsgAddKeychainPartyResponseParams): Promise; - sendMsgUpdateSpaceResponse({ value, fee, memo }: sendMsgUpdateSpaceResponseParams): Promise; - sendMsgNewSignTransactionRequest({ value, fee, memo }: sendMsgNewSignTransactionRequestParams): Promise; - sendParams({ value, fee, memo }: sendParamsParams): Promise; + sendMsgNewSpaceResponse({ value, fee, memo }: sendMsgNewSpaceResponseParams): Promise; + sendMsgFulfilSignatureRequest({ value, fee, memo }: sendMsgFulfilSignatureRequestParams): Promise; + sendMsgNewKeychain({ value, fee, memo }: sendMsgNewKeychainParams): Promise; + sendQueryKeysBySpaceIdRequest({ value, fee, memo }: sendQueryKeysBySpaceIdRequestParams): Promise; + sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; sendQuerySpaceByIdRequest({ value, fee, memo }: sendQuerySpaceByIdRequestParams): Promise; sendQueryKeyRequestByIdRequest({ value, fee, memo }: sendQueryKeyRequestByIdRequestParams): Promise; - sendMsgNewSpace({ value, fee, memo }: sendMsgNewSpaceParams): Promise; - sendWalletKeyResponse({ value, fee, memo }: sendWalletKeyResponseParams): Promise; - sendMsgUpdateKeyRequest({ value, fee, memo }: sendMsgUpdateKeyRequestParams): Promise; - sendMsgNewSignTransactionRequestResponse({ value, fee, memo }: sendMsgNewSignTransactionRequestResponseParams): Promise; - sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; sendQuerySignatureRequestByIdRequest({ value, fee, memo }: sendQuerySignatureRequestByIdRequestParams): Promise; - sendMsgNewKey({ value, fee, memo }: sendMsgNewKeyParams): Promise; + sendSignRequest({ value, fee, memo }: sendSignRequestParams): Promise; sendMsgAddKeychainParty({ value, fee, memo }: sendMsgAddKeychainPartyParams): Promise; - sendMsgUpdateKeyRequestResponse({ value, fee, memo }: sendMsgUpdateKeyRequestResponseParams): Promise; + sendMsgUpdateSpaceResponse({ value, fee, memo }: sendMsgUpdateSpaceResponseParams): Promise; + sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise; + sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; + sendMsgUpdateKeyRequest({ value, fee, memo }: sendMsgUpdateKeyRequestParams): Promise; + sendQueryKeychainsResponse({ value, fee, memo }: sendQueryKeychainsResponseParams): Promise; + sendQueryKeyRequestsRequest({ value, fee, memo }: sendQueryKeyRequestsRequestParams): Promise; + sendQuerySignatureRequestByIdResponse({ value, fee, memo }: sendQuerySignatureRequestByIdResponseParams): Promise; sendQuerySignTransactionRequestsRequest({ value, fee, memo }: sendQuerySignTransactionRequestsRequestParams): Promise; - sendQuerySignTransactionRequestsResponse({ value, fee, memo }: sendQuerySignTransactionRequestsResponseParams): Promise; - sendKeychain({ value, fee, memo }: sendKeychainParams): Promise; - sendQuerySignatureRequestsResponse({ value, fee, memo }: sendQuerySignatureRequestsResponseParams): Promise; - sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; - sendMetadataEthereum({ value, fee, memo }: sendMetadataEthereumParams): Promise; - sendMsgFulfilSignatureRequest({ value, fee, memo }: sendMsgFulfilSignatureRequestParams): Promise; - sendMsgSignedData({ value, fee, memo }: sendMsgSignedDataParams): Promise; - sendQueryKeysRequest({ value, fee, memo }: sendQueryKeysRequestParams): Promise; - sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise; - sendMsgAddSpaceOwnerResponse({ value, fee, memo }: sendMsgAddSpaceOwnerResponseParams): Promise; - sendMsgUpdateSpace({ value, fee, memo }: sendMsgUpdateSpaceParams): Promise; - sendQuerySpacesRequest({ value, fee, memo }: sendQuerySpacesRequestParams): Promise; - sendQueryKeysResponse({ value, fee, memo }: sendQueryKeysResponseParams): Promise; - sendKeyResponse({ value, fee, memo }: sendKeyResponseParams): Promise; - sendSignTransactionRequest({ value, fee, memo }: sendSignTransactionRequestParams): Promise; - sendMsgNewSpaceResponse({ value, fee, memo }: sendMsgNewSpaceResponseParams): Promise; sendMsgNewKeychainResponse({ value, fee, memo }: sendMsgNewKeychainResponseParams): Promise; + sendQuerySpacesByOwnerRequest({ value, fee, memo }: sendQuerySpacesByOwnerRequestParams): Promise; + sendMsgSignedData({ value, fee, memo }: sendMsgSignedDataParams): Promise; + sendMetadataEthereum({ value, fee, memo }: sendMetadataEthereumParams): Promise; + sendQueryKeychainByIdRequest({ value, fee, memo }: sendQueryKeychainByIdRequestParams): Promise; + sendQueryKeyByIdRequest({ value, fee, memo }: sendQueryKeyByIdRequestParams): Promise; + sendKey({ value, fee, memo }: sendKeyParams): Promise; + sendMsgNewKeyRequest({ value, fee, memo }: sendMsgNewKeyRequestParams): Promise; + sendMsgNewSignatureRequestResponse({ value, fee, memo }: sendMsgNewSignatureRequestResponseParams): Promise; + sendKeychainFees({ value, fee, memo }: sendKeychainFeesParams): Promise; + sendMsgAddSpaceOwner({ value, fee, memo }: sendMsgAddSpaceOwnerParams): Promise; + sendMsgUpdateKey({ value, fee, memo }: sendMsgUpdateKeyParams): Promise; sendQuerySpaceByIdResponse({ value, fee, memo }: sendQuerySpaceByIdResponseParams): Promise; - sendQuerySignatureRequestByIdResponse({ value, fee, memo }: sendQuerySignatureRequestByIdResponseParams): Promise; - sendSignRequest({ value, fee, memo }: sendSignRequestParams): Promise; - sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise; - sendMsgFulfilSignatureRequestResponse({ value, fee, memo }: sendMsgFulfilSignatureRequestResponseParams): Promise; - sendQueryKeyRequestByIdResponse({ value, fee, memo }: sendQueryKeyRequestByIdResponseParams): Promise; + sendQueryKeyResponse({ value, fee, memo }: sendQueryKeyResponseParams): Promise; sendQuerySignatureRequestsRequest({ value, fee, memo }: sendQuerySignatureRequestsRequestParams): Promise; - sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }: sendQuerySignTransactionRequestByIdResponseParams): Promise; sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise; - msgNewKeychain({ value }: msgNewKeychainParams): EncodeObject; - msgUpdateKeychain({ value }: msgUpdateKeychainParams): EncodeObject; + sendMsgRemoveSpaceOwner({ value, fee, memo }: sendMsgRemoveSpaceOwnerParams): Promise; + sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }: sendMsgRemoveSpaceOwnerResponseParams): Promise; + sendMsgUpdateSpace({ value, fee, memo }: sendMsgUpdateSpaceParams): Promise; + sendMsgFulfilSignatureRequestResponse({ value, fee, memo }: sendMsgFulfilSignatureRequestResponseParams): Promise; + sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }: sendQuerySignTransactionRequestByIdResponseParams): Promise; + sendParams({ value, fee, memo }: sendParamsParams): Promise; + sendMsgNewSpace({ value, fee, memo }: sendMsgNewSpaceParams): Promise; + sendQueryKeychainByIdResponse({ value, fee, memo }: sendQueryKeychainByIdResponseParams): Promise; + sendQueryKeyRequestByIdResponse({ value, fee, memo }: sendQueryKeyRequestByIdResponseParams): Promise; + sendSignTransactionRequestResponse({ value, fee, memo }: sendSignTransactionRequestResponseParams): Promise; + sendMsgUpdateKeychain({ value, fee, memo }: sendMsgUpdateKeychainParams): Promise; + sendMsgNewSignatureRequest({ value, fee, memo }: sendMsgNewSignatureRequestParams): Promise; + sendQueryKeychainsRequest({ value, fee, memo }: sendQueryKeychainsRequestParams): Promise; + sendMsgNewSignTransactionRequestResponse({ value, fee, memo }: sendMsgNewSignTransactionRequestResponseParams): Promise; + sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise; + sendQueryKeyRequestsResponse({ value, fee, memo }: sendQueryKeyRequestsResponseParams): Promise; + sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }: sendQuerySignTransactionRequestByIdRequestParams): Promise; + sendMsgUpdateKeychainResponse({ value, fee, memo }: sendMsgUpdateKeychainResponseParams): Promise; + sendMsgUpdateKeyResponse({ value, fee, memo }: sendMsgUpdateKeyResponseParams): Promise; + msgNewSignTransactionRequest({ value }: msgNewSignTransactionRequestParams): EncodeObject; + queryAllKeysRequest({ value }: queryAllKeysRequestParams): EncodeObject; + querySignTransactionRequestsResponse({ value }: querySignTransactionRequestsResponseParams): EncodeObject; + msgAddSpaceOwnerResponse({ value }: msgAddSpaceOwnerResponseParams): EncodeObject; + msgNewKeyRequestResponse({ value }: msgNewKeyRequestResponseParams): EncodeObject; + querySpacesRequest({ value }: querySpacesRequestParams): EncodeObject; + queryKeysResponse({ value }: queryKeysResponseParams): EncodeObject; + walletKeyResponse({ value }: walletKeyResponseParams): EncodeObject; + keychain({ value }: keychainParams): EncodeObject; + querySignatureRequestsResponse({ value }: querySignatureRequestsResponseParams): EncodeObject; + signTransactionRequest({ value }: signTransactionRequestParams): EncodeObject; space({ value }: spaceParams): EncodeObject; - msgUpdateKeychainResponse({ value }: msgUpdateKeychainResponseParams): EncodeObject; - querySpacesByOwnerRequest({ value }: querySpacesByOwnerRequestParams): EncodeObject; - queryKeyRequestsResponse({ value }: queryKeyRequestsResponseParams): EncodeObject; - signTransactionRequestResponse({ value }: signTransactionRequestResponseParams): EncodeObject; - msgRemoveSpaceOwner({ value }: msgRemoveSpaceOwnerParams): EncodeObject; + msgAddKeychainPartyResponse({ value }: msgAddKeychainPartyResponseParams): EncodeObject; keyRequest({ value }: keyRequestParams): EncodeObject; - msgNewSignatureRequestResponse({ value }: msgNewSignatureRequestResponseParams): EncodeObject; - queryKeychainsRequest({ value }: queryKeychainsRequestParams): EncodeObject; - queryKeychainByIdRequest({ value }: queryKeychainByIdRequestParams): EncodeObject; - msgRemoveSpaceOwnerResponse({ value }: msgRemoveSpaceOwnerResponseParams): EncodeObject; - queryKeychainsResponse({ value }: queryKeychainsResponseParams): EncodeObject; - queryKeyRequestsRequest({ value }: queryKeyRequestsRequestParams): EncodeObject; - msgNewKeyRequest({ value }: msgNewKeyRequestParams): EncodeObject; - msgAddSpaceOwner({ value }: msgAddSpaceOwnerParams): EncodeObject; - msgNewSignatureRequest({ value }: msgNewSignatureRequestParams): EncodeObject; + msgNewKey({ value }: msgNewKeyParams): EncodeObject; + msgUpdateKeyRequestResponse({ value }: msgUpdateKeyRequestResponseParams): EncodeObject; querySpacesResponse({ value }: querySpacesResponseParams): EncodeObject; - querySignTransactionRequestByIdRequest({ value }: querySignTransactionRequestByIdRequestParams): EncodeObject; - key({ value }: keyParams): EncodeObject; - keychainFees({ value }: keychainFeesParams): EncodeObject; - queryKeychainByIdResponse({ value }: queryKeychainByIdResponseParams): EncodeObject; - msgNewKeyRequestResponse({ value }: msgNewKeyRequestResponseParams): EncodeObject; - msgAddKeychainPartyResponse({ value }: msgAddKeychainPartyResponseParams): EncodeObject; - msgUpdateSpaceResponse({ value }: msgUpdateSpaceResponseParams): EncodeObject; - msgNewSignTransactionRequest({ value }: msgNewSignTransactionRequestParams): EncodeObject; - params({ value }: paramsParams): EncodeObject; + msgNewSpaceResponse({ value }: msgNewSpaceResponseParams): EncodeObject; + msgFulfilSignatureRequest({ value }: msgFulfilSignatureRequestParams): EncodeObject; + msgNewKeychain({ value }: msgNewKeychainParams): EncodeObject; + queryKeysBySpaceIdRequest({ value }: queryKeysBySpaceIdRequestParams): EncodeObject; + genesisState({ value }: genesisStateParams): EncodeObject; querySpaceByIdRequest({ value }: querySpaceByIdRequestParams): EncodeObject; queryKeyRequestByIdRequest({ value }: queryKeyRequestByIdRequestParams): EncodeObject; - msgNewSpace({ value }: msgNewSpaceParams): EncodeObject; - walletKeyResponse({ value }: walletKeyResponseParams): EncodeObject; - msgUpdateKeyRequest({ value }: msgUpdateKeyRequestParams): EncodeObject; - msgNewSignTransactionRequestResponse({ value }: msgNewSignTransactionRequestResponseParams): EncodeObject; - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; querySignatureRequestByIdRequest({ value }: querySignatureRequestByIdRequestParams): EncodeObject; - msgNewKey({ value }: msgNewKeyParams): EncodeObject; + signRequest({ value }: signRequestParams): EncodeObject; msgAddKeychainParty({ value }: msgAddKeychainPartyParams): EncodeObject; - msgUpdateKeyRequestResponse({ value }: msgUpdateKeyRequestResponseParams): EncodeObject; + msgUpdateSpaceResponse({ value }: msgUpdateSpaceResponseParams): EncodeObject; + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject; + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; + msgUpdateKeyRequest({ value }: msgUpdateKeyRequestParams): EncodeObject; + queryKeychainsResponse({ value }: queryKeychainsResponseParams): EncodeObject; + queryKeyRequestsRequest({ value }: queryKeyRequestsRequestParams): EncodeObject; + querySignatureRequestByIdResponse({ value }: querySignatureRequestByIdResponseParams): EncodeObject; querySignTransactionRequestsRequest({ value }: querySignTransactionRequestsRequestParams): EncodeObject; - querySignTransactionRequestsResponse({ value }: querySignTransactionRequestsResponseParams): EncodeObject; - keychain({ value }: keychainParams): EncodeObject; - querySignatureRequestsResponse({ value }: querySignatureRequestsResponseParams): EncodeObject; - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; - metadataEthereum({ value }: metadataEthereumParams): EncodeObject; - msgFulfilSignatureRequest({ value }: msgFulfilSignatureRequestParams): EncodeObject; - msgSignedData({ value }: msgSignedDataParams): EncodeObject; - queryKeysRequest({ value }: queryKeysRequestParams): EncodeObject; - genesisState({ value }: genesisStateParams): EncodeObject; - msgAddSpaceOwnerResponse({ value }: msgAddSpaceOwnerResponseParams): EncodeObject; - msgUpdateSpace({ value }: msgUpdateSpaceParams): EncodeObject; - querySpacesRequest({ value }: querySpacesRequestParams): EncodeObject; - queryKeysResponse({ value }: queryKeysResponseParams): EncodeObject; - keyResponse({ value }: keyResponseParams): EncodeObject; - signTransactionRequest({ value }: signTransactionRequestParams): EncodeObject; - msgNewSpaceResponse({ value }: msgNewSpaceResponseParams): EncodeObject; msgNewKeychainResponse({ value }: msgNewKeychainResponseParams): EncodeObject; + querySpacesByOwnerRequest({ value }: querySpacesByOwnerRequestParams): EncodeObject; + msgSignedData({ value }: msgSignedDataParams): EncodeObject; + metadataEthereum({ value }: metadataEthereumParams): EncodeObject; + queryKeychainByIdRequest({ value }: queryKeychainByIdRequestParams): EncodeObject; + queryKeyByIdRequest({ value }: queryKeyByIdRequestParams): EncodeObject; + key({ value }: keyParams): EncodeObject; + msgNewKeyRequest({ value }: msgNewKeyRequestParams): EncodeObject; + msgNewSignatureRequestResponse({ value }: msgNewSignatureRequestResponseParams): EncodeObject; + keychainFees({ value }: keychainFeesParams): EncodeObject; + msgAddSpaceOwner({ value }: msgAddSpaceOwnerParams): EncodeObject; + msgUpdateKey({ value }: msgUpdateKeyParams): EncodeObject; querySpaceByIdResponse({ value }: querySpaceByIdResponseParams): EncodeObject; - querySignatureRequestByIdResponse({ value }: querySignatureRequestByIdResponseParams): EncodeObject; - signRequest({ value }: signRequestParams): EncodeObject; - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject; - msgFulfilSignatureRequestResponse({ value }: msgFulfilSignatureRequestResponseParams): EncodeObject; - queryKeyRequestByIdResponse({ value }: queryKeyRequestByIdResponseParams): EncodeObject; + queryKeyResponse({ value }: queryKeyResponseParams): EncodeObject; querySignatureRequestsRequest({ value }: querySignatureRequestsRequestParams): EncodeObject; - querySignTransactionRequestByIdResponse({ value }: querySignTransactionRequestByIdResponseParams): EncodeObject; msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject; + msgRemoveSpaceOwner({ value }: msgRemoveSpaceOwnerParams): EncodeObject; + msgRemoveSpaceOwnerResponse({ value }: msgRemoveSpaceOwnerResponseParams): EncodeObject; + msgUpdateSpace({ value }: msgUpdateSpaceParams): EncodeObject; + msgFulfilSignatureRequestResponse({ value }: msgFulfilSignatureRequestResponseParams): EncodeObject; + querySignTransactionRequestByIdResponse({ value }: querySignTransactionRequestByIdResponseParams): EncodeObject; + params({ value }: paramsParams): EncodeObject; + msgNewSpace({ value }: msgNewSpaceParams): EncodeObject; + queryKeychainByIdResponse({ value }: queryKeychainByIdResponseParams): EncodeObject; + queryKeyRequestByIdResponse({ value }: queryKeyRequestByIdResponseParams): EncodeObject; + signTransactionRequestResponse({ value }: signTransactionRequestResponseParams): EncodeObject; + msgUpdateKeychain({ value }: msgUpdateKeychainParams): EncodeObject; + msgNewSignatureRequest({ value }: msgNewSignatureRequestParams): EncodeObject; + queryKeychainsRequest({ value }: queryKeychainsRequestParams): EncodeObject; + msgNewSignTransactionRequestResponse({ value }: msgNewSignTransactionRequestResponseParams): EncodeObject; + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject; + queryKeyRequestsResponse({ value }: queryKeyRequestsResponseParams): EncodeObject; + querySignTransactionRequestByIdRequest({ value }: querySignTransactionRequestByIdRequestParams): EncodeObject; + msgUpdateKeychainResponse({ value }: msgUpdateKeychainResponseParams): EncodeObject; + msgUpdateKeyResponse({ value }: msgUpdateKeyResponseParams): EncodeObject; }; interface QueryClientOptions { addr: string; diff --git a/ts-client/lib/warden.warden.v1beta2/module.js b/ts-client/lib/warden.warden.v1beta2/module.js index b46b72cc9..fbf2cdb6b 100644 --- a/ts-client/lib/warden.warden.v1beta2/module.js +++ b/ts-client/lib/warden.warden.v1beta2/module.js @@ -3,73 +3,77 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { msgTypes } from './registry'; import { Api } from "./rest"; -import { MsgNewKeychain } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateKeychain } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta2/tx"; +import { QueryAllKeysRequest } from "./types/warden/warden/v1beta2/query"; +import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySpacesRequest } from "./types/warden/warden/v1beta2/query"; +import { QueryKeysResponse } from "./types/warden/warden/v1beta2/query"; +import { WalletKeyResponse } from "./types/warden/warden/v1beta2/query"; +import { Keychain } from "./types/warden/warden/v1beta2/keychain"; +import { QuerySignatureRequestsResponse } from "./types/warden/warden/v1beta2/query"; +import { SignTransactionRequest } from "./types/warden/warden/v1beta2/signature"; import { Space } from "./types/warden/warden/v1beta2/space"; -import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta2/tx"; -import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta2/query"; -import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta2/query"; -import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta2/query"; -import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta2/tx"; +import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta2/tx"; import { KeyRequest } from "./types/warden/warden/v1beta2/key"; -import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeychainsRequest } from "./types/warden/warden/v1beta2/query"; -import { QueryKeychainByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeychainsResponse } from "./types/warden/warden/v1beta2/query"; -import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgNewKeyRequest } from "./types/warden/warden/v1beta2/tx"; -import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewKey } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; import { QuerySpacesResponse } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { Key } from "./types/warden/warden/v1beta2/key"; -import { KeychainFees } from "./types/warden/warden/v1beta2/keychain"; -import { QueryKeychainByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta2/tx"; -import { Params } from "./types/warden/warden/v1beta2/params"; +import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewKeychain } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeysBySpaceIdRequest } from "./types/warden/warden/v1beta2/query"; +import { GenesisState } from "./types/warden/warden/v1beta2/genesis"; import { QuerySpaceByIdRequest } from "./types/warden/warden/v1beta2/query"; import { QueryKeyRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgNewSpace } from "./types/warden/warden/v1beta2/tx"; -import { WalletKeyResponse } from "./types/warden/warden/v1beta2/query"; -import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { QueryParamsResponse } from "./types/warden/warden/v1beta2/query"; import { QuerySignatureRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgNewKey } from "./types/warden/warden/v1beta2/tx"; +import { SignRequest } from "./types/warden/warden/v1beta2/signature"; import { MsgAddKeychainParty } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta2/tx"; +import { QueryParamsResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainsResponse } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta2/query"; +import { QuerySignatureRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; import { QuerySignTransactionRequestsRequest } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta2/query"; -import { Keychain } from "./types/warden/warden/v1beta2/keychain"; -import { QuerySignatureRequestsResponse } from "./types/warden/warden/v1beta2/query"; -import { QueryParamsRequest } from "./types/warden/warden/v1beta2/query"; -import { MetadataEthereum } from "./types/warden/warden/v1beta2/tx"; -import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta2/tx"; -import { MsgSignedData } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeysRequest } from "./types/warden/warden/v1beta2/query"; -import { GenesisState } from "./types/warden/warden/v1beta2/genesis"; -import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateSpace } from "./types/warden/warden/v1beta2/tx"; -import { QuerySpacesRequest } from "./types/warden/warden/v1beta2/query"; -import { QueryKeysResponse } from "./types/warden/warden/v1beta2/query"; -import { KeyResponse } from "./types/warden/warden/v1beta2/query"; -import { SignTransactionRequest } from "./types/warden/warden/v1beta2/signature"; -import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta2/tx"; import { MsgNewKeychainResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgSignedData } from "./types/warden/warden/v1beta2/tx"; +import { MetadataEthereum } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { Key } from "./types/warden/warden/v1beta2/key"; +import { MsgNewKeyRequest } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { KeychainFees } from "./types/warden/warden/v1beta2/keychain"; +import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKey } from "./types/warden/warden/v1beta2/tx"; import { QuerySpaceByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { QuerySignatureRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { SignRequest } from "./types/warden/warden/v1beta2/signature"; -import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyResponse } from "./types/warden/warden/v1beta2/query"; import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; import { MsgUpdateParams } from "./types/warden/warden/v1beta2/tx"; -export { MsgNewKeychain, MsgUpdateKeychain, Space, MsgUpdateKeychainResponse, QuerySpacesByOwnerRequest, QueryKeyRequestsResponse, SignTransactionRequestResponse, MsgRemoveSpaceOwner, KeyRequest, MsgNewSignatureRequestResponse, QueryKeychainsRequest, QueryKeychainByIdRequest, MsgRemoveSpaceOwnerResponse, QueryKeychainsResponse, QueryKeyRequestsRequest, MsgNewKeyRequest, MsgAddSpaceOwner, MsgNewSignatureRequest, QuerySpacesResponse, QuerySignTransactionRequestByIdRequest, Key, KeychainFees, QueryKeychainByIdResponse, MsgNewKeyRequestResponse, MsgAddKeychainPartyResponse, MsgUpdateSpaceResponse, MsgNewSignTransactionRequest, Params, QuerySpaceByIdRequest, QueryKeyRequestByIdRequest, MsgNewSpace, WalletKeyResponse, MsgUpdateKeyRequest, MsgNewSignTransactionRequestResponse, QueryParamsResponse, QuerySignatureRequestByIdRequest, MsgNewKey, MsgAddKeychainParty, MsgUpdateKeyRequestResponse, QuerySignTransactionRequestsRequest, QuerySignTransactionRequestsResponse, Keychain, QuerySignatureRequestsResponse, QueryParamsRequest, MetadataEthereum, MsgFulfilSignatureRequest, MsgSignedData, QueryKeysRequest, GenesisState, MsgAddSpaceOwnerResponse, MsgUpdateSpace, QuerySpacesRequest, QueryKeysResponse, KeyResponse, SignTransactionRequest, MsgNewSpaceResponse, MsgNewKeychainResponse, QuerySpaceByIdResponse, QuerySignatureRequestByIdResponse, SignRequest, MsgUpdateParamsResponse, MsgFulfilSignatureRequestResponse, QueryKeyRequestByIdResponse, QuerySignatureRequestsRequest, QuerySignTransactionRequestByIdResponse, MsgUpdateParams }; +import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta2/tx"; +import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateSpace } from "./types/warden/warden/v1beta2/tx"; +import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { Params } from "./types/warden/warden/v1beta2/params"; +import { MsgNewSpace } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateKeychain } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainsRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QueryParamsRequest } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta2/query"; +import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKeyResponse } from "./types/warden/warden/v1beta2/tx"; +export { MsgNewSignTransactionRequest, QueryAllKeysRequest, QuerySignTransactionRequestsResponse, MsgAddSpaceOwnerResponse, MsgNewKeyRequestResponse, QuerySpacesRequest, QueryKeysResponse, WalletKeyResponse, Keychain, QuerySignatureRequestsResponse, SignTransactionRequest, Space, MsgAddKeychainPartyResponse, KeyRequest, MsgNewKey, MsgUpdateKeyRequestResponse, QuerySpacesResponse, MsgNewSpaceResponse, MsgFulfilSignatureRequest, MsgNewKeychain, QueryKeysBySpaceIdRequest, GenesisState, QuerySpaceByIdRequest, QueryKeyRequestByIdRequest, QuerySignatureRequestByIdRequest, SignRequest, MsgAddKeychainParty, MsgUpdateSpaceResponse, QueryParamsResponse, MsgUpdateParamsResponse, MsgUpdateKeyRequest, QueryKeychainsResponse, QueryKeyRequestsRequest, QuerySignatureRequestByIdResponse, QuerySignTransactionRequestsRequest, MsgNewKeychainResponse, QuerySpacesByOwnerRequest, MsgSignedData, MetadataEthereum, QueryKeychainByIdRequest, QueryKeyByIdRequest, Key, MsgNewKeyRequest, MsgNewSignatureRequestResponse, KeychainFees, MsgAddSpaceOwner, MsgUpdateKey, QuerySpaceByIdResponse, QueryKeyResponse, QuerySignatureRequestsRequest, MsgUpdateParams, MsgRemoveSpaceOwner, MsgRemoveSpaceOwnerResponse, MsgUpdateSpace, MsgFulfilSignatureRequestResponse, QuerySignTransactionRequestByIdResponse, Params, MsgNewSpace, QueryKeychainByIdResponse, QueryKeyRequestByIdResponse, SignTransactionRequestResponse, MsgUpdateKeychain, MsgNewSignatureRequest, QueryKeychainsRequest, MsgNewSignTransactionRequestResponse, QueryParamsRequest, QueryKeyRequestsResponse, QuerySignTransactionRequestByIdRequest, MsgUpdateKeychainResponse, MsgUpdateKeyResponse }; export const registry = new Registry(msgTypes); function getStructure(template) { const structure = { fields: [] }; @@ -85,116 +89,186 @@ const defaultFee = { }; export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => { return { - async sendMsgNewKeychain({ value, fee, memo }) { + async sendMsgNewSignTransactionRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewKeychain: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewSignTransactionRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewKeychain({ value: MsgNewKeychain.fromPartial(value) }); + let msg = this.msgNewSignTransactionRequest({ value: MsgNewSignTransactionRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewKeychain: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewSignTransactionRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateKeychain({ value, fee, memo }) { + async sendQueryAllKeysRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeychain: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryAllKeysRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgUpdateKeychain({ value: MsgUpdateKeychain.fromPartial(value) }); + let msg = this.queryAllKeysRequest({ value: QueryAllKeysRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateKeychain: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryAllKeysRequest: Could not broadcast Tx: ' + e.message); } }, - async sendSpace({ value, fee, memo }) { + async sendQuerySignTransactionRequestsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSpace: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySignTransactionRequestsResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.space({ value: Space.fromPartial(value) }); + let msg = this.querySignTransactionRequestsResponse({ value: QuerySignTransactionRequestsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSpace: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySignTransactionRequestsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateKeychainResponse({ value, fee, memo }) { + async sendMsgAddSpaceOwnerResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeychainResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgUpdateKeychainResponse({ value: MsgUpdateKeychainResponse.fromPartial(value) }); + let msg = this.msgAddSpaceOwnerResponse({ value: MsgAddSpaceOwnerResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateKeychainResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySpacesByOwnerRequest({ value, fee, memo }) { + async sendMsgNewKeyRequestResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewKeyRequestResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySpacesByOwnerRequest({ value: QuerySpacesByOwnerRequest.fromPartial(value) }); + let msg = this.msgNewKeyRequestResponse({ value: MsgNewKeyRequestResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewKeyRequestResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeyRequestsResponse({ value, fee, memo }) { + async sendQuerySpacesRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySpacesRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeyRequestsResponse({ value: QueryKeyRequestsResponse.fromPartial(value) }); + let msg = this.querySpacesRequest({ value: QuerySpacesRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeyRequestsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySpacesRequest: Could not broadcast Tx: ' + e.message); } }, - async sendSignTransactionRequestResponse({ value, fee, memo }) { + async sendQueryKeysResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSignTransactionRequestResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeysResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.signTransactionRequestResponse({ value: SignTransactionRequestResponse.fromPartial(value) }); + let msg = this.queryKeysResponse({ value: QueryKeysResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSignTransactionRequestResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeysResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRemoveSpaceOwner({ value, fee, memo }) { + async sendWalletKeyResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRemoveSpaceOwner: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendWalletKeyResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgRemoveSpaceOwner({ value: MsgRemoveSpaceOwner.fromPartial(value) }); + let msg = this.walletKeyResponse({ value: WalletKeyResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRemoveSpaceOwner: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendWalletKeyResponse: Could not broadcast Tx: ' + e.message); + } + }, + async sendKeychain({ value, fee, memo }) { + if (!signer) { + throw new Error('TxClient:sendKeychain: Unable to sign Tx. Signer is not present.'); + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); + let msg = this.keychain({ value: Keychain.fromPartial(value) }); + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); + } + catch (e) { + throw new Error('TxClient:sendKeychain: Could not broadcast Tx: ' + e.message); + } + }, + async sendQuerySignatureRequestsResponse({ value, fee, memo }) { + if (!signer) { + throw new Error('TxClient:sendQuerySignatureRequestsResponse: Unable to sign Tx. Signer is not present.'); + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); + let msg = this.querySignatureRequestsResponse({ value: QuerySignatureRequestsResponse.fromPartial(value) }); + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); + } + catch (e) { + throw new Error('TxClient:sendQuerySignatureRequestsResponse: Could not broadcast Tx: ' + e.message); + } + }, + async sendSignTransactionRequest({ value, fee, memo }) { + if (!signer) { + throw new Error('TxClient:sendSignTransactionRequest: Unable to sign Tx. Signer is not present.'); + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); + let msg = this.signTransactionRequest({ value: SignTransactionRequest.fromPartial(value) }); + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); + } + catch (e) { + throw new Error('TxClient:sendSignTransactionRequest: Could not broadcast Tx: ' + e.message); + } + }, + async sendSpace({ value, fee, memo }) { + if (!signer) { + throw new Error('TxClient:sendSpace: Unable to sign Tx. Signer is not present.'); + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); + let msg = this.space({ value: Space.fromPartial(value) }); + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); + } + catch (e) { + throw new Error('TxClient:sendSpace: Could not broadcast Tx: ' + e.message); + } + }, + async sendMsgAddKeychainPartyResponse({ value, fee, memo }) { + if (!signer) { + throw new Error('TxClient:sendMsgAddKeychainPartyResponse: Unable to sign Tx. Signer is not present.'); + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); + let msg = this.msgAddKeychainPartyResponse({ value: MsgAddKeychainPartyResponse.fromPartial(value) }); + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); + } + catch (e) { + throw new Error('TxClient:sendMsgAddKeychainPartyResponse: Could not broadcast Tx: ' + e.message); } }, async sendKeyRequest({ value, fee, memo }) { @@ -211,1002 +285,1004 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:sendKeyRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewSignatureRequestResponse({ value, fee, memo }) { + async sendMsgNewKey({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewKey: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewSignatureRequestResponse({ value: MsgNewSignatureRequestResponse.fromPartial(value) }); + let msg = this.msgNewKey({ value: MsgNewKey.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewKey: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeychainsRequest({ value, fee, memo }) { + async sendMsgUpdateKeyRequestResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeychainsRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeychainsRequest({ value: QueryKeychainsRequest.fromPartial(value) }); + let msg = this.msgUpdateKeyRequestResponse({ value: MsgUpdateKeyRequestResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeychainsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeychainByIdRequest({ value, fee, memo }) { + async sendQuerySpacesResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeychainByIdRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySpacesResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeychainByIdRequest({ value: QueryKeychainByIdRequest.fromPartial(value) }); + let msg = this.querySpacesResponse({ value: QuerySpacesResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeychainByIdRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySpacesResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }) { + async sendMsgNewSpaceResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewSpaceResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgRemoveSpaceOwnerResponse({ value: MsgRemoveSpaceOwnerResponse.fromPartial(value) }); + let msg = this.msgNewSpaceResponse({ value: MsgNewSpaceResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewSpaceResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeychainsResponse({ value, fee, memo }) { + async sendMsgFulfilSignatureRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeychainsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgFulfilSignatureRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeychainsResponse({ value: QueryKeychainsResponse.fromPartial(value) }); + let msg = this.msgFulfilSignatureRequest({ value: MsgFulfilSignatureRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeychainsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgFulfilSignatureRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeyRequestsRequest({ value, fee, memo }) { + async sendMsgNewKeychain({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestsRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewKeychain: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeyRequestsRequest({ value: QueryKeyRequestsRequest.fromPartial(value) }); + let msg = this.msgNewKeychain({ value: MsgNewKeychain.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeyRequestsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewKeychain: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewKeyRequest({ value, fee, memo }) { + async sendQueryKeysBySpaceIdRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewKeyRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeysBySpaceIdRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewKeyRequest({ value: MsgNewKeyRequest.fromPartial(value) }); + let msg = this.queryKeysBySpaceIdRequest({ value: QueryKeysBySpaceIdRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewKeyRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeysBySpaceIdRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgAddSpaceOwner({ value, fee, memo }) { + async sendGenesisState({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgAddSpaceOwner: 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.msgAddSpaceOwner({ value: MsgAddSpaceOwner.fromPartial(value) }); + let msg = this.genesisState({ value: GenesisState.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgAddSpaceOwner: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewSignatureRequest({ value, fee, memo }) { + async sendQuerySpaceByIdRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewSignatureRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySpaceByIdRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewSignatureRequest({ value: MsgNewSignatureRequest.fromPartial(value) }); + let msg = this.querySpaceByIdRequest({ value: QuerySpaceByIdRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewSignatureRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySpaceByIdRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySpacesResponse({ value, fee, memo }) { + async sendQueryKeyRequestByIdRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySpacesResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySpacesResponse({ value: QuerySpacesResponse.fromPartial(value) }); + let msg = this.queryKeyRequestByIdRequest({ value: QueryKeyRequestByIdRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySpacesResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }) { + async sendQuerySignatureRequestByIdRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignTransactionRequestByIdRequest({ value: QuerySignTransactionRequestByIdRequest.fromPartial(value) }); + let msg = this.querySignatureRequestByIdRequest({ value: QuerySignatureRequestByIdRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Could not broadcast Tx: ' + e.message); } }, - async sendKey({ value, fee, memo }) { + async sendSignRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendKey: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendSignRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.key({ value: Key.fromPartial(value) }); + let msg = this.signRequest({ value: SignRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendKey: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSignRequest: Could not broadcast Tx: ' + e.message); } }, - async sendKeychainFees({ value, fee, memo }) { + async sendMsgAddKeychainParty({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendKeychainFees: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgAddKeychainParty: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.keychainFees({ value: KeychainFees.fromPartial(value) }); + let msg = this.msgAddKeychainParty({ value: MsgAddKeychainParty.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendKeychainFees: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgAddKeychainParty: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeychainByIdResponse({ value, fee, memo }) { + async sendMsgUpdateSpaceResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeychainByIdResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgUpdateSpaceResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeychainByIdResponse({ value: QueryKeychainByIdResponse.fromPartial(value) }); + let msg = this.msgUpdateSpaceResponse({ value: MsgUpdateSpaceResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeychainByIdResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateSpaceResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewKeyRequestResponse({ value, fee, memo }) { + async sendQueryParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewKeyRequestResponse: 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.msgNewKeyRequestResponse({ value: MsgNewKeyRequestResponse.fromPartial(value) }); + let msg = this.queryParamsResponse({ value: QueryParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewKeyRequestResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgAddKeychainPartyResponse({ value, fee, memo }) { + async sendMsgUpdateParamsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgAddKeychainPartyResponse: 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.msgAddKeychainPartyResponse({ value: MsgAddKeychainPartyResponse.fromPartial(value) }); + let msg = this.msgUpdateParamsResponse({ value: MsgUpdateParamsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgAddKeychainPartyResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateSpaceResponse({ value, fee, memo }) { + async sendMsgUpdateKeyRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateSpaceResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgUpdateKeyRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgUpdateSpaceResponse({ value: MsgUpdateSpaceResponse.fromPartial(value) }); + let msg = this.msgUpdateKeyRequest({ value: MsgUpdateKeyRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateSpaceResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateKeyRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewSignTransactionRequest({ value, fee, memo }) { + async sendQueryKeychainsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewSignTransactionRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeychainsResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewSignTransactionRequest({ value: MsgNewSignTransactionRequest.fromPartial(value) }); + let msg = this.queryKeychainsResponse({ value: QueryKeychainsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewSignTransactionRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeychainsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendParams({ value, fee, memo }) { + async sendQueryKeyRequestsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeyRequestsRequest: Unable to 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.queryKeyRequestsRequest({ value: QueryKeyRequestsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeyRequestsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySpaceByIdRequest({ value, fee, memo }) { + async sendQuerySignatureRequestByIdResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySpaceByIdRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySpaceByIdRequest({ value: QuerySpaceByIdRequest.fromPartial(value) }); + let msg = this.querySignatureRequestByIdResponse({ value: QuerySignatureRequestByIdResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySpaceByIdRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeyRequestByIdRequest({ value, fee, memo }) { + async sendQuerySignTransactionRequestsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeyRequestByIdRequest({ value: QueryKeyRequestByIdRequest.fromPartial(value) }); + let msg = this.querySignTransactionRequestsRequest({ value: QuerySignTransactionRequestsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewSpace({ value, fee, memo }) { + async sendMsgNewKeychainResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewSpace: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewKeychainResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewSpace({ value: MsgNewSpace.fromPartial(value) }); + let msg = this.msgNewKeychainResponse({ value: MsgNewKeychainResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewSpace: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewKeychainResponse: Could not broadcast Tx: ' + e.message); } }, - async sendWalletKeyResponse({ value, fee, memo }) { + async sendQuerySpacesByOwnerRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendWalletKeyResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.walletKeyResponse({ value: WalletKeyResponse.fromPartial(value) }); + let msg = this.querySpacesByOwnerRequest({ value: QuerySpacesByOwnerRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendWalletKeyResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateKeyRequest({ value, fee, memo }) { + async sendMsgSignedData({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeyRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgSignedData: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgUpdateKeyRequest({ value: MsgUpdateKeyRequest.fromPartial(value) }); + let msg = this.msgSignedData({ value: MsgSignedData.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateKeyRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgSignedData: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewSignTransactionRequestResponse({ value, fee, memo }) { + async sendMetadataEthereum({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMetadataEthereum: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewSignTransactionRequestResponse({ value: MsgNewSignTransactionRequestResponse.fromPartial(value) }); + let msg = this.metadataEthereum({ value: MetadataEthereum.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMetadataEthereum: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsResponse({ value, fee, memo }) { + async sendQueryKeychainByIdRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeychainByIdRequest: Unable to 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.queryKeychainByIdRequest({ value: QueryKeychainByIdRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeychainByIdRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignatureRequestByIdRequest({ value, fee, memo }) { + async sendQueryKeyByIdRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeyByIdRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignatureRequestByIdRequest({ value: QuerySignatureRequestByIdRequest.fromPartial(value) }); + let msg = this.queryKeyByIdRequest({ value: QueryKeyByIdRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeyByIdRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewKey({ value, fee, memo }) { + async sendKey({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewKey: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendKey: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewKey({ value: MsgNewKey.fromPartial(value) }); + let msg = this.key({ value: Key.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewKey: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendKey: Could not broadcast Tx: ' + e.message); } }, - async sendMsgAddKeychainParty({ value, fee, memo }) { + async sendMsgNewKeyRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgAddKeychainParty: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewKeyRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgAddKeychainParty({ value: MsgAddKeychainParty.fromPartial(value) }); + let msg = this.msgNewKeyRequest({ value: MsgNewKeyRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgAddKeychainParty: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewKeyRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateKeyRequestResponse({ value, fee, memo }) { + async sendMsgNewSignatureRequestResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgUpdateKeyRequestResponse({ value: MsgUpdateKeyRequestResponse.fromPartial(value) }); + let msg = this.msgNewSignatureRequestResponse({ value: MsgNewSignatureRequestResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignTransactionRequestsRequest({ value, fee, memo }) { + async sendKeychainFees({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendKeychainFees: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignTransactionRequestsRequest({ value: QuerySignTransactionRequestsRequest.fromPartial(value) }); + let msg = this.keychainFees({ value: KeychainFees.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendKeychainFees: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignTransactionRequestsResponse({ value, fee, memo }) { + async sendMsgAddSpaceOwner({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgAddSpaceOwner: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignTransactionRequestsResponse({ value: QuerySignTransactionRequestsResponse.fromPartial(value) }); + let msg = this.msgAddSpaceOwner({ value: MsgAddSpaceOwner.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignTransactionRequestsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgAddSpaceOwner: Could not broadcast Tx: ' + e.message); } }, - async sendKeychain({ value, fee, memo }) { + async sendMsgUpdateKey({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendKeychain: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgUpdateKey: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.keychain({ value: Keychain.fromPartial(value) }); + let msg = this.msgUpdateKey({ value: MsgUpdateKey.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendKeychain: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateKey: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignatureRequestsResponse({ value, fee, memo }) { + async sendQuerySpaceByIdResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestsResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySpaceByIdResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignatureRequestsResponse({ value: QuerySignatureRequestsResponse.fromPartial(value) }); + let msg = this.querySpaceByIdResponse({ value: QuerySpaceByIdResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignatureRequestsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySpaceByIdResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryParamsRequest({ value, fee, memo }) { + async sendQueryKeyResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeyResponse: Unable to 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.queryKeyResponse({ value: QueryKeyResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeyResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMetadataEthereum({ value, fee, memo }) { + async sendQuerySignatureRequestsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMetadataEthereum: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySignatureRequestsRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.metadataEthereum({ value: MetadataEthereum.fromPartial(value) }); + let msg = this.querySignatureRequestsRequest({ value: QuerySignatureRequestsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMetadataEthereum: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySignatureRequestsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgFulfilSignatureRequest({ value, fee, memo }) { + async sendMsgUpdateParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgFulfilSignatureRequest: 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.msgFulfilSignatureRequest({ value: MsgFulfilSignatureRequest.fromPartial(value) }); + let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgFulfilSignatureRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); } }, - async sendMsgSignedData({ value, fee, memo }) { + async sendMsgRemoveSpaceOwner({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgSignedData: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgRemoveSpaceOwner: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgSignedData({ value: MsgSignedData.fromPartial(value) }); + let msg = this.msgRemoveSpaceOwner({ value: MsgRemoveSpaceOwner.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgSignedData: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRemoveSpaceOwner: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeysRequest({ value, fee, memo }) { + async sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeysRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeysRequest({ value: QueryKeysRequest.fromPartial(value) }); + let msg = this.msgRemoveSpaceOwnerResponse({ value: MsgRemoveSpaceOwnerResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeysRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Could not broadcast Tx: ' + e.message); } }, - async sendGenesisState({ value, fee, memo }) { + async sendMsgUpdateSpace({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgUpdateSpace: Unable to 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.msgUpdateSpace({ value: MsgUpdateSpace.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateSpace: Could not broadcast Tx: ' + e.message); } }, - async sendMsgAddSpaceOwnerResponse({ value, fee, memo }) { + async sendMsgFulfilSignatureRequestResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgAddSpaceOwnerResponse({ value: MsgAddSpaceOwnerResponse.fromPartial(value) }); + let msg = this.msgFulfilSignatureRequestResponse({ value: MsgFulfilSignatureRequestResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateSpace({ value, fee, memo }) { + async sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgUpdateSpace: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgUpdateSpace({ value: MsgUpdateSpace.fromPartial(value) }); + let msg = this.querySignTransactionRequestByIdResponse({ value: QuerySignTransactionRequestByIdResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgUpdateSpace: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySpacesRequest({ value, fee, memo }) { + async sendParams({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySpacesRequest: 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.querySpacesRequest({ value: QuerySpacesRequest.fromPartial(value) }); + let msg = this.params({ value: Params.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySpacesRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendParams: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeysResponse({ value, fee, memo }) { + async sendMsgNewSpace({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeysResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewSpace: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeysResponse({ value: QueryKeysResponse.fromPartial(value) }); + let msg = this.msgNewSpace({ value: MsgNewSpace.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeysResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewSpace: Could not broadcast Tx: ' + e.message); } }, - async sendKeyResponse({ value, fee, memo }) { + async sendQueryKeychainByIdResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendKeyResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeychainByIdResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.keyResponse({ value: KeyResponse.fromPartial(value) }); + let msg = this.queryKeychainByIdResponse({ value: QueryKeychainByIdResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendKeyResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeychainByIdResponse: Could not broadcast Tx: ' + e.message); } }, - async sendSignTransactionRequest({ value, fee, memo }) { + async sendQueryKeyRequestByIdResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSignTransactionRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeyRequestByIdResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.signTransactionRequest({ value: SignTransactionRequest.fromPartial(value) }); + let msg = this.queryKeyRequestByIdResponse({ value: QueryKeyRequestByIdResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSignTransactionRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeyRequestByIdResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewSpaceResponse({ value, fee, memo }) { + async sendSignTransactionRequestResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewSpaceResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendSignTransactionRequestResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewSpaceResponse({ value: MsgNewSpaceResponse.fromPartial(value) }); + let msg = this.signTransactionRequestResponse({ value: SignTransactionRequestResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewSpaceResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendSignTransactionRequestResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgNewKeychainResponse({ value, fee, memo }) { + async sendMsgUpdateKeychain({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgNewKeychainResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgUpdateKeychain: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgNewKeychainResponse({ value: MsgNewKeychainResponse.fromPartial(value) }); + let msg = this.msgUpdateKeychain({ value: MsgUpdateKeychain.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgNewKeychainResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateKeychain: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySpaceByIdResponse({ value, fee, memo }) { + async sendMsgNewSignatureRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySpaceByIdResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewSignatureRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySpaceByIdResponse({ value: QuerySpaceByIdResponse.fromPartial(value) }); + let msg = this.msgNewSignatureRequest({ value: MsgNewSignatureRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySpaceByIdResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewSignatureRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignatureRequestByIdResponse({ value, fee, memo }) { + async sendQueryKeychainsRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeychainsRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignatureRequestByIdResponse({ value: QuerySignatureRequestByIdResponse.fromPartial(value) }); + let msg = this.queryKeychainsRequest({ value: QueryKeychainsRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeychainsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendSignRequest({ value, fee, memo }) { + async sendMsgNewSignTransactionRequestResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendSignRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.signRequest({ value: SignRequest.fromPartial(value) }); + let msg = this.msgNewSignTransactionRequestResponse({ value: MsgNewSignTransactionRequestResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendSignRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }) { + async sendQueryParamsRequest({ value, fee, memo }) { 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) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: ' + e.message); } }, - async sendMsgFulfilSignatureRequestResponse({ value, fee, memo }) { + async sendQueryKeyRequestsResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQueryKeyRequestsResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.msgFulfilSignatureRequestResponse({ value: MsgFulfilSignatureRequestResponse.fromPartial(value) }); + let msg = this.queryKeyRequestsResponse({ value: QueryKeyRequestsResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQueryKeyRequestsResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQueryKeyRequestByIdResponse({ value, fee, memo }) { + async sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestByIdResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.queryKeyRequestByIdResponse({ value: QueryKeyRequestByIdResponse.fromPartial(value) }); + let msg = this.querySignTransactionRequestByIdRequest({ value: QuerySignTransactionRequestByIdRequest.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQueryKeyRequestByIdResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignatureRequestsRequest({ value, fee, memo }) { + async sendMsgUpdateKeychainResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestsRequest: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgUpdateKeychainResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignatureRequestsRequest({ value: QuerySignatureRequestsRequest.fromPartial(value) }); + let msg = this.msgUpdateKeychainResponse({ value: MsgUpdateKeychainResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignatureRequestsRequest: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateKeychainResponse: Could not broadcast Tx: ' + e.message); } }, - async sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }) { + async sendMsgUpdateKeyResponse({ value, fee, memo }) { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: Unable to sign Tx. Signer is not present.'); + throw new Error('TxClient:sendMsgUpdateKeyResponse: Unable to sign Tx. Signer is not present.'); } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry }); - let msg = this.querySignTransactionRequestByIdResponse({ value: QuerySignTransactionRequestByIdResponse.fromPartial(value) }); + let msg = this.msgUpdateKeyResponse({ value: MsgUpdateKeyResponse.fromPartial(value) }); return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo); } catch (e) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:sendMsgUpdateKeyResponse: Could not broadcast Tx: ' + e.message); } }, - async sendMsgUpdateParams({ value, fee, memo }) { - if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.'); + msgNewSignTransactionRequest({ value }) { + try { + return { typeUrl: "/warden.warden.v1beta2.MsgNewSignTransactionRequest", value: MsgNewSignTransactionRequest.fromPartial(value) }; } + catch (e) { + throw new Error('TxClient:MsgNewSignTransactionRequest: Could not create message: ' + e.message); + } + }, + queryAllKeysRequest({ value }) { 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); + return { typeUrl: "/warden.warden.v1beta2.QueryAllKeysRequest", value: QueryAllKeysRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message); + throw new Error('TxClient:QueryAllKeysRequest: Could not create message: ' + e.message); } }, - msgNewKeychain({ value }) { + querySignTransactionRequestsResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewKeychain", value: MsgNewKeychain.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestsResponse", value: QuerySignTransactionRequestsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewKeychain: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignTransactionRequestsResponse: Could not create message: ' + e.message); } }, - msgUpdateKeychain({ value }) { + msgAddSpaceOwnerResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeychain", value: MsgUpdateKeychain.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgAddSpaceOwnerResponse", value: MsgAddSpaceOwnerResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateKeychain: Could not create message: ' + e.message); + throw new Error('TxClient:MsgAddSpaceOwnerResponse: Could not create message: ' + e.message); } }, - space({ value }) { + msgNewKeyRequestResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.Space", value: Space.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgNewKeyRequestResponse", value: MsgNewKeyRequestResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Space: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewKeyRequestResponse: Could not create message: ' + e.message); } }, - msgUpdateKeychainResponse({ value }) { + querySpacesRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeychainResponse", value: MsgUpdateKeychainResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QuerySpacesRequest", value: QuerySpacesRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateKeychainResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySpacesRequest: Could not create message: ' + e.message); } }, - querySpacesByOwnerRequest({ value }) { + queryKeysResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySpacesByOwnerRequest", value: QuerySpacesByOwnerRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QueryKeysResponse", value: QueryKeysResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySpacesByOwnerRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeysResponse: Could not create message: ' + e.message); } }, - queryKeyRequestsResponse({ value }) { + walletKeyResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestsResponse", value: QueryKeyRequestsResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.WalletKeyResponse", value: WalletKeyResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeyRequestsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:WalletKeyResponse: Could not create message: ' + e.message); } }, - signTransactionRequestResponse({ value }) { + keychain({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.SignTransactionRequestResponse", value: SignTransactionRequestResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.Keychain", value: Keychain.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:SignTransactionRequestResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Keychain: Could not create message: ' + e.message); } }, - msgRemoveSpaceOwner({ value }) { + querySignatureRequestsResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgRemoveSpaceOwner", value: MsgRemoveSpaceOwner.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestsResponse", value: QuerySignatureRequestsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRemoveSpaceOwner: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignatureRequestsResponse: Could not create message: ' + e.message); } }, - keyRequest({ value }) { + signTransactionRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.KeyRequest", value: KeyRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.SignTransactionRequest", value: SignTransactionRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:KeyRequest: Could not create message: ' + e.message); + throw new Error('TxClient:SignTransactionRequest: Could not create message: ' + e.message); } }, - msgNewSignatureRequestResponse({ value }) { + space({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewSignatureRequestResponse", value: MsgNewSignatureRequestResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.Space", value: Space.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewSignatureRequestResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Space: Could not create message: ' + e.message); } }, - queryKeychainsRequest({ value }) { + msgAddKeychainPartyResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeychainsRequest", value: QueryKeychainsRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgAddKeychainPartyResponse", value: MsgAddKeychainPartyResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeychainsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgAddKeychainPartyResponse: Could not create message: ' + e.message); } }, - queryKeychainByIdRequest({ value }) { + keyRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeychainByIdRequest", value: QueryKeychainByIdRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.KeyRequest", value: KeyRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeychainByIdRequest: Could not create message: ' + e.message); + throw new Error('TxClient:KeyRequest: Could not create message: ' + e.message); } }, - msgRemoveSpaceOwnerResponse({ value }) { + msgNewKey({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgRemoveSpaceOwnerResponse", value: MsgRemoveSpaceOwnerResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgNewKey", value: MsgNewKey.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgRemoveSpaceOwnerResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewKey: Could not create message: ' + e.message); } }, - queryKeychainsResponse({ value }) { + msgUpdateKeyRequestResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeychainsResponse", value: QueryKeychainsResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeyRequestResponse", value: MsgUpdateKeyRequestResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeychainsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateKeyRequestResponse: Could not create message: ' + e.message); } }, - queryKeyRequestsRequest({ value }) { + querySpacesResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestsRequest", value: QueryKeyRequestsRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QuerySpacesResponse", value: QuerySpacesResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeyRequestsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySpacesResponse: Could not create message: ' + e.message); } }, - msgNewKeyRequest({ value }) { + msgNewSpaceResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewKeyRequest", value: MsgNewKeyRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgNewSpaceResponse", value: MsgNewSpaceResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewKeyRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewSpaceResponse: Could not create message: ' + e.message); } }, - msgAddSpaceOwner({ value }) { + msgFulfilSignatureRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgAddSpaceOwner", value: MsgAddSpaceOwner.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgFulfilSignatureRequest", value: MsgFulfilSignatureRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgAddSpaceOwner: Could not create message: ' + e.message); + throw new Error('TxClient:MsgFulfilSignatureRequest: Could not create message: ' + e.message); } }, - msgNewSignatureRequest({ value }) { + msgNewKeychain({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewSignatureRequest", value: MsgNewSignatureRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgNewKeychain", value: MsgNewKeychain.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewSignatureRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewKeychain: Could not create message: ' + e.message); } }, - querySpacesResponse({ value }) { + queryKeysBySpaceIdRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySpacesResponse", value: QuerySpacesResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QueryKeysBySpaceIdRequest", value: QueryKeysBySpaceIdRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySpacesResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeysBySpaceIdRequest: Could not create message: ' + e.message); } }, - querySignTransactionRequestByIdRequest({ value }) { + genesisState({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestByIdRequest", value: QuerySignTransactionRequestByIdRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.GenesisState", value: GenesisState.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignTransactionRequestByIdRequest: Could not create message: ' + e.message); + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); } }, - key({ value }) { + querySpaceByIdRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.Key", value: Key.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QuerySpaceByIdRequest", value: QuerySpaceByIdRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Key: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySpaceByIdRequest: Could not create message: ' + e.message); } }, - keychainFees({ value }) { + queryKeyRequestByIdRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.KeychainFees", value: KeychainFees.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestByIdRequest", value: QueryKeyRequestByIdRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:KeychainFees: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeyRequestByIdRequest: Could not create message: ' + e.message); } }, - queryKeychainByIdResponse({ value }) { + querySignatureRequestByIdRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeychainByIdResponse", value: QueryKeychainByIdResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestByIdRequest", value: QuerySignatureRequestByIdRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeychainByIdResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignatureRequestByIdRequest: Could not create message: ' + e.message); } }, - msgNewKeyRequestResponse({ value }) { + signRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewKeyRequestResponse", value: MsgNewKeyRequestResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.SignRequest", value: SignRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewKeyRequestResponse: Could not create message: ' + e.message); + throw new Error('TxClient:SignRequest: Could not create message: ' + e.message); } }, - msgAddKeychainPartyResponse({ value }) { + msgAddKeychainParty({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgAddKeychainPartyResponse", value: MsgAddKeychainPartyResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgAddKeychainParty", value: MsgAddKeychainParty.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgAddKeychainPartyResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgAddKeychainParty: Could not create message: ' + e.message); } }, msgUpdateSpaceResponse({ value }) { @@ -1217,196 +1293,204 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgUpdateSpaceResponse: Could not create message: ' + e.message); } }, - msgNewSignTransactionRequest({ value }) { + queryParamsResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewSignTransactionRequest", value: MsgNewSignTransactionRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewSignTransactionRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); } }, - params({ value }) { + msgUpdateParamsResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.Params", value: Params.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Params: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); } }, - querySpaceByIdRequest({ value }) { + msgUpdateKeyRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySpaceByIdRequest", value: QuerySpaceByIdRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeyRequest", value: MsgUpdateKeyRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySpaceByIdRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateKeyRequest: Could not create message: ' + e.message); } }, - queryKeyRequestByIdRequest({ value }) { + queryKeychainsResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestByIdRequest", value: QueryKeyRequestByIdRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QueryKeychainsResponse", value: QueryKeychainsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeyRequestByIdRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeychainsResponse: Could not create message: ' + e.message); } }, - msgNewSpace({ value }) { + queryKeyRequestsRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewSpace", value: MsgNewSpace.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestsRequest", value: QueryKeyRequestsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewSpace: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeyRequestsRequest: Could not create message: ' + e.message); } }, - walletKeyResponse({ value }) { + querySignatureRequestByIdResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.WalletKeyResponse", value: WalletKeyResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestByIdResponse", value: QuerySignatureRequestByIdResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:WalletKeyResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignatureRequestByIdResponse: Could not create message: ' + e.message); } }, - msgUpdateKeyRequest({ value }) { + querySignTransactionRequestsRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeyRequest", value: MsgUpdateKeyRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestsRequest", value: QuerySignTransactionRequestsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateKeyRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignTransactionRequestsRequest: Could not create message: ' + e.message); } }, - msgNewSignTransactionRequestResponse({ value }) { + msgNewKeychainResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewSignTransactionRequestResponse", value: MsgNewSignTransactionRequestResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgNewKeychainResponse", value: MsgNewKeychainResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewSignTransactionRequestResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewKeychainResponse: Could not create message: ' + e.message); } }, - queryParamsResponse({ value }) { + querySpacesByOwnerRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QueryParamsResponse", value: QueryParamsResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QuerySpacesByOwnerRequest", value: QuerySpacesByOwnerRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySpacesByOwnerRequest: Could not create message: ' + e.message); } }, - querySignatureRequestByIdRequest({ value }) { + msgSignedData({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestByIdRequest", value: QuerySignatureRequestByIdRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgSignedData", value: MsgSignedData.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignatureRequestByIdRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgSignedData: Could not create message: ' + e.message); } }, - msgNewKey({ value }) { + metadataEthereum({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewKey", value: MsgNewKey.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MetadataEthereum", value: MetadataEthereum.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewKey: Could not create message: ' + e.message); + throw new Error('TxClient:MetadataEthereum: Could not create message: ' + e.message); } }, - msgAddKeychainParty({ value }) { + queryKeychainByIdRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgAddKeychainParty", value: MsgAddKeychainParty.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QueryKeychainByIdRequest", value: QueryKeychainByIdRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgAddKeychainParty: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeychainByIdRequest: Could not create message: ' + e.message); } }, - msgUpdateKeyRequestResponse({ value }) { + queryKeyByIdRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeyRequestResponse", value: MsgUpdateKeyRequestResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QueryKeyByIdRequest", value: QueryKeyByIdRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateKeyRequestResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeyByIdRequest: Could not create message: ' + e.message); } }, - querySignTransactionRequestsRequest({ value }) { + key({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestsRequest", value: QuerySignTransactionRequestsRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.Key", value: Key.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignTransactionRequestsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:Key: Could not create message: ' + e.message); } }, - querySignTransactionRequestsResponse({ value }) { + msgNewKeyRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestsResponse", value: QuerySignTransactionRequestsResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgNewKeyRequest", value: MsgNewKeyRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignTransactionRequestsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewKeyRequest: Could not create message: ' + e.message); } }, - keychain({ value }) { + msgNewSignatureRequestResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.Keychain", value: Keychain.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgNewSignatureRequestResponse", value: MsgNewSignatureRequestResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:Keychain: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewSignatureRequestResponse: Could not create message: ' + e.message); } }, - querySignatureRequestsResponse({ value }) { + keychainFees({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestsResponse", value: QuerySignatureRequestsResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.KeychainFees", value: KeychainFees.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignatureRequestsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:KeychainFees: Could not create message: ' + e.message); } }, - queryParamsRequest({ value }) { + msgAddSpaceOwner({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgAddSpaceOwner", value: MsgAddSpaceOwner.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgAddSpaceOwner: Could not create message: ' + e.message); } }, - metadataEthereum({ value }) { + msgUpdateKey({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MetadataEthereum", value: MetadataEthereum.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKey", value: MsgUpdateKey.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MetadataEthereum: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateKey: Could not create message: ' + e.message); } }, - msgFulfilSignatureRequest({ value }) { + querySpaceByIdResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgFulfilSignatureRequest", value: MsgFulfilSignatureRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QuerySpaceByIdResponse", value: QuerySpaceByIdResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgFulfilSignatureRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySpaceByIdResponse: Could not create message: ' + e.message); } }, - msgSignedData({ value }) { + queryKeyResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgSignedData", value: MsgSignedData.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QueryKeyResponse", value: QueryKeyResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgSignedData: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeyResponse: Could not create message: ' + e.message); } }, - queryKeysRequest({ value }) { + querySignatureRequestsRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeysRequest", value: QueryKeysRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestsRequest", value: QuerySignatureRequestsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeysRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignatureRequestsRequest: Could not create message: ' + e.message); } }, - genesisState({ value }) { + msgUpdateParams({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.GenesisState", value: GenesisState.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); } }, - msgAddSpaceOwnerResponse({ value }) { + msgRemoveSpaceOwner({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgAddSpaceOwnerResponse", value: MsgAddSpaceOwnerResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgRemoveSpaceOwner", value: MsgRemoveSpaceOwner.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgAddSpaceOwnerResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgRemoveSpaceOwner: Could not create message: ' + e.message); + } + }, + msgRemoveSpaceOwnerResponse({ value }) { + try { + return { typeUrl: "/warden.warden.v1beta2.MsgRemoveSpaceOwnerResponse", value: MsgRemoveSpaceOwnerResponse.fromPartial(value) }; + } + catch (e) { + throw new Error('TxClient:MsgRemoveSpaceOwnerResponse: Could not create message: ' + e.message); } }, msgUpdateSpace({ value }) { @@ -1417,124 +1501,132 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26 throw new Error('TxClient:MsgUpdateSpace: Could not create message: ' + e.message); } }, - querySpacesRequest({ value }) { + msgFulfilSignatureRequestResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySpacesRequest", value: QuerySpacesRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgFulfilSignatureRequestResponse", value: MsgFulfilSignatureRequestResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySpacesRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgFulfilSignatureRequestResponse: Could not create message: ' + e.message); } }, - queryKeysResponse({ value }) { + querySignTransactionRequestByIdResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeysResponse", value: QueryKeysResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse", value: QuerySignTransactionRequestByIdResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeysResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignTransactionRequestByIdResponse: Could not create message: ' + e.message); } }, - keyResponse({ value }) { + params({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.KeyResponse", value: KeyResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.Params", value: Params.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:KeyResponse: Could not create message: ' + e.message); + throw new Error('TxClient:Params: Could not create message: ' + e.message); } }, - signTransactionRequest({ value }) { + msgNewSpace({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.SignTransactionRequest", value: SignTransactionRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgNewSpace", value: MsgNewSpace.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:SignTransactionRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewSpace: Could not create message: ' + e.message); } }, - msgNewSpaceResponse({ value }) { + queryKeychainByIdResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewSpaceResponse", value: MsgNewSpaceResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QueryKeychainByIdResponse", value: QueryKeychainByIdResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewSpaceResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeychainByIdResponse: Could not create message: ' + e.message); } }, - msgNewKeychainResponse({ value }) { + queryKeyRequestByIdResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewKeychainResponse", value: MsgNewKeychainResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestByIdResponse", value: QueryKeyRequestByIdResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgNewKeychainResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeyRequestByIdResponse: Could not create message: ' + e.message); } }, - querySpaceByIdResponse({ value }) { + signTransactionRequestResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySpaceByIdResponse", value: QuerySpaceByIdResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.SignTransactionRequestResponse", value: SignTransactionRequestResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySpaceByIdResponse: Could not create message: ' + e.message); + throw new Error('TxClient:SignTransactionRequestResponse: Could not create message: ' + e.message); } }, - querySignatureRequestByIdResponse({ value }) { + msgUpdateKeychain({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestByIdResponse", value: QuerySignatureRequestByIdResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeychain", value: MsgUpdateKeychain.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignatureRequestByIdResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateKeychain: Could not create message: ' + e.message); } }, - signRequest({ value }) { + msgNewSignatureRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.SignRequest", value: SignRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgNewSignatureRequest", value: MsgNewSignatureRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:SignRequest: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewSignatureRequest: Could not create message: ' + e.message); } }, - msgUpdateParamsResponse({ value }) { + queryKeychainsRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QueryKeychainsRequest", value: QueryKeychainsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeychainsRequest: Could not create message: ' + e.message); } }, - msgFulfilSignatureRequestResponse({ value }) { + msgNewSignTransactionRequestResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgFulfilSignatureRequestResponse", value: MsgFulfilSignatureRequestResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgNewSignTransactionRequestResponse", value: MsgNewSignTransactionRequestResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgFulfilSignatureRequestResponse: Could not create message: ' + e.message); + throw new Error('TxClient:MsgNewSignTransactionRequestResponse: Could not create message: ' + e.message); } }, - queryKeyRequestByIdResponse({ value }) { + queryParamsRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestByIdResponse", value: QueryKeyRequestByIdResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QueryParamsRequest", value: QueryParamsRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QueryKeyRequestByIdResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message); } }, - querySignatureRequestsRequest({ value }) { + queryKeyRequestsResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestsRequest", value: QuerySignatureRequestsRequest.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestsResponse", value: QueryKeyRequestsResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignatureRequestsRequest: Could not create message: ' + e.message); + throw new Error('TxClient:QueryKeyRequestsResponse: Could not create message: ' + e.message); } }, - querySignTransactionRequestByIdResponse({ value }) { + querySignTransactionRequestByIdRequest({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse", value: QuerySignTransactionRequestByIdResponse.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestByIdRequest", value: QuerySignTransactionRequestByIdRequest.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:QuerySignTransactionRequestByIdResponse: Could not create message: ' + e.message); + throw new Error('TxClient:QuerySignTransactionRequestByIdRequest: Could not create message: ' + e.message); } }, - msgUpdateParams({ value }) { + msgUpdateKeychainResponse({ value }) { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeychainResponse", value: MsgUpdateKeychainResponse.fromPartial(value) }; } catch (e) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message); + throw new Error('TxClient:MsgUpdateKeychainResponse: Could not create message: ' + e.message); + } + }, + msgUpdateKeyResponse({ value }) { + try { + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeyResponse", value: MsgUpdateKeyResponse.fromPartial(value) }; + } + catch (e) { + throw new Error('TxClient:MsgUpdateKeyResponse: Could not create message: ' + e.message); } }, }; diff --git a/ts-client/lib/warden.warden.v1beta2/registry.js b/ts-client/lib/warden.warden.v1beta2/registry.js index 78f3aa574..1f5e06c10 100644 --- a/ts-client/lib/warden.warden.v1beta2/registry.js +++ b/ts-client/lib/warden.warden.v1beta2/registry.js @@ -1,135 +1,143 @@ -import { MsgNewKeychain } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateKeychain } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta2/tx"; +import { QueryAllKeysRequest } from "./types/warden/warden/v1beta2/query"; +import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySpacesRequest } from "./types/warden/warden/v1beta2/query"; +import { QueryKeysResponse } from "./types/warden/warden/v1beta2/query"; +import { WalletKeyResponse } from "./types/warden/warden/v1beta2/query"; +import { Keychain } from "./types/warden/warden/v1beta2/keychain"; +import { QuerySignatureRequestsResponse } from "./types/warden/warden/v1beta2/query"; +import { SignTransactionRequest } from "./types/warden/warden/v1beta2/signature"; import { Space } from "./types/warden/warden/v1beta2/space"; -import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta2/tx"; -import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta2/query"; -import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta2/query"; -import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta2/query"; -import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta2/tx"; +import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta2/tx"; import { KeyRequest } from "./types/warden/warden/v1beta2/key"; -import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeychainsRequest } from "./types/warden/warden/v1beta2/query"; -import { QueryKeychainByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeychainsResponse } from "./types/warden/warden/v1beta2/query"; -import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgNewKeyRequest } from "./types/warden/warden/v1beta2/tx"; -import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewKey } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; import { QuerySpacesResponse } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { Key } from "./types/warden/warden/v1beta2/key"; -import { KeychainFees } from "./types/warden/warden/v1beta2/keychain"; -import { QueryKeychainByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta2/tx"; -import { Params } from "./types/warden/warden/v1beta2/params"; +import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewKeychain } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeysBySpaceIdRequest } from "./types/warden/warden/v1beta2/query"; +import { GenesisState } from "./types/warden/warden/v1beta2/genesis"; import { QuerySpaceByIdRequest } from "./types/warden/warden/v1beta2/query"; import { QueryKeyRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgNewSpace } from "./types/warden/warden/v1beta2/tx"; -import { WalletKeyResponse } from "./types/warden/warden/v1beta2/query"; -import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { QueryParamsResponse } from "./types/warden/warden/v1beta2/query"; import { QuerySignatureRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgNewKey } from "./types/warden/warden/v1beta2/tx"; +import { SignRequest } from "./types/warden/warden/v1beta2/signature"; import { MsgAddKeychainParty } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta2/tx"; +import { QueryParamsResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainsResponse } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta2/query"; +import { QuerySignatureRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; import { QuerySignTransactionRequestsRequest } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta2/query"; -import { Keychain } from "./types/warden/warden/v1beta2/keychain"; -import { QuerySignatureRequestsResponse } from "./types/warden/warden/v1beta2/query"; -import { QueryParamsRequest } from "./types/warden/warden/v1beta2/query"; -import { MetadataEthereum } from "./types/warden/warden/v1beta2/tx"; -import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta2/tx"; -import { MsgSignedData } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeysRequest } from "./types/warden/warden/v1beta2/query"; -import { GenesisState } from "./types/warden/warden/v1beta2/genesis"; -import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateSpace } from "./types/warden/warden/v1beta2/tx"; -import { QuerySpacesRequest } from "./types/warden/warden/v1beta2/query"; -import { QueryKeysResponse } from "./types/warden/warden/v1beta2/query"; -import { KeyResponse } from "./types/warden/warden/v1beta2/query"; -import { SignTransactionRequest } from "./types/warden/warden/v1beta2/signature"; -import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta2/tx"; import { MsgNewKeychainResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgSignedData } from "./types/warden/warden/v1beta2/tx"; +import { MetadataEthereum } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { Key } from "./types/warden/warden/v1beta2/key"; +import { MsgNewKeyRequest } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { KeychainFees } from "./types/warden/warden/v1beta2/keychain"; +import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKey } from "./types/warden/warden/v1beta2/tx"; import { QuerySpaceByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { QuerySignatureRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { SignRequest } from "./types/warden/warden/v1beta2/signature"; -import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyResponse } from "./types/warden/warden/v1beta2/query"; import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; import { MsgUpdateParams } from "./types/warden/warden/v1beta2/tx"; +import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta2/tx"; +import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateSpace } from "./types/warden/warden/v1beta2/tx"; +import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { Params } from "./types/warden/warden/v1beta2/params"; +import { MsgNewSpace } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateKeychain } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainsRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QueryParamsRequest } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta2/query"; +import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKeyResponse } from "./types/warden/warden/v1beta2/tx"; const msgTypes = [ - ["/warden.warden.v1beta2.MsgNewKeychain", MsgNewKeychain], - ["/warden.warden.v1beta2.MsgUpdateKeychain", MsgUpdateKeychain], + ["/warden.warden.v1beta2.MsgNewSignTransactionRequest", MsgNewSignTransactionRequest], + ["/warden.warden.v1beta2.QueryAllKeysRequest", QueryAllKeysRequest], + ["/warden.warden.v1beta2.QuerySignTransactionRequestsResponse", QuerySignTransactionRequestsResponse], + ["/warden.warden.v1beta2.MsgAddSpaceOwnerResponse", MsgAddSpaceOwnerResponse], + ["/warden.warden.v1beta2.MsgNewKeyRequestResponse", MsgNewKeyRequestResponse], + ["/warden.warden.v1beta2.QuerySpacesRequest", QuerySpacesRequest], + ["/warden.warden.v1beta2.QueryKeysResponse", QueryKeysResponse], + ["/warden.warden.v1beta2.WalletKeyResponse", WalletKeyResponse], + ["/warden.warden.v1beta2.Keychain", Keychain], + ["/warden.warden.v1beta2.QuerySignatureRequestsResponse", QuerySignatureRequestsResponse], + ["/warden.warden.v1beta2.SignTransactionRequest", SignTransactionRequest], ["/warden.warden.v1beta2.Space", Space], - ["/warden.warden.v1beta2.MsgUpdateKeychainResponse", MsgUpdateKeychainResponse], - ["/warden.warden.v1beta2.QuerySpacesByOwnerRequest", QuerySpacesByOwnerRequest], - ["/warden.warden.v1beta2.QueryKeyRequestsResponse", QueryKeyRequestsResponse], - ["/warden.warden.v1beta2.SignTransactionRequestResponse", SignTransactionRequestResponse], - ["/warden.warden.v1beta2.MsgRemoveSpaceOwner", MsgRemoveSpaceOwner], + ["/warden.warden.v1beta2.MsgAddKeychainPartyResponse", MsgAddKeychainPartyResponse], ["/warden.warden.v1beta2.KeyRequest", KeyRequest], - ["/warden.warden.v1beta2.MsgNewSignatureRequestResponse", MsgNewSignatureRequestResponse], - ["/warden.warden.v1beta2.QueryKeychainsRequest", QueryKeychainsRequest], - ["/warden.warden.v1beta2.QueryKeychainByIdRequest", QueryKeychainByIdRequest], - ["/warden.warden.v1beta2.MsgRemoveSpaceOwnerResponse", MsgRemoveSpaceOwnerResponse], - ["/warden.warden.v1beta2.QueryKeychainsResponse", QueryKeychainsResponse], - ["/warden.warden.v1beta2.QueryKeyRequestsRequest", QueryKeyRequestsRequest], - ["/warden.warden.v1beta2.MsgNewKeyRequest", MsgNewKeyRequest], - ["/warden.warden.v1beta2.MsgAddSpaceOwner", MsgAddSpaceOwner], - ["/warden.warden.v1beta2.MsgNewSignatureRequest", MsgNewSignatureRequest], + ["/warden.warden.v1beta2.MsgNewKey", MsgNewKey], + ["/warden.warden.v1beta2.MsgUpdateKeyRequestResponse", MsgUpdateKeyRequestResponse], ["/warden.warden.v1beta2.QuerySpacesResponse", QuerySpacesResponse], - ["/warden.warden.v1beta2.QuerySignTransactionRequestByIdRequest", QuerySignTransactionRequestByIdRequest], - ["/warden.warden.v1beta2.Key", Key], - ["/warden.warden.v1beta2.KeychainFees", KeychainFees], - ["/warden.warden.v1beta2.QueryKeychainByIdResponse", QueryKeychainByIdResponse], - ["/warden.warden.v1beta2.MsgNewKeyRequestResponse", MsgNewKeyRequestResponse], - ["/warden.warden.v1beta2.MsgAddKeychainPartyResponse", MsgAddKeychainPartyResponse], - ["/warden.warden.v1beta2.MsgUpdateSpaceResponse", MsgUpdateSpaceResponse], - ["/warden.warden.v1beta2.MsgNewSignTransactionRequest", MsgNewSignTransactionRequest], - ["/warden.warden.v1beta2.Params", Params], + ["/warden.warden.v1beta2.MsgNewSpaceResponse", MsgNewSpaceResponse], + ["/warden.warden.v1beta2.MsgFulfilSignatureRequest", MsgFulfilSignatureRequest], + ["/warden.warden.v1beta2.MsgNewKeychain", MsgNewKeychain], + ["/warden.warden.v1beta2.QueryKeysBySpaceIdRequest", QueryKeysBySpaceIdRequest], + ["/warden.warden.v1beta2.GenesisState", GenesisState], ["/warden.warden.v1beta2.QuerySpaceByIdRequest", QuerySpaceByIdRequest], ["/warden.warden.v1beta2.QueryKeyRequestByIdRequest", QueryKeyRequestByIdRequest], - ["/warden.warden.v1beta2.MsgNewSpace", MsgNewSpace], - ["/warden.warden.v1beta2.WalletKeyResponse", WalletKeyResponse], - ["/warden.warden.v1beta2.MsgUpdateKeyRequest", MsgUpdateKeyRequest], - ["/warden.warden.v1beta2.MsgNewSignTransactionRequestResponse", MsgNewSignTransactionRequestResponse], - ["/warden.warden.v1beta2.QueryParamsResponse", QueryParamsResponse], ["/warden.warden.v1beta2.QuerySignatureRequestByIdRequest", QuerySignatureRequestByIdRequest], - ["/warden.warden.v1beta2.MsgNewKey", MsgNewKey], + ["/warden.warden.v1beta2.SignRequest", SignRequest], ["/warden.warden.v1beta2.MsgAddKeychainParty", MsgAddKeychainParty], - ["/warden.warden.v1beta2.MsgUpdateKeyRequestResponse", MsgUpdateKeyRequestResponse], + ["/warden.warden.v1beta2.MsgUpdateSpaceResponse", MsgUpdateSpaceResponse], + ["/warden.warden.v1beta2.QueryParamsResponse", QueryParamsResponse], + ["/warden.warden.v1beta2.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/warden.warden.v1beta2.MsgUpdateKeyRequest", MsgUpdateKeyRequest], + ["/warden.warden.v1beta2.QueryKeychainsResponse", QueryKeychainsResponse], + ["/warden.warden.v1beta2.QueryKeyRequestsRequest", QueryKeyRequestsRequest], + ["/warden.warden.v1beta2.QuerySignatureRequestByIdResponse", QuerySignatureRequestByIdResponse], ["/warden.warden.v1beta2.QuerySignTransactionRequestsRequest", QuerySignTransactionRequestsRequest], - ["/warden.warden.v1beta2.QuerySignTransactionRequestsResponse", QuerySignTransactionRequestsResponse], - ["/warden.warden.v1beta2.Keychain", Keychain], - ["/warden.warden.v1beta2.QuerySignatureRequestsResponse", QuerySignatureRequestsResponse], - ["/warden.warden.v1beta2.QueryParamsRequest", QueryParamsRequest], - ["/warden.warden.v1beta2.MetadataEthereum", MetadataEthereum], - ["/warden.warden.v1beta2.MsgFulfilSignatureRequest", MsgFulfilSignatureRequest], - ["/warden.warden.v1beta2.MsgSignedData", MsgSignedData], - ["/warden.warden.v1beta2.QueryKeysRequest", QueryKeysRequest], - ["/warden.warden.v1beta2.GenesisState", GenesisState], - ["/warden.warden.v1beta2.MsgAddSpaceOwnerResponse", MsgAddSpaceOwnerResponse], - ["/warden.warden.v1beta2.MsgUpdateSpace", MsgUpdateSpace], - ["/warden.warden.v1beta2.QuerySpacesRequest", QuerySpacesRequest], - ["/warden.warden.v1beta2.QueryKeysResponse", QueryKeysResponse], - ["/warden.warden.v1beta2.KeyResponse", KeyResponse], - ["/warden.warden.v1beta2.SignTransactionRequest", SignTransactionRequest], - ["/warden.warden.v1beta2.MsgNewSpaceResponse", MsgNewSpaceResponse], ["/warden.warden.v1beta2.MsgNewKeychainResponse", MsgNewKeychainResponse], + ["/warden.warden.v1beta2.QuerySpacesByOwnerRequest", QuerySpacesByOwnerRequest], + ["/warden.warden.v1beta2.MsgSignedData", MsgSignedData], + ["/warden.warden.v1beta2.MetadataEthereum", MetadataEthereum], + ["/warden.warden.v1beta2.QueryKeychainByIdRequest", QueryKeychainByIdRequest], + ["/warden.warden.v1beta2.QueryKeyByIdRequest", QueryKeyByIdRequest], + ["/warden.warden.v1beta2.Key", Key], + ["/warden.warden.v1beta2.MsgNewKeyRequest", MsgNewKeyRequest], + ["/warden.warden.v1beta2.MsgNewSignatureRequestResponse", MsgNewSignatureRequestResponse], + ["/warden.warden.v1beta2.KeychainFees", KeychainFees], + ["/warden.warden.v1beta2.MsgAddSpaceOwner", MsgAddSpaceOwner], + ["/warden.warden.v1beta2.MsgUpdateKey", MsgUpdateKey], ["/warden.warden.v1beta2.QuerySpaceByIdResponse", QuerySpaceByIdResponse], - ["/warden.warden.v1beta2.QuerySignatureRequestByIdResponse", QuerySignatureRequestByIdResponse], - ["/warden.warden.v1beta2.SignRequest", SignRequest], - ["/warden.warden.v1beta2.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/warden.warden.v1beta2.MsgFulfilSignatureRequestResponse", MsgFulfilSignatureRequestResponse], - ["/warden.warden.v1beta2.QueryKeyRequestByIdResponse", QueryKeyRequestByIdResponse], + ["/warden.warden.v1beta2.QueryKeyResponse", QueryKeyResponse], ["/warden.warden.v1beta2.QuerySignatureRequestsRequest", QuerySignatureRequestsRequest], - ["/warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse", QuerySignTransactionRequestByIdResponse], ["/warden.warden.v1beta2.MsgUpdateParams", MsgUpdateParams], + ["/warden.warden.v1beta2.MsgRemoveSpaceOwner", MsgRemoveSpaceOwner], + ["/warden.warden.v1beta2.MsgRemoveSpaceOwnerResponse", MsgRemoveSpaceOwnerResponse], + ["/warden.warden.v1beta2.MsgUpdateSpace", MsgUpdateSpace], + ["/warden.warden.v1beta2.MsgFulfilSignatureRequestResponse", MsgFulfilSignatureRequestResponse], + ["/warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse", QuerySignTransactionRequestByIdResponse], + ["/warden.warden.v1beta2.Params", Params], + ["/warden.warden.v1beta2.MsgNewSpace", MsgNewSpace], + ["/warden.warden.v1beta2.QueryKeychainByIdResponse", QueryKeychainByIdResponse], + ["/warden.warden.v1beta2.QueryKeyRequestByIdResponse", QueryKeyRequestByIdResponse], + ["/warden.warden.v1beta2.SignTransactionRequestResponse", SignTransactionRequestResponse], + ["/warden.warden.v1beta2.MsgUpdateKeychain", MsgUpdateKeychain], + ["/warden.warden.v1beta2.MsgNewSignatureRequest", MsgNewSignatureRequest], + ["/warden.warden.v1beta2.QueryKeychainsRequest", QueryKeychainsRequest], + ["/warden.warden.v1beta2.MsgNewSignTransactionRequestResponse", MsgNewSignTransactionRequestResponse], + ["/warden.warden.v1beta2.QueryParamsRequest", QueryParamsRequest], + ["/warden.warden.v1beta2.QueryKeyRequestsResponse", QueryKeyRequestsResponse], + ["/warden.warden.v1beta2.QuerySignTransactionRequestByIdRequest", QuerySignTransactionRequestByIdRequest], + ["/warden.warden.v1beta2.MsgUpdateKeychainResponse", MsgUpdateKeychainResponse], + ["/warden.warden.v1beta2.MsgUpdateKeyResponse", MsgUpdateKeyResponse], ]; export { msgTypes }; diff --git a/ts-client/lib/warden.warden.v1beta2/rest.d.ts b/ts-client/lib/warden.warden.v1beta2/rest.d.ts index 75ba819f9..784d6a022 100644 --- a/ts-client/lib/warden.warden.v1beta2/rest.d.ts +++ b/ts-client/lib/warden.warden.v1beta2/rest.d.ts @@ -19,6 +19,8 @@ export interface Key { type?: "KEY_TYPE_UNSPECIFIED" | "KEY_TYPE_ECDSA_SECP256K1" | "KEY_TYPE_EDDSA_ED25519"; /** @format byte */ public_key?: string; + /** @format uint64 */ + intent_id?: string; } export interface KeyRequest { /** @format uint64 */ @@ -31,6 +33,8 @@ export interface KeyRequest { key_type?: "KEY_TYPE_UNSPECIFIED" | "KEY_TYPE_ECDSA_SECP256K1" | "KEY_TYPE_EDDSA_ED25519"; status?: "KEY_REQUEST_STATUS_UNSPECIFIED" | "KEY_REQUEST_STATUS_PENDING" | "KEY_REQUEST_STATUS_FULFILLED" | "KEY_REQUEST_STATUS_REJECTED"; reject_reason?: string; + /** @format uint64 */ + intent_id?: string; } export declare enum KeyRequestStatus { KEY_REQUEST_STATUS_UNSPECIFIED = "KEY_REQUEST_STATUS_UNSPECIFIED", @@ -38,19 +42,6 @@ export declare enum KeyRequestStatus { KEY_REQUEST_STATUS_FULFILLED = "KEY_REQUEST_STATUS_FULFILLED", KEY_REQUEST_STATUS_REJECTED = "KEY_REQUEST_STATUS_REJECTED" } -export interface KeyResponse { - key?: { - id?: string; - space_id?: string; - keychain_id?: string; - type?: "KEY_TYPE_UNSPECIFIED" | "KEY_TYPE_ECDSA_SECP256K1" | "KEY_TYPE_EDDSA_ED25519"; - public_key?: string; - }; - wallets?: { - address?: string; - type?: "WALLET_TYPE_UNSPECIFIED" | "WALLET_TYPE_ETH" | "WALLET_TYPE_CELESTIA" | "WALLET_TYPE_SUI"; - }[]; -} export declare enum KeyType { KEY_TYPE_UNSPECIFIED = "KEY_TYPE_UNSPECIFIED", KEYTYPEECDSASECP256K1 = "KEY_TYPE_ECDSA_SECP256K1", @@ -103,6 +94,7 @@ export interface QueryKeyRequestByIdResponse { key_type?: "KEY_TYPE_UNSPECIFIED" | "KEY_TYPE_ECDSA_SECP256K1" | "KEY_TYPE_EDDSA_ED25519"; status?: "KEY_REQUEST_STATUS_UNSPECIFIED" | "KEY_REQUEST_STATUS_PENDING" | "KEY_REQUEST_STATUS_FULFILLED" | "KEY_REQUEST_STATUS_REJECTED"; reject_reason?: string; + intent_id?: string; }; } export interface QueryKeyRequestsResponse { @@ -118,6 +110,21 @@ export interface QueryKeyRequestsResponse { key_type?: "KEY_TYPE_UNSPECIFIED" | "KEY_TYPE_ECDSA_SECP256K1" | "KEY_TYPE_EDDSA_ED25519"; status?: "KEY_REQUEST_STATUS_UNSPECIFIED" | "KEY_REQUEST_STATUS_PENDING" | "KEY_REQUEST_STATUS_FULFILLED" | "KEY_REQUEST_STATUS_REJECTED"; reject_reason?: string; + intent_id?: string; + }[]; +} +export interface QueryKeyResponse { + key?: { + id?: string; + space_id?: string; + keychain_id?: string; + type?: "KEY_TYPE_UNSPECIFIED" | "KEY_TYPE_ECDSA_SECP256K1" | "KEY_TYPE_EDDSA_ED25519"; + public_key?: string; + intent_id?: string; + }; + wallets?: { + address?: string; + type?: "WALLET_TYPE_UNSPECIFIED" | "WALLET_TYPE_ETH" | "WALLET_TYPE_CELESTIA" | "WALLET_TYPE_SUI"; }[]; } export interface QueryKeychainByIdResponse { @@ -166,6 +173,7 @@ export interface QueryKeysResponse { keychain_id?: string; type?: "KEY_TYPE_UNSPECIFIED" | "KEY_TYPE_ECDSA_SECP256K1" | "KEY_TYPE_EDDSA_ED25519"; public_key?: string; + intent_id?: string; }; wallets?: { address?: string; @@ -342,8 +350,6 @@ export interface Action { approved_at?: string; }[]; status?: "ACTION_STATUS_UNSPECIFIED" | "ACTION_STATUS_PENDING" | "ACTION_STATUS_COMPLETED" | "ACTION_STATUS_REVOKED" | "ACTION_STATUS_TIMEOUT"; - /** @format uint64 */ - intent_id?: string; msg?: { "@type"?: string; }; @@ -357,6 +363,13 @@ export interface Action { created_at?: string; /** @format date-time */ updated_at?: string; + intent?: { + id?: string; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; } export declare enum ActionStatus { ACTION_STATUS_UNSPECIFIED = "ACTION_STATUS_UNSPECIFIED", @@ -370,6 +383,14 @@ export interface Approver { /** @format date-time */ approved_at?: string; } +export interface Intent { + /** @format uint64 */ + id?: string; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; +} export interface MsgActionCreated { action?: { id?: string; @@ -378,7 +399,6 @@ export interface MsgActionCreated { approved_at?: string; }[]; status?: "ACTION_STATUS_UNSPECIFIED" | "ACTION_STATUS_PENDING" | "ACTION_STATUS_COMPLETED" | "ACTION_STATUS_REVOKED" | "ACTION_STATUS_TIMEOUT"; - intent_id?: string; msg?: { "@type"?: string; }; @@ -389,6 +409,13 @@ export interface MsgActionCreated { btl?: string; created_at?: string; updated_at?: string; + intent?: { + id?: string; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; }; } export type MsgAddKeychainPartyResponse = object; @@ -486,6 +513,30 @@ export declare class Api extends HttpClient>; + /** + * No description + * + * @tags Query + * @name QueryKeyById + * @request GET:/warden/warden/v1beta2/key_by_id + */ + queryKeyById: (query?: { + id?: string; + derive_wallets?: ("WALLET_TYPE_UNSPECIFIED" | "WALLET_TYPE_ETH" | "WALLET_TYPE_CELESTIA" | "WALLET_TYPE_SUI")[]; + }, params?: RequestParams) => Promise>; /** * No description * @@ -504,6 +555,7 @@ export declare class Api extends HttpClient>; /** @@ -535,6 +587,7 @@ export declare class Api extends HttpClient>; /** @@ -597,18 +650,51 @@ export declare class Api extends HttpClient Promise>; + /** + * No description + * + * @tags Query + * @name QueryKeysBySpaceId + * @request GET:/warden/warden/v1beta2/keys_by_space_id + */ + queryKeysBySpaceId: (query?: { "pagination.key"?: string; "pagination.offset"?: string; "pagination.limit"?: string; "pagination.count_total"?: boolean; "pagination.reverse"?: boolean; space_id?: string; - type?: "WALLET_TYPE_UNSPECIFIED" | "WALLET_TYPE_ETH" | "WALLET_TYPE_CELESTIA" | "WALLET_TYPE_SUI"; - key_id?: string; + derive_wallets?: ("WALLET_TYPE_UNSPECIFIED" | "WALLET_TYPE_ETH" | "WALLET_TYPE_CELESTIA" | "WALLET_TYPE_SUI")[]; }, params?: RequestParams) => Promise extends HttpClient this.request({ + path: `/warden/warden/v1beta2/key_by_id`, + method: "GET", + query: query, + ...params, + }); /** * No description * @@ -185,15 +198,28 @@ export class Api extends HttpClient { * No description * * @tags Query - * @name QueryKeys + * @name QueryAllKeys * @request GET:/warden/warden/v1beta2/keys */ - this.queryKeys = (query, params = {}) => this.request({ + this.queryAllKeys = (query, params = {}) => this.request({ path: `/warden/warden/v1beta2/keys`, method: "GET", query: query, ...params, }); + /** + * No description + * + * @tags Query + * @name QueryKeysBySpaceId + * @request GET:/warden/warden/v1beta2/keys_by_space_id + */ + this.queryKeysBySpaceId = (query, params = {}) => this.request({ + path: `/warden/warden/v1beta2/keys_by_space_id`, + method: "GET", + query: query, + ...params, + }); /** * No description * diff --git a/ts-client/lib/warden.warden.v1beta2/types/warden/intent/action.d.ts b/ts-client/lib/warden.warden.v1beta2/types/warden/intent/action.d.ts index 6138b0b0d..fa481944f 100644 --- a/ts-client/lib/warden.warden.v1beta2/types/warden/intent/action.d.ts +++ b/ts-client/lib/warden.warden.v1beta2/types/warden/intent/action.d.ts @@ -1,5 +1,6 @@ import _m0 from "protobufjs/minimal"; import { Any } from "../../google/protobuf/any"; +import { Intent } from "./intent"; export declare const protobufPackage = "warden.intent"; /** Current status of an action. */ export declare enum ActionStatus { @@ -28,12 +29,6 @@ export interface Action { id: number; approvers: Approver[]; status: ActionStatus; - /** - * Optional intent id that must be satisfied by the approvers. - * If not specified, it's up to the creator of the action to decide what to - * apply. - */ - intentId: number; /** * Original message that started the action, it will be executed when the * intent is satisfied. @@ -51,6 +46,12 @@ export interface Action { createdAt: Date | undefined; /** updated_at is a timestamp specifying when the action's status was updated */ updatedAt: Date | undefined; + /** + * intent is the intent that this action is associated with. Instead of + * storing the intent ID, we store the entire intent object so that is + * immutable and cannot be changed later. + */ + intent: Intent | undefined; } /** MsgActionCreated is returned by rpc that creates an action. */ export interface MsgActionCreated { @@ -88,7 +89,6 @@ export declare const Action: { approvedAt?: Date | undefined; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -101,6 +101,13 @@ export declare const Action: { btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; } & { id?: number; approvers?: { @@ -117,7 +124,6 @@ export declare const Action: { approvedAt?: Date | undefined; }[]>]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -136,7 +142,20 @@ export declare const Action: { btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; - } & { [K_4 in Exclude]: never; }>(base?: I): Action; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + } & { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[] & string[] & { [K_4 in Exclude]: never; }; + } & { [K_5 in Exclude]: never; }; + } & { [K_6 in Exclude]: never; }>(base?: I): Action; fromPartial]: never; })[] & { [K_6 in Exclude]: never; })[] & { [K_8 in Exclude]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_7 in Exclude]: never; }; + } & { [K_9 in Exclude]: never; }; result?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_8 in Exclude]: never; }; + } & { [K_10 in Exclude]: never; }; creator?: string; btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; - } & { [K_9 in Exclude]: never; }>(object: I_1): Action; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + } & { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[] & string[] & { [K_11 in Exclude]: never; }; + } & { [K_12 in Exclude]: never; }; + } & { [K_13 in Exclude]: never; }>(object: I_1): Action; }; export declare const MsgActionCreated: { encode(message: MsgActionCreated, writer?: _m0.Writer): _m0.Writer; @@ -207,7 +244,6 @@ export declare const MsgActionCreated: { approvedAt?: Date | undefined; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -220,6 +256,13 @@ export declare const MsgActionCreated: { btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; }; } & { action?: { @@ -229,7 +272,6 @@ export declare const MsgActionCreated: { approvedAt?: Date | undefined; }[]; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -242,6 +284,13 @@ export declare const MsgActionCreated: { btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + }; } & { id?: number; approvers?: { @@ -258,7 +307,6 @@ export declare const MsgActionCreated: { approvedAt?: Date | undefined; }[]>]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; @@ -277,8 +325,21 @@ export declare const MsgActionCreated: { btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; - } & { [K_4 in Exclude]: never; }; - } & { [K_5 in Exclude]: never; }>(base?: I): MsgActionCreated; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + } & { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[] & string[] & { [K_4 in Exclude]: never; }; + } & { [K_5 in Exclude]: never; }; + } & { [K_6 in Exclude]: never; }; + } & { [K_7 in Exclude]: never; }>(base?: I): MsgActionCreated; fromPartial]: never; })[] & { [K_7 in Exclude]: never; })[] & { [K_9 in Exclude]: never; }; status?: ActionStatus; - intentId?: number; msg?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_8 in Exclude]: never; }; + } & { [K_10 in Exclude]: never; }; result?: { typeUrl?: string; value?: Uint8Array; } & { typeUrl?: string; value?: Uint8Array; - } & { [K_9 in Exclude]: never; }; + } & { [K_11 in Exclude]: never; }; creator?: string; btl?: number; createdAt?: Date | undefined; updatedAt?: Date | undefined; - } & { [K_10 in Exclude]: never; }; - } & { [K_11 in Exclude]: never; }>(object: I_1): MsgActionCreated; + intent?: { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[]; + } & { + id?: number; + creator?: string; + name?: string; + definition?: string; + addresses?: string[] & string[] & { [K_12 in Exclude]: never; }; + } & { [K_13 in Exclude]: never; }; + } & { [K_14 in Exclude]: never; }; + } & { [K_15 in Exclude]: never; }>(object: I_1): MsgActionCreated; }; 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 {} ? { diff --git a/ts-client/lib/warden.warden.v1beta2/types/warden/intent/action.js b/ts-client/lib/warden.warden.v1beta2/types/warden/intent/action.js index 87bb50d41..4e85635aa 100644 --- a/ts-client/lib/warden.warden.v1beta2/types/warden/intent/action.js +++ b/ts-client/lib/warden.warden.v1beta2/types/warden/intent/action.js @@ -3,6 +3,7 @@ import Long from "long"; import _m0 from "protobufjs/minimal"; import { Any } from "../../google/protobuf/any"; import { Timestamp } from "../../google/protobuf/timestamp"; +import { Intent } from "./intent"; export const protobufPackage = "warden.intent"; /** Current status of an action. */ export var ActionStatus; @@ -130,13 +131,13 @@ function createBaseAction() { id: 0, approvers: [], status: 0, - intentId: 0, msg: undefined, result: undefined, creator: "", btl: 0, createdAt: undefined, updatedAt: undefined, + intent: undefined, }; } export const Action = { @@ -150,9 +151,6 @@ export const Action = { if (message.status !== 0) { writer.uint32(24).int32(message.status); } - if (message.intentId !== 0) { - writer.uint32(32).uint64(message.intentId); - } if (message.msg !== undefined) { Any.encode(message.msg, writer.uint32(42).fork()).ldelim(); } @@ -171,6 +169,9 @@ export const Action = { if (message.updatedAt !== undefined) { Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(82).fork()).ldelim(); } + if (message.intent !== undefined) { + Intent.encode(message.intent, writer.uint32(90).fork()).ldelim(); + } return writer; }, decode(input, length) { @@ -198,12 +199,6 @@ export const Action = { } message.status = reader.int32(); continue; - case 4: - if (tag !== 32) { - break; - } - message.intentId = longToNumber(reader.uint64()); - continue; case 5: if (tag !== 42) { break; @@ -240,6 +235,12 @@ export const Action = { } message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32())); continue; + case 11: + if (tag !== 90) { + break; + } + message.intent = Intent.decode(reader, reader.uint32()); + continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -253,13 +254,13 @@ export const Action = { id: isSet(object.id) ? Number(object.id) : 0, approvers: Array.isArray(object?.approvers) ? object.approvers.map((e) => Approver.fromJSON(e)) : [], status: isSet(object.status) ? actionStatusFromJSON(object.status) : 0, - intentId: isSet(object.intentId) ? Number(object.intentId) : 0, msg: isSet(object.msg) ? Any.fromJSON(object.msg) : undefined, result: isSet(object.result) ? Any.fromJSON(object.result) : undefined, creator: isSet(object.creator) ? String(object.creator) : "", btl: isSet(object.btl) ? Number(object.btl) : 0, createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined, updatedAt: isSet(object.updatedAt) ? fromJsonTimestamp(object.updatedAt) : undefined, + intent: isSet(object.intent) ? Intent.fromJSON(object.intent) : undefined, }; }, toJSON(message) { @@ -273,9 +274,6 @@ export const Action = { if (message.status !== 0) { obj.status = actionStatusToJSON(message.status); } - if (message.intentId !== 0) { - obj.intentId = Math.round(message.intentId); - } if (message.msg !== undefined) { obj.msg = Any.toJSON(message.msg); } @@ -294,6 +292,9 @@ export const Action = { if (message.updatedAt !== undefined) { obj.updatedAt = message.updatedAt.toISOString(); } + if (message.intent !== undefined) { + obj.intent = Intent.toJSON(message.intent); + } return obj; }, create(base) { @@ -304,7 +305,6 @@ export const Action = { message.id = object.id ?? 0; message.approvers = object.approvers?.map((e) => Approver.fromPartial(e)) || []; message.status = object.status ?? 0; - message.intentId = object.intentId ?? 0; message.msg = (object.msg !== undefined && object.msg !== null) ? Any.fromPartial(object.msg) : undefined; message.result = (object.result !== undefined && object.result !== null) ? Any.fromPartial(object.result) @@ -313,6 +313,9 @@ export const Action = { message.btl = object.btl ?? 0; message.createdAt = object.createdAt ?? undefined; message.updatedAt = object.updatedAt ?? undefined; + message.intent = (object.intent !== undefined && object.intent !== null) + ? Intent.fromPartial(object.intent) + : undefined; return message; }, }; diff --git a/ts-client/lib/warden.warden.v1beta2/types/warden/intent/intent.d.ts b/ts-client/lib/warden.warden.v1beta2/types/warden/intent/intent.d.ts new file mode 100644 index 000000000..9bba2fde2 --- /dev/null +++ b/ts-client/lib/warden.warden.v1beta2/types/warden/intent/intent.d.ts @@ -0,0 +1,54 @@ +import _m0 from "protobufjs/minimal"; +export declare const protobufPackage = "warden.intent"; +export interface Intent { + id: number; + creator: string; + name: string; + /** The definition of the intent written in the Shield language. */ + definition: string; + /** The list of addresses referenced from the intent definition. */ + addresses: string[]; +} +export declare const Intent: { + encode(message: Intent, writer?: _m0.Writer): _m0.Writer; + decode(input: _m0.Reader | Uint8Array, length?: number): Intent; + fromJSON(object: any): Intent; + toJSON(message: Intent): unknown; + create]: never; }; + } & { [K_1 in Exclude]: never; }>(base?: I): Intent; + fromPartial]: never; }; + } & { [K_3 in Exclude]: never; }>(object: I_1): Intent; +}; +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; +}; +export {}; diff --git a/ts-client/lib/warden.warden.v1beta2/types/warden/intent/intent.js b/ts-client/lib/warden.warden.v1beta2/types/warden/intent/intent.js new file mode 100644 index 000000000..59b1dcf0f --- /dev/null +++ b/ts-client/lib/warden.warden.v1beta2/types/warden/intent/intent.js @@ -0,0 +1,140 @@ +/* eslint-disable */ +import Long from "long"; +import _m0 from "protobufjs/minimal"; +export const protobufPackage = "warden.intent"; +function createBaseIntent() { + return { id: 0, creator: "", name: "", definition: "", addresses: [] }; +} +export const Intent = { + encode(message, writer = _m0.Writer.create()) { + if (message.id !== 0) { + writer.uint32(8).uint64(message.id); + } + if (message.creator !== "") { + writer.uint32(18).string(message.creator); + } + if (message.name !== "") { + writer.uint32(26).string(message.name); + } + if (message.definition !== "") { + writer.uint32(34).string(message.definition); + } + for (const v of message.addresses) { + writer.uint32(42).string(v); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseIntent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 8) { + break; + } + message.id = longToNumber(reader.uint64()); + continue; + case 2: + if (tag !== 18) { + break; + } + message.creator = reader.string(); + continue; + case 3: + if (tag !== 26) { + break; + } + message.name = reader.string(); + continue; + case 4: + if (tag !== 34) { + break; + } + message.definition = reader.string(); + continue; + case 5: + if (tag !== 42) { + break; + } + message.addresses.push(reader.string()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + fromJSON(object) { + return { + id: isSet(object.id) ? Number(object.id) : 0, + creator: isSet(object.creator) ? String(object.creator) : "", + name: isSet(object.name) ? String(object.name) : "", + definition: isSet(object.definition) ? String(object.definition) : "", + addresses: Array.isArray(object?.addresses) ? object.addresses.map((e) => String(e)) : [], + }; + }, + toJSON(message) { + const obj = {}; + if (message.id !== 0) { + obj.id = Math.round(message.id); + } + if (message.creator !== "") { + obj.creator = message.creator; + } + if (message.name !== "") { + obj.name = message.name; + } + if (message.definition !== "") { + obj.definition = message.definition; + } + if (message.addresses?.length) { + obj.addresses = message.addresses; + } + return obj; + }, + create(base) { + return Intent.fromPartial(base ?? {}); + }, + fromPartial(object) { + const message = createBaseIntent(); + message.id = object.id ?? 0; + message.creator = object.creator ?? ""; + message.name = object.name ?? ""; + message.definition = object.definition ?? ""; + message.addresses = object.addresses?.map((e) => e) || []; + return message; + }, +}; +const tsProtoGlobalThis = (() => { + if (typeof globalThis !== "undefined") { + return globalThis; + } + if (typeof self !== "undefined") { + return self; + } + if (typeof window !== "undefined") { + return window; + } + if (typeof global !== "undefined") { + return global; + } + throw "Unable to locate global object"; +})(); +function longToNumber(long) { + if (long.gt(Number.MAX_SAFE_INTEGER)) { + throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER"); + } + return long.toNumber(); +} +if (_m0.util.Long !== Long) { + _m0.util.Long = Long; + _m0.configure(); +} +function isSet(value) { + return value !== null && value !== undefined; +} diff --git a/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/genesis.d.ts b/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/genesis.d.ts index 030bde337..5a2deee72 100644 --- a/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/genesis.d.ts +++ b/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/genesis.d.ts @@ -49,6 +49,7 @@ export declare const GenesisState: { keychainId?: number; type?: import("./key").KeyType; publicKey?: Uint8Array; + intentId?: number; }[]; keyRequests?: { id?: number; @@ -58,6 +59,7 @@ export declare const GenesisState: { keyType?: import("./key").KeyType; status?: import("./key").KeyRequestStatus; rejectReason?: string; + intentId?: number; }[]; signatureRequests?: { id?: number; @@ -162,24 +164,28 @@ export declare const GenesisState: { keychainId?: number; type?: import("./key").KeyType; publicKey?: Uint8Array; + intentId?: number; }[] & ({ id?: number; spaceId?: number; keychainId?: number; type?: import("./key").KeyType; publicKey?: Uint8Array; + intentId?: number; } & { id?: number; spaceId?: number; keychainId?: number; type?: import("./key").KeyType; publicKey?: Uint8Array; + intentId?: number; } & { [K_9 in Exclude]: never; })[] & { [K_10 in Exclude]: never; }; keyRequests?: { id?: number; @@ -189,6 +195,7 @@ export declare const GenesisState: { keyType?: import("./key").KeyType; status?: import("./key").KeyRequestStatus; rejectReason?: string; + intentId?: number; }[] & ({ id?: number; creator?: string; @@ -197,6 +204,7 @@ export declare const GenesisState: { keyType?: import("./key").KeyType; status?: import("./key").KeyRequestStatus; rejectReason?: string; + intentId?: number; } & { id?: number; creator?: string; @@ -205,6 +213,7 @@ export declare const GenesisState: { keyType?: import("./key").KeyType; status?: import("./key").KeyRequestStatus; rejectReason?: string; + intentId?: number; } & { [K_11 in Exclude]: never; })[] & { [K_12 in Exclude]: never; }; signatureRequests?: { id?: number; @@ -309,6 +319,7 @@ export declare const GenesisState: { keychainId?: number; type?: import("./key").KeyType; publicKey?: Uint8Array; + intentId?: number; }[]; keyRequests?: { id?: number; @@ -318,6 +329,7 @@ export declare const GenesisState: { keyType?: import("./key").KeyType; status?: import("./key").KeyRequestStatus; rejectReason?: string; + intentId?: number; }[]; signatureRequests?: { id?: number; @@ -422,24 +434,28 @@ export declare const GenesisState: { keychainId?: number; type?: import("./key").KeyType; publicKey?: Uint8Array; + intentId?: number; }[] & ({ id?: number; spaceId?: number; keychainId?: number; type?: import("./key").KeyType; publicKey?: Uint8Array; + intentId?: number; } & { id?: number; spaceId?: number; keychainId?: number; type?: import("./key").KeyType; publicKey?: Uint8Array; + intentId?: number; } & { [K_27 in Exclude]: never; })[] & { [K_28 in Exclude]: never; }; keyRequests?: { id?: number; @@ -449,6 +465,7 @@ export declare const GenesisState: { keyType?: import("./key").KeyType; status?: import("./key").KeyRequestStatus; rejectReason?: string; + intentId?: number; }[] & ({ id?: number; creator?: string; @@ -457,6 +474,7 @@ export declare const GenesisState: { keyType?: import("./key").KeyType; status?: import("./key").KeyRequestStatus; rejectReason?: string; + intentId?: number; } & { id?: number; creator?: string; @@ -465,6 +483,7 @@ export declare const GenesisState: { keyType?: import("./key").KeyType; status?: import("./key").KeyRequestStatus; rejectReason?: string; + intentId?: number; } & { [K_29 in Exclude]: never; })[] & { [K_30 in Exclude]: never; }; signatureRequests?: { id?: number; diff --git a/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/key.d.ts b/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/key.d.ts index 2d5a525eb..b2889a4ed 100644 --- a/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/key.d.ts +++ b/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/key.d.ts @@ -44,6 +44,8 @@ export interface KeyRequest { keyType: KeyType; status: KeyRequestStatus; rejectReason: string; + /** IntentId is the ID of the intent that the resulting Key will use. */ + intentId: number; } export interface Key { id: number; @@ -51,6 +53,12 @@ export interface Key { keychainId: number; type: KeyType; publicKey: Uint8Array; + /** + * IntentId is the ID of the intent that will need to be satisfied for using + * this key to sign data. + * If this is not set, the key will use the signing intent of the Space. + */ + intentId: number; } export declare const KeyRequest: { encode(message: KeyRequest, writer?: _m0.Writer): _m0.Writer; @@ -65,6 +73,7 @@ export declare const KeyRequest: { keyType?: KeyType; status?: KeyRequestStatus; rejectReason?: string; + intentId?: number; } & { id?: number; creator?: string; @@ -73,6 +82,7 @@ export declare const KeyRequest: { keyType?: KeyType; status?: KeyRequestStatus; rejectReason?: string; + intentId?: number; } & { [K in Exclude]: never; }>(base?: I): KeyRequest; fromPartial]: never; }>(object: I_1): KeyRequest; }; export declare const Key: { @@ -103,12 +115,14 @@ export declare const Key: { keychainId?: number; type?: KeyType; publicKey?: Uint8Array; + intentId?: number; } & { id?: number; spaceId?: number; keychainId?: number; type?: KeyType; publicKey?: Uint8Array; + intentId?: number; } & { [K in Exclude]: never; }>(base?: I): Key; fromPartial]: never; }>(object: I_1): Key; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; diff --git a/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/key.js b/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/key.js index 9ee1b48cc..00ffd04a5 100644 --- a/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/key.js +++ b/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/key.js @@ -102,7 +102,7 @@ export function keyTypeToJSON(object) { } } function createBaseKeyRequest() { - return { id: 0, creator: "", spaceId: 0, keychainId: 0, keyType: 0, status: 0, rejectReason: "" }; + return { id: 0, creator: "", spaceId: 0, keychainId: 0, keyType: 0, status: 0, rejectReason: "", intentId: 0 }; } export const KeyRequest = { encode(message, writer = _m0.Writer.create()) { @@ -127,6 +127,9 @@ export const KeyRequest = { if (message.rejectReason !== "") { writer.uint32(58).string(message.rejectReason); } + if (message.intentId !== 0) { + writer.uint32(64).uint64(message.intentId); + } return writer; }, decode(input, length) { @@ -178,6 +181,12 @@ export const KeyRequest = { } message.rejectReason = reader.string(); continue; + case 8: + if (tag !== 64) { + break; + } + message.intentId = longToNumber(reader.uint64()); + continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -195,6 +204,7 @@ export const KeyRequest = { keyType: isSet(object.keyType) ? keyTypeFromJSON(object.keyType) : 0, status: isSet(object.status) ? keyRequestStatusFromJSON(object.status) : 0, rejectReason: isSet(object.rejectReason) ? String(object.rejectReason) : "", + intentId: isSet(object.intentId) ? Number(object.intentId) : 0, }; }, toJSON(message) { @@ -220,6 +230,9 @@ export const KeyRequest = { if (message.rejectReason !== "") { obj.rejectReason = message.rejectReason; } + if (message.intentId !== 0) { + obj.intentId = Math.round(message.intentId); + } return obj; }, create(base) { @@ -234,11 +247,12 @@ export const KeyRequest = { message.keyType = object.keyType ?? 0; message.status = object.status ?? 0; message.rejectReason = object.rejectReason ?? ""; + message.intentId = object.intentId ?? 0; return message; }, }; function createBaseKey() { - return { id: 0, spaceId: 0, keychainId: 0, type: 0, publicKey: new Uint8Array(0) }; + return { id: 0, spaceId: 0, keychainId: 0, type: 0, publicKey: new Uint8Array(0), intentId: 0 }; } export const Key = { encode(message, writer = _m0.Writer.create()) { @@ -257,6 +271,9 @@ export const Key = { if (message.publicKey.length !== 0) { writer.uint32(42).bytes(message.publicKey); } + if (message.intentId !== 0) { + writer.uint32(64).uint64(message.intentId); + } return writer; }, decode(input, length) { @@ -296,6 +313,12 @@ export const Key = { } message.publicKey = reader.bytes(); continue; + case 8: + if (tag !== 64) { + break; + } + message.intentId = longToNumber(reader.uint64()); + continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -311,6 +334,7 @@ export const Key = { keychainId: isSet(object.keychainId) ? Number(object.keychainId) : 0, type: isSet(object.type) ? keyTypeFromJSON(object.type) : 0, publicKey: isSet(object.publicKey) ? bytesFromBase64(object.publicKey) : new Uint8Array(0), + intentId: isSet(object.intentId) ? Number(object.intentId) : 0, }; }, toJSON(message) { @@ -330,6 +354,9 @@ export const Key = { if (message.publicKey.length !== 0) { obj.publicKey = base64FromBytes(message.publicKey); } + if (message.intentId !== 0) { + obj.intentId = Math.round(message.intentId); + } return obj; }, create(base) { @@ -342,6 +369,7 @@ export const Key = { message.keychainId = object.keychainId ?? 0; message.type = object.type ?? 0; message.publicKey = object.publicKey ?? new Uint8Array(0); + message.intentId = object.intentId ?? 0; return message; }, }; diff --git a/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/query.d.ts b/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/query.d.ts index 81113cbf3..607e3de22 100644 --- a/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/query.d.ts +++ b/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/query.d.ts @@ -62,20 +62,27 @@ export interface QueryKeyRequestByIdRequest { export interface QueryKeyRequestByIdResponse { keyRequest: KeyRequest | undefined; } -export interface QueryKeysRequest { +export interface QueryAllKeysRequest { pagination: PageRequest | undefined; /** Optional */ - spaceId: number; - /** Optional */ - type: WalletType; - /** Optional */ - keyId: number; + deriveWallets: WalletType[]; } export interface QueryKeysResponse { pagination: PageResponse | undefined; - keys: KeyResponse[]; + keys: QueryKeyResponse[]; } -export interface KeyResponse { +export interface QueryKeysBySpaceIdRequest { + pagination: PageRequest | undefined; + spaceId: number; + /** Optional */ + deriveWallets: WalletType[]; +} +export interface QueryKeyByIdRequest { + id: number; + /** Optional */ + deriveWallets: WalletType[]; +} +export interface QueryKeyResponse { key: Key | undefined; wallets: WalletKeyResponse[]; } @@ -826,6 +833,7 @@ export declare const QueryKeyRequestsResponse: { keyType?: import("./key").KeyType; status?: KeyRequestStatus; rejectReason?: string; + intentId?: number; }[]; } & { pagination?: { @@ -843,6 +851,7 @@ export declare const QueryKeyRequestsResponse: { keyType?: import("./key").KeyType; status?: KeyRequestStatus; rejectReason?: string; + intentId?: number; }[] & ({ id?: number; creator?: string; @@ -851,6 +860,7 @@ export declare const QueryKeyRequestsResponse: { keyType?: import("./key").KeyType; status?: KeyRequestStatus; rejectReason?: string; + intentId?: number; } & { id?: number; creator?: string; @@ -859,6 +869,7 @@ export declare const QueryKeyRequestsResponse: { keyType?: import("./key").KeyType; status?: KeyRequestStatus; rejectReason?: string; + intentId?: number; } & { [K_1 in Exclude]: never; })[] & { [K_2 in Exclude]: never; }; } & { [K_3 in Exclude]: never; }>(base?: I): QueryKeyRequestsResponse; fromPartial]: never; })[] & { [K_6 in Exclude]: never; }; } & { [K_7 in Exclude]: never; }>(object: I_1): QueryKeyRequestsResponse; }; @@ -956,6 +973,7 @@ export declare const QueryKeyRequestByIdResponse: { keyType?: import("./key").KeyType; status?: KeyRequestStatus; rejectReason?: string; + intentId?: number; }; } & { keyRequest?: { @@ -966,6 +984,7 @@ export declare const QueryKeyRequestByIdResponse: { keyType?: import("./key").KeyType; status?: KeyRequestStatus; rejectReason?: string; + intentId?: number; } & { id?: number; creator?: string; @@ -974,6 +993,7 @@ export declare const QueryKeyRequestByIdResponse: { keyType?: import("./key").KeyType; status?: KeyRequestStatus; rejectReason?: string; + intentId?: number; } & { [K in Exclude]: never; }; } & { [K_1 in Exclude]: never; }>(base?: I): QueryKeyRequestByIdResponse; fromPartial]: never; }; } & { [K_3 in Exclude]: never; }>(object: I_1): QueryKeyRequestByIdResponse; }; -export declare const QueryKeysRequest: { - encode(message: QueryKeysRequest, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): QueryKeysRequest; - fromJSON(object: any): QueryKeysRequest; - toJSON(message: QueryKeysRequest): unknown; +export declare const QueryAllKeysRequest: { + encode(message: QueryAllKeysRequest, writer?: _m0.Writer): _m0.Writer; + decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllKeysRequest; + fromJSON(object: any): QueryAllKeysRequest; + toJSON(message: QueryAllKeysRequest): unknown; create]: never; }; - spaceId?: number; - type?: WalletType; - keyId?: number; - } & { [K_1 in Exclude]: never; }>(base?: I): QueryKeysRequest; + deriveWallets?: WalletType[] & WalletType[] & { [K_1 in Exclude]: never; }; + } & { [K_2 in Exclude]: never; }>(base?: I): QueryAllKeysRequest; fromPartial]: never; }; - spaceId?: number; - type?: WalletType; - keyId?: number; - } & { [K_3 in Exclude]: never; }>(object: I_1): QueryKeysRequest; + } & { [K_3 in Exclude]: never; }; + deriveWallets?: WalletType[] & WalletType[] & { [K_4 in Exclude]: never; }; + } & { [K_5 in Exclude]: never; }>(object: I_1): QueryAllKeysRequest; }; export declare const QueryKeysResponse: { encode(message: QueryKeysResponse, writer?: _m0.Writer): _m0.Writer; @@ -1087,6 +1102,7 @@ export declare const QueryKeysResponse: { keychainId?: number; type?: import("./key").KeyType; publicKey?: Uint8Array; + intentId?: number; }; wallets?: { address?: string; @@ -1108,6 +1124,7 @@ export declare const QueryKeysResponse: { keychainId?: number; type?: import("./key").KeyType; publicKey?: Uint8Array; + intentId?: number; }; wallets?: { address?: string; @@ -1120,6 +1137,7 @@ export declare const QueryKeysResponse: { keychainId?: number; type?: import("./key").KeyType; publicKey?: Uint8Array; + intentId?: number; }; wallets?: { address?: string; @@ -1132,12 +1150,14 @@ export declare const QueryKeysResponse: { keychainId?: number; type?: import("./key").KeyType; publicKey?: Uint8Array; + intentId?: number; } & { id?: number; spaceId?: number; keychainId?: number; type?: import("./key").KeyType; publicKey?: Uint8Array; + intentId?: number; } & { [K_1 in Exclude]: never; }; wallets?: { address?: string; @@ -1152,13 +1172,14 @@ export declare const QueryKeysResponse: { address?: string; type?: WalletType; }[]>]: never; }; - } & { [K_4 in Exclude]: never; })[] & { [K_5 in Exclude]: never; })[] & { [K_5 in Exclude]: never; }; wallets?: { address?: string; @@ -1243,13 +1269,14 @@ export declare const QueryKeysResponse: { address?: string; type?: WalletType; }[]>]: never; }; - } & { [K_11 in Exclude]: never; })[] & { [K_12 in Exclude]: never; })[] & { [K_12 in Exclude]: never; }; } & { [K_13 in Exclude]: never; }>(object: I_1): QueryKeysResponse; }; -export declare const KeyResponse: { - encode(message: KeyResponse, writer?: _m0.Writer): _m0.Writer; - decode(input: _m0.Reader | Uint8Array, length?: number): KeyResponse; - fromJSON(object: any): KeyResponse; - toJSON(message: KeyResponse): unknown; +export declare const QueryKeysBySpaceIdRequest: { + encode(message: QueryKeysBySpaceIdRequest, writer?: _m0.Writer): _m0.Writer; + decode(input: _m0.Reader | Uint8Array, length?: number): QueryKeysBySpaceIdRequest; + fromJSON(object: any): QueryKeysBySpaceIdRequest; + toJSON(message: QueryKeysBySpaceIdRequest): unknown; + create]: never; }; + spaceId?: number; + deriveWallets?: WalletType[] & WalletType[] & { [K_1 in Exclude]: never; }; + } & { [K_2 in Exclude]: never; }>(base?: I): QueryKeysBySpaceIdRequest; + fromPartial]: never; }; + spaceId?: number; + deriveWallets?: WalletType[] & WalletType[] & { [K_4 in Exclude]: never; }; + } & { [K_5 in Exclude]: never; }>(object: I_1): QueryKeysBySpaceIdRequest; +}; +export declare const QueryKeyByIdRequest: { + encode(message: QueryKeyByIdRequest, writer?: _m0.Writer): _m0.Writer; + decode(input: _m0.Reader | Uint8Array, length?: number): QueryKeyByIdRequest; + fromJSON(object: any): QueryKeyByIdRequest; + toJSON(message: QueryKeyByIdRequest): unknown; + create]: never; }; + } & { [K_1 in Exclude]: never; }>(base?: I): QueryKeyByIdRequest; + fromPartial]: never; }; + } & { [K_3 in Exclude]: never; }>(object: I_1): QueryKeyByIdRequest; +}; +export declare const QueryKeyResponse: { + encode(message: QueryKeyResponse, writer?: _m0.Writer): _m0.Writer; + decode(input: _m0.Reader | Uint8Array, length?: number): QueryKeyResponse; + fromJSON(object: any): QueryKeyResponse; + toJSON(message: QueryKeyResponse): unknown; create]: never; }; wallets?: { address?: string; @@ -1302,7 +1412,7 @@ export declare const KeyResponse: { address?: string; type?: WalletType; }[]>]: never; }; - } & { [K_3 in Exclude]: never; }>(base?: I): KeyResponse; + } & { [K_3 in Exclude]: never; }>(base?: I): QueryKeyResponse; fromPartial]: never; }; wallets?: { address?: string; @@ -1342,7 +1455,7 @@ export declare const KeyResponse: { address?: string; type?: WalletType; }[]>]: never; }; - } & { [K_7 in Exclude]: never; }>(object: I_1): KeyResponse; + } & { [K_7 in Exclude]: never; }>(object: I_1): QueryKeyResponse; }; export declare const WalletKeyResponse: { encode(message: WalletKeyResponse, writer?: _m0.Writer): _m0.Writer; @@ -2171,7 +2284,11 @@ export interface Query { /** Queries a single KeyRequest by its id. */ KeyRequestById(request: QueryKeyRequestByIdRequest): Promise; /** Queries a list of Keys items. */ - Keys(request: QueryKeysRequest): Promise; + AllKeys(request: QueryAllKeysRequest): Promise; + /** Queries a list of Keys items by their Space ID. */ + KeysBySpaceId(request: QueryKeysBySpaceIdRequest): Promise; + /** Queries a Key by its ID. */ + KeyById(request: QueryKeyByIdRequest): Promise; /** Queries a list of SignatureRequests items. */ SignatureRequests(request: QuerySignatureRequestsRequest): Promise; /** Queries a single SignatureRequest by its id. */ @@ -2196,7 +2313,9 @@ export declare class QueryClientImpl implements Query { KeychainById(request: QueryKeychainByIdRequest): Promise; KeyRequests(request: QueryKeyRequestsRequest): Promise; KeyRequestById(request: QueryKeyRequestByIdRequest): Promise; - Keys(request: QueryKeysRequest): Promise; + AllKeys(request: QueryAllKeysRequest): Promise; + KeysBySpaceId(request: QueryKeysBySpaceIdRequest): Promise; + KeyById(request: QueryKeyByIdRequest): Promise; SignatureRequests(request: QuerySignatureRequestsRequest): Promise; SignatureRequestById(request: QuerySignatureRequestByIdRequest): Promise; SignTransactionRequests(request: QuerySignTransactionRequestsRequest): Promise; diff --git a/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/query.js b/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/query.js index 1ce4443d6..b10f6bffa 100644 --- a/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/query.js +++ b/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/query.js @@ -874,29 +874,25 @@ export const QueryKeyRequestByIdResponse = { return message; }, }; -function createBaseQueryKeysRequest() { - return { pagination: undefined, spaceId: 0, type: 0, keyId: 0 }; +function createBaseQueryAllKeysRequest() { + return { pagination: undefined, deriveWallets: [] }; } -export const QueryKeysRequest = { +export const QueryAllKeysRequest = { encode(message, writer = _m0.Writer.create()) { if (message.pagination !== undefined) { PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); } - if (message.spaceId !== 0) { - writer.uint32(16).uint64(message.spaceId); - } - if (message.type !== 0) { - writer.uint32(24).int32(message.type); - } - if (message.keyId !== 0) { - writer.uint32(32).uint64(message.keyId); + writer.uint32(18).fork(); + for (const v of message.deriveWallets) { + writer.int32(v); } + writer.ldelim(); return writer; }, decode(input, length) { const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryKeysRequest(); + const message = createBaseQueryAllKeysRequest(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { @@ -907,23 +903,18 @@ export const QueryKeysRequest = { message.pagination = PageRequest.decode(reader, reader.uint32()); continue; case 2: - if (tag !== 16) { - break; - } - message.spaceId = longToNumber(reader.uint64()); - continue; - case 3: - if (tag !== 24) { - break; + if (tag === 16) { + message.deriveWallets.push(reader.int32()); + continue; } - message.type = reader.int32(); - continue; - case 4: - if (tag !== 32) { - break; + if (tag === 18) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.deriveWallets.push(reader.int32()); + } + continue; } - message.keyId = longToNumber(reader.uint64()); - continue; + break; } if ((tag & 7) === 4 || tag === 0) { break; @@ -935,9 +926,9 @@ export const QueryKeysRequest = { fromJSON(object) { return { pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined, - spaceId: isSet(object.spaceId) ? Number(object.spaceId) : 0, - type: isSet(object.type) ? walletTypeFromJSON(object.type) : 0, - keyId: isSet(object.keyId) ? Number(object.keyId) : 0, + deriveWallets: Array.isArray(object?.deriveWallets) + ? object.deriveWallets.map((e) => walletTypeFromJSON(e)) + : [], }; }, toJSON(message) { @@ -945,28 +936,20 @@ export const QueryKeysRequest = { if (message.pagination !== undefined) { obj.pagination = PageRequest.toJSON(message.pagination); } - if (message.spaceId !== 0) { - obj.spaceId = Math.round(message.spaceId); - } - if (message.type !== 0) { - obj.type = walletTypeToJSON(message.type); - } - if (message.keyId !== 0) { - obj.keyId = Math.round(message.keyId); + if (message.deriveWallets?.length) { + obj.deriveWallets = message.deriveWallets.map((e) => walletTypeToJSON(e)); } return obj; }, create(base) { - return QueryKeysRequest.fromPartial(base ?? {}); + return QueryAllKeysRequest.fromPartial(base ?? {}); }, fromPartial(object) { - const message = createBaseQueryKeysRequest(); + const message = createBaseQueryAllKeysRequest(); message.pagination = (object.pagination !== undefined && object.pagination !== null) ? PageRequest.fromPartial(object.pagination) : undefined; - message.spaceId = object.spaceId ?? 0; - message.type = object.type ?? 0; - message.keyId = object.keyId ?? 0; + message.deriveWallets = object.deriveWallets?.map((e) => e) || []; return message; }, }; @@ -979,7 +962,7 @@ export const QueryKeysResponse = { PageResponse.encode(message.pagination, writer.uint32(10).fork()).ldelim(); } for (const v of message.keys) { - KeyResponse.encode(v, writer.uint32(18).fork()).ldelim(); + QueryKeyResponse.encode(v, writer.uint32(18).fork()).ldelim(); } return writer; }, @@ -1000,7 +983,7 @@ export const QueryKeysResponse = { if (tag !== 18) { break; } - message.keys.push(KeyResponse.decode(reader, reader.uint32())); + message.keys.push(QueryKeyResponse.decode(reader, reader.uint32())); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -1013,7 +996,7 @@ export const QueryKeysResponse = { fromJSON(object) { return { pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined, - keys: Array.isArray(object?.keys) ? object.keys.map((e) => KeyResponse.fromJSON(e)) : [], + keys: Array.isArray(object?.keys) ? object.keys.map((e) => QueryKeyResponse.fromJSON(e)) : [], }; }, toJSON(message) { @@ -1022,7 +1005,7 @@ export const QueryKeysResponse = { obj.pagination = PageResponse.toJSON(message.pagination); } if (message.keys?.length) { - obj.keys = message.keys.map((e) => KeyResponse.toJSON(e)); + obj.keys = message.keys.map((e) => QueryKeyResponse.toJSON(e)); } return obj; }, @@ -1034,14 +1017,184 @@ export const QueryKeysResponse = { message.pagination = (object.pagination !== undefined && object.pagination !== null) ? PageResponse.fromPartial(object.pagination) : undefined; - message.keys = object.keys?.map((e) => KeyResponse.fromPartial(e)) || []; + message.keys = object.keys?.map((e) => QueryKeyResponse.fromPartial(e)) || []; + return message; + }, +}; +function createBaseQueryKeysBySpaceIdRequest() { + return { pagination: undefined, spaceId: 0, deriveWallets: [] }; +} +export const QueryKeysBySpaceIdRequest = { + encode(message, writer = _m0.Writer.create()) { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + if (message.spaceId !== 0) { + writer.uint32(16).uint64(message.spaceId); + } + writer.uint32(26).fork(); + for (const v of message.deriveWallets) { + writer.int32(v); + } + writer.ldelim(); + return writer; + }, + decode(input, length) { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryKeysBySpaceIdRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + message.pagination = PageRequest.decode(reader, reader.uint32()); + continue; + case 2: + if (tag !== 16) { + break; + } + message.spaceId = longToNumber(reader.uint64()); + continue; + case 3: + if (tag === 24) { + message.deriveWallets.push(reader.int32()); + continue; + } + if (tag === 26) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.deriveWallets.push(reader.int32()); + } + continue; + } + break; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + fromJSON(object) { + return { + pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined, + spaceId: isSet(object.spaceId) ? Number(object.spaceId) : 0, + deriveWallets: Array.isArray(object?.deriveWallets) + ? object.deriveWallets.map((e) => walletTypeFromJSON(e)) + : [], + }; + }, + toJSON(message) { + const obj = {}; + if (message.pagination !== undefined) { + obj.pagination = PageRequest.toJSON(message.pagination); + } + if (message.spaceId !== 0) { + obj.spaceId = Math.round(message.spaceId); + } + if (message.deriveWallets?.length) { + obj.deriveWallets = message.deriveWallets.map((e) => walletTypeToJSON(e)); + } + return obj; + }, + create(base) { + return QueryKeysBySpaceIdRequest.fromPartial(base ?? {}); + }, + fromPartial(object) { + const message = createBaseQueryKeysBySpaceIdRequest(); + message.pagination = (object.pagination !== undefined && object.pagination !== null) + ? PageRequest.fromPartial(object.pagination) + : undefined; + message.spaceId = object.spaceId ?? 0; + message.deriveWallets = object.deriveWallets?.map((e) => e) || []; return message; }, }; -function createBaseKeyResponse() { +function createBaseQueryKeyByIdRequest() { + return { id: 0, deriveWallets: [] }; +} +export const QueryKeyByIdRequest = { + encode(message, writer = _m0.Writer.create()) { + if (message.id !== 0) { + writer.uint32(8).uint64(message.id); + } + writer.uint32(18).fork(); + for (const v of message.deriveWallets) { + writer.int32(v); + } + writer.ldelim(); + return writer; + }, + decode(input, length) { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryKeyByIdRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 8) { + break; + } + message.id = longToNumber(reader.uint64()); + continue; + case 2: + if (tag === 16) { + message.deriveWallets.push(reader.int32()); + continue; + } + if (tag === 18) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.deriveWallets.push(reader.int32()); + } + continue; + } + break; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + fromJSON(object) { + return { + id: isSet(object.id) ? Number(object.id) : 0, + deriveWallets: Array.isArray(object?.deriveWallets) + ? object.deriveWallets.map((e) => walletTypeFromJSON(e)) + : [], + }; + }, + toJSON(message) { + const obj = {}; + if (message.id !== 0) { + obj.id = Math.round(message.id); + } + if (message.deriveWallets?.length) { + obj.deriveWallets = message.deriveWallets.map((e) => walletTypeToJSON(e)); + } + return obj; + }, + create(base) { + return QueryKeyByIdRequest.fromPartial(base ?? {}); + }, + fromPartial(object) { + const message = createBaseQueryKeyByIdRequest(); + message.id = object.id ?? 0; + message.deriveWallets = object.deriveWallets?.map((e) => e) || []; + return message; + }, +}; +function createBaseQueryKeyResponse() { return { key: undefined, wallets: [] }; } -export const KeyResponse = { +export const QueryKeyResponse = { encode(message, writer = _m0.Writer.create()) { if (message.key !== undefined) { Key.encode(message.key, writer.uint32(10).fork()).ldelim(); @@ -1054,7 +1207,7 @@ export const KeyResponse = { decode(input, length) { const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseKeyResponse(); + const message = createBaseQueryKeyResponse(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { @@ -1095,10 +1248,10 @@ export const KeyResponse = { return obj; }, create(base) { - return KeyResponse.fromPartial(base ?? {}); + return QueryKeyResponse.fromPartial(base ?? {}); }, fromPartial(object) { - const message = createBaseKeyResponse(); + const message = createBaseQueryKeyResponse(); message.key = (object.key !== undefined && object.key !== null) ? Key.fromPartial(object.key) : undefined; message.wallets = object.wallets?.map((e) => WalletKeyResponse.fromPartial(e)) || []; return message; @@ -1784,7 +1937,9 @@ export class QueryClientImpl { this.KeychainById = this.KeychainById.bind(this); this.KeyRequests = this.KeyRequests.bind(this); this.KeyRequestById = this.KeyRequestById.bind(this); - this.Keys = this.Keys.bind(this); + this.AllKeys = this.AllKeys.bind(this); + this.KeysBySpaceId = this.KeysBySpaceId.bind(this); + this.KeyById = this.KeyById.bind(this); this.SignatureRequests = this.SignatureRequests.bind(this); this.SignatureRequestById = this.SignatureRequestById.bind(this); this.SignTransactionRequests = this.SignTransactionRequests.bind(this); @@ -1830,11 +1985,21 @@ export class QueryClientImpl { const promise = this.rpc.request(this.service, "KeyRequestById", data); return promise.then((data) => QueryKeyRequestByIdResponse.decode(_m0.Reader.create(data))); } - Keys(request) { - const data = QueryKeysRequest.encode(request).finish(); - const promise = this.rpc.request(this.service, "Keys", data); + AllKeys(request) { + const data = QueryAllKeysRequest.encode(request).finish(); + const promise = this.rpc.request(this.service, "AllKeys", data); + return promise.then((data) => QueryKeysResponse.decode(_m0.Reader.create(data))); + } + KeysBySpaceId(request) { + const data = QueryKeysBySpaceIdRequest.encode(request).finish(); + const promise = this.rpc.request(this.service, "KeysBySpaceId", data); return promise.then((data) => QueryKeysResponse.decode(_m0.Reader.create(data))); } + KeyById(request) { + const data = QueryKeyByIdRequest.encode(request).finish(); + const promise = this.rpc.request(this.service, "KeyById", data); + return promise.then((data) => QueryKeyResponse.decode(_m0.Reader.create(data))); + } SignatureRequests(request) { const data = QuerySignatureRequestsRequest.encode(request).finish(); const promise = this.rpc.request(this.service, "SignatureRequests", data); diff --git a/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/tx.d.ts b/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/tx.d.ts index 819cb892d..6aff256b5 100644 --- a/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/tx.d.ts +++ b/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/tx.d.ts @@ -88,6 +88,7 @@ export interface MsgNewKeyRequest { keychainId: number; keyType: KeyType; btl: number; + intentId: number; } export interface MsgNewKeyRequestResponse { id: number; @@ -104,6 +105,14 @@ export interface MsgUpdateKeyRequest { } export interface MsgUpdateKeyRequestResponse { } +export interface MsgUpdateKey { + creator: string; + keyId: number; + intentId: number; + btl: number; +} +export interface MsgUpdateKeyResponse { +} export interface MsgNewSignatureRequest { creator: string; keyId: number; @@ -466,12 +475,14 @@ export declare const MsgNewKeyRequest: { keychainId?: number; keyType?: KeyType; btl?: number; + intentId?: number; } & { creator?: string; spaceId?: number; keychainId?: number; keyType?: KeyType; btl?: number; + intentId?: number; } & { [K in Exclude]: never; }>(base?: I): MsgNewKeyRequest; fromPartial]: never; }>(object: I_1): MsgNewKeyRequest; }; export declare const MsgNewKeyRequestResponse: { @@ -571,6 +584,42 @@ export declare const MsgUpdateKeyRequestResponse: { create]: never; }>(base?: I): MsgUpdateKeyRequestResponse; fromPartial]: never; }>(_: I_1): MsgUpdateKeyRequestResponse; }; +export declare const MsgUpdateKey: { + encode(message: MsgUpdateKey, writer?: _m0.Writer): _m0.Writer; + decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateKey; + fromJSON(object: any): MsgUpdateKey; + toJSON(message: MsgUpdateKey): unknown; + create]: never; }>(base?: I): MsgUpdateKey; + fromPartial]: never; }>(object: I_1): MsgUpdateKey; +}; +export declare const MsgUpdateKeyResponse: { + encode(_: MsgUpdateKeyResponse, writer?: _m0.Writer): _m0.Writer; + decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateKeyResponse; + fromJSON(_: any): MsgUpdateKeyResponse; + toJSON(_: MsgUpdateKeyResponse): unknown; + create]: never; }>(base?: I): MsgUpdateKeyResponse; + fromPartial]: never; }>(_: I_1): MsgUpdateKeyResponse; +}; export declare const MsgNewSignatureRequest: { encode(message: MsgNewSignatureRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgNewSignatureRequest; @@ -810,6 +859,8 @@ export interface Msg { * called by a keychain party. */ UpdateKeyRequest(request: MsgUpdateKeyRequest): Promise; + /** Update informations of a Key. */ + UpdateKey(request: MsgUpdateKey): Promise; /** Request a new signature */ NewSignatureRequest(request: MsgNewSignatureRequest): Promise; /** Fulfill a signature request */ @@ -840,6 +891,7 @@ export declare class MsgClientImpl implements Msg { UpdateKeychain(request: MsgUpdateKeychain): Promise; NewKeyRequest(request: MsgNewKeyRequest): Promise; UpdateKeyRequest(request: MsgUpdateKeyRequest): Promise; + UpdateKey(request: MsgUpdateKey): Promise; NewSignatureRequest(request: MsgNewSignatureRequest): Promise; FulfilSignatureRequest(request: MsgFulfilSignatureRequest): Promise; NewSignTransactionRequest(request: MsgNewSignTransactionRequest): Promise; diff --git a/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/tx.js b/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/tx.js index d5d888346..4219bc78d 100644 --- a/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/tx.js +++ b/ts-client/lib/warden.warden.v1beta2/types/warden/warden/v1beta2/tx.js @@ -1062,7 +1062,7 @@ export const MsgUpdateKeychainResponse = { }, }; function createBaseMsgNewKeyRequest() { - return { creator: "", spaceId: 0, keychainId: 0, keyType: 0, btl: 0 }; + return { creator: "", spaceId: 0, keychainId: 0, keyType: 0, btl: 0, intentId: 0 }; } export const MsgNewKeyRequest = { encode(message, writer = _m0.Writer.create()) { @@ -1081,6 +1081,9 @@ export const MsgNewKeyRequest = { if (message.btl !== 0) { writer.uint32(40).uint64(message.btl); } + if (message.intentId !== 0) { + writer.uint32(48).uint64(message.intentId); + } return writer; }, decode(input, length) { @@ -1120,6 +1123,12 @@ export const MsgNewKeyRequest = { } message.btl = longToNumber(reader.uint64()); continue; + case 6: + if (tag !== 48) { + break; + } + message.intentId = longToNumber(reader.uint64()); + continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -1135,6 +1144,7 @@ export const MsgNewKeyRequest = { keychainId: isSet(object.keychainId) ? Number(object.keychainId) : 0, keyType: isSet(object.keyType) ? keyTypeFromJSON(object.keyType) : 0, btl: isSet(object.btl) ? Number(object.btl) : 0, + intentId: isSet(object.intentId) ? Number(object.intentId) : 0, }; }, toJSON(message) { @@ -1154,6 +1164,9 @@ export const MsgNewKeyRequest = { if (message.btl !== 0) { obj.btl = Math.round(message.btl); } + if (message.intentId !== 0) { + obj.intentId = Math.round(message.intentId); + } return obj; }, create(base) { @@ -1166,6 +1179,7 @@ export const MsgNewKeyRequest = { message.keychainId = object.keychainId ?? 0; message.keyType = object.keyType ?? 0; message.btl = object.btl ?? 0; + message.intentId = object.intentId ?? 0; return message; }, }; @@ -1414,6 +1428,137 @@ export const MsgUpdateKeyRequestResponse = { return message; }, }; +function createBaseMsgUpdateKey() { + return { creator: "", keyId: 0, intentId: 0, btl: 0 }; +} +export const MsgUpdateKey = { + encode(message, writer = _m0.Writer.create()) { + if (message.creator !== "") { + writer.uint32(10).string(message.creator); + } + if (message.keyId !== 0) { + writer.uint32(16).uint64(message.keyId); + } + if (message.intentId !== 0) { + writer.uint32(24).uint64(message.intentId); + } + if (message.btl !== 0) { + writer.uint32(32).uint64(message.btl); + } + return writer; + }, + decode(input, length) { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateKey(); + 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 !== 16) { + break; + } + message.keyId = longToNumber(reader.uint64()); + continue; + case 3: + if (tag !== 24) { + break; + } + message.intentId = longToNumber(reader.uint64()); + continue; + case 4: + if (tag !== 32) { + break; + } + message.btl = longToNumber(reader.uint64()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + fromJSON(object) { + return { + creator: isSet(object.creator) ? String(object.creator) : "", + keyId: isSet(object.keyId) ? Number(object.keyId) : 0, + intentId: isSet(object.intentId) ? Number(object.intentId) : 0, + btl: isSet(object.btl) ? Number(object.btl) : 0, + }; + }, + toJSON(message) { + const obj = {}; + if (message.creator !== "") { + obj.creator = message.creator; + } + if (message.keyId !== 0) { + obj.keyId = Math.round(message.keyId); + } + if (message.intentId !== 0) { + obj.intentId = Math.round(message.intentId); + } + if (message.btl !== 0) { + obj.btl = Math.round(message.btl); + } + return obj; + }, + create(base) { + return MsgUpdateKey.fromPartial(base ?? {}); + }, + fromPartial(object) { + const message = createBaseMsgUpdateKey(); + message.creator = object.creator ?? ""; + message.keyId = object.keyId ?? 0; + message.intentId = object.intentId ?? 0; + message.btl = object.btl ?? 0; + return message; + }, +}; +function createBaseMsgUpdateKeyResponse() { + return {}; +} +export const MsgUpdateKeyResponse = { + encode(_, writer = _m0.Writer.create()) { + return writer; + }, + decode(input, length) { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMsgUpdateKeyResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + fromJSON(_) { + return {}; + }, + toJSON(_) { + const obj = {}; + return obj; + }, + create(base) { + return MsgUpdateKeyResponse.fromPartial(base ?? {}); + }, + fromPartial(_) { + const message = createBaseMsgUpdateKeyResponse(); + return message; + }, +}; function createBaseMsgNewSignatureRequest() { return { creator: "", keyId: 0, dataForSigning: new Uint8Array(0), btl: 0 }; } @@ -2012,6 +2157,7 @@ export class MsgClientImpl { this.UpdateKeychain = this.UpdateKeychain.bind(this); this.NewKeyRequest = this.NewKeyRequest.bind(this); this.UpdateKeyRequest = this.UpdateKeyRequest.bind(this); + this.UpdateKey = this.UpdateKey.bind(this); this.NewSignatureRequest = this.NewSignatureRequest.bind(this); this.FulfilSignatureRequest = this.FulfilSignatureRequest.bind(this); this.NewSignTransactionRequest = this.NewSignTransactionRequest.bind(this); @@ -2066,6 +2212,11 @@ export class MsgClientImpl { const promise = this.rpc.request(this.service, "UpdateKeyRequest", data); return promise.then((data) => MsgUpdateKeyRequestResponse.decode(_m0.Reader.create(data))); } + UpdateKey(request) { + const data = MsgUpdateKey.encode(request).finish(); + const promise = this.rpc.request(this.service, "UpdateKey", data); + return promise.then((data) => MsgActionCreated.decode(_m0.Reader.create(data))); + } NewSignatureRequest(request) { const data = MsgNewSignatureRequest.encode(request).finish(); const promise = this.rpc.request(this.service, "NewSignatureRequest", data); diff --git a/ts-client/warden.intent/module.ts b/ts-client/warden.intent/module.ts index 1c33be3bc..428a10e2e 100755 --- a/ts-client/warden.intent/module.ts +++ b/ts-client/warden.intent/module.ts @@ -6,295 +6,295 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgRevokeActionResponse } from "./types/warden/intent/tx"; -import { QueryParamsRequest } from "./types/warden/intent/query"; -import { QueryActionsResponse } from "./types/warden/intent/query"; -import { QueryIntentsRequest } from "./types/warden/intent/query"; -import { Action } from "./types/warden/intent/action"; -import { QueryParamsResponse } from "./types/warden/intent/query"; import { MsgUpdateParams } from "./types/warden/intent/tx"; -import { MsgUpdateParamsResponse } from "./types/warden/intent/tx"; +import { MsgNewIntentResponse } from "./types/warden/intent/tx"; +import { Action } from "./types/warden/intent/action"; import { MsgRevokeAction } from "./types/warden/intent/tx"; -import { QueryActionsRequest } from "./types/warden/intent/query"; -import { QueryActionByIdRequest } from "./types/warden/intent/query"; -import { QueryActionByIdResponse } from "./types/warden/intent/query"; -import { Approver } from "./types/warden/intent/action"; -import { MsgActionCreated } from "./types/warden/intent/action"; -import { QueryActionsByAddressRequest } from "./types/warden/intent/query"; -import { Params } from "./types/warden/intent/params"; -import { GenesisState } from "./types/warden/intent/genesis"; +import { QueryParamsRequest } from "./types/warden/intent/query"; import { QueryIntentsResponse } from "./types/warden/intent/query"; -import { QueryIntentByIdRequest } from "./types/warden/intent/query"; import { QueryActionsByAddressResponse } from "./types/warden/intent/query"; import { MsgApproveActionResponse } from "./types/warden/intent/tx"; -import { MsgNewIntentResponse } from "./types/warden/intent/tx"; -import { QueryIntentByIdResponse } from "./types/warden/intent/query"; -import { MsgApproveAction } from "./types/warden/intent/tx"; import { MsgNewIntent } from "./types/warden/intent/tx"; +import { MsgActionCreated } from "./types/warden/intent/action"; +import { Approver } from "./types/warden/intent/action"; +import { GenesisState } from "./types/warden/intent/genesis"; +import { QueryActionByIdRequest } from "./types/warden/intent/query"; +import { MsgApproveAction } from "./types/warden/intent/tx"; +import { MsgRevokeActionResponse } from "./types/warden/intent/tx"; import { Intent } from "./types/warden/intent/intent"; +import { MsgUpdateParamsResponse } from "./types/warden/intent/tx"; +import { QueryParamsResponse } from "./types/warden/intent/query"; +import { QueryActionsResponse } from "./types/warden/intent/query"; +import { Params } from "./types/warden/intent/params"; +import { QueryActionsByAddressRequest } from "./types/warden/intent/query"; +import { QueryActionByIdResponse } from "./types/warden/intent/query"; +import { QueryActionsRequest } from "./types/warden/intent/query"; +import { QueryIntentsRequest } from "./types/warden/intent/query"; +import { QueryIntentByIdRequest } from "./types/warden/intent/query"; +import { QueryIntentByIdResponse } from "./types/warden/intent/query"; -export { MsgRevokeActionResponse, QueryParamsRequest, QueryActionsResponse, QueryIntentsRequest, Action, QueryParamsResponse, MsgUpdateParams, MsgUpdateParamsResponse, MsgRevokeAction, QueryActionsRequest, QueryActionByIdRequest, QueryActionByIdResponse, Approver, MsgActionCreated, QueryActionsByAddressRequest, Params, GenesisState, QueryIntentsResponse, QueryIntentByIdRequest, QueryActionsByAddressResponse, MsgApproveActionResponse, MsgNewIntentResponse, QueryIntentByIdResponse, MsgApproveAction, MsgNewIntent, Intent }; +export { MsgUpdateParams, MsgNewIntentResponse, Action, MsgRevokeAction, QueryParamsRequest, QueryIntentsResponse, QueryActionsByAddressResponse, MsgApproveActionResponse, MsgNewIntent, MsgActionCreated, Approver, GenesisState, QueryActionByIdRequest, MsgApproveAction, MsgRevokeActionResponse, Intent, MsgUpdateParamsResponse, QueryParamsResponse, QueryActionsResponse, Params, QueryActionsByAddressRequest, QueryActionByIdResponse, QueryActionsRequest, QueryIntentsRequest, QueryIntentByIdRequest, QueryIntentByIdResponse }; -type sendMsgRevokeActionResponseParams = { - value: MsgRevokeActionResponse, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendMsgNewIntentResponseParams = { + value: MsgNewIntentResponse, fee?: StdFee, memo?: string }; -type sendQueryActionsResponseParams = { - value: QueryActionsResponse, +type sendActionParams = { + value: Action, fee?: StdFee, memo?: string }; -type sendQueryIntentsRequestParams = { - value: QueryIntentsRequest, +type sendMsgRevokeActionParams = { + value: MsgRevokeAction, fee?: StdFee, memo?: string }; -type sendActionParams = { - value: Action, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendQueryIntentsResponseParams = { + value: QueryIntentsResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendQueryActionsByAddressResponseParams = { + value: QueryActionsByAddressResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendMsgApproveActionResponseParams = { + value: MsgApproveActionResponse, fee?: StdFee, memo?: string }; -type sendMsgRevokeActionParams = { - value: MsgRevokeAction, +type sendMsgNewIntentParams = { + value: MsgNewIntent, fee?: StdFee, memo?: string }; -type sendQueryActionsRequestParams = { - value: QueryActionsRequest, +type sendMsgActionCreatedParams = { + value: MsgActionCreated, fee?: StdFee, memo?: string }; -type sendQueryActionByIdRequestParams = { - value: QueryActionByIdRequest, +type sendApproverParams = { + value: Approver, fee?: StdFee, memo?: string }; -type sendQueryActionByIdResponseParams = { - value: QueryActionByIdResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendApproverParams = { - value: Approver, +type sendQueryActionByIdRequestParams = { + value: QueryActionByIdRequest, fee?: StdFee, memo?: string }; -type sendMsgActionCreatedParams = { - value: MsgActionCreated, +type sendMsgApproveActionParams = { + value: MsgApproveAction, fee?: StdFee, memo?: string }; -type sendQueryActionsByAddressRequestParams = { - value: QueryActionsByAddressRequest, +type sendMsgRevokeActionResponseParams = { + value: MsgRevokeActionResponse, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendIntentParams = { + value: Intent, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryIntentsResponseParams = { - value: QueryIntentsResponse, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendQueryIntentByIdRequestParams = { - value: QueryIntentByIdRequest, +type sendQueryActionsResponseParams = { + value: QueryActionsResponse, fee?: StdFee, memo?: string }; -type sendQueryActionsByAddressResponseParams = { - value: QueryActionsByAddressResponse, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendMsgApproveActionResponseParams = { - value: MsgApproveActionResponse, +type sendQueryActionsByAddressRequestParams = { + value: QueryActionsByAddressRequest, fee?: StdFee, memo?: string }; -type sendMsgNewIntentResponseParams = { - value: MsgNewIntentResponse, +type sendQueryActionByIdResponseParams = { + value: QueryActionByIdResponse, fee?: StdFee, memo?: string }; -type sendQueryIntentByIdResponseParams = { - value: QueryIntentByIdResponse, +type sendQueryActionsRequestParams = { + value: QueryActionsRequest, fee?: StdFee, memo?: string }; -type sendMsgApproveActionParams = { - value: MsgApproveAction, +type sendQueryIntentsRequestParams = { + value: QueryIntentsRequest, fee?: StdFee, memo?: string }; -type sendMsgNewIntentParams = { - value: MsgNewIntent, +type sendQueryIntentByIdRequestParams = { + value: QueryIntentByIdRequest, fee?: StdFee, memo?: string }; -type sendIntentParams = { - value: Intent, +type sendQueryIntentByIdResponseParams = { + value: QueryIntentByIdResponse, fee?: StdFee, memo?: string }; -type msgRevokeActionResponseParams = { - value: MsgRevokeActionResponse, -}; - -type queryParamsRequestParams = { - value: QueryParamsRequest, -}; - -type queryActionsResponseParams = { - value: QueryActionsResponse, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type queryIntentsRequestParams = { - value: QueryIntentsRequest, +type msgNewIntentResponseParams = { + value: MsgNewIntentResponse, }; type actionParams = { value: Action, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type msgRevokeActionParams = { + value: MsgRevokeAction, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type queryIntentsResponseParams = { + value: QueryIntentsResponse, }; -type msgRevokeActionParams = { - value: MsgRevokeAction, +type queryActionsByAddressResponseParams = { + value: QueryActionsByAddressResponse, }; -type queryActionsRequestParams = { - value: QueryActionsRequest, +type msgApproveActionResponseParams = { + value: MsgApproveActionResponse, }; -type queryActionByIdRequestParams = { - value: QueryActionByIdRequest, +type msgNewIntentParams = { + value: MsgNewIntent, }; -type queryActionByIdResponseParams = { - value: QueryActionByIdResponse, +type msgActionCreatedParams = { + value: MsgActionCreated, }; type approverParams = { value: Approver, }; -type msgActionCreatedParams = { - value: MsgActionCreated, +type genesisStateParams = { + value: GenesisState, }; -type queryActionsByAddressRequestParams = { - value: QueryActionsByAddressRequest, +type queryActionByIdRequestParams = { + value: QueryActionByIdRequest, }; -type paramsParams = { - value: Params, +type msgApproveActionParams = { + value: MsgApproveAction, }; -type genesisStateParams = { - value: GenesisState, +type msgRevokeActionResponseParams = { + value: MsgRevokeActionResponse, }; -type queryIntentsResponseParams = { - value: QueryIntentsResponse, +type intentParams = { + value: Intent, }; -type queryIntentByIdRequestParams = { - value: QueryIntentByIdRequest, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type queryActionsByAddressResponseParams = { - value: QueryActionsByAddressResponse, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type msgApproveActionResponseParams = { - value: MsgApproveActionResponse, +type queryActionsResponseParams = { + value: QueryActionsResponse, }; -type msgNewIntentResponseParams = { - value: MsgNewIntentResponse, +type paramsParams = { + value: Params, }; -type queryIntentByIdResponseParams = { - value: QueryIntentByIdResponse, +type queryActionsByAddressRequestParams = { + value: QueryActionsByAddressRequest, }; -type msgApproveActionParams = { - value: MsgApproveAction, +type queryActionByIdResponseParams = { + value: QueryActionByIdResponse, }; -type msgNewIntentParams = { - value: MsgNewIntent, +type queryActionsRequestParams = { + value: QueryActionsRequest, }; -type intentParams = { - value: Intent, +type queryIntentsRequestParams = { + value: QueryIntentsRequest, +}; + +type queryIntentByIdRequestParams = { + value: QueryIntentByIdRequest, +}; + +type queryIntentByIdResponseParams = { + value: QueryIntentByIdResponse, }; @@ -327,576 +327,576 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgRevokeActionResponse({ value, fee, memo }: sendMsgRevokeActionResponseParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRevokeActionResponse: 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.msgRevokeActionResponse({ value: MsgRevokeActionResponse.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:sendMsgRevokeActionResponse: 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 sendMsgNewIntentResponse({ value, fee, memo }: sendMsgNewIntentResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewIntentResponse: Unable to 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.msgNewIntentResponse({ value: MsgNewIntentResponse.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:sendMsgNewIntentResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryActionsResponse({ value, fee, memo }: sendQueryActionsResponseParams): Promise { + async sendAction({ value, fee, memo }: sendActionParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryActionsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendAction: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryActionsResponse({ value: QueryActionsResponse.fromPartial(value) }) + let msg = this.action({ value: Action.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryActionsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendAction: Could not broadcast Tx: '+ e.message) } }, - async sendQueryIntentsRequest({ value, fee, memo }: sendQueryIntentsRequestParams): Promise { + async sendMsgRevokeAction({ value, fee, memo }: sendMsgRevokeActionParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryIntentsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRevokeAction: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryIntentsRequest({ value: QueryIntentsRequest.fromPartial(value) }) + let msg = this.msgRevokeAction({ value: MsgRevokeAction.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryIntentsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRevokeAction: Could not broadcast Tx: '+ e.message) } }, - async sendAction({ value, fee, memo }: sendActionParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendAction: 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.action({ value: Action.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:sendAction: 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 sendQueryIntentsResponse({ value, fee, memo }: sendQueryIntentsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryIntentsResponse: Unable to 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.queryIntentsResponse({ value: QueryIntentsResponse.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:sendQueryIntentsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendQueryActionsByAddressResponse({ value, fee, memo }: sendQueryActionsByAddressResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryActionsByAddressResponse: Unable to 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.queryActionsByAddressResponse({ value: QueryActionsByAddressResponse.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:sendQueryActionsByAddressResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendMsgApproveActionResponse({ value, fee, memo }: sendMsgApproveActionResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgApproveActionResponse: Unable to 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.msgApproveActionResponse({ value: MsgApproveActionResponse.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:sendMsgApproveActionResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRevokeAction({ value, fee, memo }: sendMsgRevokeActionParams): Promise { + async sendMsgNewIntent({ value, fee, memo }: sendMsgNewIntentParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRevokeAction: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewIntent: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRevokeAction({ value: MsgRevokeAction.fromPartial(value) }) + let msg = this.msgNewIntent({ value: MsgNewIntent.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRevokeAction: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewIntent: Could not broadcast Tx: '+ e.message) } }, - async sendQueryActionsRequest({ value, fee, memo }: sendQueryActionsRequestParams): Promise { + async sendMsgActionCreated({ value, fee, memo }: sendMsgActionCreatedParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryActionsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgActionCreated: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryActionsRequest({ value: QueryActionsRequest.fromPartial(value) }) + let msg = this.msgActionCreated({ value: MsgActionCreated.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryActionsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgActionCreated: Could not broadcast Tx: '+ e.message) } }, - async sendQueryActionByIdRequest({ value, fee, memo }: sendQueryActionByIdRequestParams): Promise { + async sendApprover({ value, fee, memo }: sendApproverParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryActionByIdRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendApprover: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryActionByIdRequest({ value: QueryActionByIdRequest.fromPartial(value) }) + let msg = this.approver({ value: Approver.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryActionByIdRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendApprover: Could not broadcast Tx: '+ e.message) } }, - async sendQueryActionByIdResponse({ value, fee, memo }: sendQueryActionByIdResponseParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryActionByIdResponse: 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.queryActionByIdResponse({ value: QueryActionByIdResponse.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:sendQueryActionByIdResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendGenesisState: Could not broadcast Tx: '+ e.message) } }, - async sendApprover({ value, fee, memo }: sendApproverParams): Promise { + async sendQueryActionByIdRequest({ value, fee, memo }: sendQueryActionByIdRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendApprover: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryActionByIdRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.approver({ value: Approver.fromPartial(value) }) + let msg = this.queryActionByIdRequest({ value: QueryActionByIdRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendApprover: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryActionByIdRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgActionCreated({ value, fee, memo }: sendMsgActionCreatedParams): Promise { + async sendMsgApproveAction({ value, fee, memo }: sendMsgApproveActionParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgActionCreated: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgApproveAction: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgActionCreated({ value: MsgActionCreated.fromPartial(value) }) + let msg = this.msgApproveAction({ value: MsgApproveAction.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgActionCreated: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgApproveAction: Could not broadcast Tx: '+ e.message) } }, - async sendQueryActionsByAddressRequest({ value, fee, memo }: sendQueryActionsByAddressRequestParams): Promise { + async sendMsgRevokeActionResponse({ value, fee, memo }: sendMsgRevokeActionResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryActionsByAddressRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRevokeActionResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryActionsByAddressRequest({ value: QueryActionsByAddressRequest.fromPartial(value) }) + let msg = this.msgRevokeActionResponse({ value: MsgRevokeActionResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryActionsByAddressRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRevokeActionResponse: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendIntent({ value, fee, memo }: sendIntentParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendIntent: Unable to 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.intent({ value: Intent.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:sendIntent: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: 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.genesisState({ value: GenesisState.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:sendGenesisState: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryIntentsResponse({ value, fee, memo }: sendQueryIntentsResponseParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryIntentsResponse: 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.queryIntentsResponse({ value: QueryIntentsResponse.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:sendQueryIntentsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryIntentByIdRequest({ value, fee, memo }: sendQueryIntentByIdRequestParams): Promise { + async sendQueryActionsResponse({ value, fee, memo }: sendQueryActionsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryIntentByIdRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryActionsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryIntentByIdRequest({ value: QueryIntentByIdRequest.fromPartial(value) }) + let msg = this.queryActionsResponse({ value: QueryActionsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryIntentByIdRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryActionsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryActionsByAddressResponse({ value, fee, memo }: sendQueryActionsByAddressResponseParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryActionsByAddressResponse: 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.queryActionsByAddressResponse({ value: QueryActionsByAddressResponse.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:sendQueryActionsByAddressResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendMsgApproveActionResponse({ value, fee, memo }: sendMsgApproveActionResponseParams): Promise { + async sendQueryActionsByAddressRequest({ value, fee, memo }: sendQueryActionsByAddressRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgApproveActionResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryActionsByAddressRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgApproveActionResponse({ value: MsgApproveActionResponse.fromPartial(value) }) + let msg = this.queryActionsByAddressRequest({ value: QueryActionsByAddressRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgApproveActionResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryActionsByAddressRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewIntentResponse({ value, fee, memo }: sendMsgNewIntentResponseParams): Promise { + async sendQueryActionByIdResponse({ value, fee, memo }: sendQueryActionByIdResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewIntentResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryActionByIdResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewIntentResponse({ value: MsgNewIntentResponse.fromPartial(value) }) + let msg = this.queryActionByIdResponse({ value: QueryActionByIdResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewIntentResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryActionByIdResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryIntentByIdResponse({ value, fee, memo }: sendQueryIntentByIdResponseParams): Promise { + async sendQueryActionsRequest({ value, fee, memo }: sendQueryActionsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryIntentByIdResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryActionsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryIntentByIdResponse({ value: QueryIntentByIdResponse.fromPartial(value) }) + let msg = this.queryActionsRequest({ value: QueryActionsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryIntentByIdResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryActionsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgApproveAction({ value, fee, memo }: sendMsgApproveActionParams): Promise { + async sendQueryIntentsRequest({ value, fee, memo }: sendQueryIntentsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgApproveAction: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryIntentsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgApproveAction({ value: MsgApproveAction.fromPartial(value) }) + let msg = this.queryIntentsRequest({ value: QueryIntentsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgApproveAction: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryIntentsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewIntent({ value, fee, memo }: sendMsgNewIntentParams): Promise { + async sendQueryIntentByIdRequest({ value, fee, memo }: sendQueryIntentByIdRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewIntent: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryIntentByIdRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewIntent({ value: MsgNewIntent.fromPartial(value) }) + let msg = this.queryIntentByIdRequest({ value: QueryIntentByIdRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewIntent: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryIntentByIdRequest: Could not broadcast Tx: '+ e.message) } }, - async sendIntent({ value, fee, memo }: sendIntentParams): Promise { + async sendQueryIntentByIdResponse({ value, fee, memo }: sendQueryIntentByIdResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendIntent: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryIntentByIdResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.intent({ value: Intent.fromPartial(value) }) + let msg = this.queryIntentByIdResponse({ value: QueryIntentByIdResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendIntent: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryIntentByIdResponse: Could not broadcast Tx: '+ e.message) } }, - msgRevokeActionResponse({ value }: msgRevokeActionResponseParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/warden.intent.MsgRevokeActionResponse", value: MsgRevokeActionResponse.fromPartial( value ) } + return { typeUrl: "/warden.intent.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRevokeActionResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + msgNewIntentResponse({ value }: msgNewIntentResponseParams): EncodeObject { try { - return { typeUrl: "/warden.intent.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/warden.intent.MsgNewIntentResponse", value: MsgNewIntentResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewIntentResponse: Could not create message: ' + e.message) } }, - queryActionsResponse({ value }: queryActionsResponseParams): EncodeObject { + action({ value }: actionParams): EncodeObject { try { - return { typeUrl: "/warden.intent.QueryActionsResponse", value: QueryActionsResponse.fromPartial( value ) } + return { typeUrl: "/warden.intent.Action", value: Action.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryActionsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Action: Could not create message: ' + e.message) } }, - queryIntentsRequest({ value }: queryIntentsRequestParams): EncodeObject { + msgRevokeAction({ value }: msgRevokeActionParams): EncodeObject { try { - return { typeUrl: "/warden.intent.QueryIntentsRequest", value: QueryIntentsRequest.fromPartial( value ) } + return { typeUrl: "/warden.intent.MsgRevokeAction", value: MsgRevokeAction.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIntentsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRevokeAction: Could not create message: ' + e.message) } }, - action({ value }: actionParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/warden.intent.Action", value: Action.fromPartial( value ) } + return { typeUrl: "/warden.intent.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Action: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + queryIntentsResponse({ value }: queryIntentsResponseParams): EncodeObject { try { - return { typeUrl: "/warden.intent.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/warden.intent.QueryIntentsResponse", value: QueryIntentsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIntentsResponse: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + queryActionsByAddressResponse({ value }: queryActionsByAddressResponseParams): EncodeObject { try { - return { typeUrl: "/warden.intent.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/warden.intent.QueryActionsByAddressResponse", value: QueryActionsByAddressResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:QueryActionsByAddressResponse: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + msgApproveActionResponse({ value }: msgApproveActionResponseParams): EncodeObject { try { - return { typeUrl: "/warden.intent.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/warden.intent.MsgApproveActionResponse", value: MsgApproveActionResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgApproveActionResponse: Could not create message: ' + e.message) } }, - msgRevokeAction({ value }: msgRevokeActionParams): EncodeObject { + msgNewIntent({ value }: msgNewIntentParams): EncodeObject { try { - return { typeUrl: "/warden.intent.MsgRevokeAction", value: MsgRevokeAction.fromPartial( value ) } + return { typeUrl: "/warden.intent.MsgNewIntent", value: MsgNewIntent.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRevokeAction: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewIntent: Could not create message: ' + e.message) } }, - queryActionsRequest({ value }: queryActionsRequestParams): EncodeObject { + msgActionCreated({ value }: msgActionCreatedParams): EncodeObject { try { - return { typeUrl: "/warden.intent.QueryActionsRequest", value: QueryActionsRequest.fromPartial( value ) } + return { typeUrl: "/warden.intent.MsgActionCreated", value: MsgActionCreated.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryActionsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgActionCreated: Could not create message: ' + e.message) } }, - queryActionByIdRequest({ value }: queryActionByIdRequestParams): EncodeObject { + approver({ value }: approverParams): EncodeObject { try { - return { typeUrl: "/warden.intent.QueryActionByIdRequest", value: QueryActionByIdRequest.fromPartial( value ) } + return { typeUrl: "/warden.intent.Approver", value: Approver.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryActionByIdRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Approver: Could not create message: ' + e.message) } }, - queryActionByIdResponse({ value }: queryActionByIdResponseParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/warden.intent.QueryActionByIdResponse", value: QueryActionByIdResponse.fromPartial( value ) } + return { typeUrl: "/warden.intent.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryActionByIdResponse: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - approver({ value }: approverParams): EncodeObject { + queryActionByIdRequest({ value }: queryActionByIdRequestParams): EncodeObject { try { - return { typeUrl: "/warden.intent.Approver", value: Approver.fromPartial( value ) } + return { typeUrl: "/warden.intent.QueryActionByIdRequest", value: QueryActionByIdRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Approver: Could not create message: ' + e.message) + throw new Error('TxClient:QueryActionByIdRequest: Could not create message: ' + e.message) } }, - msgActionCreated({ value }: msgActionCreatedParams): EncodeObject { + msgApproveAction({ value }: msgApproveActionParams): EncodeObject { try { - return { typeUrl: "/warden.intent.MsgActionCreated", value: MsgActionCreated.fromPartial( value ) } + return { typeUrl: "/warden.intent.MsgApproveAction", value: MsgApproveAction.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgActionCreated: Could not create message: ' + e.message) + throw new Error('TxClient:MsgApproveAction: Could not create message: ' + e.message) } }, - queryActionsByAddressRequest({ value }: queryActionsByAddressRequestParams): EncodeObject { + msgRevokeActionResponse({ value }: msgRevokeActionResponseParams): EncodeObject { try { - return { typeUrl: "/warden.intent.QueryActionsByAddressRequest", value: QueryActionsByAddressRequest.fromPartial( value ) } + return { typeUrl: "/warden.intent.MsgRevokeActionResponse", value: MsgRevokeActionResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryActionsByAddressRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRevokeActionResponse: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + intent({ value }: intentParams): EncodeObject { try { - return { typeUrl: "/warden.intent.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/warden.intent.Intent", value: Intent.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:Intent: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/warden.intent.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/warden.intent.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - queryIntentsResponse({ value }: queryIntentsResponseParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/warden.intent.QueryIntentsResponse", value: QueryIntentsResponse.fromPartial( value ) } + return { typeUrl: "/warden.intent.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIntentsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - queryIntentByIdRequest({ value }: queryIntentByIdRequestParams): EncodeObject { + queryActionsResponse({ value }: queryActionsResponseParams): EncodeObject { try { - return { typeUrl: "/warden.intent.QueryIntentByIdRequest", value: QueryIntentByIdRequest.fromPartial( value ) } + return { typeUrl: "/warden.intent.QueryActionsResponse", value: QueryActionsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIntentByIdRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryActionsResponse: Could not create message: ' + e.message) } }, - queryActionsByAddressResponse({ value }: queryActionsByAddressResponseParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/warden.intent.QueryActionsByAddressResponse", value: QueryActionsByAddressResponse.fromPartial( value ) } + return { typeUrl: "/warden.intent.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryActionsByAddressResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - msgApproveActionResponse({ value }: msgApproveActionResponseParams): EncodeObject { + queryActionsByAddressRequest({ value }: queryActionsByAddressRequestParams): EncodeObject { try { - return { typeUrl: "/warden.intent.MsgApproveActionResponse", value: MsgApproveActionResponse.fromPartial( value ) } + return { typeUrl: "/warden.intent.QueryActionsByAddressRequest", value: QueryActionsByAddressRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgApproveActionResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryActionsByAddressRequest: Could not create message: ' + e.message) } }, - msgNewIntentResponse({ value }: msgNewIntentResponseParams): EncodeObject { + queryActionByIdResponse({ value }: queryActionByIdResponseParams): EncodeObject { try { - return { typeUrl: "/warden.intent.MsgNewIntentResponse", value: MsgNewIntentResponse.fromPartial( value ) } + return { typeUrl: "/warden.intent.QueryActionByIdResponse", value: QueryActionByIdResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewIntentResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryActionByIdResponse: Could not create message: ' + e.message) } }, - queryIntentByIdResponse({ value }: queryIntentByIdResponseParams): EncodeObject { + queryActionsRequest({ value }: queryActionsRequestParams): EncodeObject { try { - return { typeUrl: "/warden.intent.QueryIntentByIdResponse", value: QueryIntentByIdResponse.fromPartial( value ) } + return { typeUrl: "/warden.intent.QueryActionsRequest", value: QueryActionsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryIntentByIdResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryActionsRequest: Could not create message: ' + e.message) } }, - msgApproveAction({ value }: msgApproveActionParams): EncodeObject { + queryIntentsRequest({ value }: queryIntentsRequestParams): EncodeObject { try { - return { typeUrl: "/warden.intent.MsgApproveAction", value: MsgApproveAction.fromPartial( value ) } + return { typeUrl: "/warden.intent.QueryIntentsRequest", value: QueryIntentsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgApproveAction: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIntentsRequest: Could not create message: ' + e.message) } }, - msgNewIntent({ value }: msgNewIntentParams): EncodeObject { + queryIntentByIdRequest({ value }: queryIntentByIdRequestParams): EncodeObject { try { - return { typeUrl: "/warden.intent.MsgNewIntent", value: MsgNewIntent.fromPartial( value ) } + return { typeUrl: "/warden.intent.QueryIntentByIdRequest", value: QueryIntentByIdRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewIntent: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIntentByIdRequest: Could not create message: ' + e.message) } }, - intent({ value }: intentParams): EncodeObject { + queryIntentByIdResponse({ value }: queryIntentByIdResponseParams): EncodeObject { try { - return { typeUrl: "/warden.intent.Intent", value: Intent.fromPartial( value ) } + return { typeUrl: "/warden.intent.QueryIntentByIdResponse", value: QueryIntentByIdResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Intent: Could not create message: ' + e.message) + throw new Error('TxClient:QueryIntentByIdResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/warden.intent/registry.ts b/ts-client/warden.intent/registry.ts index 21d2166f1..f7677a472 100755 --- a/ts-client/warden.intent/registry.ts +++ b/ts-client/warden.intent/registry.ts @@ -1,58 +1,58 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgRevokeActionResponse } from "./types/warden/intent/tx"; -import { QueryParamsRequest } from "./types/warden/intent/query"; -import { QueryActionsResponse } from "./types/warden/intent/query"; -import { QueryIntentsRequest } from "./types/warden/intent/query"; -import { Action } from "./types/warden/intent/action"; -import { QueryParamsResponse } from "./types/warden/intent/query"; import { MsgUpdateParams } from "./types/warden/intent/tx"; -import { MsgUpdateParamsResponse } from "./types/warden/intent/tx"; +import { MsgNewIntentResponse } from "./types/warden/intent/tx"; +import { Action } from "./types/warden/intent/action"; import { MsgRevokeAction } from "./types/warden/intent/tx"; -import { QueryActionsRequest } from "./types/warden/intent/query"; -import { QueryActionByIdRequest } from "./types/warden/intent/query"; -import { QueryActionByIdResponse } from "./types/warden/intent/query"; -import { Approver } from "./types/warden/intent/action"; -import { MsgActionCreated } from "./types/warden/intent/action"; -import { QueryActionsByAddressRequest } from "./types/warden/intent/query"; -import { Params } from "./types/warden/intent/params"; -import { GenesisState } from "./types/warden/intent/genesis"; +import { QueryParamsRequest } from "./types/warden/intent/query"; import { QueryIntentsResponse } from "./types/warden/intent/query"; -import { QueryIntentByIdRequest } from "./types/warden/intent/query"; import { QueryActionsByAddressResponse } from "./types/warden/intent/query"; import { MsgApproveActionResponse } from "./types/warden/intent/tx"; -import { MsgNewIntentResponse } from "./types/warden/intent/tx"; -import { QueryIntentByIdResponse } from "./types/warden/intent/query"; -import { MsgApproveAction } from "./types/warden/intent/tx"; import { MsgNewIntent } from "./types/warden/intent/tx"; +import { MsgActionCreated } from "./types/warden/intent/action"; +import { Approver } from "./types/warden/intent/action"; +import { GenesisState } from "./types/warden/intent/genesis"; +import { QueryActionByIdRequest } from "./types/warden/intent/query"; +import { MsgApproveAction } from "./types/warden/intent/tx"; +import { MsgRevokeActionResponse } from "./types/warden/intent/tx"; import { Intent } from "./types/warden/intent/intent"; +import { MsgUpdateParamsResponse } from "./types/warden/intent/tx"; +import { QueryParamsResponse } from "./types/warden/intent/query"; +import { QueryActionsResponse } from "./types/warden/intent/query"; +import { Params } from "./types/warden/intent/params"; +import { QueryActionsByAddressRequest } from "./types/warden/intent/query"; +import { QueryActionByIdResponse } from "./types/warden/intent/query"; +import { QueryActionsRequest } from "./types/warden/intent/query"; +import { QueryIntentsRequest } from "./types/warden/intent/query"; +import { QueryIntentByIdRequest } from "./types/warden/intent/query"; +import { QueryIntentByIdResponse } from "./types/warden/intent/query"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/warden.intent.MsgRevokeActionResponse", MsgRevokeActionResponse], - ["/warden.intent.QueryParamsRequest", QueryParamsRequest], - ["/warden.intent.QueryActionsResponse", QueryActionsResponse], - ["/warden.intent.QueryIntentsRequest", QueryIntentsRequest], - ["/warden.intent.Action", Action], - ["/warden.intent.QueryParamsResponse", QueryParamsResponse], ["/warden.intent.MsgUpdateParams", MsgUpdateParams], - ["/warden.intent.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/warden.intent.MsgNewIntentResponse", MsgNewIntentResponse], + ["/warden.intent.Action", Action], ["/warden.intent.MsgRevokeAction", MsgRevokeAction], - ["/warden.intent.QueryActionsRequest", QueryActionsRequest], - ["/warden.intent.QueryActionByIdRequest", QueryActionByIdRequest], - ["/warden.intent.QueryActionByIdResponse", QueryActionByIdResponse], - ["/warden.intent.Approver", Approver], - ["/warden.intent.MsgActionCreated", MsgActionCreated], - ["/warden.intent.QueryActionsByAddressRequest", QueryActionsByAddressRequest], - ["/warden.intent.Params", Params], - ["/warden.intent.GenesisState", GenesisState], + ["/warden.intent.QueryParamsRequest", QueryParamsRequest], ["/warden.intent.QueryIntentsResponse", QueryIntentsResponse], - ["/warden.intent.QueryIntentByIdRequest", QueryIntentByIdRequest], ["/warden.intent.QueryActionsByAddressResponse", QueryActionsByAddressResponse], ["/warden.intent.MsgApproveActionResponse", MsgApproveActionResponse], - ["/warden.intent.MsgNewIntentResponse", MsgNewIntentResponse], - ["/warden.intent.QueryIntentByIdResponse", QueryIntentByIdResponse], - ["/warden.intent.MsgApproveAction", MsgApproveAction], ["/warden.intent.MsgNewIntent", MsgNewIntent], + ["/warden.intent.MsgActionCreated", MsgActionCreated], + ["/warden.intent.Approver", Approver], + ["/warden.intent.GenesisState", GenesisState], + ["/warden.intent.QueryActionByIdRequest", QueryActionByIdRequest], + ["/warden.intent.MsgApproveAction", MsgApproveAction], + ["/warden.intent.MsgRevokeActionResponse", MsgRevokeActionResponse], ["/warden.intent.Intent", Intent], + ["/warden.intent.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/warden.intent.QueryParamsResponse", QueryParamsResponse], + ["/warden.intent.QueryActionsResponse", QueryActionsResponse], + ["/warden.intent.Params", Params], + ["/warden.intent.QueryActionsByAddressRequest", QueryActionsByAddressRequest], + ["/warden.intent.QueryActionByIdResponse", QueryActionByIdResponse], + ["/warden.intent.QueryActionsRequest", QueryActionsRequest], + ["/warden.intent.QueryIntentsRequest", QueryIntentsRequest], + ["/warden.intent.QueryIntentByIdRequest", QueryIntentByIdRequest], + ["/warden.intent.QueryIntentByIdResponse", QueryIntentByIdResponse], ]; diff --git a/ts-client/warden.warden.v1beta1/module.ts b/ts-client/warden.warden.v1beta1/module.ts index 636445255..c3a1bf977 100755 --- a/ts-client/warden.warden.v1beta1/module.ts +++ b/ts-client/warden.warden.v1beta1/module.ts @@ -6,120 +6,108 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta1/tx"; -import { QueryParamsRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryKeysResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta1/tx"; -import { KeychainFees } from "./types/warden/warden/v1beta1/keychain"; -import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; -import { QuerySpacesResponse } from "./types/warden/warden/v1beta1/query"; import { QueryKeychainByAddressRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; -import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewKeyRequest } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta1/tx"; -import { Space } from "./types/warden/warden/v1beta1/space"; -import { QueryKeychainsResponse } from "./types/warden/warden/v1beta1/query"; -import { KeyResponse } from "./types/warden/warden/v1beta1/query"; -import { QuerySignatureRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgNewKeychain } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { GenesisState } from "./types/warden/warden/v1beta1/genesis"; -import { Keychain } from "./types/warden/warden/v1beta1/keychain"; -import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { QueryKeychainsRequest } from "./types/warden/warden/v1beta1/query"; -import { QuerySpaceByAddressResponse } from "./types/warden/warden/v1beta1/query"; import { QueryKeysRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta1/tx"; -import { QueryParamsResponse } from "./types/warden/warden/v1beta1/query"; -import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta1/query"; -import { Key } from "./types/warden/warden/v1beta1/key"; -import { MsgUpdateSpace } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; import { QuerySignTransactionRequestsRequest } from "./types/warden/warden/v1beta1/query"; -import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta1/tx"; +import { Params } from "./types/warden/warden/v1beta1/params"; +import { QuerySpaceByAddressRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewKey } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySignatureRequestsResponse } from "./types/warden/warden/v1beta1/query"; -import { MetadataEthereum } from "./types/warden/warden/v1beta1/tx"; -import { KeyRequest } from "./types/warden/warden/v1beta1/key"; +import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeychainByAddressResponse } from "./types/warden/warden/v1beta1/query"; +import { QueryKeysResponse } from "./types/warden/warden/v1beta1/query"; import { MsgUpdateParams } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSpace } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgAddKeychainParty } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewKeyRequest } from "./types/warden/warden/v1beta1/tx"; import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgSignedData } from "./types/warden/warden/v1beta1/tx"; -import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { GenesisState } from "./types/warden/warden/v1beta1/genesis"; +import { QuerySignatureRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; import { SignTransactionRequest } from "./types/warden/warden/v1beta1/signature"; -import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; -import { Params } from "./types/warden/warden/v1beta1/params"; +import { MsgNewKey } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { MetadataEthereum } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; +import { QuerySignatureRequestsResponse } from "./types/warden/warden/v1beta1/query"; +import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta1/query"; +import { QuerySignatureRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgNewKeychain } from "./types/warden/warden/v1beta1/tx"; +import { MsgAddKeychainParty } from "./types/warden/warden/v1beta1/tx"; +import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta1/tx"; +import { QueryParamsResponse } from "./types/warden/warden/v1beta1/query"; +import { WalletKeyResponse } from "./types/warden/warden/v1beta1/query"; import { MsgNewKeychainResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta1/tx"; +import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta1/tx"; +import { QuerySpacesResponse } from "./types/warden/warden/v1beta1/query"; +import { QueryKeychainsRequest } from "./types/warden/warden/v1beta1/query"; import { QuerySpacesRequest } from "./types/warden/warden/v1beta1/query"; -import { QuerySpaceByAddressRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryKeychainByAddressResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgUpdateKeychain } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta1/tx"; +import { QueryParamsRequest } from "./types/warden/warden/v1beta1/query"; +import { KeyResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgNewSpace } from "./types/warden/warden/v1beta1/tx"; +import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta1/tx"; +import { KeyRequest } from "./types/warden/warden/v1beta1/key"; +import { KeychainFees } from "./types/warden/warden/v1beta1/keychain"; +import { QuerySpaceByAddressResponse } from "./types/warden/warden/v1beta1/query"; +import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { Space } from "./types/warden/warden/v1beta1/space"; +import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta1/query"; +import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateSpace } from "./types/warden/warden/v1beta1/tx"; import { QueryKeyRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; -import { WalletKeyResponse } from "./types/warden/warden/v1beta1/query"; -import { QuerySignatureRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgSignedData } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta1/query"; import { SignRequest } from "./types/warden/warden/v1beta1/signature"; +import { Keychain } from "./types/warden/warden/v1beta1/keychain"; +import { QueryKeychainsResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateKeychain } from "./types/warden/warden/v1beta1/tx"; +import { Key } from "./types/warden/warden/v1beta1/key"; -export { MsgAddKeychainPartyResponse, QueryParamsRequest, MsgNewSignTransactionRequestResponse, QuerySpacesByOwnerRequest, QueryKeyRequestsRequest, QueryKeysResponse, MsgFulfilSignatureRequest, KeychainFees, QuerySignTransactionRequestByIdRequest, QuerySpacesResponse, QueryKeychainByAddressRequest, QueryKeyRequestByIdResponse, SignTransactionRequestResponse, MsgRemoveSpaceOwner, MsgNewKeyRequest, MsgNewSignTransactionRequest, Space, QueryKeychainsResponse, KeyResponse, QuerySignatureRequestByIdResponse, MsgNewKeychain, MsgUpdateKeychainResponse, MsgNewKeyRequestResponse, GenesisState, Keychain, MsgFulfilSignatureRequestResponse, QueryKeychainsRequest, QuerySpaceByAddressResponse, QueryKeysRequest, MsgUpdateKeyRequest, QueryParamsResponse, QueryKeyRequestsResponse, Key, MsgUpdateSpace, MsgNewSignatureRequestResponse, QuerySignTransactionRequestsRequest, QuerySignTransactionRequestsResponse, MsgAddSpaceOwner, MsgNewKey, MsgUpdateKeyRequestResponse, QuerySignatureRequestsResponse, MetadataEthereum, KeyRequest, MsgUpdateParams, MsgNewSpace, MsgNewSpaceResponse, MsgAddKeychainParty, MsgUpdateSpaceResponse, MsgSignedData, QuerySignatureRequestsRequest, MsgUpdateParamsResponse, MsgRemoveSpaceOwnerResponse, SignTransactionRequest, QuerySignTransactionRequestByIdResponse, Params, MsgAddSpaceOwnerResponse, MsgNewKeychainResponse, MsgNewSignatureRequest, QuerySpacesRequest, QuerySpaceByAddressRequest, QueryKeychainByAddressResponse, MsgUpdateKeychain, QueryKeyRequestByIdRequest, WalletKeyResponse, QuerySignatureRequestByIdRequest, SignRequest }; +export { QueryKeychainByAddressRequest, QueryKeysRequest, QuerySignTransactionRequestsRequest, MsgUpdateKeyRequest, Params, QuerySpaceByAddressRequest, QuerySignTransactionRequestByIdRequest, MsgAddSpaceOwner, MsgNewSignatureRequestResponse, QueryKeychainByAddressResponse, QueryKeysResponse, MsgUpdateParams, MsgNewKeyRequest, MsgUpdateSpaceResponse, MsgNewKeyRequestResponse, MsgUpdateKeyRequestResponse, GenesisState, QuerySignatureRequestByIdRequest, SignTransactionRequest, MsgNewKey, MsgNewSignTransactionRequestResponse, MetadataEthereum, QueryKeyRequestByIdResponse, MsgAddSpaceOwnerResponse, QuerySignatureRequestsResponse, QuerySignTransactionRequestsResponse, QuerySignatureRequestByIdResponse, MsgNewKeychain, MsgAddKeychainParty, MsgAddKeychainPartyResponse, MsgFulfilSignatureRequest, MsgNewSignTransactionRequest, QueryParamsResponse, WalletKeyResponse, MsgNewKeychainResponse, MsgUpdateKeychainResponse, QuerySpacesResponse, QueryKeychainsRequest, QuerySpacesRequest, MsgNewSpaceResponse, QueryParamsRequest, KeyResponse, MsgNewSpace, MsgRemoveSpaceOwner, KeyRequest, KeychainFees, QuerySpaceByAddressResponse, QuerySignatureRequestsRequest, MsgFulfilSignatureRequestResponse, Space, QuerySpacesByOwnerRequest, SignTransactionRequestResponse, MsgUpdateSpace, QueryKeyRequestByIdRequest, MsgRemoveSpaceOwnerResponse, MsgSignedData, QueryKeyRequestsRequest, QuerySignTransactionRequestByIdResponse, MsgUpdateParamsResponse, MsgNewSignatureRequest, QueryKeyRequestsResponse, SignRequest, Keychain, QueryKeychainsResponse, MsgUpdateKeychain, Key }; -type sendMsgAddKeychainPartyResponseParams = { - value: MsgAddKeychainPartyResponse, - fee?: StdFee, - memo?: string -}; - -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, - fee?: StdFee, - memo?: string -}; - -type sendMsgNewSignTransactionRequestResponseParams = { - value: MsgNewSignTransactionRequestResponse, +type sendQueryKeychainByAddressRequestParams = { + value: QueryKeychainByAddressRequest, fee?: StdFee, memo?: string }; -type sendQuerySpacesByOwnerRequestParams = { - value: QuerySpacesByOwnerRequest, +type sendQueryKeysRequestParams = { + value: QueryKeysRequest, fee?: StdFee, memo?: string }; -type sendQueryKeyRequestsRequestParams = { - value: QueryKeyRequestsRequest, +type sendQuerySignTransactionRequestsRequestParams = { + value: QuerySignTransactionRequestsRequest, fee?: StdFee, memo?: string }; -type sendQueryKeysResponseParams = { - value: QueryKeysResponse, +type sendMsgUpdateKeyRequestParams = { + value: MsgUpdateKeyRequest, fee?: StdFee, memo?: string }; -type sendMsgFulfilSignatureRequestParams = { - value: MsgFulfilSignatureRequest, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendKeychainFeesParams = { - value: KeychainFees, +type sendQuerySpaceByAddressRequestParams = { + value: QuerySpaceByAddressRequest, fee?: StdFee, memo?: string }; @@ -130,32 +118,32 @@ type sendQuerySignTransactionRequestByIdRequestParams = { memo?: string }; -type sendQuerySpacesResponseParams = { - value: QuerySpacesResponse, +type sendMsgAddSpaceOwnerParams = { + value: MsgAddSpaceOwner, fee?: StdFee, memo?: string }; -type sendQueryKeychainByAddressRequestParams = { - value: QueryKeychainByAddressRequest, +type sendMsgNewSignatureRequestResponseParams = { + value: MsgNewSignatureRequestResponse, fee?: StdFee, memo?: string }; -type sendQueryKeyRequestByIdResponseParams = { - value: QueryKeyRequestByIdResponse, +type sendQueryKeychainByAddressResponseParams = { + value: QueryKeychainByAddressResponse, fee?: StdFee, memo?: string }; -type sendSignTransactionRequestResponseParams = { - value: SignTransactionRequestResponse, +type sendQueryKeysResponseParams = { + value: QueryKeysResponse, fee?: StdFee, memo?: string }; -type sendMsgRemoveSpaceOwnerParams = { - value: MsgRemoveSpaceOwner, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; @@ -166,176 +154,176 @@ type sendMsgNewKeyRequestParams = { memo?: string }; -type sendMsgNewSignTransactionRequestParams = { - value: MsgNewSignTransactionRequest, +type sendMsgUpdateSpaceResponseParams = { + value: MsgUpdateSpaceResponse, fee?: StdFee, memo?: string }; -type sendSpaceParams = { - value: Space, +type sendMsgNewKeyRequestResponseParams = { + value: MsgNewKeyRequestResponse, fee?: StdFee, memo?: string }; -type sendQueryKeychainsResponseParams = { - value: QueryKeychainsResponse, +type sendMsgUpdateKeyRequestResponseParams = { + value: MsgUpdateKeyRequestResponse, fee?: StdFee, memo?: string }; -type sendKeyResponseParams = { - value: KeyResponse, +type sendGenesisStateParams = { + value: GenesisState, fee?: StdFee, memo?: string }; -type sendQuerySignatureRequestByIdResponseParams = { - value: QuerySignatureRequestByIdResponse, +type sendQuerySignatureRequestByIdRequestParams = { + value: QuerySignatureRequestByIdRequest, fee?: StdFee, memo?: string }; -type sendMsgNewKeychainParams = { - value: MsgNewKeychain, +type sendSignTransactionRequestParams = { + value: SignTransactionRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateKeychainResponseParams = { - value: MsgUpdateKeychainResponse, +type sendMsgNewKeyParams = { + value: MsgNewKey, fee?: StdFee, memo?: string }; -type sendMsgNewKeyRequestResponseParams = { - value: MsgNewKeyRequestResponse, +type sendMsgNewSignTransactionRequestResponseParams = { + value: MsgNewSignTransactionRequestResponse, fee?: StdFee, memo?: string }; -type sendGenesisStateParams = { - value: GenesisState, +type sendMetadataEthereumParams = { + value: MetadataEthereum, fee?: StdFee, memo?: string }; -type sendKeychainParams = { - value: Keychain, +type sendQueryKeyRequestByIdResponseParams = { + value: QueryKeyRequestByIdResponse, fee?: StdFee, memo?: string }; -type sendMsgFulfilSignatureRequestResponseParams = { - value: MsgFulfilSignatureRequestResponse, +type sendMsgAddSpaceOwnerResponseParams = { + value: MsgAddSpaceOwnerResponse, fee?: StdFee, memo?: string }; -type sendQueryKeychainsRequestParams = { - value: QueryKeychainsRequest, +type sendQuerySignatureRequestsResponseParams = { + value: QuerySignatureRequestsResponse, fee?: StdFee, memo?: string }; -type sendQuerySpaceByAddressResponseParams = { - value: QuerySpaceByAddressResponse, +type sendQuerySignTransactionRequestsResponseParams = { + value: QuerySignTransactionRequestsResponse, fee?: StdFee, memo?: string }; -type sendQueryKeysRequestParams = { - value: QueryKeysRequest, +type sendQuerySignatureRequestByIdResponseParams = { + value: QuerySignatureRequestByIdResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateKeyRequestParams = { - value: MsgUpdateKeyRequest, +type sendMsgNewKeychainParams = { + value: MsgNewKeychain, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendMsgAddKeychainPartyParams = { + value: MsgAddKeychainParty, fee?: StdFee, memo?: string }; -type sendQueryKeyRequestsResponseParams = { - value: QueryKeyRequestsResponse, +type sendMsgAddKeychainPartyResponseParams = { + value: MsgAddKeychainPartyResponse, fee?: StdFee, memo?: string }; -type sendKeyParams = { - value: Key, +type sendMsgFulfilSignatureRequestParams = { + value: MsgFulfilSignatureRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateSpaceParams = { - value: MsgUpdateSpace, +type sendMsgNewSignTransactionRequestParams = { + value: MsgNewSignTransactionRequest, fee?: StdFee, memo?: string }; -type sendMsgNewSignatureRequestResponseParams = { - value: MsgNewSignatureRequestResponse, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendQuerySignTransactionRequestsRequestParams = { - value: QuerySignTransactionRequestsRequest, +type sendWalletKeyResponseParams = { + value: WalletKeyResponse, fee?: StdFee, memo?: string }; -type sendQuerySignTransactionRequestsResponseParams = { - value: QuerySignTransactionRequestsResponse, +type sendMsgNewKeychainResponseParams = { + value: MsgNewKeychainResponse, fee?: StdFee, memo?: string }; -type sendMsgAddSpaceOwnerParams = { - value: MsgAddSpaceOwner, +type sendMsgUpdateKeychainResponseParams = { + value: MsgUpdateKeychainResponse, fee?: StdFee, memo?: string }; -type sendMsgNewKeyParams = { - value: MsgNewKey, +type sendQuerySpacesResponseParams = { + value: QuerySpacesResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateKeyRequestResponseParams = { - value: MsgUpdateKeyRequestResponse, +type sendQueryKeychainsRequestParams = { + value: QueryKeychainsRequest, fee?: StdFee, memo?: string }; -type sendQuerySignatureRequestsResponseParams = { - value: QuerySignatureRequestsResponse, +type sendQuerySpacesRequestParams = { + value: QuerySpacesRequest, fee?: StdFee, memo?: string }; -type sendMetadataEthereumParams = { - value: MetadataEthereum, +type sendMsgNewSpaceResponseParams = { + value: MsgNewSpaceResponse, fee?: StdFee, memo?: string }; -type sendKeyRequestParams = { - value: KeyRequest, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendKeyResponseParams = { + value: KeyResponse, fee?: StdFee, memo?: string }; @@ -346,26 +334,26 @@ type sendMsgNewSpaceParams = { memo?: string }; -type sendMsgNewSpaceResponseParams = { - value: MsgNewSpaceResponse, +type sendMsgRemoveSpaceOwnerParams = { + value: MsgRemoveSpaceOwner, fee?: StdFee, memo?: string }; -type sendMsgAddKeychainPartyParams = { - value: MsgAddKeychainParty, +type sendKeyRequestParams = { + value: KeyRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateSpaceResponseParams = { - value: MsgUpdateSpaceResponse, +type sendKeychainFeesParams = { + value: KeychainFees, fee?: StdFee, memo?: string }; -type sendMsgSignedDataParams = { - value: MsgSignedData, +type sendQuerySpaceByAddressResponseParams = { + value: QuerySpaceByAddressResponse, fee?: StdFee, memo?: string }; @@ -376,365 +364,377 @@ type sendQuerySignatureRequestsRequestParams = { memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendMsgFulfilSignatureRequestResponseParams = { + value: MsgFulfilSignatureRequestResponse, fee?: StdFee, memo?: string }; -type sendMsgRemoveSpaceOwnerResponseParams = { - value: MsgRemoveSpaceOwnerResponse, +type sendSpaceParams = { + value: Space, fee?: StdFee, memo?: string }; -type sendSignTransactionRequestParams = { - value: SignTransactionRequest, +type sendQuerySpacesByOwnerRequestParams = { + value: QuerySpacesByOwnerRequest, fee?: StdFee, memo?: string }; -type sendQuerySignTransactionRequestByIdResponseParams = { - value: QuerySignTransactionRequestByIdResponse, +type sendSignTransactionRequestResponseParams = { + value: SignTransactionRequestResponse, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendMsgUpdateSpaceParams = { + value: MsgUpdateSpace, fee?: StdFee, memo?: string }; -type sendMsgAddSpaceOwnerResponseParams = { - value: MsgAddSpaceOwnerResponse, +type sendQueryKeyRequestByIdRequestParams = { + value: QueryKeyRequestByIdRequest, fee?: StdFee, memo?: string }; -type sendMsgNewKeychainResponseParams = { - value: MsgNewKeychainResponse, +type sendMsgRemoveSpaceOwnerResponseParams = { + value: MsgRemoveSpaceOwnerResponse, fee?: StdFee, memo?: string }; -type sendMsgNewSignatureRequestParams = { - value: MsgNewSignatureRequest, +type sendMsgSignedDataParams = { + value: MsgSignedData, fee?: StdFee, memo?: string }; -type sendQuerySpacesRequestParams = { - value: QuerySpacesRequest, +type sendQueryKeyRequestsRequestParams = { + value: QueryKeyRequestsRequest, fee?: StdFee, memo?: string }; -type sendQuerySpaceByAddressRequestParams = { - value: QuerySpaceByAddressRequest, +type sendQuerySignTransactionRequestByIdResponseParams = { + value: QuerySignTransactionRequestByIdResponse, fee?: StdFee, memo?: string }; -type sendQueryKeychainByAddressResponseParams = { - value: QueryKeychainByAddressResponse, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateKeychainParams = { - value: MsgUpdateKeychain, +type sendMsgNewSignatureRequestParams = { + value: MsgNewSignatureRequest, fee?: StdFee, memo?: string }; -type sendQueryKeyRequestByIdRequestParams = { - value: QueryKeyRequestByIdRequest, +type sendQueryKeyRequestsResponseParams = { + value: QueryKeyRequestsResponse, fee?: StdFee, memo?: string }; -type sendWalletKeyResponseParams = { - value: WalletKeyResponse, +type sendSignRequestParams = { + value: SignRequest, fee?: StdFee, memo?: string }; -type sendQuerySignatureRequestByIdRequestParams = { - value: QuerySignatureRequestByIdRequest, +type sendKeychainParams = { + value: Keychain, fee?: StdFee, memo?: string }; -type sendSignRequestParams = { - value: SignRequest, +type sendQueryKeychainsResponseParams = { + value: QueryKeychainsResponse, fee?: StdFee, memo?: string }; - -type msgAddKeychainPartyResponseParams = { - value: MsgAddKeychainPartyResponse, +type sendMsgUpdateKeychainParams = { + value: MsgUpdateKeychain, + fee?: StdFee, + memo?: string }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type sendKeyParams = { + value: Key, + fee?: StdFee, + memo?: string }; -type msgNewSignTransactionRequestResponseParams = { - value: MsgNewSignTransactionRequestResponse, + +type queryKeychainByAddressRequestParams = { + value: QueryKeychainByAddressRequest, }; -type querySpacesByOwnerRequestParams = { - value: QuerySpacesByOwnerRequest, +type queryKeysRequestParams = { + value: QueryKeysRequest, }; -type queryKeyRequestsRequestParams = { - value: QueryKeyRequestsRequest, +type querySignTransactionRequestsRequestParams = { + value: QuerySignTransactionRequestsRequest, }; -type queryKeysResponseParams = { - value: QueryKeysResponse, +type msgUpdateKeyRequestParams = { + value: MsgUpdateKeyRequest, }; -type msgFulfilSignatureRequestParams = { - value: MsgFulfilSignatureRequest, +type paramsParams = { + value: Params, }; -type keychainFeesParams = { - value: KeychainFees, +type querySpaceByAddressRequestParams = { + value: QuerySpaceByAddressRequest, }; type querySignTransactionRequestByIdRequestParams = { value: QuerySignTransactionRequestByIdRequest, }; -type querySpacesResponseParams = { - value: QuerySpacesResponse, +type msgAddSpaceOwnerParams = { + value: MsgAddSpaceOwner, }; -type queryKeychainByAddressRequestParams = { - value: QueryKeychainByAddressRequest, +type msgNewSignatureRequestResponseParams = { + value: MsgNewSignatureRequestResponse, }; -type queryKeyRequestByIdResponseParams = { - value: QueryKeyRequestByIdResponse, +type queryKeychainByAddressResponseParams = { + value: QueryKeychainByAddressResponse, }; -type signTransactionRequestResponseParams = { - value: SignTransactionRequestResponse, +type queryKeysResponseParams = { + value: QueryKeysResponse, }; -type msgRemoveSpaceOwnerParams = { - value: MsgRemoveSpaceOwner, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; type msgNewKeyRequestParams = { value: MsgNewKeyRequest, }; -type msgNewSignTransactionRequestParams = { - value: MsgNewSignTransactionRequest, +type msgUpdateSpaceResponseParams = { + value: MsgUpdateSpaceResponse, }; -type spaceParams = { - value: Space, +type msgNewKeyRequestResponseParams = { + value: MsgNewKeyRequestResponse, }; -type queryKeychainsResponseParams = { - value: QueryKeychainsResponse, +type msgUpdateKeyRequestResponseParams = { + value: MsgUpdateKeyRequestResponse, }; -type keyResponseParams = { - value: KeyResponse, +type genesisStateParams = { + value: GenesisState, }; -type querySignatureRequestByIdResponseParams = { - value: QuerySignatureRequestByIdResponse, +type querySignatureRequestByIdRequestParams = { + value: QuerySignatureRequestByIdRequest, }; -type msgNewKeychainParams = { - value: MsgNewKeychain, +type signTransactionRequestParams = { + value: SignTransactionRequest, }; -type msgUpdateKeychainResponseParams = { - value: MsgUpdateKeychainResponse, +type msgNewKeyParams = { + value: MsgNewKey, }; -type msgNewKeyRequestResponseParams = { - value: MsgNewKeyRequestResponse, +type msgNewSignTransactionRequestResponseParams = { + value: MsgNewSignTransactionRequestResponse, }; -type genesisStateParams = { - value: GenesisState, +type metadataEthereumParams = { + value: MetadataEthereum, }; -type keychainParams = { - value: Keychain, +type queryKeyRequestByIdResponseParams = { + value: QueryKeyRequestByIdResponse, }; -type msgFulfilSignatureRequestResponseParams = { - value: MsgFulfilSignatureRequestResponse, +type msgAddSpaceOwnerResponseParams = { + value: MsgAddSpaceOwnerResponse, }; -type queryKeychainsRequestParams = { - value: QueryKeychainsRequest, +type querySignatureRequestsResponseParams = { + value: QuerySignatureRequestsResponse, }; -type querySpaceByAddressResponseParams = { - value: QuerySpaceByAddressResponse, +type querySignTransactionRequestsResponseParams = { + value: QuerySignTransactionRequestsResponse, }; -type queryKeysRequestParams = { - value: QueryKeysRequest, +type querySignatureRequestByIdResponseParams = { + value: QuerySignatureRequestByIdResponse, }; -type msgUpdateKeyRequestParams = { - value: MsgUpdateKeyRequest, +type msgNewKeychainParams = { + value: MsgNewKeychain, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type msgAddKeychainPartyParams = { + value: MsgAddKeychainParty, }; -type queryKeyRequestsResponseParams = { - value: QueryKeyRequestsResponse, +type msgAddKeychainPartyResponseParams = { + value: MsgAddKeychainPartyResponse, }; -type keyParams = { - value: Key, +type msgFulfilSignatureRequestParams = { + value: MsgFulfilSignatureRequest, }; -type msgUpdateSpaceParams = { - value: MsgUpdateSpace, +type msgNewSignTransactionRequestParams = { + value: MsgNewSignTransactionRequest, }; -type msgNewSignatureRequestResponseParams = { - value: MsgNewSignatureRequestResponse, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type querySignTransactionRequestsRequestParams = { - value: QuerySignTransactionRequestsRequest, +type walletKeyResponseParams = { + value: WalletKeyResponse, }; -type querySignTransactionRequestsResponseParams = { - value: QuerySignTransactionRequestsResponse, +type msgNewKeychainResponseParams = { + value: MsgNewKeychainResponse, }; -type msgAddSpaceOwnerParams = { - value: MsgAddSpaceOwner, +type msgUpdateKeychainResponseParams = { + value: MsgUpdateKeychainResponse, }; -type msgNewKeyParams = { - value: MsgNewKey, +type querySpacesResponseParams = { + value: QuerySpacesResponse, }; -type msgUpdateKeyRequestResponseParams = { - value: MsgUpdateKeyRequestResponse, +type queryKeychainsRequestParams = { + value: QueryKeychainsRequest, }; -type querySignatureRequestsResponseParams = { - value: QuerySignatureRequestsResponse, +type querySpacesRequestParams = { + value: QuerySpacesRequest, }; -type metadataEthereumParams = { - value: MetadataEthereum, +type msgNewSpaceResponseParams = { + value: MsgNewSpaceResponse, }; -type keyRequestParams = { - value: KeyRequest, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type keyResponseParams = { + value: KeyResponse, }; type msgNewSpaceParams = { value: MsgNewSpace, }; -type msgNewSpaceResponseParams = { - value: MsgNewSpaceResponse, +type msgRemoveSpaceOwnerParams = { + value: MsgRemoveSpaceOwner, }; -type msgAddKeychainPartyParams = { - value: MsgAddKeychainParty, +type keyRequestParams = { + value: KeyRequest, }; -type msgUpdateSpaceResponseParams = { - value: MsgUpdateSpaceResponse, +type keychainFeesParams = { + value: KeychainFees, }; -type msgSignedDataParams = { - value: MsgSignedData, +type querySpaceByAddressResponseParams = { + value: QuerySpaceByAddressResponse, }; type querySignatureRequestsRequestParams = { value: QuerySignatureRequestsRequest, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type msgFulfilSignatureRequestResponseParams = { + value: MsgFulfilSignatureRequestResponse, }; -type msgRemoveSpaceOwnerResponseParams = { - value: MsgRemoveSpaceOwnerResponse, +type spaceParams = { + value: Space, }; -type signTransactionRequestParams = { - value: SignTransactionRequest, +type querySpacesByOwnerRequestParams = { + value: QuerySpacesByOwnerRequest, }; -type querySignTransactionRequestByIdResponseParams = { - value: QuerySignTransactionRequestByIdResponse, +type signTransactionRequestResponseParams = { + value: SignTransactionRequestResponse, }; -type paramsParams = { - value: Params, +type msgUpdateSpaceParams = { + value: MsgUpdateSpace, }; -type msgAddSpaceOwnerResponseParams = { - value: MsgAddSpaceOwnerResponse, +type queryKeyRequestByIdRequestParams = { + value: QueryKeyRequestByIdRequest, }; -type msgNewKeychainResponseParams = { - value: MsgNewKeychainResponse, +type msgRemoveSpaceOwnerResponseParams = { + value: MsgRemoveSpaceOwnerResponse, }; -type msgNewSignatureRequestParams = { - value: MsgNewSignatureRequest, +type msgSignedDataParams = { + value: MsgSignedData, }; -type querySpacesRequestParams = { - value: QuerySpacesRequest, +type queryKeyRequestsRequestParams = { + value: QueryKeyRequestsRequest, }; -type querySpaceByAddressRequestParams = { - value: QuerySpaceByAddressRequest, +type querySignTransactionRequestByIdResponseParams = { + value: QuerySignTransactionRequestByIdResponse, }; -type queryKeychainByAddressResponseParams = { - value: QueryKeychainByAddressResponse, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type msgUpdateKeychainParams = { - value: MsgUpdateKeychain, +type msgNewSignatureRequestParams = { + value: MsgNewSignatureRequest, }; -type queryKeyRequestByIdRequestParams = { - value: QueryKeyRequestByIdRequest, +type queryKeyRequestsResponseParams = { + value: QueryKeyRequestsResponse, }; -type walletKeyResponseParams = { - value: WalletKeyResponse, +type signRequestParams = { + value: SignRequest, }; -type querySignatureRequestByIdRequestParams = { - value: QuerySignatureRequestByIdRequest, +type keychainParams = { + value: Keychain, }; -type signRequestParams = { - value: SignRequest, +type queryKeychainsResponseParams = { + value: QueryKeychainsResponse, +}; + +type msgUpdateKeychainParams = { + value: MsgUpdateKeychain, +}; + +type keyParams = { + value: Key, }; @@ -767,423 +767,451 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgAddKeychainPartyResponse({ value, fee, memo }: sendMsgAddKeychainPartyResponseParams): Promise { + async sendQueryKeychainByAddressRequest({ value, fee, memo }: sendQueryKeychainByAddressRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAddKeychainPartyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeychainByAddressRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgAddKeychainPartyResponse({ value: MsgAddKeychainPartyResponse.fromPartial(value) }) + let msg = this.queryKeychainByAddressRequest({ value: QueryKeychainByAddressRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAddKeychainPartyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeychainByAddressRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { + async sendQueryKeysRequest({ value, fee, memo }: sendQueryKeysRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeysRequest: Unable to 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.queryKeysRequest({ value: QueryKeysRequest.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:sendQueryKeysRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewSignTransactionRequestResponse({ value, fee, memo }: sendMsgNewSignTransactionRequestResponseParams): Promise { + async sendQuerySignTransactionRequestsRequest({ value, fee, memo }: sendQuerySignTransactionRequestsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewSignTransactionRequestResponse({ value: MsgNewSignTransactionRequestResponse.fromPartial(value) }) + let msg = this.querySignTransactionRequestsRequest({ value: QuerySignTransactionRequestsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySpacesByOwnerRequest({ value, fee, memo }: sendQuerySpacesByOwnerRequestParams): Promise { + async sendMsgUpdateKeyRequest({ value, fee, memo }: sendMsgUpdateKeyRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateKeyRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySpacesByOwnerRequest({ value: QuerySpacesByOwnerRequest.fromPartial(value) }) + let msg = this.msgUpdateKeyRequest({ value: MsgUpdateKeyRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateKeyRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeyRequestsRequest({ value, fee, memo }: sendQueryKeyRequestsRequestParams): Promise { + async sendParams({ value, fee, memo }: sendParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestsRequest: 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.queryKeyRequestsRequest({ value: QueryKeyRequestsRequest.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:sendQueryKeyRequestsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendParams: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeysResponse({ value, fee, memo }: sendQueryKeysResponseParams): Promise { + async sendQuerySpaceByAddressRequest({ value, fee, memo }: sendQuerySpaceByAddressRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeysResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySpaceByAddressRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeysResponse({ value: QueryKeysResponse.fromPartial(value) }) + let msg = this.querySpaceByAddressRequest({ value: QuerySpaceByAddressRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeysResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySpaceByAddressRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgFulfilSignatureRequest({ value, fee, memo }: sendMsgFulfilSignatureRequestParams): Promise { + async sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }: sendQuerySignTransactionRequestByIdRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgFulfilSignatureRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgFulfilSignatureRequest({ value: MsgFulfilSignatureRequest.fromPartial(value) }) + let msg = this.querySignTransactionRequestByIdRequest({ value: QuerySignTransactionRequestByIdRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgFulfilSignatureRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Could not broadcast Tx: '+ e.message) } }, - async sendKeychainFees({ value, fee, memo }: sendKeychainFeesParams): Promise { + async sendMsgAddSpaceOwner({ value, fee, memo }: sendMsgAddSpaceOwnerParams): Promise { if (!signer) { - throw new Error('TxClient:sendKeychainFees: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAddSpaceOwner: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.keychainFees({ value: KeychainFees.fromPartial(value) }) + let msg = this.msgAddSpaceOwner({ value: MsgAddSpaceOwner.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendKeychainFees: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAddSpaceOwner: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }: sendQuerySignTransactionRequestByIdRequestParams): Promise { + async sendMsgNewSignatureRequestResponse({ value, fee, memo }: sendMsgNewSignatureRequestResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignTransactionRequestByIdRequest({ value: QuerySignTransactionRequestByIdRequest.fromPartial(value) }) + let msg = this.msgNewSignatureRequestResponse({ value: MsgNewSignatureRequestResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySpacesResponse({ value, fee, memo }: sendQuerySpacesResponseParams): Promise { + async sendQueryKeychainByAddressResponse({ value, fee, memo }: sendQueryKeychainByAddressResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpacesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeychainByAddressResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySpacesResponse({ value: QuerySpacesResponse.fromPartial(value) }) + let msg = this.queryKeychainByAddressResponse({ value: QueryKeychainByAddressResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySpacesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeychainByAddressResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeychainByAddressRequest({ value, fee, memo }: sendQueryKeychainByAddressRequestParams): Promise { + async sendQueryKeysResponse({ value, fee, memo }: sendQueryKeysResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeychainByAddressRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeysResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeychainByAddressRequest({ value: QueryKeychainByAddressRequest.fromPartial(value) }) + let msg = this.queryKeysResponse({ value: QueryKeysResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeychainByAddressRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeysResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeyRequestByIdResponse({ value, fee, memo }: sendQueryKeyRequestByIdResponseParams): Promise { + async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestByIdResponse: 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.queryKeyRequestByIdResponse({ value: QueryKeyRequestByIdResponse.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:sendQueryKeyRequestByIdResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message) } }, - async sendSignTransactionRequestResponse({ value, fee, memo }: sendSignTransactionRequestResponseParams): Promise { + async sendMsgNewKeyRequest({ value, fee, memo }: sendMsgNewKeyRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendSignTransactionRequestResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewKeyRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.signTransactionRequestResponse({ value: SignTransactionRequestResponse.fromPartial(value) }) + let msg = this.msgNewKeyRequest({ value: MsgNewKeyRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSignTransactionRequestResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewKeyRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRemoveSpaceOwner({ value, fee, memo }: sendMsgRemoveSpaceOwnerParams): Promise { + async sendMsgUpdateSpaceResponse({ value, fee, memo }: sendMsgUpdateSpaceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRemoveSpaceOwner: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateSpaceResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRemoveSpaceOwner({ value: MsgRemoveSpaceOwner.fromPartial(value) }) + let msg = this.msgUpdateSpaceResponse({ value: MsgUpdateSpaceResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRemoveSpaceOwner: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateSpaceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewKeyRequest({ value, fee, memo }: sendMsgNewKeyRequestParams): Promise { + async sendMsgNewKeyRequestResponse({ value, fee, memo }: sendMsgNewKeyRequestResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewKeyRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewKeyRequestResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewKeyRequest({ value: MsgNewKeyRequest.fromPartial(value) }) + let msg = this.msgNewKeyRequestResponse({ value: MsgNewKeyRequestResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewKeyRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewKeyRequestResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewSignTransactionRequest({ value, fee, memo }: sendMsgNewSignTransactionRequestParams): Promise { + async sendMsgUpdateKeyRequestResponse({ value, fee, memo }: sendMsgUpdateKeyRequestResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewSignTransactionRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewSignTransactionRequest({ value: MsgNewSignTransactionRequest.fromPartial(value) }) + let msg = this.msgUpdateKeyRequestResponse({ value: MsgUpdateKeyRequestResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewSignTransactionRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Could not broadcast Tx: '+ e.message) } }, - async sendSpace({ value, fee, memo }: sendSpaceParams): Promise { + async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { if (!signer) { - throw new Error('TxClient:sendSpace: 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.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 sendQuerySignatureRequestByIdRequest({ value, fee, memo }: sendQuerySignatureRequestByIdRequestParams): Promise { + if (!signer) { + throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.querySignatureRequestByIdRequest({ value: QuerySignatureRequestByIdRequest.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Could not broadcast Tx: '+ e.message) + } + }, + + async sendSignTransactionRequest({ value, fee, memo }: sendSignTransactionRequestParams): Promise { + if (!signer) { + throw new Error('TxClient:sendSignTransactionRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.space({ value: Space.fromPartial(value) }) + let msg = this.signTransactionRequest({ value: SignTransactionRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSpace: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSignTransactionRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeychainsResponse({ value, fee, memo }: sendQueryKeychainsResponseParams): Promise { + async sendMsgNewKey({ value, fee, memo }: sendMsgNewKeyParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeychainsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewKey: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeychainsResponse({ value: QueryKeychainsResponse.fromPartial(value) }) + let msg = this.msgNewKey({ value: MsgNewKey.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeychainsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewKey: Could not broadcast Tx: '+ e.message) } }, - async sendKeyResponse({ value, fee, memo }: sendKeyResponseParams): Promise { + async sendMsgNewSignTransactionRequestResponse({ value, fee, memo }: sendMsgNewSignTransactionRequestResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendKeyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.keyResponse({ value: KeyResponse.fromPartial(value) }) + let msg = this.msgNewSignTransactionRequestResponse({ value: MsgNewSignTransactionRequestResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendKeyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySignatureRequestByIdResponse({ value, fee, memo }: sendQuerySignatureRequestByIdResponseParams): Promise { + async sendMetadataEthereum({ value, fee, memo }: sendMetadataEthereumParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMetadataEthereum: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignatureRequestByIdResponse({ value: QuerySignatureRequestByIdResponse.fromPartial(value) }) + let msg = this.metadataEthereum({ value: MetadataEthereum.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMetadataEthereum: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewKeychain({ value, fee, memo }: sendMsgNewKeychainParams): Promise { + async sendQueryKeyRequestByIdResponse({ value, fee, memo }: sendQueryKeyRequestByIdResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewKeychain: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeyRequestByIdResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewKeychain({ value: MsgNewKeychain.fromPartial(value) }) + let msg = this.queryKeyRequestByIdResponse({ value: QueryKeyRequestByIdResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewKeychain: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeyRequestByIdResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateKeychainResponse({ value, fee, memo }: sendMsgUpdateKeychainResponseParams): Promise { + async sendMsgAddSpaceOwnerResponse({ value, fee, memo }: sendMsgAddSpaceOwnerResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeychainResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateKeychainResponse({ value: MsgUpdateKeychainResponse.fromPartial(value) }) + let msg = this.msgAddSpaceOwnerResponse({ value: MsgAddSpaceOwnerResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateKeychainResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewKeyRequestResponse({ value, fee, memo }: sendMsgNewKeyRequestResponseParams): Promise { + async sendQuerySignatureRequestsResponse({ value, fee, memo }: sendQuerySignatureRequestsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewKeyRequestResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySignatureRequestsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewKeyRequestResponse({ value: MsgNewKeyRequestResponse.fromPartial(value) }) + let msg = this.querySignatureRequestsResponse({ value: QuerySignatureRequestsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewKeyRequestResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySignatureRequestsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendGenesisState({ value, fee, memo }: sendGenesisStateParams): Promise { + async sendQuerySignTransactionRequestsResponse({ value, fee, memo }: sendQuerySignTransactionRequestsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendGenesisState: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySignTransactionRequestsResponse: Unable to 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.querySignTransactionRequestsResponse({ value: QuerySignTransactionRequestsResponse.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:sendQuerySignTransactionRequestsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendKeychain({ value, fee, memo }: sendKeychainParams): Promise { + async sendQuerySignatureRequestByIdResponse({ value, fee, memo }: sendQuerySignatureRequestByIdResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendKeychain: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.keychain({ value: Keychain.fromPartial(value) }) + let msg = this.querySignatureRequestByIdResponse({ value: QuerySignatureRequestByIdResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendKeychain: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgFulfilSignatureRequestResponse({ value, fee, memo }: sendMsgFulfilSignatureRequestResponseParams): Promise { + async sendMsgNewKeychain({ value, fee, memo }: sendMsgNewKeychainParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewKeychain: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgFulfilSignatureRequestResponse({ value: MsgFulfilSignatureRequestResponse.fromPartial(value) }) + let msg = this.msgNewKeychain({ value: MsgNewKeychain.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewKeychain: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeychainsRequest({ value, fee, memo }: sendQueryKeychainsRequestParams): Promise { + async sendMsgAddKeychainParty({ value, fee, memo }: sendMsgAddKeychainPartyParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeychainsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAddKeychainParty: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeychainsRequest({ value: QueryKeychainsRequest.fromPartial(value) }) + let msg = this.msgAddKeychainParty({ value: MsgAddKeychainParty.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeychainsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAddKeychainParty: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySpaceByAddressResponse({ value, fee, memo }: sendQuerySpaceByAddressResponseParams): Promise { + async sendMsgAddKeychainPartyResponse({ value, fee, memo }: sendMsgAddKeychainPartyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpaceByAddressResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAddKeychainPartyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySpaceByAddressResponse({ value: QuerySpaceByAddressResponse.fromPartial(value) }) + let msg = this.msgAddKeychainPartyResponse({ value: MsgAddKeychainPartyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySpaceByAddressResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAddKeychainPartyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeysRequest({ value, fee, memo }: sendQueryKeysRequestParams): Promise { + async sendMsgFulfilSignatureRequest({ value, fee, memo }: sendMsgFulfilSignatureRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeysRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgFulfilSignatureRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeysRequest({ value: QueryKeysRequest.fromPartial(value) }) + let msg = this.msgFulfilSignatureRequest({ value: MsgFulfilSignatureRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeysRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgFulfilSignatureRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateKeyRequest({ value, fee, memo }: sendMsgUpdateKeyRequestParams): Promise { + async sendMsgNewSignTransactionRequest({ value, fee, memo }: sendMsgNewSignTransactionRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeyRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewSignTransactionRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateKeyRequest({ value: MsgUpdateKeyRequest.fromPartial(value) }) + let msg = this.msgNewSignTransactionRequest({ value: MsgNewSignTransactionRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateKeyRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewSignTransactionRequest: Could not broadcast Tx: '+ e.message) } }, @@ -1201,157 +1229,157 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQueryKeyRequestsResponse({ value, fee, memo }: sendQueryKeyRequestsResponseParams): Promise { + async sendWalletKeyResponse({ value, fee, memo }: sendWalletKeyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendWalletKeyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeyRequestsResponse({ value: QueryKeyRequestsResponse.fromPartial(value) }) + let msg = this.walletKeyResponse({ value: WalletKeyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeyRequestsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendWalletKeyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendKey({ value, fee, memo }: sendKeyParams): Promise { + async sendMsgNewKeychainResponse({ value, fee, memo }: sendMsgNewKeychainResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendKey: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewKeychainResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.key({ value: Key.fromPartial(value) }) + let msg = this.msgNewKeychainResponse({ value: MsgNewKeychainResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendKey: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewKeychainResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateSpace({ value, fee, memo }: sendMsgUpdateSpaceParams): Promise { + async sendMsgUpdateKeychainResponse({ value, fee, memo }: sendMsgUpdateKeychainResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateSpace: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateKeychainResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateSpace({ value: MsgUpdateSpace.fromPartial(value) }) + let msg = this.msgUpdateKeychainResponse({ value: MsgUpdateKeychainResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateSpace: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateKeychainResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewSignatureRequestResponse({ value, fee, memo }: sendMsgNewSignatureRequestResponseParams): Promise { + async sendQuerySpacesResponse({ value, fee, memo }: sendQuerySpacesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySpacesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewSignatureRequestResponse({ value: MsgNewSignatureRequestResponse.fromPartial(value) }) + let msg = this.querySpacesResponse({ value: QuerySpacesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySpacesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySignTransactionRequestsRequest({ value, fee, memo }: sendQuerySignTransactionRequestsRequestParams): Promise { + async sendQueryKeychainsRequest({ value, fee, memo }: sendQueryKeychainsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeychainsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignTransactionRequestsRequest({ value: QuerySignTransactionRequestsRequest.fromPartial(value) }) + let msg = this.queryKeychainsRequest({ value: QueryKeychainsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeychainsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySignTransactionRequestsResponse({ value, fee, memo }: sendQuerySignTransactionRequestsResponseParams): Promise { + async sendQuerySpacesRequest({ value, fee, memo }: sendQuerySpacesRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySpacesRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignTransactionRequestsResponse({ value: QuerySignTransactionRequestsResponse.fromPartial(value) }) + let msg = this.querySpacesRequest({ value: QuerySpacesRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySignTransactionRequestsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySpacesRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAddSpaceOwner({ value, fee, memo }: sendMsgAddSpaceOwnerParams): Promise { + async sendMsgNewSpaceResponse({ value, fee, memo }: sendMsgNewSpaceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAddSpaceOwner: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewSpaceResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgAddSpaceOwner({ value: MsgAddSpaceOwner.fromPartial(value) }) + let msg = this.msgNewSpaceResponse({ value: MsgNewSpaceResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAddSpaceOwner: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewSpaceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewKey({ value, fee, memo }: sendMsgNewKeyParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewKey: 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.msgNewKey({ value: MsgNewKey.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:sendMsgNewKey: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateKeyRequestResponse({ value, fee, memo }: sendMsgUpdateKeyRequestResponseParams): Promise { + async sendKeyResponse({ value, fee, memo }: sendKeyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendKeyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateKeyRequestResponse({ value: MsgUpdateKeyRequestResponse.fromPartial(value) }) + let msg = this.keyResponse({ value: KeyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendKeyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySignatureRequestsResponse({ value, fee, memo }: sendQuerySignatureRequestsResponseParams): Promise { + async sendMsgNewSpace({ value, fee, memo }: sendMsgNewSpaceParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewSpace: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignatureRequestsResponse({ value: QuerySignatureRequestsResponse.fromPartial(value) }) + let msg = this.msgNewSpace({ value: MsgNewSpace.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySignatureRequestsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewSpace: Could not broadcast Tx: '+ e.message) } }, - async sendMetadataEthereum({ value, fee, memo }: sendMetadataEthereumParams): Promise { + async sendMsgRemoveSpaceOwner({ value, fee, memo }: sendMsgRemoveSpaceOwnerParams): Promise { if (!signer) { - throw new Error('TxClient:sendMetadataEthereum: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRemoveSpaceOwner: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.metadataEthereum({ value: MetadataEthereum.fromPartial(value) }) + let msg = this.msgRemoveSpaceOwner({ value: MsgRemoveSpaceOwner.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMetadataEthereum: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRemoveSpaceOwner: Could not broadcast Tx: '+ e.message) } }, @@ -1369,199 +1397,199 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendKeychainFees({ value, fee, memo }: sendKeychainFeesParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendKeychainFees: Unable to 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.keychainFees({ value: KeychainFees.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:sendKeychainFees: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewSpace({ value, fee, memo }: sendMsgNewSpaceParams): Promise { + async sendQuerySpaceByAddressResponse({ value, fee, memo }: sendQuerySpaceByAddressResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewSpace: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySpaceByAddressResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewSpace({ value: MsgNewSpace.fromPartial(value) }) + let msg = this.querySpaceByAddressResponse({ value: QuerySpaceByAddressResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewSpace: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySpaceByAddressResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewSpaceResponse({ value, fee, memo }: sendMsgNewSpaceResponseParams): Promise { + async sendQuerySignatureRequestsRequest({ value, fee, memo }: sendQuerySignatureRequestsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewSpaceResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySignatureRequestsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewSpaceResponse({ value: MsgNewSpaceResponse.fromPartial(value) }) + let msg = this.querySignatureRequestsRequest({ value: QuerySignatureRequestsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewSpaceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySignatureRequestsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAddKeychainParty({ value, fee, memo }: sendMsgAddKeychainPartyParams): Promise { + async sendMsgFulfilSignatureRequestResponse({ value, fee, memo }: sendMsgFulfilSignatureRequestResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAddKeychainParty: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgAddKeychainParty({ value: MsgAddKeychainParty.fromPartial(value) }) + let msg = this.msgFulfilSignatureRequestResponse({ value: MsgFulfilSignatureRequestResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAddKeychainParty: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateSpaceResponse({ value, fee, memo }: sendMsgUpdateSpaceResponseParams): Promise { + async sendSpace({ value, fee, memo }: sendSpaceParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateSpaceResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSpace: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateSpaceResponse({ value: MsgUpdateSpaceResponse.fromPartial(value) }) + let msg = this.space({ value: Space.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateSpaceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSpace: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSignedData({ value, fee, memo }: sendMsgSignedDataParams): Promise { + async sendQuerySpacesByOwnerRequest({ value, fee, memo }: sendQuerySpacesByOwnerRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSignedData: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSignedData({ value: MsgSignedData.fromPartial(value) }) + let msg = this.querySpacesByOwnerRequest({ value: QuerySpacesByOwnerRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSignedData: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySignatureRequestsRequest({ value, fee, memo }: sendQuerySignatureRequestsRequestParams): Promise { + async sendSignTransactionRequestResponse({ value, fee, memo }: sendSignTransactionRequestResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSignTransactionRequestResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignatureRequestsRequest({ value: QuerySignatureRequestsRequest.fromPartial(value) }) + let msg = this.signTransactionRequestResponse({ value: SignTransactionRequestResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySignatureRequestsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSignTransactionRequestResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { + async sendMsgUpdateSpace({ value, fee, memo }: sendMsgUpdateSpaceParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateSpace: Unable to 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.msgUpdateSpace({ value: MsgUpdateSpace.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:sendMsgUpdateSpace: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }: sendMsgRemoveSpaceOwnerResponseParams): Promise { + async sendQueryKeyRequestByIdRequest({ value, fee, memo }: sendQueryKeyRequestByIdRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRemoveSpaceOwnerResponse({ value: MsgRemoveSpaceOwnerResponse.fromPartial(value) }) + let msg = this.queryKeyRequestByIdRequest({ value: QueryKeyRequestByIdRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Could not broadcast Tx: '+ e.message) } }, - async sendSignTransactionRequest({ value, fee, memo }: sendSignTransactionRequestParams): Promise { + async sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }: sendMsgRemoveSpaceOwnerResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendSignTransactionRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.signTransactionRequest({ value: SignTransactionRequest.fromPartial(value) }) + let msg = this.msgRemoveSpaceOwnerResponse({ value: MsgRemoveSpaceOwnerResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSignTransactionRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }: sendQuerySignTransactionRequestByIdResponseParams): Promise { + async sendMsgSignedData({ value, fee, memo }: sendMsgSignedDataParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSignedData: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignTransactionRequestByIdResponse({ value: QuerySignTransactionRequestByIdResponse.fromPartial(value) }) + let msg = this.msgSignedData({ value: MsgSignedData.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSignedData: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendQueryKeyRequestsRequest({ value, fee, memo }: sendQueryKeyRequestsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeyRequestsRequest: Unable to 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.queryKeyRequestsRequest({ value: QueryKeyRequestsRequest.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:sendQueryKeyRequestsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAddSpaceOwnerResponse({ value, fee, memo }: sendMsgAddSpaceOwnerResponseParams): Promise { + async sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }: sendQuerySignTransactionRequestByIdResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgAddSpaceOwnerResponse({ value: MsgAddSpaceOwnerResponse.fromPartial(value) }) + let msg = this.querySignTransactionRequestByIdResponse({ value: QuerySignTransactionRequestByIdResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewKeychainResponse({ value, fee, memo }: sendMsgNewKeychainResponseParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewKeychainResponse: 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.msgNewKeychainResponse({ value: MsgNewKeychainResponse.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:sendMsgNewKeychainResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, @@ -1579,356 +1607,344 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendQuerySpacesRequest({ value, fee, memo }: sendQuerySpacesRequestParams): Promise { + async sendQueryKeyRequestsResponse({ value, fee, memo }: sendQueryKeyRequestsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpacesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeyRequestsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySpacesRequest({ value: QuerySpacesRequest.fromPartial(value) }) + let msg = this.queryKeyRequestsResponse({ value: QueryKeyRequestsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySpacesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeyRequestsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySpaceByAddressRequest({ value, fee, memo }: sendQuerySpaceByAddressRequestParams): Promise { + async sendSignRequest({ value, fee, memo }: sendSignRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpaceByAddressRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSignRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySpaceByAddressRequest({ value: QuerySpaceByAddressRequest.fromPartial(value) }) + let msg = this.signRequest({ value: SignRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySpaceByAddressRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSignRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeychainByAddressResponse({ value, fee, memo }: sendQueryKeychainByAddressResponseParams): Promise { + async sendKeychain({ value, fee, memo }: sendKeychainParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeychainByAddressResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendKeychain: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeychainByAddressResponse({ value: QueryKeychainByAddressResponse.fromPartial(value) }) + let msg = this.keychain({ value: Keychain.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeychainByAddressResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendKeychain: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateKeychain({ value, fee, memo }: sendMsgUpdateKeychainParams): Promise { + async sendQueryKeychainsResponse({ value, fee, memo }: sendQueryKeychainsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeychain: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeychainsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateKeychain({ value: MsgUpdateKeychain.fromPartial(value) }) + let msg = this.queryKeychainsResponse({ value: QueryKeychainsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateKeychain: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeychainsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeyRequestByIdRequest({ value, fee, memo }: sendQueryKeyRequestByIdRequestParams): Promise { + async sendMsgUpdateKeychain({ value, fee, memo }: sendMsgUpdateKeychainParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateKeychain: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeyRequestByIdRequest({ value: QueryKeyRequestByIdRequest.fromPartial(value) }) + let msg = this.msgUpdateKeychain({ value: MsgUpdateKeychain.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateKeychain: Could not broadcast Tx: '+ e.message) } }, - async sendWalletKeyResponse({ value, fee, memo }: sendWalletKeyResponseParams): Promise { + async sendKey({ value, fee, memo }: sendKeyParams): Promise { if (!signer) { - throw new Error('TxClient:sendWalletKeyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendKey: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.walletKeyResponse({ value: WalletKeyResponse.fromPartial(value) }) + let msg = this.key({ value: Key.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendWalletKeyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendKey: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySignatureRequestByIdRequest({ value, fee, memo }: sendQuerySignatureRequestByIdRequestParams): Promise { - if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignatureRequestByIdRequest({ value: QuerySignatureRequestByIdRequest.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + + queryKeychainByAddressRequest({ value }: queryKeychainByAddressRequestParams): EncodeObject { + try { + return { typeUrl: "/warden.warden.v1beta1.QueryKeychainByAddressRequest", value: QueryKeychainByAddressRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:QueryKeychainByAddressRequest: Could not create message: ' + e.message) } }, - async sendSignRequest({ value, fee, memo }: sendSignRequestParams): Promise { - if (!signer) { - throw new Error('TxClient:sendSignRequest: Unable to sign Tx. Signer is not present.') - } - try { - const { address } = (await signer.getAccounts())[0]; - const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.signRequest({ value: SignRequest.fromPartial(value) }) - return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + queryKeysRequest({ value }: queryKeysRequestParams): EncodeObject { + try { + return { typeUrl: "/warden.warden.v1beta1.QueryKeysRequest", value: QueryKeysRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:sendSignRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:QueryKeysRequest: Could not create message: ' + e.message) } }, - - msgAddKeychainPartyResponse({ value }: msgAddKeychainPartyResponseParams): EncodeObject { + querySignTransactionRequestsRequest({ value }: querySignTransactionRequestsRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgAddKeychainPartyResponse", value: MsgAddKeychainPartyResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestsRequest", value: QuerySignTransactionRequestsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAddKeychainPartyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignTransactionRequestsRequest: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + msgUpdateKeyRequest({ value }: msgUpdateKeyRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeyRequest", value: MsgUpdateKeyRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateKeyRequest: Could not create message: ' + e.message) } }, - msgNewSignTransactionRequestResponse({ value }: msgNewSignTransactionRequestResponseParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewSignTransactionRequestResponse", value: MsgNewSignTransactionRequestResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.Params", value: Params.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewSignTransactionRequestResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Params: Could not create message: ' + e.message) } }, - querySpacesByOwnerRequest({ value }: querySpacesByOwnerRequestParams): EncodeObject { + querySpaceByAddressRequest({ value }: querySpaceByAddressRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySpacesByOwnerRequest", value: QuerySpacesByOwnerRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QuerySpaceByAddressRequest", value: QuerySpaceByAddressRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySpacesByOwnerRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpaceByAddressRequest: Could not create message: ' + e.message) } }, - queryKeyRequestsRequest({ value }: queryKeyRequestsRequestParams): EncodeObject { + querySignTransactionRequestByIdRequest({ value }: querySignTransactionRequestByIdRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestsRequest", value: QueryKeyRequestsRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestByIdRequest", value: QuerySignTransactionRequestByIdRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeyRequestsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignTransactionRequestByIdRequest: Could not create message: ' + e.message) } }, - queryKeysResponse({ value }: queryKeysResponseParams): EncodeObject { + msgAddSpaceOwner({ value }: msgAddSpaceOwnerParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeysResponse", value: QueryKeysResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgAddSpaceOwner", value: MsgAddSpaceOwner.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeysResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAddSpaceOwner: Could not create message: ' + e.message) } }, - msgFulfilSignatureRequest({ value }: msgFulfilSignatureRequestParams): EncodeObject { + msgNewSignatureRequestResponse({ value }: msgNewSignatureRequestResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgFulfilSignatureRequest", value: MsgFulfilSignatureRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgNewSignatureRequestResponse", value: MsgNewSignatureRequestResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgFulfilSignatureRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewSignatureRequestResponse: Could not create message: ' + e.message) } }, - keychainFees({ value }: keychainFeesParams): EncodeObject { + queryKeychainByAddressResponse({ value }: queryKeychainByAddressResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.KeychainFees", value: KeychainFees.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QueryKeychainByAddressResponse", value: QueryKeychainByAddressResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:KeychainFees: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeychainByAddressResponse: Could not create message: ' + e.message) } }, - querySignTransactionRequestByIdRequest({ value }: querySignTransactionRequestByIdRequestParams): EncodeObject { + queryKeysResponse({ value }: queryKeysResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestByIdRequest", value: QuerySignTransactionRequestByIdRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QueryKeysResponse", value: QueryKeysResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignTransactionRequestByIdRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeysResponse: Could not create message: ' + e.message) } }, - querySpacesResponse({ value }: querySpacesResponseParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySpacesResponse", value: QuerySpacesResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySpacesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) } }, - queryKeychainByAddressRequest({ value }: queryKeychainByAddressRequestParams): EncodeObject { + msgNewKeyRequest({ value }: msgNewKeyRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeychainByAddressRequest", value: QueryKeychainByAddressRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgNewKeyRequest", value: MsgNewKeyRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeychainByAddressRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewKeyRequest: Could not create message: ' + e.message) } }, - queryKeyRequestByIdResponse({ value }: queryKeyRequestByIdResponseParams): EncodeObject { + msgUpdateSpaceResponse({ value }: msgUpdateSpaceResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestByIdResponse", value: QueryKeyRequestByIdResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateSpaceResponse", value: MsgUpdateSpaceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeyRequestByIdResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateSpaceResponse: Could not create message: ' + e.message) } }, - signTransactionRequestResponse({ value }: signTransactionRequestResponseParams): EncodeObject { + msgNewKeyRequestResponse({ value }: msgNewKeyRequestResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.SignTransactionRequestResponse", value: SignTransactionRequestResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgNewKeyRequestResponse", value: MsgNewKeyRequestResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SignTransactionRequestResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewKeyRequestResponse: Could not create message: ' + e.message) } }, - msgRemoveSpaceOwner({ value }: msgRemoveSpaceOwnerParams): EncodeObject { + msgUpdateKeyRequestResponse({ value }: msgUpdateKeyRequestResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgRemoveSpaceOwner", value: MsgRemoveSpaceOwner.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeyRequestResponse", value: MsgUpdateKeyRequestResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRemoveSpaceOwner: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateKeyRequestResponse: Could not create message: ' + e.message) } }, - msgNewKeyRequest({ value }: msgNewKeyRequestParams): EncodeObject { + genesisState({ value }: genesisStateParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewKeyRequest", value: MsgNewKeyRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewKeyRequest: Could not create message: ' + e.message) + throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) } }, - msgNewSignTransactionRequest({ value }: msgNewSignTransactionRequestParams): EncodeObject { + querySignatureRequestByIdRequest({ value }: querySignatureRequestByIdRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewSignTransactionRequest", value: MsgNewSignTransactionRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestByIdRequest", value: QuerySignatureRequestByIdRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewSignTransactionRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignatureRequestByIdRequest: Could not create message: ' + e.message) } }, - space({ value }: spaceParams): EncodeObject { + signTransactionRequest({ value }: signTransactionRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.Space", value: Space.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.SignTransactionRequest", value: SignTransactionRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Space: Could not create message: ' + e.message) + throw new Error('TxClient:SignTransactionRequest: Could not create message: ' + e.message) } }, - queryKeychainsResponse({ value }: queryKeychainsResponseParams): EncodeObject { + msgNewKey({ value }: msgNewKeyParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeychainsResponse", value: QueryKeychainsResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgNewKey", value: MsgNewKey.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeychainsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewKey: Could not create message: ' + e.message) } }, - keyResponse({ value }: keyResponseParams): EncodeObject { + msgNewSignTransactionRequestResponse({ value }: msgNewSignTransactionRequestResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.KeyResponse", value: KeyResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgNewSignTransactionRequestResponse", value: MsgNewSignTransactionRequestResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:KeyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewSignTransactionRequestResponse: Could not create message: ' + e.message) } }, - querySignatureRequestByIdResponse({ value }: querySignatureRequestByIdResponseParams): EncodeObject { + metadataEthereum({ value }: metadataEthereumParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestByIdResponse", value: QuerySignatureRequestByIdResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MetadataEthereum", value: MetadataEthereum.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignatureRequestByIdResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MetadataEthereum: Could not create message: ' + e.message) } }, - msgNewKeychain({ value }: msgNewKeychainParams): EncodeObject { + queryKeyRequestByIdResponse({ value }: queryKeyRequestByIdResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewKeychain", value: MsgNewKeychain.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestByIdResponse", value: QueryKeyRequestByIdResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewKeychain: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeyRequestByIdResponse: Could not create message: ' + e.message) } }, - msgUpdateKeychainResponse({ value }: msgUpdateKeychainResponseParams): EncodeObject { + msgAddSpaceOwnerResponse({ value }: msgAddSpaceOwnerResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeychainResponse", value: MsgUpdateKeychainResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgAddSpaceOwnerResponse", value: MsgAddSpaceOwnerResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateKeychainResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAddSpaceOwnerResponse: Could not create message: ' + e.message) } }, - msgNewKeyRequestResponse({ value }: msgNewKeyRequestResponseParams): EncodeObject { + querySignatureRequestsResponse({ value }: querySignatureRequestsResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewKeyRequestResponse", value: MsgNewKeyRequestResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestsResponse", value: QuerySignatureRequestsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewKeyRequestResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignatureRequestsResponse: Could not create message: ' + e.message) } }, - genesisState({ value }: genesisStateParams): EncodeObject { + querySignTransactionRequestsResponse({ value }: querySignTransactionRequestsResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.GenesisState", value: GenesisState.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestsResponse", value: QuerySignTransactionRequestsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:GenesisState: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignTransactionRequestsResponse: Could not create message: ' + e.message) } }, - keychain({ value }: keychainParams): EncodeObject { + querySignatureRequestByIdResponse({ value }: querySignatureRequestByIdResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.Keychain", value: Keychain.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestByIdResponse", value: QuerySignatureRequestByIdResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Keychain: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignatureRequestByIdResponse: Could not create message: ' + e.message) } }, - msgFulfilSignatureRequestResponse({ value }: msgFulfilSignatureRequestResponseParams): EncodeObject { + msgNewKeychain({ value }: msgNewKeychainParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgFulfilSignatureRequestResponse", value: MsgFulfilSignatureRequestResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgNewKeychain", value: MsgNewKeychain.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgFulfilSignatureRequestResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewKeychain: Could not create message: ' + e.message) } }, - queryKeychainsRequest({ value }: queryKeychainsRequestParams): EncodeObject { + msgAddKeychainParty({ value }: msgAddKeychainPartyParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeychainsRequest", value: QueryKeychainsRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgAddKeychainParty", value: MsgAddKeychainParty.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeychainsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAddKeychainParty: Could not create message: ' + e.message) } }, - querySpaceByAddressResponse({ value }: querySpaceByAddressResponseParams): EncodeObject { + msgAddKeychainPartyResponse({ value }: msgAddKeychainPartyResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySpaceByAddressResponse", value: QuerySpaceByAddressResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgAddKeychainPartyResponse", value: MsgAddKeychainPartyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySpaceByAddressResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAddKeychainPartyResponse: Could not create message: ' + e.message) } }, - queryKeysRequest({ value }: queryKeysRequestParams): EncodeObject { + msgFulfilSignatureRequest({ value }: msgFulfilSignatureRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeysRequest", value: QueryKeysRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgFulfilSignatureRequest", value: MsgFulfilSignatureRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeysRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgFulfilSignatureRequest: Could not create message: ' + e.message) } }, - msgUpdateKeyRequest({ value }: msgUpdateKeyRequestParams): EncodeObject { + msgNewSignTransactionRequest({ value }: msgNewSignTransactionRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeyRequest", value: MsgUpdateKeyRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgNewSignTransactionRequest", value: MsgNewSignTransactionRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateKeyRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewSignTransactionRequest: Could not create message: ' + e.message) } }, @@ -1940,91 +1956,91 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - queryKeyRequestsResponse({ value }: queryKeyRequestsResponseParams): EncodeObject { + walletKeyResponse({ value }: walletKeyResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestsResponse", value: QueryKeyRequestsResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.WalletKeyResponse", value: WalletKeyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeyRequestsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:WalletKeyResponse: Could not create message: ' + e.message) } }, - key({ value }: keyParams): EncodeObject { + msgNewKeychainResponse({ value }: msgNewKeychainResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.Key", value: Key.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgNewKeychainResponse", value: MsgNewKeychainResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Key: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewKeychainResponse: Could not create message: ' + e.message) } }, - msgUpdateSpace({ value }: msgUpdateSpaceParams): EncodeObject { + msgUpdateKeychainResponse({ value }: msgUpdateKeychainResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateSpace", value: MsgUpdateSpace.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeychainResponse", value: MsgUpdateKeychainResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateSpace: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateKeychainResponse: Could not create message: ' + e.message) } }, - msgNewSignatureRequestResponse({ value }: msgNewSignatureRequestResponseParams): EncodeObject { + querySpacesResponse({ value }: querySpacesResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewSignatureRequestResponse", value: MsgNewSignatureRequestResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QuerySpacesResponse", value: QuerySpacesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewSignatureRequestResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpacesResponse: Could not create message: ' + e.message) } }, - querySignTransactionRequestsRequest({ value }: querySignTransactionRequestsRequestParams): EncodeObject { + queryKeychainsRequest({ value }: queryKeychainsRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestsRequest", value: QuerySignTransactionRequestsRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QueryKeychainsRequest", value: QueryKeychainsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignTransactionRequestsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeychainsRequest: Could not create message: ' + e.message) } }, - querySignTransactionRequestsResponse({ value }: querySignTransactionRequestsResponseParams): EncodeObject { + querySpacesRequest({ value }: querySpacesRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestsResponse", value: QuerySignTransactionRequestsResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QuerySpacesRequest", value: QuerySpacesRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignTransactionRequestsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpacesRequest: Could not create message: ' + e.message) } }, - msgAddSpaceOwner({ value }: msgAddSpaceOwnerParams): EncodeObject { + msgNewSpaceResponse({ value }: msgNewSpaceResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgAddSpaceOwner", value: MsgAddSpaceOwner.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgNewSpaceResponse", value: MsgNewSpaceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAddSpaceOwner: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewSpaceResponse: Could not create message: ' + e.message) } }, - msgNewKey({ value }: msgNewKeyParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewKey", value: MsgNewKey.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewKey: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - msgUpdateKeyRequestResponse({ value }: msgUpdateKeyRequestResponseParams): EncodeObject { + keyResponse({ value }: keyResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeyRequestResponse", value: MsgUpdateKeyRequestResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.KeyResponse", value: KeyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateKeyRequestResponse: Could not create message: ' + e.message) + throw new Error('TxClient:KeyResponse: Could not create message: ' + e.message) } }, - querySignatureRequestsResponse({ value }: querySignatureRequestsResponseParams): EncodeObject { + msgNewSpace({ value }: msgNewSpaceParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestsResponse", value: QuerySignatureRequestsResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgNewSpace", value: MsgNewSpace.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignatureRequestsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewSpace: Could not create message: ' + e.message) } }, - metadataEthereum({ value }: metadataEthereumParams): EncodeObject { + msgRemoveSpaceOwner({ value }: msgRemoveSpaceOwnerParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MetadataEthereum", value: MetadataEthereum.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgRemoveSpaceOwner", value: MsgRemoveSpaceOwner.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MetadataEthereum: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRemoveSpaceOwner: Could not create message: ' + e.message) } }, @@ -2036,115 +2052,115 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + keychainFees({ value }: keychainFeesParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.KeychainFees", value: KeychainFees.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:KeychainFees: Could not create message: ' + e.message) } }, - msgNewSpace({ value }: msgNewSpaceParams): EncodeObject { + querySpaceByAddressResponse({ value }: querySpaceByAddressResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewSpace", value: MsgNewSpace.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QuerySpaceByAddressResponse", value: QuerySpaceByAddressResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewSpace: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpaceByAddressResponse: Could not create message: ' + e.message) } }, - msgNewSpaceResponse({ value }: msgNewSpaceResponseParams): EncodeObject { + querySignatureRequestsRequest({ value }: querySignatureRequestsRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewSpaceResponse", value: MsgNewSpaceResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestsRequest", value: QuerySignatureRequestsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewSpaceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignatureRequestsRequest: Could not create message: ' + e.message) } }, - msgAddKeychainParty({ value }: msgAddKeychainPartyParams): EncodeObject { + msgFulfilSignatureRequestResponse({ value }: msgFulfilSignatureRequestResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgAddKeychainParty", value: MsgAddKeychainParty.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgFulfilSignatureRequestResponse", value: MsgFulfilSignatureRequestResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAddKeychainParty: Could not create message: ' + e.message) + throw new Error('TxClient:MsgFulfilSignatureRequestResponse: Could not create message: ' + e.message) } }, - msgUpdateSpaceResponse({ value }: msgUpdateSpaceResponseParams): EncodeObject { + space({ value }: spaceParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateSpaceResponse", value: MsgUpdateSpaceResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.Space", value: Space.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateSpaceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:Space: Could not create message: ' + e.message) } }, - msgSignedData({ value }: msgSignedDataParams): EncodeObject { + querySpacesByOwnerRequest({ value }: querySpacesByOwnerRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgSignedData", value: MsgSignedData.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QuerySpacesByOwnerRequest", value: QuerySpacesByOwnerRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSignedData: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpacesByOwnerRequest: Could not create message: ' + e.message) } }, - querySignatureRequestsRequest({ value }: querySignatureRequestsRequestParams): EncodeObject { + signTransactionRequestResponse({ value }: signTransactionRequestResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestsRequest", value: QuerySignatureRequestsRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.SignTransactionRequestResponse", value: SignTransactionRequestResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignatureRequestsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:SignTransactionRequestResponse: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + msgUpdateSpace({ value }: msgUpdateSpaceParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateSpace", value: MsgUpdateSpace.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateSpace: Could not create message: ' + e.message) } }, - msgRemoveSpaceOwnerResponse({ value }: msgRemoveSpaceOwnerResponseParams): EncodeObject { + queryKeyRequestByIdRequest({ value }: queryKeyRequestByIdRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgRemoveSpaceOwnerResponse", value: MsgRemoveSpaceOwnerResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestByIdRequest", value: QueryKeyRequestByIdRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRemoveSpaceOwnerResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeyRequestByIdRequest: Could not create message: ' + e.message) } }, - signTransactionRequest({ value }: signTransactionRequestParams): EncodeObject { + msgRemoveSpaceOwnerResponse({ value }: msgRemoveSpaceOwnerResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.SignTransactionRequest", value: SignTransactionRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgRemoveSpaceOwnerResponse", value: MsgRemoveSpaceOwnerResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SignTransactionRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRemoveSpaceOwnerResponse: Could not create message: ' + e.message) } }, - querySignTransactionRequestByIdResponse({ value }: querySignTransactionRequestByIdResponseParams): EncodeObject { + msgSignedData({ value }: msgSignedDataParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestByIdResponse", value: QuerySignTransactionRequestByIdResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgSignedData", value: MsgSignedData.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignTransactionRequestByIdResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSignedData: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + queryKeyRequestsRequest({ value }: queryKeyRequestsRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestsRequest", value: QueryKeyRequestsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeyRequestsRequest: Could not create message: ' + e.message) } }, - msgAddSpaceOwnerResponse({ value }: msgAddSpaceOwnerResponseParams): EncodeObject { + querySignTransactionRequestByIdResponse({ value }: querySignTransactionRequestByIdResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgAddSpaceOwnerResponse", value: MsgAddSpaceOwnerResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QuerySignTransactionRequestByIdResponse", value: QuerySignTransactionRequestByIdResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAddSpaceOwnerResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignTransactionRequestByIdResponse: Could not create message: ' + e.message) } }, - msgNewKeychainResponse({ value }: msgNewKeychainResponseParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgNewKeychainResponse", value: MsgNewKeychainResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewKeychainResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, @@ -2156,67 +2172,51 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - querySpacesRequest({ value }: querySpacesRequestParams): EncodeObject { - try { - return { typeUrl: "/warden.warden.v1beta1.QuerySpacesRequest", value: QuerySpacesRequest.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:QuerySpacesRequest: Could not create message: ' + e.message) - } - }, - - querySpaceByAddressRequest({ value }: querySpaceByAddressRequestParams): EncodeObject { - try { - return { typeUrl: "/warden.warden.v1beta1.QuerySpaceByAddressRequest", value: QuerySpaceByAddressRequest.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:QuerySpaceByAddressRequest: Could not create message: ' + e.message) - } - }, - - queryKeychainByAddressResponse({ value }: queryKeychainByAddressResponseParams): EncodeObject { + queryKeyRequestsResponse({ value }: queryKeyRequestsResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeychainByAddressResponse", value: QueryKeychainByAddressResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestsResponse", value: QueryKeyRequestsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeychainByAddressResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeyRequestsResponse: Could not create message: ' + e.message) } }, - msgUpdateKeychain({ value }: msgUpdateKeychainParams): EncodeObject { + signRequest({ value }: signRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeychain", value: MsgUpdateKeychain.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.SignRequest", value: SignRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateKeychain: Could not create message: ' + e.message) + throw new Error('TxClient:SignRequest: Could not create message: ' + e.message) } }, - queryKeyRequestByIdRequest({ value }: queryKeyRequestByIdRequestParams): EncodeObject { + keychain({ value }: keychainParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QueryKeyRequestByIdRequest", value: QueryKeyRequestByIdRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.Keychain", value: Keychain.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeyRequestByIdRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Keychain: Could not create message: ' + e.message) } }, - walletKeyResponse({ value }: walletKeyResponseParams): EncodeObject { + queryKeychainsResponse({ value }: queryKeychainsResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.WalletKeyResponse", value: WalletKeyResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.QueryKeychainsResponse", value: QueryKeychainsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:WalletKeyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeychainsResponse: Could not create message: ' + e.message) } }, - querySignatureRequestByIdRequest({ value }: querySignatureRequestByIdRequestParams): EncodeObject { + msgUpdateKeychain({ value }: msgUpdateKeychainParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.QuerySignatureRequestByIdRequest", value: QuerySignatureRequestByIdRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.MsgUpdateKeychain", value: MsgUpdateKeychain.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignatureRequestByIdRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateKeychain: Could not create message: ' + e.message) } }, - signRequest({ value }: signRequestParams): EncodeObject { + key({ value }: keyParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta1.SignRequest", value: SignRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta1.Key", value: Key.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SignRequest: Could not create message: ' + e.message) + throw new Error('TxClient:Key: Could not create message: ' + e.message) } }, diff --git a/ts-client/warden.warden.v1beta1/registry.ts b/ts-client/warden.warden.v1beta1/registry.ts index a16493abf..782c96fef 100755 --- a/ts-client/warden.warden.v1beta1/registry.ts +++ b/ts-client/warden.warden.v1beta1/registry.ts @@ -1,138 +1,138 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta1/tx"; -import { QueryParamsRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryKeysResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta1/tx"; -import { KeychainFees } from "./types/warden/warden/v1beta1/keychain"; -import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; -import { QuerySpacesResponse } from "./types/warden/warden/v1beta1/query"; import { QueryKeychainByAddressRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; -import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewKeyRequest } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta1/tx"; -import { Space } from "./types/warden/warden/v1beta1/space"; -import { QueryKeychainsResponse } from "./types/warden/warden/v1beta1/query"; -import { KeyResponse } from "./types/warden/warden/v1beta1/query"; -import { QuerySignatureRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgNewKeychain } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { GenesisState } from "./types/warden/warden/v1beta1/genesis"; -import { Keychain } from "./types/warden/warden/v1beta1/keychain"; -import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { QueryKeychainsRequest } from "./types/warden/warden/v1beta1/query"; -import { QuerySpaceByAddressResponse } from "./types/warden/warden/v1beta1/query"; import { QueryKeysRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta1/tx"; -import { QueryParamsResponse } from "./types/warden/warden/v1beta1/query"; -import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta1/query"; -import { Key } from "./types/warden/warden/v1beta1/key"; -import { MsgUpdateSpace } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; import { QuerySignTransactionRequestsRequest } from "./types/warden/warden/v1beta1/query"; -import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta1/tx"; +import { Params } from "./types/warden/warden/v1beta1/params"; +import { QuerySpaceByAddressRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewKey } from "./types/warden/warden/v1beta1/tx"; -import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; -import { QuerySignatureRequestsResponse } from "./types/warden/warden/v1beta1/query"; -import { MetadataEthereum } from "./types/warden/warden/v1beta1/tx"; -import { KeyRequest } from "./types/warden/warden/v1beta1/key"; +import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeychainByAddressResponse } from "./types/warden/warden/v1beta1/query"; +import { QueryKeysResponse } from "./types/warden/warden/v1beta1/query"; import { MsgUpdateParams } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSpace } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgAddKeychainParty } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewKeyRequest } from "./types/warden/warden/v1beta1/tx"; import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgSignedData } from "./types/warden/warden/v1beta1/tx"; -import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta1/query"; -import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { GenesisState } from "./types/warden/warden/v1beta1/genesis"; +import { QuerySignatureRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; import { SignTransactionRequest } from "./types/warden/warden/v1beta1/signature"; -import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; -import { Params } from "./types/warden/warden/v1beta1/params"; +import { MsgNewKey } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { MetadataEthereum } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; +import { QuerySignatureRequestsResponse } from "./types/warden/warden/v1beta1/query"; +import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta1/query"; +import { QuerySignatureRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgNewKeychain } from "./types/warden/warden/v1beta1/tx"; +import { MsgAddKeychainParty } from "./types/warden/warden/v1beta1/tx"; +import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta1/tx"; +import { QueryParamsResponse } from "./types/warden/warden/v1beta1/query"; +import { WalletKeyResponse } from "./types/warden/warden/v1beta1/query"; import { MsgNewKeychainResponse } from "./types/warden/warden/v1beta1/tx"; -import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta1/tx"; +import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta1/tx"; +import { QuerySpacesResponse } from "./types/warden/warden/v1beta1/query"; +import { QueryKeychainsRequest } from "./types/warden/warden/v1beta1/query"; import { QuerySpacesRequest } from "./types/warden/warden/v1beta1/query"; -import { QuerySpaceByAddressRequest } from "./types/warden/warden/v1beta1/query"; -import { QueryKeychainByAddressResponse } from "./types/warden/warden/v1beta1/query"; -import { MsgUpdateKeychain } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta1/tx"; +import { QueryParamsRequest } from "./types/warden/warden/v1beta1/query"; +import { KeyResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgNewSpace } from "./types/warden/warden/v1beta1/tx"; +import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta1/tx"; +import { KeyRequest } from "./types/warden/warden/v1beta1/key"; +import { KeychainFees } from "./types/warden/warden/v1beta1/keychain"; +import { QuerySpaceByAddressResponse } from "./types/warden/warden/v1beta1/query"; +import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta1/tx"; +import { Space } from "./types/warden/warden/v1beta1/space"; +import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta1/query"; +import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateSpace } from "./types/warden/warden/v1beta1/tx"; import { QueryKeyRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; -import { WalletKeyResponse } from "./types/warden/warden/v1beta1/query"; -import { QuerySignatureRequestByIdRequest } from "./types/warden/warden/v1beta1/query"; +import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgSignedData } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta1/query"; +import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta1/tx"; +import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta1/tx"; +import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta1/query"; import { SignRequest } from "./types/warden/warden/v1beta1/signature"; +import { Keychain } from "./types/warden/warden/v1beta1/keychain"; +import { QueryKeychainsResponse } from "./types/warden/warden/v1beta1/query"; +import { MsgUpdateKeychain } from "./types/warden/warden/v1beta1/tx"; +import { Key } from "./types/warden/warden/v1beta1/key"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/warden.warden.v1beta1.MsgAddKeychainPartyResponse", MsgAddKeychainPartyResponse], - ["/warden.warden.v1beta1.QueryParamsRequest", QueryParamsRequest], - ["/warden.warden.v1beta1.MsgNewSignTransactionRequestResponse", MsgNewSignTransactionRequestResponse], - ["/warden.warden.v1beta1.QuerySpacesByOwnerRequest", QuerySpacesByOwnerRequest], - ["/warden.warden.v1beta1.QueryKeyRequestsRequest", QueryKeyRequestsRequest], - ["/warden.warden.v1beta1.QueryKeysResponse", QueryKeysResponse], - ["/warden.warden.v1beta1.MsgFulfilSignatureRequest", MsgFulfilSignatureRequest], - ["/warden.warden.v1beta1.KeychainFees", KeychainFees], - ["/warden.warden.v1beta1.QuerySignTransactionRequestByIdRequest", QuerySignTransactionRequestByIdRequest], - ["/warden.warden.v1beta1.QuerySpacesResponse", QuerySpacesResponse], ["/warden.warden.v1beta1.QueryKeychainByAddressRequest", QueryKeychainByAddressRequest], - ["/warden.warden.v1beta1.QueryKeyRequestByIdResponse", QueryKeyRequestByIdResponse], - ["/warden.warden.v1beta1.SignTransactionRequestResponse", SignTransactionRequestResponse], - ["/warden.warden.v1beta1.MsgRemoveSpaceOwner", MsgRemoveSpaceOwner], - ["/warden.warden.v1beta1.MsgNewKeyRequest", MsgNewKeyRequest], - ["/warden.warden.v1beta1.MsgNewSignTransactionRequest", MsgNewSignTransactionRequest], - ["/warden.warden.v1beta1.Space", Space], - ["/warden.warden.v1beta1.QueryKeychainsResponse", QueryKeychainsResponse], - ["/warden.warden.v1beta1.KeyResponse", KeyResponse], - ["/warden.warden.v1beta1.QuerySignatureRequestByIdResponse", QuerySignatureRequestByIdResponse], - ["/warden.warden.v1beta1.MsgNewKeychain", MsgNewKeychain], - ["/warden.warden.v1beta1.MsgUpdateKeychainResponse", MsgUpdateKeychainResponse], - ["/warden.warden.v1beta1.MsgNewKeyRequestResponse", MsgNewKeyRequestResponse], - ["/warden.warden.v1beta1.GenesisState", GenesisState], - ["/warden.warden.v1beta1.Keychain", Keychain], - ["/warden.warden.v1beta1.MsgFulfilSignatureRequestResponse", MsgFulfilSignatureRequestResponse], - ["/warden.warden.v1beta1.QueryKeychainsRequest", QueryKeychainsRequest], - ["/warden.warden.v1beta1.QuerySpaceByAddressResponse", QuerySpaceByAddressResponse], ["/warden.warden.v1beta1.QueryKeysRequest", QueryKeysRequest], - ["/warden.warden.v1beta1.MsgUpdateKeyRequest", MsgUpdateKeyRequest], - ["/warden.warden.v1beta1.QueryParamsResponse", QueryParamsResponse], - ["/warden.warden.v1beta1.QueryKeyRequestsResponse", QueryKeyRequestsResponse], - ["/warden.warden.v1beta1.Key", Key], - ["/warden.warden.v1beta1.MsgUpdateSpace", MsgUpdateSpace], - ["/warden.warden.v1beta1.MsgNewSignatureRequestResponse", MsgNewSignatureRequestResponse], ["/warden.warden.v1beta1.QuerySignTransactionRequestsRequest", QuerySignTransactionRequestsRequest], - ["/warden.warden.v1beta1.QuerySignTransactionRequestsResponse", QuerySignTransactionRequestsResponse], + ["/warden.warden.v1beta1.MsgUpdateKeyRequest", MsgUpdateKeyRequest], + ["/warden.warden.v1beta1.Params", Params], + ["/warden.warden.v1beta1.QuerySpaceByAddressRequest", QuerySpaceByAddressRequest], + ["/warden.warden.v1beta1.QuerySignTransactionRequestByIdRequest", QuerySignTransactionRequestByIdRequest], ["/warden.warden.v1beta1.MsgAddSpaceOwner", MsgAddSpaceOwner], - ["/warden.warden.v1beta1.MsgNewKey", MsgNewKey], - ["/warden.warden.v1beta1.MsgUpdateKeyRequestResponse", MsgUpdateKeyRequestResponse], - ["/warden.warden.v1beta1.QuerySignatureRequestsResponse", QuerySignatureRequestsResponse], - ["/warden.warden.v1beta1.MetadataEthereum", MetadataEthereum], - ["/warden.warden.v1beta1.KeyRequest", KeyRequest], + ["/warden.warden.v1beta1.MsgNewSignatureRequestResponse", MsgNewSignatureRequestResponse], + ["/warden.warden.v1beta1.QueryKeychainByAddressResponse", QueryKeychainByAddressResponse], + ["/warden.warden.v1beta1.QueryKeysResponse", QueryKeysResponse], ["/warden.warden.v1beta1.MsgUpdateParams", MsgUpdateParams], - ["/warden.warden.v1beta1.MsgNewSpace", MsgNewSpace], - ["/warden.warden.v1beta1.MsgNewSpaceResponse", MsgNewSpaceResponse], - ["/warden.warden.v1beta1.MsgAddKeychainParty", MsgAddKeychainParty], + ["/warden.warden.v1beta1.MsgNewKeyRequest", MsgNewKeyRequest], ["/warden.warden.v1beta1.MsgUpdateSpaceResponse", MsgUpdateSpaceResponse], - ["/warden.warden.v1beta1.MsgSignedData", MsgSignedData], - ["/warden.warden.v1beta1.QuerySignatureRequestsRequest", QuerySignatureRequestsRequest], - ["/warden.warden.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], - ["/warden.warden.v1beta1.MsgRemoveSpaceOwnerResponse", MsgRemoveSpaceOwnerResponse], + ["/warden.warden.v1beta1.MsgNewKeyRequestResponse", MsgNewKeyRequestResponse], + ["/warden.warden.v1beta1.MsgUpdateKeyRequestResponse", MsgUpdateKeyRequestResponse], + ["/warden.warden.v1beta1.GenesisState", GenesisState], + ["/warden.warden.v1beta1.QuerySignatureRequestByIdRequest", QuerySignatureRequestByIdRequest], ["/warden.warden.v1beta1.SignTransactionRequest", SignTransactionRequest], - ["/warden.warden.v1beta1.QuerySignTransactionRequestByIdResponse", QuerySignTransactionRequestByIdResponse], - ["/warden.warden.v1beta1.Params", Params], + ["/warden.warden.v1beta1.MsgNewKey", MsgNewKey], + ["/warden.warden.v1beta1.MsgNewSignTransactionRequestResponse", MsgNewSignTransactionRequestResponse], + ["/warden.warden.v1beta1.MetadataEthereum", MetadataEthereum], + ["/warden.warden.v1beta1.QueryKeyRequestByIdResponse", QueryKeyRequestByIdResponse], ["/warden.warden.v1beta1.MsgAddSpaceOwnerResponse", MsgAddSpaceOwnerResponse], + ["/warden.warden.v1beta1.QuerySignatureRequestsResponse", QuerySignatureRequestsResponse], + ["/warden.warden.v1beta1.QuerySignTransactionRequestsResponse", QuerySignTransactionRequestsResponse], + ["/warden.warden.v1beta1.QuerySignatureRequestByIdResponse", QuerySignatureRequestByIdResponse], + ["/warden.warden.v1beta1.MsgNewKeychain", MsgNewKeychain], + ["/warden.warden.v1beta1.MsgAddKeychainParty", MsgAddKeychainParty], + ["/warden.warden.v1beta1.MsgAddKeychainPartyResponse", MsgAddKeychainPartyResponse], + ["/warden.warden.v1beta1.MsgFulfilSignatureRequest", MsgFulfilSignatureRequest], + ["/warden.warden.v1beta1.MsgNewSignTransactionRequest", MsgNewSignTransactionRequest], + ["/warden.warden.v1beta1.QueryParamsResponse", QueryParamsResponse], + ["/warden.warden.v1beta1.WalletKeyResponse", WalletKeyResponse], ["/warden.warden.v1beta1.MsgNewKeychainResponse", MsgNewKeychainResponse], - ["/warden.warden.v1beta1.MsgNewSignatureRequest", MsgNewSignatureRequest], + ["/warden.warden.v1beta1.MsgUpdateKeychainResponse", MsgUpdateKeychainResponse], + ["/warden.warden.v1beta1.QuerySpacesResponse", QuerySpacesResponse], + ["/warden.warden.v1beta1.QueryKeychainsRequest", QueryKeychainsRequest], ["/warden.warden.v1beta1.QuerySpacesRequest", QuerySpacesRequest], - ["/warden.warden.v1beta1.QuerySpaceByAddressRequest", QuerySpaceByAddressRequest], - ["/warden.warden.v1beta1.QueryKeychainByAddressResponse", QueryKeychainByAddressResponse], - ["/warden.warden.v1beta1.MsgUpdateKeychain", MsgUpdateKeychain], + ["/warden.warden.v1beta1.MsgNewSpaceResponse", MsgNewSpaceResponse], + ["/warden.warden.v1beta1.QueryParamsRequest", QueryParamsRequest], + ["/warden.warden.v1beta1.KeyResponse", KeyResponse], + ["/warden.warden.v1beta1.MsgNewSpace", MsgNewSpace], + ["/warden.warden.v1beta1.MsgRemoveSpaceOwner", MsgRemoveSpaceOwner], + ["/warden.warden.v1beta1.KeyRequest", KeyRequest], + ["/warden.warden.v1beta1.KeychainFees", KeychainFees], + ["/warden.warden.v1beta1.QuerySpaceByAddressResponse", QuerySpaceByAddressResponse], + ["/warden.warden.v1beta1.QuerySignatureRequestsRequest", QuerySignatureRequestsRequest], + ["/warden.warden.v1beta1.MsgFulfilSignatureRequestResponse", MsgFulfilSignatureRequestResponse], + ["/warden.warden.v1beta1.Space", Space], + ["/warden.warden.v1beta1.QuerySpacesByOwnerRequest", QuerySpacesByOwnerRequest], + ["/warden.warden.v1beta1.SignTransactionRequestResponse", SignTransactionRequestResponse], + ["/warden.warden.v1beta1.MsgUpdateSpace", MsgUpdateSpace], ["/warden.warden.v1beta1.QueryKeyRequestByIdRequest", QueryKeyRequestByIdRequest], - ["/warden.warden.v1beta1.WalletKeyResponse", WalletKeyResponse], - ["/warden.warden.v1beta1.QuerySignatureRequestByIdRequest", QuerySignatureRequestByIdRequest], + ["/warden.warden.v1beta1.MsgRemoveSpaceOwnerResponse", MsgRemoveSpaceOwnerResponse], + ["/warden.warden.v1beta1.MsgSignedData", MsgSignedData], + ["/warden.warden.v1beta1.QueryKeyRequestsRequest", QueryKeyRequestsRequest], + ["/warden.warden.v1beta1.QuerySignTransactionRequestByIdResponse", QuerySignTransactionRequestByIdResponse], + ["/warden.warden.v1beta1.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/warden.warden.v1beta1.MsgNewSignatureRequest", MsgNewSignatureRequest], + ["/warden.warden.v1beta1.QueryKeyRequestsResponse", QueryKeyRequestsResponse], ["/warden.warden.v1beta1.SignRequest", SignRequest], + ["/warden.warden.v1beta1.Keychain", Keychain], + ["/warden.warden.v1beta1.QueryKeychainsResponse", QueryKeychainsResponse], + ["/warden.warden.v1beta1.MsgUpdateKeychain", MsgUpdateKeychain], + ["/warden.warden.v1beta1.Key", Key], ]; diff --git a/ts-client/warden.warden.v1beta2/api.swagger.yml b/ts-client/warden.warden.v1beta2/api.swagger.yml index 0bfd0e785..111fdec94 100644 --- a/ts-client/warden.warden.v1beta2/api.swagger.yml +++ b/ts-client/warden.warden.v1beta2/api.swagger.yml @@ -123,6 +123,98 @@ paths: default: SIGN_REQUEST_STATUS_UNSPECIFIED tags: - Query + /warden/warden/v1beta2/key_by_id: + get: + operationId: Query_KeyById + responses: + '200': + description: A successful response. + schema: + type: object + properties: + key: + type: object + properties: + id: + type: string + format: uint64 + space_id: + type: string + format: uint64 + keychain_id: + type: string + format: uint64 + type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + public_key: + type: string + format: byte + intent_id: + type: string + format: uint64 + wallets: + type: array + items: + type: object + properties: + address: + type: string + type: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED + 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 + in: query + required: false + type: string + format: uint64 + - name: derive_wallets + description: |2- + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + in: query + required: false + type: array + items: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + collectionFormat: multi + tags: + - Query /warden/warden/v1beta2/key_request_by_id: get: operationId: Query_KeyRequestById @@ -481,7 +573,7 @@ paths: - Query /warden/warden/v1beta2/keys: get: - operationId: Query_Keys + operationId: Query_AllKeys responses: '200': description: A successful response. @@ -584,12 +676,7 @@ paths: in: query required: false type: boolean - - name: space_id - in: query - required: false - type: string - format: uint64 - - name: type + - name: derive_wallets description: |2- - WALLET_TYPE_UNSPECIFIED: The wallet type is missing - WALLET_TYPE_ETH: The wallet type for Ethereum @@ -597,18 +684,144 @@ paths: - WALLET_TYPE_SUI: The wallet type for Sui in: query required: false + type: array + items: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + collectionFormat: multi + tags: + - Query + /warden/warden/v1beta2/keys_by_space_id: + get: + operationId: Query_KeysBySpaceId + responses: + '200': + description: A successful response. + schema: + type: object + properties: + pagination: + type: object + properties: + next_key: + type: string + format: byte + total: + type: string + format: uint64 + keys: + type: array + items: + type: object + properties: + key: + type: object + properties: + id: + type: string + format: uint64 + space_id: + type: string + format: uint64 + keychain_id: + type: string + format: uint64 + type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + public_key: + type: string + format: byte + intent_id: + type: string + format: uint64 + wallets: + type: array + items: + type: object + properties: + address: + type: string + type: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED + 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 - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED - - name: key_id + 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: space_id + in: query + required: false + type: string + format: uint64 + - name: derive_wallets + description: |2- + - WALLET_TYPE_UNSPECIFIED: The wallet type is missing + - WALLET_TYPE_ETH: The wallet type for Ethereum + - WALLET_TYPE_CELESTIA: The wallet type for Celestia + - WALLET_TYPE_SUI: The wallet type for Sui + in: query + required: false + type: array + items: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + collectionFormat: multi tags: - Query /warden/warden/v1beta2/params: @@ -1244,49 +1457,6 @@ definitions: - KEY_REQUEST_STATUS_FULFILLED - KEY_REQUEST_STATUS_REJECTED default: KEY_REQUEST_STATUS_UNSPECIFIED - KeyResponse: - type: object - properties: - key: - type: object - properties: - id: - type: string - format: uint64 - space_id: - type: string - format: uint64 - keychain_id: - type: string - format: uint64 - type: - type: string - enum: - - KEY_TYPE_UNSPECIFIED - - KEY_TYPE_ECDSA_SECP256K1 - - KEY_TYPE_EDDSA_ED25519 - default: KEY_TYPE_UNSPECIFIED - public_key: - type: string - format: byte - intent_id: - type: string - format: uint64 - wallets: - type: array - items: - type: object - properties: - address: - type: string - type: - type: string - enum: - - WALLET_TYPE_UNSPECIFIED - - WALLET_TYPE_ETH - - WALLET_TYPE_CELESTIA - - WALLET_TYPE_SUI - default: WALLET_TYPE_UNSPECIFIED KeyType: type: string enum: @@ -1447,6 +1617,49 @@ definitions: intent_id: type: string format: uint64 + QueryKeyResponse: + type: object + properties: + key: + type: object + properties: + id: + type: string + format: uint64 + space_id: + type: string + format: uint64 + keychain_id: + type: string + format: uint64 + type: + type: string + enum: + - KEY_TYPE_UNSPECIFIED + - KEY_TYPE_ECDSA_SECP256K1 + - KEY_TYPE_EDDSA_ED25519 + default: KEY_TYPE_UNSPECIFIED + public_key: + type: string + format: byte + intent_id: + type: string + format: uint64 + wallets: + type: array + items: + type: object + properties: + address: + type: string + type: + type: string + enum: + - WALLET_TYPE_UNSPECIFIED + - WALLET_TYPE_ETH + - WALLET_TYPE_CELESTIA + - WALLET_TYPE_SUI + default: WALLET_TYPE_UNSPECIFIED QueryKeychainByIdResponse: type: object properties: diff --git a/ts-client/warden.warden.v1beta2/module.ts b/ts-client/warden.warden.v1beta2/module.ts index 45fd7e955..59988f315 100755 --- a/ts-client/warden.warden.v1beta2/module.ts +++ b/ts-client/warden.warden.v1beta2/module.ts @@ -6,104 +6,118 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { SignRequest } from "./types/warden/warden/v1beta2/signature"; -import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta2/tx"; -import { QuerySpaceByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { QueryKeychainByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta2/tx"; +import { QueryAllKeysRequest } from "./types/warden/warden/v1beta2/query"; +import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySpacesRequest } from "./types/warden/warden/v1beta2/query"; +import { QueryKeysResponse } from "./types/warden/warden/v1beta2/query"; import { WalletKeyResponse } from "./types/warden/warden/v1beta2/query"; -import { KeychainFees } from "./types/warden/warden/v1beta2/keychain"; -import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateParams } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSpace } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateKeyResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta2/tx"; import { Keychain } from "./types/warden/warden/v1beta2/keychain"; -import { MsgAddKeychainParty } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeychainsRequest } from "./types/warden/warden/v1beta2/query"; -import { KeyResponse } from "./types/warden/warden/v1beta2/query"; -import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta2/query"; -import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta2/query"; -import { GenesisState } from "./types/warden/warden/v1beta2/genesis"; -import { MsgUpdateKeychain } from "./types/warden/warden/v1beta2/tx"; -import { KeyRequest } from "./types/warden/warden/v1beta2/key"; -import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { MsgNewKeychainResponse } from "./types/warden/warden/v1beta2/tx"; import { QuerySignatureRequestsResponse } from "./types/warden/warden/v1beta2/query"; -import { MsgUpdateKey } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta2/tx"; -import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { QuerySpacesResponse } from "./types/warden/warden/v1beta2/query"; -import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta2/query"; +import { SignTransactionRequest } from "./types/warden/warden/v1beta2/signature"; import { Space } from "./types/warden/warden/v1beta2/space"; -import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta2/tx"; +import { KeyRequest } from "./types/warden/warden/v1beta2/key"; import { MsgNewKey } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta2/tx"; -import { SignTransactionRequest } from "./types/warden/warden/v1beta2/signature"; -import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewKeyRequest } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta2/tx"; -import { MetadataEthereum } from "./types/warden/warden/v1beta2/tx"; -import { QueryParamsResponse } from "./types/warden/warden/v1beta2/query"; -import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeychainsResponse } from "./types/warden/warden/v1beta2/query"; -import { QueryKeychainByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySpacesResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewKeychain } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeysBySpaceIdRequest } from "./types/warden/warden/v1beta2/query"; +import { GenesisState } from "./types/warden/warden/v1beta2/genesis"; +import { QuerySpaceByIdRequest } from "./types/warden/warden/v1beta2/query"; import { QueryKeyRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestsRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta2/tx"; import { QuerySignatureRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { SignRequest } from "./types/warden/warden/v1beta2/signature"; +import { MsgAddKeychainParty } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta2/tx"; +import { QueryParamsResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainsResponse } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta2/query"; import { QuerySignatureRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta2/query"; -import { QueryKeysRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta2/tx"; -import { QueryParamsRequest } from "./types/warden/warden/v1beta2/query"; -import { QuerySpacesRequest } from "./types/warden/warden/v1beta2/query"; +import { QuerySignTransactionRequestsRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgNewKeychainResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgSignedData } from "./types/warden/warden/v1beta2/tx"; +import { MetadataEthereum } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { Key } from "./types/warden/warden/v1beta2/key"; +import { MsgNewKeyRequest } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { KeychainFees } from "./types/warden/warden/v1beta2/keychain"; +import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKey } from "./types/warden/warden/v1beta2/tx"; import { QuerySpaceByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { QueryKeysResponse } from "./types/warden/warden/v1beta2/query"; -import { MsgNewKeychain } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeyResponse } from "./types/warden/warden/v1beta2/query"; +import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateParams } from "./types/warden/warden/v1beta2/tx"; +import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta2/tx"; import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { Key } from "./types/warden/warden/v1beta2/key"; import { MsgUpdateSpace } from "./types/warden/warden/v1beta2/tx"; +import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; import { Params } from "./types/warden/warden/v1beta2/params"; -import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgSignedData } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewSpace } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateKeychain } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainsRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QueryParamsRequest } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta2/query"; +import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKeyResponse } from "./types/warden/warden/v1beta2/tx"; -export { SignRequest, MsgAddKeychainPartyResponse, QuerySpaceByIdRequest, QueryKeychainByIdRequest, QueryKeyRequestsResponse, WalletKeyResponse, KeychainFees, MsgRemoveSpaceOwner, MsgUpdateParams, MsgNewSpace, MsgUpdateSpaceResponse, MsgUpdateKeyResponse, MsgNewSignTransactionRequestResponse, Keychain, MsgAddKeychainParty, QueryKeychainsRequest, KeyResponse, QuerySignatureRequestsRequest, SignTransactionRequestResponse, GenesisState, MsgUpdateKeychain, KeyRequest, QueryKeyRequestByIdResponse, QuerySignTransactionRequestByIdResponse, MsgNewKeychainResponse, QuerySignatureRequestsResponse, MsgUpdateKey, MsgNewSignatureRequest, MsgFulfilSignatureRequestResponse, QuerySpacesResponse, QuerySpacesByOwnerRequest, Space, MsgUpdateKeychainResponse, MsgNewKey, MsgNewSignTransactionRequest, SignTransactionRequest, MsgAddSpaceOwner, MsgNewKeyRequest, MsgUpdateKeyRequest, MetadataEthereum, QueryParamsResponse, QueryKeyRequestsRequest, QuerySignTransactionRequestByIdRequest, MsgAddSpaceOwnerResponse, QueryKeychainsResponse, QueryKeychainByIdResponse, QueryKeyRequestByIdRequest, QuerySignTransactionRequestsRequest, MsgUpdateParamsResponse, QuerySignatureRequestByIdRequest, QuerySignatureRequestByIdResponse, QuerySignTransactionRequestsResponse, QueryKeysRequest, MsgFulfilSignatureRequest, QueryParamsRequest, QuerySpacesRequest, QuerySpaceByIdResponse, QueryKeysResponse, MsgNewKeychain, MsgNewSpaceResponse, MsgRemoveSpaceOwnerResponse, MsgNewSignatureRequestResponse, Key, MsgUpdateSpace, Params, MsgUpdateKeyRequestResponse, MsgNewKeyRequestResponse, MsgSignedData }; +export { MsgNewSignTransactionRequest, QueryAllKeysRequest, QuerySignTransactionRequestsResponse, MsgAddSpaceOwnerResponse, MsgNewKeyRequestResponse, QuerySpacesRequest, QueryKeysResponse, WalletKeyResponse, Keychain, QuerySignatureRequestsResponse, SignTransactionRequest, Space, MsgAddKeychainPartyResponse, KeyRequest, MsgNewKey, MsgUpdateKeyRequestResponse, QuerySpacesResponse, MsgNewSpaceResponse, MsgFulfilSignatureRequest, MsgNewKeychain, QueryKeysBySpaceIdRequest, GenesisState, QuerySpaceByIdRequest, QueryKeyRequestByIdRequest, QuerySignatureRequestByIdRequest, SignRequest, MsgAddKeychainParty, MsgUpdateSpaceResponse, QueryParamsResponse, MsgUpdateParamsResponse, MsgUpdateKeyRequest, QueryKeychainsResponse, QueryKeyRequestsRequest, QuerySignatureRequestByIdResponse, QuerySignTransactionRequestsRequest, MsgNewKeychainResponse, QuerySpacesByOwnerRequest, MsgSignedData, MetadataEthereum, QueryKeychainByIdRequest, QueryKeyByIdRequest, Key, MsgNewKeyRequest, MsgNewSignatureRequestResponse, KeychainFees, MsgAddSpaceOwner, MsgUpdateKey, QuerySpaceByIdResponse, QueryKeyResponse, QuerySignatureRequestsRequest, MsgUpdateParams, MsgRemoveSpaceOwner, MsgRemoveSpaceOwnerResponse, MsgUpdateSpace, MsgFulfilSignatureRequestResponse, QuerySignTransactionRequestByIdResponse, Params, MsgNewSpace, QueryKeychainByIdResponse, QueryKeyRequestByIdResponse, SignTransactionRequestResponse, MsgUpdateKeychain, MsgNewSignatureRequest, QueryKeychainsRequest, MsgNewSignTransactionRequestResponse, QueryParamsRequest, QueryKeyRequestsResponse, QuerySignTransactionRequestByIdRequest, MsgUpdateKeychainResponse, MsgUpdateKeyResponse }; -type sendSignRequestParams = { - value: SignRequest, +type sendMsgNewSignTransactionRequestParams = { + value: MsgNewSignTransactionRequest, fee?: StdFee, memo?: string }; -type sendMsgAddKeychainPartyResponseParams = { - value: MsgAddKeychainPartyResponse, +type sendQueryAllKeysRequestParams = { + value: QueryAllKeysRequest, fee?: StdFee, memo?: string }; -type sendQuerySpaceByIdRequestParams = { - value: QuerySpaceByIdRequest, +type sendQuerySignTransactionRequestsResponseParams = { + value: QuerySignTransactionRequestsResponse, fee?: StdFee, memo?: string }; -type sendQueryKeychainByIdRequestParams = { - value: QueryKeychainByIdRequest, +type sendMsgAddSpaceOwnerResponseParams = { + value: MsgAddSpaceOwnerResponse, fee?: StdFee, memo?: string }; -type sendQueryKeyRequestsResponseParams = { - value: QueryKeyRequestsResponse, +type sendMsgNewKeyRequestResponseParams = { + value: MsgNewKeyRequestResponse, + fee?: StdFee, + memo?: string +}; + +type sendQuerySpacesRequestParams = { + value: QuerySpacesRequest, + fee?: StdFee, + memo?: string +}; + +type sendQueryKeysResponseParams = { + value: QueryKeysResponse, fee?: StdFee, memo?: string }; @@ -114,80 +128,80 @@ type sendWalletKeyResponseParams = { memo?: string }; -type sendKeychainFeesParams = { - value: KeychainFees, +type sendKeychainParams = { + value: Keychain, fee?: StdFee, memo?: string }; -type sendMsgRemoveSpaceOwnerParams = { - value: MsgRemoveSpaceOwner, +type sendQuerySignatureRequestsResponseParams = { + value: QuerySignatureRequestsResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsParams = { - value: MsgUpdateParams, +type sendSignTransactionRequestParams = { + value: SignTransactionRequest, fee?: StdFee, memo?: string }; -type sendMsgNewSpaceParams = { - value: MsgNewSpace, +type sendSpaceParams = { + value: Space, fee?: StdFee, memo?: string }; -type sendMsgUpdateSpaceResponseParams = { - value: MsgUpdateSpaceResponse, +type sendMsgAddKeychainPartyResponseParams = { + value: MsgAddKeychainPartyResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateKeyResponseParams = { - value: MsgUpdateKeyResponse, +type sendKeyRequestParams = { + value: KeyRequest, fee?: StdFee, memo?: string }; -type sendMsgNewSignTransactionRequestResponseParams = { - value: MsgNewSignTransactionRequestResponse, +type sendMsgNewKeyParams = { + value: MsgNewKey, fee?: StdFee, memo?: string }; -type sendKeychainParams = { - value: Keychain, +type sendMsgUpdateKeyRequestResponseParams = { + value: MsgUpdateKeyRequestResponse, fee?: StdFee, memo?: string }; -type sendMsgAddKeychainPartyParams = { - value: MsgAddKeychainParty, +type sendQuerySpacesResponseParams = { + value: QuerySpacesResponse, fee?: StdFee, memo?: string }; -type sendQueryKeychainsRequestParams = { - value: QueryKeychainsRequest, +type sendMsgNewSpaceResponseParams = { + value: MsgNewSpaceResponse, fee?: StdFee, memo?: string }; -type sendKeyResponseParams = { - value: KeyResponse, +type sendMsgFulfilSignatureRequestParams = { + value: MsgFulfilSignatureRequest, fee?: StdFee, memo?: string }; -type sendQuerySignatureRequestsRequestParams = { - value: QuerySignatureRequestsRequest, +type sendMsgNewKeychainParams = { + value: MsgNewKeychain, fee?: StdFee, memo?: string }; -type sendSignTransactionRequestResponseParams = { - value: SignTransactionRequestResponse, +type sendQueryKeysBySpaceIdRequestParams = { + value: QueryKeysBySpaceIdRequest, fee?: StdFee, memo?: string }; @@ -198,565 +212,573 @@ type sendGenesisStateParams = { memo?: string }; -type sendMsgUpdateKeychainParams = { - value: MsgUpdateKeychain, +type sendQuerySpaceByIdRequestParams = { + value: QuerySpaceByIdRequest, fee?: StdFee, memo?: string }; -type sendKeyRequestParams = { - value: KeyRequest, +type sendQueryKeyRequestByIdRequestParams = { + value: QueryKeyRequestByIdRequest, fee?: StdFee, memo?: string }; -type sendQueryKeyRequestByIdResponseParams = { - value: QueryKeyRequestByIdResponse, +type sendQuerySignatureRequestByIdRequestParams = { + value: QuerySignatureRequestByIdRequest, fee?: StdFee, memo?: string }; -type sendQuerySignTransactionRequestByIdResponseParams = { - value: QuerySignTransactionRequestByIdResponse, +type sendSignRequestParams = { + value: SignRequest, fee?: StdFee, memo?: string }; -type sendMsgNewKeychainResponseParams = { - value: MsgNewKeychainResponse, +type sendMsgAddKeychainPartyParams = { + value: MsgAddKeychainParty, fee?: StdFee, memo?: string }; -type sendQuerySignatureRequestsResponseParams = { - value: QuerySignatureRequestsResponse, +type sendMsgUpdateSpaceResponseParams = { + value: MsgUpdateSpaceResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateKeyParams = { - value: MsgUpdateKey, +type sendQueryParamsResponseParams = { + value: QueryParamsResponse, fee?: StdFee, memo?: string }; -type sendMsgNewSignatureRequestParams = { - value: MsgNewSignatureRequest, +type sendMsgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, fee?: StdFee, memo?: string }; -type sendMsgFulfilSignatureRequestResponseParams = { - value: MsgFulfilSignatureRequestResponse, +type sendMsgUpdateKeyRequestParams = { + value: MsgUpdateKeyRequest, fee?: StdFee, memo?: string }; -type sendQuerySpacesResponseParams = { - value: QuerySpacesResponse, +type sendQueryKeychainsResponseParams = { + value: QueryKeychainsResponse, fee?: StdFee, memo?: string }; -type sendQuerySpacesByOwnerRequestParams = { - value: QuerySpacesByOwnerRequest, +type sendQueryKeyRequestsRequestParams = { + value: QueryKeyRequestsRequest, fee?: StdFee, memo?: string }; -type sendSpaceParams = { - value: Space, +type sendQuerySignatureRequestByIdResponseParams = { + value: QuerySignatureRequestByIdResponse, fee?: StdFee, memo?: string }; -type sendMsgUpdateKeychainResponseParams = { - value: MsgUpdateKeychainResponse, +type sendQuerySignTransactionRequestsRequestParams = { + value: QuerySignTransactionRequestsRequest, fee?: StdFee, memo?: string }; -type sendMsgNewKeyParams = { - value: MsgNewKey, +type sendMsgNewKeychainResponseParams = { + value: MsgNewKeychainResponse, fee?: StdFee, memo?: string }; -type sendMsgNewSignTransactionRequestParams = { - value: MsgNewSignTransactionRequest, +type sendQuerySpacesByOwnerRequestParams = { + value: QuerySpacesByOwnerRequest, fee?: StdFee, memo?: string }; -type sendSignTransactionRequestParams = { - value: SignTransactionRequest, +type sendMsgSignedDataParams = { + value: MsgSignedData, fee?: StdFee, memo?: string }; -type sendMsgAddSpaceOwnerParams = { - value: MsgAddSpaceOwner, +type sendMetadataEthereumParams = { + value: MetadataEthereum, fee?: StdFee, memo?: string }; -type sendMsgNewKeyRequestParams = { - value: MsgNewKeyRequest, +type sendQueryKeychainByIdRequestParams = { + value: QueryKeychainByIdRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateKeyRequestParams = { - value: MsgUpdateKeyRequest, +type sendQueryKeyByIdRequestParams = { + value: QueryKeyByIdRequest, fee?: StdFee, memo?: string }; -type sendMetadataEthereumParams = { - value: MetadataEthereum, +type sendKeyParams = { + value: Key, fee?: StdFee, memo?: string }; -type sendQueryParamsResponseParams = { - value: QueryParamsResponse, +type sendMsgNewKeyRequestParams = { + value: MsgNewKeyRequest, fee?: StdFee, memo?: string }; -type sendQueryKeyRequestsRequestParams = { - value: QueryKeyRequestsRequest, +type sendMsgNewSignatureRequestResponseParams = { + value: MsgNewSignatureRequestResponse, fee?: StdFee, memo?: string }; -type sendQuerySignTransactionRequestByIdRequestParams = { - value: QuerySignTransactionRequestByIdRequest, +type sendKeychainFeesParams = { + value: KeychainFees, + fee?: StdFee, + memo?: string +}; + +type sendMsgAddSpaceOwnerParams = { + value: MsgAddSpaceOwner, fee?: StdFee, memo?: string }; -type sendMsgAddSpaceOwnerResponseParams = { - value: MsgAddSpaceOwnerResponse, +type sendMsgUpdateKeyParams = { + value: MsgUpdateKey, fee?: StdFee, memo?: string }; -type sendQueryKeychainsResponseParams = { - value: QueryKeychainsResponse, +type sendQuerySpaceByIdResponseParams = { + value: QuerySpaceByIdResponse, fee?: StdFee, memo?: string }; -type sendQueryKeychainByIdResponseParams = { - value: QueryKeychainByIdResponse, +type sendQueryKeyResponseParams = { + value: QueryKeyResponse, fee?: StdFee, memo?: string }; -type sendQueryKeyRequestByIdRequestParams = { - value: QueryKeyRequestByIdRequest, +type sendQuerySignatureRequestsRequestParams = { + value: QuerySignatureRequestsRequest, fee?: StdFee, memo?: string }; -type sendQuerySignTransactionRequestsRequestParams = { - value: QuerySignTransactionRequestsRequest, +type sendMsgUpdateParamsParams = { + value: MsgUpdateParams, fee?: StdFee, memo?: string }; -type sendMsgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type sendMsgRemoveSpaceOwnerParams = { + value: MsgRemoveSpaceOwner, fee?: StdFee, memo?: string }; -type sendQuerySignatureRequestByIdRequestParams = { - value: QuerySignatureRequestByIdRequest, +type sendMsgRemoveSpaceOwnerResponseParams = { + value: MsgRemoveSpaceOwnerResponse, fee?: StdFee, memo?: string }; -type sendQuerySignatureRequestByIdResponseParams = { - value: QuerySignatureRequestByIdResponse, +type sendMsgUpdateSpaceParams = { + value: MsgUpdateSpace, fee?: StdFee, memo?: string }; -type sendQuerySignTransactionRequestsResponseParams = { - value: QuerySignTransactionRequestsResponse, +type sendMsgFulfilSignatureRequestResponseParams = { + value: MsgFulfilSignatureRequestResponse, fee?: StdFee, memo?: string }; -type sendQueryKeysRequestParams = { - value: QueryKeysRequest, +type sendQuerySignTransactionRequestByIdResponseParams = { + value: QuerySignTransactionRequestByIdResponse, fee?: StdFee, memo?: string }; -type sendMsgFulfilSignatureRequestParams = { - value: MsgFulfilSignatureRequest, +type sendParamsParams = { + value: Params, fee?: StdFee, memo?: string }; -type sendQueryParamsRequestParams = { - value: QueryParamsRequest, +type sendMsgNewSpaceParams = { + value: MsgNewSpace, fee?: StdFee, memo?: string }; -type sendQuerySpacesRequestParams = { - value: QuerySpacesRequest, +type sendQueryKeychainByIdResponseParams = { + value: QueryKeychainByIdResponse, fee?: StdFee, memo?: string }; -type sendQuerySpaceByIdResponseParams = { - value: QuerySpaceByIdResponse, +type sendQueryKeyRequestByIdResponseParams = { + value: QueryKeyRequestByIdResponse, fee?: StdFee, memo?: string }; -type sendQueryKeysResponseParams = { - value: QueryKeysResponse, +type sendSignTransactionRequestResponseParams = { + value: SignTransactionRequestResponse, fee?: StdFee, memo?: string }; -type sendMsgNewKeychainParams = { - value: MsgNewKeychain, +type sendMsgUpdateKeychainParams = { + value: MsgUpdateKeychain, fee?: StdFee, memo?: string }; -type sendMsgNewSpaceResponseParams = { - value: MsgNewSpaceResponse, +type sendMsgNewSignatureRequestParams = { + value: MsgNewSignatureRequest, fee?: StdFee, memo?: string }; -type sendMsgRemoveSpaceOwnerResponseParams = { - value: MsgRemoveSpaceOwnerResponse, +type sendQueryKeychainsRequestParams = { + value: QueryKeychainsRequest, fee?: StdFee, memo?: string }; -type sendMsgNewSignatureRequestResponseParams = { - value: MsgNewSignatureRequestResponse, +type sendMsgNewSignTransactionRequestResponseParams = { + value: MsgNewSignTransactionRequestResponse, fee?: StdFee, memo?: string }; -type sendKeyParams = { - value: Key, +type sendQueryParamsRequestParams = { + value: QueryParamsRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateSpaceParams = { - value: MsgUpdateSpace, +type sendQueryKeyRequestsResponseParams = { + value: QueryKeyRequestsResponse, fee?: StdFee, memo?: string }; -type sendParamsParams = { - value: Params, +type sendQuerySignTransactionRequestByIdRequestParams = { + value: QuerySignTransactionRequestByIdRequest, fee?: StdFee, memo?: string }; -type sendMsgUpdateKeyRequestResponseParams = { - value: MsgUpdateKeyRequestResponse, +type sendMsgUpdateKeychainResponseParams = { + value: MsgUpdateKeychainResponse, fee?: StdFee, memo?: string }; -type sendMsgNewKeyRequestResponseParams = { - value: MsgNewKeyRequestResponse, +type sendMsgUpdateKeyResponseParams = { + value: MsgUpdateKeyResponse, fee?: StdFee, memo?: string }; -type sendMsgSignedDataParams = { - value: MsgSignedData, - fee?: StdFee, - memo?: string + +type msgNewSignTransactionRequestParams = { + value: MsgNewSignTransactionRequest, }; +type queryAllKeysRequestParams = { + value: QueryAllKeysRequest, +}; -type signRequestParams = { - value: SignRequest, +type querySignTransactionRequestsResponseParams = { + value: QuerySignTransactionRequestsResponse, }; -type msgAddKeychainPartyResponseParams = { - value: MsgAddKeychainPartyResponse, +type msgAddSpaceOwnerResponseParams = { + value: MsgAddSpaceOwnerResponse, }; -type querySpaceByIdRequestParams = { - value: QuerySpaceByIdRequest, +type msgNewKeyRequestResponseParams = { + value: MsgNewKeyRequestResponse, }; -type queryKeychainByIdRequestParams = { - value: QueryKeychainByIdRequest, +type querySpacesRequestParams = { + value: QuerySpacesRequest, }; -type queryKeyRequestsResponseParams = { - value: QueryKeyRequestsResponse, +type queryKeysResponseParams = { + value: QueryKeysResponse, }; type walletKeyResponseParams = { value: WalletKeyResponse, }; -type keychainFeesParams = { - value: KeychainFees, +type keychainParams = { + value: Keychain, }; -type msgRemoveSpaceOwnerParams = { - value: MsgRemoveSpaceOwner, +type querySignatureRequestsResponseParams = { + value: QuerySignatureRequestsResponse, }; -type msgUpdateParamsParams = { - value: MsgUpdateParams, +type signTransactionRequestParams = { + value: SignTransactionRequest, }; -type msgNewSpaceParams = { - value: MsgNewSpace, +type spaceParams = { + value: Space, }; -type msgUpdateSpaceResponseParams = { - value: MsgUpdateSpaceResponse, +type msgAddKeychainPartyResponseParams = { + value: MsgAddKeychainPartyResponse, }; -type msgUpdateKeyResponseParams = { - value: MsgUpdateKeyResponse, +type keyRequestParams = { + value: KeyRequest, }; -type msgNewSignTransactionRequestResponseParams = { - value: MsgNewSignTransactionRequestResponse, +type msgNewKeyParams = { + value: MsgNewKey, }; -type keychainParams = { - value: Keychain, +type msgUpdateKeyRequestResponseParams = { + value: MsgUpdateKeyRequestResponse, }; -type msgAddKeychainPartyParams = { - value: MsgAddKeychainParty, +type querySpacesResponseParams = { + value: QuerySpacesResponse, }; -type queryKeychainsRequestParams = { - value: QueryKeychainsRequest, +type msgNewSpaceResponseParams = { + value: MsgNewSpaceResponse, }; -type keyResponseParams = { - value: KeyResponse, +type msgFulfilSignatureRequestParams = { + value: MsgFulfilSignatureRequest, }; -type querySignatureRequestsRequestParams = { - value: QuerySignatureRequestsRequest, +type msgNewKeychainParams = { + value: MsgNewKeychain, }; -type signTransactionRequestResponseParams = { - value: SignTransactionRequestResponse, +type queryKeysBySpaceIdRequestParams = { + value: QueryKeysBySpaceIdRequest, }; type genesisStateParams = { value: GenesisState, }; -type msgUpdateKeychainParams = { - value: MsgUpdateKeychain, +type querySpaceByIdRequestParams = { + value: QuerySpaceByIdRequest, }; -type keyRequestParams = { - value: KeyRequest, +type queryKeyRequestByIdRequestParams = { + value: QueryKeyRequestByIdRequest, }; -type queryKeyRequestByIdResponseParams = { - value: QueryKeyRequestByIdResponse, +type querySignatureRequestByIdRequestParams = { + value: QuerySignatureRequestByIdRequest, }; -type querySignTransactionRequestByIdResponseParams = { - value: QuerySignTransactionRequestByIdResponse, +type signRequestParams = { + value: SignRequest, }; -type msgNewKeychainResponseParams = { - value: MsgNewKeychainResponse, +type msgAddKeychainPartyParams = { + value: MsgAddKeychainParty, }; -type querySignatureRequestsResponseParams = { - value: QuerySignatureRequestsResponse, +type msgUpdateSpaceResponseParams = { + value: MsgUpdateSpaceResponse, }; -type msgUpdateKeyParams = { - value: MsgUpdateKey, +type queryParamsResponseParams = { + value: QueryParamsResponse, }; -type msgNewSignatureRequestParams = { - value: MsgNewSignatureRequest, +type msgUpdateParamsResponseParams = { + value: MsgUpdateParamsResponse, }; -type msgFulfilSignatureRequestResponseParams = { - value: MsgFulfilSignatureRequestResponse, +type msgUpdateKeyRequestParams = { + value: MsgUpdateKeyRequest, }; -type querySpacesResponseParams = { - value: QuerySpacesResponse, +type queryKeychainsResponseParams = { + value: QueryKeychainsResponse, }; -type querySpacesByOwnerRequestParams = { - value: QuerySpacesByOwnerRequest, +type queryKeyRequestsRequestParams = { + value: QueryKeyRequestsRequest, }; -type spaceParams = { - value: Space, +type querySignatureRequestByIdResponseParams = { + value: QuerySignatureRequestByIdResponse, }; -type msgUpdateKeychainResponseParams = { - value: MsgUpdateKeychainResponse, +type querySignTransactionRequestsRequestParams = { + value: QuerySignTransactionRequestsRequest, }; -type msgNewKeyParams = { - value: MsgNewKey, +type msgNewKeychainResponseParams = { + value: MsgNewKeychainResponse, }; -type msgNewSignTransactionRequestParams = { - value: MsgNewSignTransactionRequest, +type querySpacesByOwnerRequestParams = { + value: QuerySpacesByOwnerRequest, }; -type signTransactionRequestParams = { - value: SignTransactionRequest, +type msgSignedDataParams = { + value: MsgSignedData, }; -type msgAddSpaceOwnerParams = { - value: MsgAddSpaceOwner, +type metadataEthereumParams = { + value: MetadataEthereum, }; -type msgNewKeyRequestParams = { - value: MsgNewKeyRequest, +type queryKeychainByIdRequestParams = { + value: QueryKeychainByIdRequest, }; -type msgUpdateKeyRequestParams = { - value: MsgUpdateKeyRequest, +type queryKeyByIdRequestParams = { + value: QueryKeyByIdRequest, }; -type metadataEthereumParams = { - value: MetadataEthereum, +type keyParams = { + value: Key, }; -type queryParamsResponseParams = { - value: QueryParamsResponse, +type msgNewKeyRequestParams = { + value: MsgNewKeyRequest, }; -type queryKeyRequestsRequestParams = { - value: QueryKeyRequestsRequest, +type msgNewSignatureRequestResponseParams = { + value: MsgNewSignatureRequestResponse, }; -type querySignTransactionRequestByIdRequestParams = { - value: QuerySignTransactionRequestByIdRequest, +type keychainFeesParams = { + value: KeychainFees, }; -type msgAddSpaceOwnerResponseParams = { - value: MsgAddSpaceOwnerResponse, +type msgAddSpaceOwnerParams = { + value: MsgAddSpaceOwner, }; -type queryKeychainsResponseParams = { - value: QueryKeychainsResponse, +type msgUpdateKeyParams = { + value: MsgUpdateKey, }; -type queryKeychainByIdResponseParams = { - value: QueryKeychainByIdResponse, +type querySpaceByIdResponseParams = { + value: QuerySpaceByIdResponse, }; -type queryKeyRequestByIdRequestParams = { - value: QueryKeyRequestByIdRequest, +type queryKeyResponseParams = { + value: QueryKeyResponse, }; -type querySignTransactionRequestsRequestParams = { - value: QuerySignTransactionRequestsRequest, +type querySignatureRequestsRequestParams = { + value: QuerySignatureRequestsRequest, }; -type msgUpdateParamsResponseParams = { - value: MsgUpdateParamsResponse, +type msgUpdateParamsParams = { + value: MsgUpdateParams, }; -type querySignatureRequestByIdRequestParams = { - value: QuerySignatureRequestByIdRequest, +type msgRemoveSpaceOwnerParams = { + value: MsgRemoveSpaceOwner, }; -type querySignatureRequestByIdResponseParams = { - value: QuerySignatureRequestByIdResponse, +type msgRemoveSpaceOwnerResponseParams = { + value: MsgRemoveSpaceOwnerResponse, }; -type querySignTransactionRequestsResponseParams = { - value: QuerySignTransactionRequestsResponse, +type msgUpdateSpaceParams = { + value: MsgUpdateSpace, }; -type queryKeysRequestParams = { - value: QueryKeysRequest, +type msgFulfilSignatureRequestResponseParams = { + value: MsgFulfilSignatureRequestResponse, }; -type msgFulfilSignatureRequestParams = { - value: MsgFulfilSignatureRequest, +type querySignTransactionRequestByIdResponseParams = { + value: QuerySignTransactionRequestByIdResponse, }; -type queryParamsRequestParams = { - value: QueryParamsRequest, +type paramsParams = { + value: Params, }; -type querySpacesRequestParams = { - value: QuerySpacesRequest, +type msgNewSpaceParams = { + value: MsgNewSpace, }; -type querySpaceByIdResponseParams = { - value: QuerySpaceByIdResponse, +type queryKeychainByIdResponseParams = { + value: QueryKeychainByIdResponse, }; -type queryKeysResponseParams = { - value: QueryKeysResponse, +type queryKeyRequestByIdResponseParams = { + value: QueryKeyRequestByIdResponse, }; -type msgNewKeychainParams = { - value: MsgNewKeychain, +type signTransactionRequestResponseParams = { + value: SignTransactionRequestResponse, }; -type msgNewSpaceResponseParams = { - value: MsgNewSpaceResponse, +type msgUpdateKeychainParams = { + value: MsgUpdateKeychain, }; -type msgRemoveSpaceOwnerResponseParams = { - value: MsgRemoveSpaceOwnerResponse, +type msgNewSignatureRequestParams = { + value: MsgNewSignatureRequest, }; -type msgNewSignatureRequestResponseParams = { - value: MsgNewSignatureRequestResponse, +type queryKeychainsRequestParams = { + value: QueryKeychainsRequest, }; -type keyParams = { - value: Key, +type msgNewSignTransactionRequestResponseParams = { + value: MsgNewSignTransactionRequestResponse, }; -type msgUpdateSpaceParams = { - value: MsgUpdateSpace, +type queryParamsRequestParams = { + value: QueryParamsRequest, }; -type paramsParams = { - value: Params, +type queryKeyRequestsResponseParams = { + value: QueryKeyRequestsResponse, }; -type msgUpdateKeyRequestResponseParams = { - value: MsgUpdateKeyRequestResponse, +type querySignTransactionRequestByIdRequestParams = { + value: QuerySignTransactionRequestByIdRequest, }; -type msgNewKeyRequestResponseParams = { - value: MsgNewKeyRequestResponse, +type msgUpdateKeychainResponseParams = { + value: MsgUpdateKeychainResponse, }; -type msgSignedDataParams = { - value: MsgSignedData, +type msgUpdateKeyResponseParams = { + value: MsgUpdateKeyResponse, }; @@ -789,73 +811,101 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendSignRequest({ value, fee, memo }: sendSignRequestParams): Promise { + async sendMsgNewSignTransactionRequest({ value, fee, memo }: sendMsgNewSignTransactionRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendSignRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewSignTransactionRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.signRequest({ value: SignRequest.fromPartial(value) }) + let msg = this.msgNewSignTransactionRequest({ value: MsgNewSignTransactionRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSignRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewSignTransactionRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAddKeychainPartyResponse({ value, fee, memo }: sendMsgAddKeychainPartyResponseParams): Promise { + async sendQueryAllKeysRequest({ value, fee, memo }: sendQueryAllKeysRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAddKeychainPartyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryAllKeysRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgAddKeychainPartyResponse({ value: MsgAddKeychainPartyResponse.fromPartial(value) }) + let msg = this.queryAllKeysRequest({ value: QueryAllKeysRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAddKeychainPartyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryAllKeysRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySpaceByIdRequest({ value, fee, memo }: sendQuerySpaceByIdRequestParams): Promise { + async sendQuerySignTransactionRequestsResponse({ value, fee, memo }: sendQuerySignTransactionRequestsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpaceByIdRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySignTransactionRequestsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySpaceByIdRequest({ value: QuerySpaceByIdRequest.fromPartial(value) }) + let msg = this.querySignTransactionRequestsResponse({ value: QuerySignTransactionRequestsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySpaceByIdRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySignTransactionRequestsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeychainByIdRequest({ value, fee, memo }: sendQueryKeychainByIdRequestParams): Promise { + async sendMsgAddSpaceOwnerResponse({ value, fee, memo }: sendMsgAddSpaceOwnerResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeychainByIdRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeychainByIdRequest({ value: QueryKeychainByIdRequest.fromPartial(value) }) + let msg = this.msgAddSpaceOwnerResponse({ value: MsgAddSpaceOwnerResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeychainByIdRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeyRequestsResponse({ value, fee, memo }: sendQueryKeyRequestsResponseParams): Promise { + async sendMsgNewKeyRequestResponse({ value, fee, memo }: sendMsgNewKeyRequestResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewKeyRequestResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeyRequestsResponse({ value: QueryKeyRequestsResponse.fromPartial(value) }) + let msg = this.msgNewKeyRequestResponse({ value: MsgNewKeyRequestResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeyRequestsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewKeyRequestResponse: Could not broadcast Tx: '+ e.message) + } + }, + + async sendQuerySpacesRequest({ value, fee, memo }: sendQuerySpacesRequestParams): Promise { + if (!signer) { + throw new Error('TxClient:sendQuerySpacesRequest: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.querySpacesRequest({ value: QuerySpacesRequest.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendQuerySpacesRequest: Could not broadcast Tx: '+ e.message) + } + }, + + async sendQueryKeysResponse({ value, fee, memo }: sendQueryKeysResponseParams): Promise { + if (!signer) { + throw new Error('TxClient:sendQueryKeysResponse: Unable to sign Tx. Signer is not present.') + } + try { + const { address } = (await signer.getAccounts())[0]; + const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); + let msg = this.queryKeysResponse({ value: QueryKeysResponse.fromPartial(value) }) + return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) + } catch (e: any) { + throw new Error('TxClient:sendQueryKeysResponse: Could not broadcast Tx: '+ e.message) } }, @@ -873,185 +923,185 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendKeychainFees({ value, fee, memo }: sendKeychainFeesParams): Promise { + async sendKeychain({ value, fee, memo }: sendKeychainParams): Promise { if (!signer) { - throw new Error('TxClient:sendKeychainFees: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendKeychain: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.keychainFees({ value: KeychainFees.fromPartial(value) }) + let msg = this.keychain({ value: Keychain.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendKeychainFees: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendKeychain: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRemoveSpaceOwner({ value, fee, memo }: sendMsgRemoveSpaceOwnerParams): Promise { + async sendQuerySignatureRequestsResponse({ value, fee, memo }: sendQuerySignatureRequestsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRemoveSpaceOwner: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySignatureRequestsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRemoveSpaceOwner({ value: MsgRemoveSpaceOwner.fromPartial(value) }) + let msg = this.querySignatureRequestsResponse({ value: QuerySignatureRequestsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRemoveSpaceOwner: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySignatureRequestsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise { + async sendSignTransactionRequest({ value, fee, memo }: sendSignTransactionRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSignTransactionRequest: Unable to 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.signTransactionRequest({ value: SignTransactionRequest.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:sendSignTransactionRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewSpace({ value, fee, memo }: sendMsgNewSpaceParams): Promise { + async sendSpace({ value, fee, memo }: sendSpaceParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewSpace: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSpace: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewSpace({ value: MsgNewSpace.fromPartial(value) }) + let msg = this.space({ value: Space.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewSpace: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSpace: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateSpaceResponse({ value, fee, memo }: sendMsgUpdateSpaceResponseParams): Promise { + async sendMsgAddKeychainPartyResponse({ value, fee, memo }: sendMsgAddKeychainPartyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateSpaceResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAddKeychainPartyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateSpaceResponse({ value: MsgUpdateSpaceResponse.fromPartial(value) }) + let msg = this.msgAddKeychainPartyResponse({ value: MsgAddKeychainPartyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateSpaceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAddKeychainPartyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateKeyResponse({ value, fee, memo }: sendMsgUpdateKeyResponseParams): Promise { + async sendKeyRequest({ value, fee, memo }: sendKeyRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendKeyRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateKeyResponse({ value: MsgUpdateKeyResponse.fromPartial(value) }) + let msg = this.keyRequest({ value: KeyRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateKeyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendKeyRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewSignTransactionRequestResponse({ value, fee, memo }: sendMsgNewSignTransactionRequestResponseParams): Promise { + async sendMsgNewKey({ value, fee, memo }: sendMsgNewKeyParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewKey: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewSignTransactionRequestResponse({ value: MsgNewSignTransactionRequestResponse.fromPartial(value) }) + let msg = this.msgNewKey({ value: MsgNewKey.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewKey: Could not broadcast Tx: '+ e.message) } }, - async sendKeychain({ value, fee, memo }: sendKeychainParams): Promise { + async sendMsgUpdateKeyRequestResponse({ value, fee, memo }: sendMsgUpdateKeyRequestResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendKeychain: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.keychain({ value: Keychain.fromPartial(value) }) + let msg = this.msgUpdateKeyRequestResponse({ value: MsgUpdateKeyRequestResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendKeychain: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAddKeychainParty({ value, fee, memo }: sendMsgAddKeychainPartyParams): Promise { + async sendQuerySpacesResponse({ value, fee, memo }: sendQuerySpacesResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAddKeychainParty: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySpacesResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgAddKeychainParty({ value: MsgAddKeychainParty.fromPartial(value) }) + let msg = this.querySpacesResponse({ value: QuerySpacesResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAddKeychainParty: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySpacesResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeychainsRequest({ value, fee, memo }: sendQueryKeychainsRequestParams): Promise { + async sendMsgNewSpaceResponse({ value, fee, memo }: sendMsgNewSpaceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeychainsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewSpaceResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeychainsRequest({ value: QueryKeychainsRequest.fromPartial(value) }) + let msg = this.msgNewSpaceResponse({ value: MsgNewSpaceResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeychainsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewSpaceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendKeyResponse({ value, fee, memo }: sendKeyResponseParams): Promise { + async sendMsgFulfilSignatureRequest({ value, fee, memo }: sendMsgFulfilSignatureRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendKeyResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgFulfilSignatureRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.keyResponse({ value: KeyResponse.fromPartial(value) }) + let msg = this.msgFulfilSignatureRequest({ value: MsgFulfilSignatureRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendKeyResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgFulfilSignatureRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySignatureRequestsRequest({ value, fee, memo }: sendQuerySignatureRequestsRequestParams): Promise { + async sendMsgNewKeychain({ value, fee, memo }: sendMsgNewKeychainParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewKeychain: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignatureRequestsRequest({ value: QuerySignatureRequestsRequest.fromPartial(value) }) + let msg = this.msgNewKeychain({ value: MsgNewKeychain.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySignatureRequestsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewKeychain: Could not broadcast Tx: '+ e.message) } }, - async sendSignTransactionRequestResponse({ value, fee, memo }: sendSignTransactionRequestResponseParams): Promise { + async sendQueryKeysBySpaceIdRequest({ value, fee, memo }: sendQueryKeysBySpaceIdRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendSignTransactionRequestResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeysBySpaceIdRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.signTransactionRequestResponse({ value: SignTransactionRequestResponse.fromPartial(value) }) + let msg = this.queryKeysBySpaceIdRequest({ value: QueryKeysBySpaceIdRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSignTransactionRequestResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeysBySpaceIdRequest: Could not broadcast Tx: '+ e.message) } }, @@ -1069,716 +1119,732 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgUpdateKeychain({ value, fee, memo }: sendMsgUpdateKeychainParams): Promise { + async sendQuerySpaceByIdRequest({ value, fee, memo }: sendQuerySpaceByIdRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeychain: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySpaceByIdRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateKeychain({ value: MsgUpdateKeychain.fromPartial(value) }) + let msg = this.querySpaceByIdRequest({ value: QuerySpaceByIdRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateKeychain: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySpaceByIdRequest: Could not broadcast Tx: '+ e.message) } }, - async sendKeyRequest({ value, fee, memo }: sendKeyRequestParams): Promise { + async sendQueryKeyRequestByIdRequest({ value, fee, memo }: sendQueryKeyRequestByIdRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendKeyRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.keyRequest({ value: KeyRequest.fromPartial(value) }) + let msg = this.queryKeyRequestByIdRequest({ value: QueryKeyRequestByIdRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendKeyRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeyRequestByIdResponse({ value, fee, memo }: sendQueryKeyRequestByIdResponseParams): Promise { + async sendQuerySignatureRequestByIdRequest({ value, fee, memo }: sendQuerySignatureRequestByIdRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestByIdResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeyRequestByIdResponse({ value: QueryKeyRequestByIdResponse.fromPartial(value) }) + let msg = this.querySignatureRequestByIdRequest({ value: QuerySignatureRequestByIdRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeyRequestByIdResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }: sendQuerySignTransactionRequestByIdResponseParams): Promise { + async sendSignRequest({ value, fee, memo }: sendSignRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSignRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignTransactionRequestByIdResponse({ value: QuerySignTransactionRequestByIdResponse.fromPartial(value) }) + let msg = this.signRequest({ value: SignRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSignRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewKeychainResponse({ value, fee, memo }: sendMsgNewKeychainResponseParams): Promise { + async sendMsgAddKeychainParty({ value, fee, memo }: sendMsgAddKeychainPartyParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewKeychainResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAddKeychainParty: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewKeychainResponse({ value: MsgNewKeychainResponse.fromPartial(value) }) + let msg = this.msgAddKeychainParty({ value: MsgAddKeychainParty.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewKeychainResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAddKeychainParty: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySignatureRequestsResponse({ value, fee, memo }: sendQuerySignatureRequestsResponseParams): Promise { + async sendMsgUpdateSpaceResponse({ value, fee, memo }: sendMsgUpdateSpaceResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateSpaceResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignatureRequestsResponse({ value: QuerySignatureRequestsResponse.fromPartial(value) }) + let msg = this.msgUpdateSpaceResponse({ value: MsgUpdateSpaceResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySignatureRequestsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateSpaceResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateKey({ value, fee, memo }: sendMsgUpdateKeyParams): Promise { + async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKey: 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.msgUpdateKey({ value: MsgUpdateKey.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:sendMsgUpdateKey: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewSignatureRequest({ value, fee, memo }: sendMsgNewSignatureRequestParams): Promise { + async sendMsgUpdateParamsResponse({ value, fee, memo }: sendMsgUpdateParamsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewSignatureRequest: 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.msgNewSignatureRequest({ value: MsgNewSignatureRequest.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:sendMsgNewSignatureRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateParamsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgFulfilSignatureRequestResponse({ value, fee, memo }: sendMsgFulfilSignatureRequestResponseParams): Promise { + async sendMsgUpdateKeyRequest({ value, fee, memo }: sendMsgUpdateKeyRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateKeyRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgFulfilSignatureRequestResponse({ value: MsgFulfilSignatureRequestResponse.fromPartial(value) }) + let msg = this.msgUpdateKeyRequest({ value: MsgUpdateKeyRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateKeyRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySpacesResponse({ value, fee, memo }: sendQuerySpacesResponseParams): Promise { + async sendQueryKeychainsResponse({ value, fee, memo }: sendQueryKeychainsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpacesResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeychainsResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySpacesResponse({ value: QuerySpacesResponse.fromPartial(value) }) + let msg = this.queryKeychainsResponse({ value: QueryKeychainsResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySpacesResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeychainsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySpacesByOwnerRequest({ value, fee, memo }: sendQuerySpacesByOwnerRequestParams): Promise { + async sendQueryKeyRequestsRequest({ value, fee, memo }: sendQueryKeyRequestsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeyRequestsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySpacesByOwnerRequest({ value: QuerySpacesByOwnerRequest.fromPartial(value) }) + let msg = this.queryKeyRequestsRequest({ value: QueryKeyRequestsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeyRequestsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendSpace({ value, fee, memo }: sendSpaceParams): Promise { + async sendQuerySignatureRequestByIdResponse({ value, fee, memo }: sendQuerySignatureRequestByIdResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendSpace: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.space({ value: Space.fromPartial(value) }) + let msg = this.querySignatureRequestByIdResponse({ value: QuerySignatureRequestByIdResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSpace: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateKeychainResponse({ value, fee, memo }: sendMsgUpdateKeychainResponseParams): Promise { + async sendQuerySignTransactionRequestsRequest({ value, fee, memo }: sendQuerySignTransactionRequestsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeychainResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateKeychainResponse({ value: MsgUpdateKeychainResponse.fromPartial(value) }) + let msg = this.querySignTransactionRequestsRequest({ value: QuerySignTransactionRequestsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateKeychainResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewKey({ value, fee, memo }: sendMsgNewKeyParams): Promise { + async sendMsgNewKeychainResponse({ value, fee, memo }: sendMsgNewKeychainResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewKey: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewKeychainResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewKey({ value: MsgNewKey.fromPartial(value) }) + let msg = this.msgNewKeychainResponse({ value: MsgNewKeychainResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewKey: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewKeychainResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewSignTransactionRequest({ value, fee, memo }: sendMsgNewSignTransactionRequestParams): Promise { + async sendQuerySpacesByOwnerRequest({ value, fee, memo }: sendQuerySpacesByOwnerRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewSignTransactionRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewSignTransactionRequest({ value: MsgNewSignTransactionRequest.fromPartial(value) }) + let msg = this.querySpacesByOwnerRequest({ value: QuerySpacesByOwnerRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewSignTransactionRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySpacesByOwnerRequest: Could not broadcast Tx: '+ e.message) } }, - async sendSignTransactionRequest({ value, fee, memo }: sendSignTransactionRequestParams): Promise { + async sendMsgSignedData({ value, fee, memo }: sendMsgSignedDataParams): Promise { if (!signer) { - throw new Error('TxClient:sendSignTransactionRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgSignedData: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.signTransactionRequest({ value: SignTransactionRequest.fromPartial(value) }) + let msg = this.msgSignedData({ value: MsgSignedData.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendSignTransactionRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgSignedData: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAddSpaceOwner({ value, fee, memo }: sendMsgAddSpaceOwnerParams): Promise { + async sendMetadataEthereum({ value, fee, memo }: sendMetadataEthereumParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAddSpaceOwner: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMetadataEthereum: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgAddSpaceOwner({ value: MsgAddSpaceOwner.fromPartial(value) }) + let msg = this.metadataEthereum({ value: MetadataEthereum.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAddSpaceOwner: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMetadataEthereum: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewKeyRequest({ value, fee, memo }: sendMsgNewKeyRequestParams): Promise { + async sendQueryKeychainByIdRequest({ value, fee, memo }: sendQueryKeychainByIdRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewKeyRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeychainByIdRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewKeyRequest({ value: MsgNewKeyRequest.fromPartial(value) }) + let msg = this.queryKeychainByIdRequest({ value: QueryKeychainByIdRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewKeyRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeychainByIdRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateKeyRequest({ value, fee, memo }: sendMsgUpdateKeyRequestParams): Promise { + async sendQueryKeyByIdRequest({ value, fee, memo }: sendQueryKeyByIdRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeyRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeyByIdRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateKeyRequest({ value: MsgUpdateKeyRequest.fromPartial(value) }) + let msg = this.queryKeyByIdRequest({ value: QueryKeyByIdRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateKeyRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeyByIdRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMetadataEthereum({ value, fee, memo }: sendMetadataEthereumParams): Promise { + async sendKey({ value, fee, memo }: sendKeyParams): Promise { if (!signer) { - throw new Error('TxClient:sendMetadataEthereum: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendKey: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.metadataEthereum({ value: MetadataEthereum.fromPartial(value) }) + let msg = this.key({ value: Key.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMetadataEthereum: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendKey: Could not broadcast Tx: '+ e.message) } }, - async sendQueryParamsResponse({ value, fee, memo }: sendQueryParamsResponseParams): Promise { + async sendMsgNewKeyRequest({ value, fee, memo }: sendMsgNewKeyRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryParamsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewKeyRequest: Unable to 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.msgNewKeyRequest({ value: MsgNewKeyRequest.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:sendMsgNewKeyRequest: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeyRequestsRequest({ value, fee, memo }: sendQueryKeyRequestsRequestParams): Promise { + async sendMsgNewSignatureRequestResponse({ value, fee, memo }: sendMsgNewSignatureRequestResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeyRequestsRequest({ value: QueryKeyRequestsRequest.fromPartial(value) }) + let msg = this.msgNewSignatureRequestResponse({ value: MsgNewSignatureRequestResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeyRequestsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }: sendQuerySignTransactionRequestByIdRequestParams): Promise { + async sendKeychainFees({ value, fee, memo }: sendKeychainFeesParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendKeychainFees: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignTransactionRequestByIdRequest({ value: QuerySignTransactionRequestByIdRequest.fromPartial(value) }) + let msg = this.keychainFees({ value: KeychainFees.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendKeychainFees: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAddSpaceOwnerResponse({ value, fee, memo }: sendMsgAddSpaceOwnerResponseParams): Promise { + async sendMsgAddSpaceOwner({ value, fee, memo }: sendMsgAddSpaceOwnerParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAddSpaceOwner: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgAddSpaceOwnerResponse({ value: MsgAddSpaceOwnerResponse.fromPartial(value) }) + let msg = this.msgAddSpaceOwner({ value: MsgAddSpaceOwner.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAddSpaceOwnerResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAddSpaceOwner: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeychainsResponse({ value, fee, memo }: sendQueryKeychainsResponseParams): Promise { + async sendMsgUpdateKey({ value, fee, memo }: sendMsgUpdateKeyParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeychainsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateKey: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeychainsResponse({ value: QueryKeychainsResponse.fromPartial(value) }) + let msg = this.msgUpdateKey({ value: MsgUpdateKey.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeychainsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateKey: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeychainByIdResponse({ value, fee, memo }: sendQueryKeychainByIdResponseParams): Promise { + async sendQuerySpaceByIdResponse({ value, fee, memo }: sendQuerySpaceByIdResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeychainByIdResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySpaceByIdResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeychainByIdResponse({ value: QueryKeychainByIdResponse.fromPartial(value) }) + let msg = this.querySpaceByIdResponse({ value: QuerySpaceByIdResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeychainByIdResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySpaceByIdResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeyRequestByIdRequest({ value, fee, memo }: sendQueryKeyRequestByIdRequestParams): Promise { + async sendQueryKeyResponse({ value, fee, memo }: sendQueryKeyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeyRequestByIdRequest({ value: QueryKeyRequestByIdRequest.fromPartial(value) }) + let msg = this.queryKeyResponse({ value: QueryKeyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeyRequestByIdRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeyResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySignTransactionRequestsRequest({ value, fee, memo }: sendQuerySignTransactionRequestsRequestParams): Promise { + async sendQuerySignatureRequestsRequest({ value, fee, memo }: sendQuerySignatureRequestsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySignatureRequestsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignTransactionRequestsRequest({ value: QuerySignTransactionRequestsRequest.fromPartial(value) }) + let msg = this.querySignatureRequestsRequest({ value: QuerySignatureRequestsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySignTransactionRequestsRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySignatureRequestsRequest: 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 sendQuerySignatureRequestByIdRequest({ value, fee, memo }: sendQuerySignatureRequestByIdRequestParams): Promise { + async sendMsgRemoveSpaceOwner({ value, fee, memo }: sendMsgRemoveSpaceOwnerParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRemoveSpaceOwner: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignatureRequestByIdRequest({ value: QuerySignatureRequestByIdRequest.fromPartial(value) }) + let msg = this.msgRemoveSpaceOwner({ value: MsgRemoveSpaceOwner.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySignatureRequestByIdRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRemoveSpaceOwner: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySignatureRequestByIdResponse({ value, fee, memo }: sendQuerySignatureRequestByIdResponseParams): Promise { + async sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }: sendMsgRemoveSpaceOwnerResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignatureRequestByIdResponse({ value: QuerySignatureRequestByIdResponse.fromPartial(value) }) + let msg = this.msgRemoveSpaceOwnerResponse({ value: MsgRemoveSpaceOwnerResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySignatureRequestByIdResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySignTransactionRequestsResponse({ value, fee, memo }: sendQuerySignTransactionRequestsResponseParams): Promise { + async sendMsgUpdateSpace({ value, fee, memo }: sendMsgUpdateSpaceParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySignTransactionRequestsResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateSpace: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySignTransactionRequestsResponse({ value: QuerySignTransactionRequestsResponse.fromPartial(value) }) + let msg = this.msgUpdateSpace({ value: MsgUpdateSpace.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySignTransactionRequestsResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateSpace: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeysRequest({ value, fee, memo }: sendQueryKeysRequestParams): Promise { + async sendMsgFulfilSignatureRequestResponse({ value, fee, memo }: sendMsgFulfilSignatureRequestResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeysRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeysRequest({ value: QueryKeysRequest.fromPartial(value) }) + let msg = this.msgFulfilSignatureRequestResponse({ value: MsgFulfilSignatureRequestResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeysRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgFulfilSignatureRequestResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgFulfilSignatureRequest({ value, fee, memo }: sendMsgFulfilSignatureRequestParams): Promise { + async sendQuerySignTransactionRequestByIdResponse({ value, fee, memo }: sendQuerySignTransactionRequestByIdResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgFulfilSignatureRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgFulfilSignatureRequest({ value: MsgFulfilSignatureRequest.fromPartial(value) }) + let msg = this.querySignTransactionRequestByIdResponse({ value: QuerySignTransactionRequestByIdResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgFulfilSignatureRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySignTransactionRequestByIdResponse: 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 sendQuerySpacesRequest({ value, fee, memo }: sendQuerySpacesRequestParams): Promise { + async sendMsgNewSpace({ value, fee, memo }: sendMsgNewSpaceParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpacesRequest: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewSpace: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySpacesRequest({ value: QuerySpacesRequest.fromPartial(value) }) + let msg = this.msgNewSpace({ value: MsgNewSpace.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySpacesRequest: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewSpace: Could not broadcast Tx: '+ e.message) } }, - async sendQuerySpaceByIdResponse({ value, fee, memo }: sendQuerySpaceByIdResponseParams): Promise { + async sendQueryKeychainByIdResponse({ value, fee, memo }: sendQueryKeychainByIdResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQuerySpaceByIdResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeychainByIdResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.querySpaceByIdResponse({ value: QuerySpaceByIdResponse.fromPartial(value) }) + let msg = this.queryKeychainByIdResponse({ value: QueryKeychainByIdResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQuerySpaceByIdResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeychainByIdResponse: Could not broadcast Tx: '+ e.message) } }, - async sendQueryKeysResponse({ value, fee, memo }: sendQueryKeysResponseParams): Promise { + async sendQueryKeyRequestByIdResponse({ value, fee, memo }: sendQueryKeyRequestByIdResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendQueryKeysResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeyRequestByIdResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.queryKeysResponse({ value: QueryKeysResponse.fromPartial(value) }) + let msg = this.queryKeyRequestByIdResponse({ value: QueryKeyRequestByIdResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendQueryKeysResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeyRequestByIdResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewKeychain({ value, fee, memo }: sendMsgNewKeychainParams): Promise { + async sendSignTransactionRequestResponse({ value, fee, memo }: sendSignTransactionRequestResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewKeychain: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendSignTransactionRequestResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewKeychain({ value: MsgNewKeychain.fromPartial(value) }) + let msg = this.signTransactionRequestResponse({ value: SignTransactionRequestResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewKeychain: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendSignTransactionRequestResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewSpaceResponse({ value, fee, memo }: sendMsgNewSpaceResponseParams): Promise { + async sendMsgUpdateKeychain({ value, fee, memo }: sendMsgUpdateKeychainParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewSpaceResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateKeychain: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewSpaceResponse({ value: MsgNewSpaceResponse.fromPartial(value) }) + let msg = this.msgUpdateKeychain({ value: MsgUpdateKeychain.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewSpaceResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateKeychain: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRemoveSpaceOwnerResponse({ value, fee, memo }: sendMsgRemoveSpaceOwnerResponseParams): Promise { + async sendMsgNewSignatureRequest({ value, fee, memo }: sendMsgNewSignatureRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewSignatureRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgRemoveSpaceOwnerResponse({ value: MsgRemoveSpaceOwnerResponse.fromPartial(value) }) + let msg = this.msgNewSignatureRequest({ value: MsgNewSignatureRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRemoveSpaceOwnerResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewSignatureRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewSignatureRequestResponse({ value, fee, memo }: sendMsgNewSignatureRequestResponseParams): Promise { + async sendQueryKeychainsRequest({ value, fee, memo }: sendQueryKeychainsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeychainsRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewSignatureRequestResponse({ value: MsgNewSignatureRequestResponse.fromPartial(value) }) + let msg = this.queryKeychainsRequest({ value: QueryKeychainsRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewSignatureRequestResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryKeychainsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendKey({ value, fee, memo }: sendKeyParams): Promise { + async sendMsgNewSignTransactionRequestResponse({ value, fee, memo }: sendMsgNewSignTransactionRequestResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendKey: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.key({ value: Key.fromPartial(value) }) + let msg = this.msgNewSignTransactionRequestResponse({ value: MsgNewSignTransactionRequestResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendKey: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgNewSignTransactionRequestResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateSpace({ value, fee, memo }: sendMsgUpdateSpaceParams): Promise { + async sendQueryParamsRequest({ value, fee, memo }: sendQueryParamsRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateSpace: 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.msgUpdateSpace({ value: MsgUpdateSpace.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:sendMsgUpdateSpace: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQueryParamsRequest: Could not broadcast Tx: '+ e.message) } }, - async sendParams({ value, fee, memo }: sendParamsParams): Promise { + async sendQueryKeyRequestsResponse({ value, fee, memo }: sendQueryKeyRequestsResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendParams: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQueryKeyRequestsResponse: Unable to 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.queryKeyRequestsResponse({ value: QueryKeyRequestsResponse.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:sendQueryKeyRequestsResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateKeyRequestResponse({ value, fee, memo }: sendMsgUpdateKeyRequestResponseParams): Promise { + async sendQuerySignTransactionRequestByIdRequest({ value, fee, memo }: sendQuerySignTransactionRequestByIdRequestParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgUpdateKeyRequestResponse({ value: MsgUpdateKeyRequestResponse.fromPartial(value) }) + let msg = this.querySignTransactionRequestByIdRequest({ value: QuerySignTransactionRequestByIdRequest.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateKeyRequestResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendQuerySignTransactionRequestByIdRequest: Could not broadcast Tx: '+ e.message) } }, - async sendMsgNewKeyRequestResponse({ value, fee, memo }: sendMsgNewKeyRequestResponseParams): Promise { + async sendMsgUpdateKeychainResponse({ value, fee, memo }: sendMsgUpdateKeychainResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgNewKeyRequestResponse: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateKeychainResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgNewKeyRequestResponse({ value: MsgNewKeyRequestResponse.fromPartial(value) }) + let msg = this.msgUpdateKeychainResponse({ value: MsgUpdateKeychainResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgNewKeyRequestResponse: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateKeychainResponse: Could not broadcast Tx: '+ e.message) } }, - async sendMsgSignedData({ value, fee, memo }: sendMsgSignedDataParams): Promise { + async sendMsgUpdateKeyResponse({ value, fee, memo }: sendMsgUpdateKeyResponseParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgSignedData: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateKeyResponse: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry}); - let msg = this.msgSignedData({ value: MsgSignedData.fromPartial(value) }) + let msg = this.msgUpdateKeyResponse({ value: MsgUpdateKeyResponse.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgSignedData: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateKeyResponse: Could not broadcast Tx: '+ e.message) } }, - signRequest({ value }: signRequestParams): EncodeObject { + msgNewSignTransactionRequest({ value }: msgNewSignTransactionRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.SignRequest", value: SignRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgNewSignTransactionRequest", value: MsgNewSignTransactionRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SignRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewSignTransactionRequest: Could not create message: ' + e.message) } }, - msgAddKeychainPartyResponse({ value }: msgAddKeychainPartyResponseParams): EncodeObject { + queryAllKeysRequest({ value }: queryAllKeysRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgAddKeychainPartyResponse", value: MsgAddKeychainPartyResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QueryAllKeysRequest", value: QueryAllKeysRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAddKeychainPartyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryAllKeysRequest: Could not create message: ' + e.message) } }, - querySpaceByIdRequest({ value }: querySpaceByIdRequestParams): EncodeObject { + querySignTransactionRequestsResponse({ value }: querySignTransactionRequestsResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySpaceByIdRequest", value: QuerySpaceByIdRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestsResponse", value: QuerySignTransactionRequestsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySpaceByIdRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignTransactionRequestsResponse: Could not create message: ' + e.message) } }, - queryKeychainByIdRequest({ value }: queryKeychainByIdRequestParams): EncodeObject { + msgAddSpaceOwnerResponse({ value }: msgAddSpaceOwnerResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeychainByIdRequest", value: QueryKeychainByIdRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgAddSpaceOwnerResponse", value: MsgAddSpaceOwnerResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeychainByIdRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAddSpaceOwnerResponse: Could not create message: ' + e.message) } }, - queryKeyRequestsResponse({ value }: queryKeyRequestsResponseParams): EncodeObject { + msgNewKeyRequestResponse({ value }: msgNewKeyRequestResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestsResponse", value: QueryKeyRequestsResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgNewKeyRequestResponse", value: MsgNewKeyRequestResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeyRequestsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewKeyRequestResponse: Could not create message: ' + e.message) + } + }, + + querySpacesRequest({ value }: querySpacesRequestParams): EncodeObject { + try { + return { typeUrl: "/warden.warden.v1beta2.QuerySpacesRequest", value: QuerySpacesRequest.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QuerySpacesRequest: Could not create message: ' + e.message) + } + }, + + queryKeysResponse({ value }: queryKeysResponseParams): EncodeObject { + try { + return { typeUrl: "/warden.warden.v1beta2.QueryKeysResponse", value: QueryKeysResponse.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:QueryKeysResponse: Could not create message: ' + e.message) } }, @@ -1790,107 +1856,107 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - keychainFees({ value }: keychainFeesParams): EncodeObject { + keychain({ value }: keychainParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.KeychainFees", value: KeychainFees.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.Keychain", value: Keychain.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:KeychainFees: Could not create message: ' + e.message) + throw new Error('TxClient:Keychain: Could not create message: ' + e.message) } }, - msgRemoveSpaceOwner({ value }: msgRemoveSpaceOwnerParams): EncodeObject { + querySignatureRequestsResponse({ value }: querySignatureRequestsResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgRemoveSpaceOwner", value: MsgRemoveSpaceOwner.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestsResponse", value: QuerySignatureRequestsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRemoveSpaceOwner: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignatureRequestsResponse: Could not create message: ' + e.message) } }, - msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { + signTransactionRequest({ value }: signTransactionRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.SignTransactionRequest", value: SignTransactionRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message) + throw new Error('TxClient:SignTransactionRequest: Could not create message: ' + e.message) } }, - msgNewSpace({ value }: msgNewSpaceParams): EncodeObject { + space({ value }: spaceParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewSpace", value: MsgNewSpace.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.Space", value: Space.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewSpace: Could not create message: ' + e.message) + throw new Error('TxClient:Space: Could not create message: ' + e.message) } }, - msgUpdateSpaceResponse({ value }: msgUpdateSpaceResponseParams): EncodeObject { + msgAddKeychainPartyResponse({ value }: msgAddKeychainPartyResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateSpaceResponse", value: MsgUpdateSpaceResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgAddKeychainPartyResponse", value: MsgAddKeychainPartyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateSpaceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAddKeychainPartyResponse: Could not create message: ' + e.message) } }, - msgUpdateKeyResponse({ value }: msgUpdateKeyResponseParams): EncodeObject { + keyRequest({ value }: keyRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeyResponse", value: MsgUpdateKeyResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.KeyRequest", value: KeyRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateKeyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:KeyRequest: Could not create message: ' + e.message) } }, - msgNewSignTransactionRequestResponse({ value }: msgNewSignTransactionRequestResponseParams): EncodeObject { + msgNewKey({ value }: msgNewKeyParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewSignTransactionRequestResponse", value: MsgNewSignTransactionRequestResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgNewKey", value: MsgNewKey.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewSignTransactionRequestResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewKey: Could not create message: ' + e.message) } }, - keychain({ value }: keychainParams): EncodeObject { + msgUpdateKeyRequestResponse({ value }: msgUpdateKeyRequestResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.Keychain", value: Keychain.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeyRequestResponse", value: MsgUpdateKeyRequestResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Keychain: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateKeyRequestResponse: Could not create message: ' + e.message) } }, - msgAddKeychainParty({ value }: msgAddKeychainPartyParams): EncodeObject { + querySpacesResponse({ value }: querySpacesResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgAddKeychainParty", value: MsgAddKeychainParty.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QuerySpacesResponse", value: QuerySpacesResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAddKeychainParty: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpacesResponse: Could not create message: ' + e.message) } }, - queryKeychainsRequest({ value }: queryKeychainsRequestParams): EncodeObject { + msgNewSpaceResponse({ value }: msgNewSpaceResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeychainsRequest", value: QueryKeychainsRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgNewSpaceResponse", value: MsgNewSpaceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeychainsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewSpaceResponse: Could not create message: ' + e.message) } }, - keyResponse({ value }: keyResponseParams): EncodeObject { + msgFulfilSignatureRequest({ value }: msgFulfilSignatureRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.KeyResponse", value: KeyResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgFulfilSignatureRequest", value: MsgFulfilSignatureRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:KeyResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgFulfilSignatureRequest: Could not create message: ' + e.message) } }, - querySignatureRequestsRequest({ value }: querySignatureRequestsRequestParams): EncodeObject { + msgNewKeychain({ value }: msgNewKeychainParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestsRequest", value: QuerySignatureRequestsRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgNewKeychain", value: MsgNewKeychain.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignatureRequestsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewKeychain: Could not create message: ' + e.message) } }, - signTransactionRequestResponse({ value }: signTransactionRequestResponseParams): EncodeObject { + queryKeysBySpaceIdRequest({ value }: queryKeysBySpaceIdRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.SignTransactionRequestResponse", value: SignTransactionRequestResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QueryKeysBySpaceIdRequest", value: QueryKeysBySpaceIdRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SignTransactionRequestResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeysBySpaceIdRequest: Could not create message: ' + e.message) } }, @@ -1902,387 +1968,387 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgUpdateKeychain({ value }: msgUpdateKeychainParams): EncodeObject { + querySpaceByIdRequest({ value }: querySpaceByIdRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeychain", value: MsgUpdateKeychain.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QuerySpaceByIdRequest", value: QuerySpaceByIdRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateKeychain: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpaceByIdRequest: Could not create message: ' + e.message) } }, - keyRequest({ value }: keyRequestParams): EncodeObject { + queryKeyRequestByIdRequest({ value }: queryKeyRequestByIdRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.KeyRequest", value: KeyRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestByIdRequest", value: QueryKeyRequestByIdRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:KeyRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeyRequestByIdRequest: Could not create message: ' + e.message) } }, - queryKeyRequestByIdResponse({ value }: queryKeyRequestByIdResponseParams): EncodeObject { + querySignatureRequestByIdRequest({ value }: querySignatureRequestByIdRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestByIdResponse", value: QueryKeyRequestByIdResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestByIdRequest", value: QuerySignatureRequestByIdRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeyRequestByIdResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignatureRequestByIdRequest: Could not create message: ' + e.message) } }, - querySignTransactionRequestByIdResponse({ value }: querySignTransactionRequestByIdResponseParams): EncodeObject { + signRequest({ value }: signRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse", value: QuerySignTransactionRequestByIdResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.SignRequest", value: SignRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignTransactionRequestByIdResponse: Could not create message: ' + e.message) + throw new Error('TxClient:SignRequest: Could not create message: ' + e.message) } }, - msgNewKeychainResponse({ value }: msgNewKeychainResponseParams): EncodeObject { + msgAddKeychainParty({ value }: msgAddKeychainPartyParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewKeychainResponse", value: MsgNewKeychainResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgAddKeychainParty", value: MsgAddKeychainParty.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewKeychainResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAddKeychainParty: Could not create message: ' + e.message) } }, - querySignatureRequestsResponse({ value }: querySignatureRequestsResponseParams): EncodeObject { + msgUpdateSpaceResponse({ value }: msgUpdateSpaceResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestsResponse", value: QuerySignatureRequestsResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateSpaceResponse", value: MsgUpdateSpaceResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignatureRequestsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateSpaceResponse: Could not create message: ' + e.message) } }, - msgUpdateKey({ value }: msgUpdateKeyParams): EncodeObject { + queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKey", value: MsgUpdateKey.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateKey: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) } }, - msgNewSignatureRequest({ value }: msgNewSignatureRequestParams): EncodeObject { + msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewSignatureRequest", value: MsgNewSignatureRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewSignatureRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateParamsResponse: Could not create message: ' + e.message) } }, - msgFulfilSignatureRequestResponse({ value }: msgFulfilSignatureRequestResponseParams): EncodeObject { + msgUpdateKeyRequest({ value }: msgUpdateKeyRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgFulfilSignatureRequestResponse", value: MsgFulfilSignatureRequestResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeyRequest", value: MsgUpdateKeyRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgFulfilSignatureRequestResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateKeyRequest: Could not create message: ' + e.message) } }, - querySpacesResponse({ value }: querySpacesResponseParams): EncodeObject { + queryKeychainsResponse({ value }: queryKeychainsResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySpacesResponse", value: QuerySpacesResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QueryKeychainsResponse", value: QueryKeychainsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySpacesResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeychainsResponse: Could not create message: ' + e.message) } }, - querySpacesByOwnerRequest({ value }: querySpacesByOwnerRequestParams): EncodeObject { + queryKeyRequestsRequest({ value }: queryKeyRequestsRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySpacesByOwnerRequest", value: QuerySpacesByOwnerRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestsRequest", value: QueryKeyRequestsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySpacesByOwnerRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeyRequestsRequest: Could not create message: ' + e.message) } }, - space({ value }: spaceParams): EncodeObject { + querySignatureRequestByIdResponse({ value }: querySignatureRequestByIdResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.Space", value: Space.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestByIdResponse", value: QuerySignatureRequestByIdResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Space: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignatureRequestByIdResponse: Could not create message: ' + e.message) } }, - msgUpdateKeychainResponse({ value }: msgUpdateKeychainResponseParams): EncodeObject { + querySignTransactionRequestsRequest({ value }: querySignTransactionRequestsRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeychainResponse", value: MsgUpdateKeychainResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestsRequest", value: QuerySignTransactionRequestsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateKeychainResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignTransactionRequestsRequest: Could not create message: ' + e.message) } }, - msgNewKey({ value }: msgNewKeyParams): EncodeObject { + msgNewKeychainResponse({ value }: msgNewKeychainResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewKey", value: MsgNewKey.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgNewKeychainResponse", value: MsgNewKeychainResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewKey: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewKeychainResponse: Could not create message: ' + e.message) } }, - msgNewSignTransactionRequest({ value }: msgNewSignTransactionRequestParams): EncodeObject { + querySpacesByOwnerRequest({ value }: querySpacesByOwnerRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewSignTransactionRequest", value: MsgNewSignTransactionRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QuerySpacesByOwnerRequest", value: QuerySpacesByOwnerRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewSignTransactionRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpacesByOwnerRequest: Could not create message: ' + e.message) } }, - signTransactionRequest({ value }: signTransactionRequestParams): EncodeObject { + msgSignedData({ value }: msgSignedDataParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.SignTransactionRequest", value: SignTransactionRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgSignedData", value: MsgSignedData.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:SignTransactionRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgSignedData: Could not create message: ' + e.message) } }, - msgAddSpaceOwner({ value }: msgAddSpaceOwnerParams): EncodeObject { + metadataEthereum({ value }: metadataEthereumParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgAddSpaceOwner", value: MsgAddSpaceOwner.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MetadataEthereum", value: MetadataEthereum.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAddSpaceOwner: Could not create message: ' + e.message) + throw new Error('TxClient:MetadataEthereum: Could not create message: ' + e.message) } }, - msgNewKeyRequest({ value }: msgNewKeyRequestParams): EncodeObject { + queryKeychainByIdRequest({ value }: queryKeychainByIdRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewKeyRequest", value: MsgNewKeyRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QueryKeychainByIdRequest", value: QueryKeychainByIdRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewKeyRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeychainByIdRequest: Could not create message: ' + e.message) } }, - msgUpdateKeyRequest({ value }: msgUpdateKeyRequestParams): EncodeObject { + queryKeyByIdRequest({ value }: queryKeyByIdRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeyRequest", value: MsgUpdateKeyRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QueryKeyByIdRequest", value: QueryKeyByIdRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateKeyRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeyByIdRequest: Could not create message: ' + e.message) } }, - metadataEthereum({ value }: metadataEthereumParams): EncodeObject { + key({ value }: keyParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MetadataEthereum", value: MetadataEthereum.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.Key", value: Key.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MetadataEthereum: Could not create message: ' + e.message) + throw new Error('TxClient:Key: Could not create message: ' + e.message) } }, - queryParamsResponse({ value }: queryParamsResponseParams): EncodeObject { + msgNewKeyRequest({ value }: msgNewKeyRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QueryParamsResponse", value: QueryParamsResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgNewKeyRequest", value: MsgNewKeyRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryParamsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewKeyRequest: Could not create message: ' + e.message) } }, - queryKeyRequestsRequest({ value }: queryKeyRequestsRequestParams): EncodeObject { + msgNewSignatureRequestResponse({ value }: msgNewSignatureRequestResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestsRequest", value: QueryKeyRequestsRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgNewSignatureRequestResponse", value: MsgNewSignatureRequestResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeyRequestsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewSignatureRequestResponse: Could not create message: ' + e.message) } }, - querySignTransactionRequestByIdRequest({ value }: querySignTransactionRequestByIdRequestParams): EncodeObject { + keychainFees({ value }: keychainFeesParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestByIdRequest", value: QuerySignTransactionRequestByIdRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.KeychainFees", value: KeychainFees.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignTransactionRequestByIdRequest: Could not create message: ' + e.message) + throw new Error('TxClient:KeychainFees: Could not create message: ' + e.message) } }, - msgAddSpaceOwnerResponse({ value }: msgAddSpaceOwnerResponseParams): EncodeObject { + msgAddSpaceOwner({ value }: msgAddSpaceOwnerParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgAddSpaceOwnerResponse", value: MsgAddSpaceOwnerResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgAddSpaceOwner", value: MsgAddSpaceOwner.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAddSpaceOwnerResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAddSpaceOwner: Could not create message: ' + e.message) } }, - queryKeychainsResponse({ value }: queryKeychainsResponseParams): EncodeObject { + msgUpdateKey({ value }: msgUpdateKeyParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeychainsResponse", value: QueryKeychainsResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKey", value: MsgUpdateKey.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeychainsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateKey: Could not create message: ' + e.message) } }, - queryKeychainByIdResponse({ value }: queryKeychainByIdResponseParams): EncodeObject { + querySpaceByIdResponse({ value }: querySpaceByIdResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeychainByIdResponse", value: QueryKeychainByIdResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QuerySpaceByIdResponse", value: QuerySpaceByIdResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeychainByIdResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySpaceByIdResponse: Could not create message: ' + e.message) } }, - queryKeyRequestByIdRequest({ value }: queryKeyRequestByIdRequestParams): EncodeObject { + queryKeyResponse({ value }: queryKeyResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestByIdRequest", value: QueryKeyRequestByIdRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QueryKeyResponse", value: QueryKeyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeyRequestByIdRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeyResponse: Could not create message: ' + e.message) } }, - querySignTransactionRequestsRequest({ value }: querySignTransactionRequestsRequestParams): EncodeObject { + querySignatureRequestsRequest({ value }: querySignatureRequestsRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestsRequest", value: QuerySignTransactionRequestsRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestsRequest", value: QuerySignatureRequestsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignTransactionRequestsRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignatureRequestsRequest: Could not create message: ' + e.message) } }, - msgUpdateParamsResponse({ value }: msgUpdateParamsResponseParams): EncodeObject { + msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateParamsResponse", value: MsgUpdateParamsResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.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) } }, - querySignatureRequestByIdRequest({ value }: querySignatureRequestByIdRequestParams): EncodeObject { + msgRemoveSpaceOwner({ value }: msgRemoveSpaceOwnerParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestByIdRequest", value: QuerySignatureRequestByIdRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgRemoveSpaceOwner", value: MsgRemoveSpaceOwner.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignatureRequestByIdRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRemoveSpaceOwner: Could not create message: ' + e.message) } }, - querySignatureRequestByIdResponse({ value }: querySignatureRequestByIdResponseParams): EncodeObject { + msgRemoveSpaceOwnerResponse({ value }: msgRemoveSpaceOwnerResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignatureRequestByIdResponse", value: QuerySignatureRequestByIdResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgRemoveSpaceOwnerResponse", value: MsgRemoveSpaceOwnerResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignatureRequestByIdResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRemoveSpaceOwnerResponse: Could not create message: ' + e.message) } }, - querySignTransactionRequestsResponse({ value }: querySignTransactionRequestsResponseParams): EncodeObject { + msgUpdateSpace({ value }: msgUpdateSpaceParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestsResponse", value: QuerySignTransactionRequestsResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateSpace", value: MsgUpdateSpace.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySignTransactionRequestsResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateSpace: Could not create message: ' + e.message) } }, - queryKeysRequest({ value }: queryKeysRequestParams): EncodeObject { + msgFulfilSignatureRequestResponse({ value }: msgFulfilSignatureRequestResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeysRequest", value: QueryKeysRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgFulfilSignatureRequestResponse", value: MsgFulfilSignatureRequestResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeysRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgFulfilSignatureRequestResponse: Could not create message: ' + e.message) } }, - msgFulfilSignatureRequest({ value }: msgFulfilSignatureRequestParams): EncodeObject { + querySignTransactionRequestByIdResponse({ value }: querySignTransactionRequestByIdResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgFulfilSignatureRequest", value: MsgFulfilSignatureRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse", value: QuerySignTransactionRequestByIdResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgFulfilSignatureRequest: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignTransactionRequestByIdResponse: Could not create message: ' + e.message) } }, - queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { + params({ value }: paramsParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.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) } }, - querySpacesRequest({ value }: querySpacesRequestParams): EncodeObject { + msgNewSpace({ value }: msgNewSpaceParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySpacesRequest", value: QuerySpacesRequest.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgNewSpace", value: MsgNewSpace.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySpacesRequest: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewSpace: Could not create message: ' + e.message) } }, - querySpaceByIdResponse({ value }: querySpaceByIdResponseParams): EncodeObject { + queryKeychainByIdResponse({ value }: queryKeychainByIdResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QuerySpaceByIdResponse", value: QuerySpaceByIdResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QueryKeychainByIdResponse", value: QueryKeychainByIdResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QuerySpaceByIdResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeychainByIdResponse: Could not create message: ' + e.message) } }, - queryKeysResponse({ value }: queryKeysResponseParams): EncodeObject { + queryKeyRequestByIdResponse({ value }: queryKeyRequestByIdResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.QueryKeysResponse", value: QueryKeysResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestByIdResponse", value: QueryKeyRequestByIdResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:QueryKeysResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeyRequestByIdResponse: Could not create message: ' + e.message) } }, - msgNewKeychain({ value }: msgNewKeychainParams): EncodeObject { + signTransactionRequestResponse({ value }: signTransactionRequestResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewKeychain", value: MsgNewKeychain.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.SignTransactionRequestResponse", value: SignTransactionRequestResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewKeychain: Could not create message: ' + e.message) + throw new Error('TxClient:SignTransactionRequestResponse: Could not create message: ' + e.message) } }, - msgNewSpaceResponse({ value }: msgNewSpaceResponseParams): EncodeObject { + msgUpdateKeychain({ value }: msgUpdateKeychainParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewSpaceResponse", value: MsgNewSpaceResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeychain", value: MsgUpdateKeychain.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewSpaceResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateKeychain: Could not create message: ' + e.message) } }, - msgRemoveSpaceOwnerResponse({ value }: msgRemoveSpaceOwnerResponseParams): EncodeObject { + msgNewSignatureRequest({ value }: msgNewSignatureRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgRemoveSpaceOwnerResponse", value: MsgRemoveSpaceOwnerResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgNewSignatureRequest", value: MsgNewSignatureRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRemoveSpaceOwnerResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewSignatureRequest: Could not create message: ' + e.message) } }, - msgNewSignatureRequestResponse({ value }: msgNewSignatureRequestResponseParams): EncodeObject { + queryKeychainsRequest({ value }: queryKeychainsRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewSignatureRequestResponse", value: MsgNewSignatureRequestResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QueryKeychainsRequest", value: QueryKeychainsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewSignatureRequestResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeychainsRequest: Could not create message: ' + e.message) } }, - key({ value }: keyParams): EncodeObject { + msgNewSignTransactionRequestResponse({ value }: msgNewSignTransactionRequestResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.Key", value: Key.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgNewSignTransactionRequestResponse", value: MsgNewSignTransactionRequestResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Key: Could not create message: ' + e.message) + throw new Error('TxClient:MsgNewSignTransactionRequestResponse: Could not create message: ' + e.message) } }, - msgUpdateSpace({ value }: msgUpdateSpaceParams): EncodeObject { + queryParamsRequest({ value }: queryParamsRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateSpace", value: MsgUpdateSpace.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QueryParamsRequest", value: QueryParamsRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateSpace: Could not create message: ' + e.message) + throw new Error('TxClient:QueryParamsRequest: Could not create message: ' + e.message) } }, - params({ value }: paramsParams): EncodeObject { + queryKeyRequestsResponse({ value }: queryKeyRequestsResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.Params", value: Params.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QueryKeyRequestsResponse", value: QueryKeyRequestsResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:Params: Could not create message: ' + e.message) + throw new Error('TxClient:QueryKeyRequestsResponse: Could not create message: ' + e.message) } }, - msgUpdateKeyRequestResponse({ value }: msgUpdateKeyRequestResponseParams): EncodeObject { + querySignTransactionRequestByIdRequest({ value }: querySignTransactionRequestByIdRequestParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeyRequestResponse", value: MsgUpdateKeyRequestResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.QuerySignTransactionRequestByIdRequest", value: QuerySignTransactionRequestByIdRequest.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateKeyRequestResponse: Could not create message: ' + e.message) + throw new Error('TxClient:QuerySignTransactionRequestByIdRequest: Could not create message: ' + e.message) } }, - msgNewKeyRequestResponse({ value }: msgNewKeyRequestResponseParams): EncodeObject { + msgUpdateKeychainResponse({ value }: msgUpdateKeychainResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgNewKeyRequestResponse", value: MsgNewKeyRequestResponse.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeychainResponse", value: MsgUpdateKeychainResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgNewKeyRequestResponse: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateKeychainResponse: Could not create message: ' + e.message) } }, - msgSignedData({ value }: msgSignedDataParams): EncodeObject { + msgUpdateKeyResponse({ value }: msgUpdateKeyResponseParams): EncodeObject { try { - return { typeUrl: "/warden.warden.v1beta2.MsgSignedData", value: MsgSignedData.fromPartial( value ) } + return { typeUrl: "/warden.warden.v1beta2.MsgUpdateKeyResponse", value: MsgUpdateKeyResponse.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgSignedData: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateKeyResponse: Could not create message: ' + e.message) } }, diff --git a/ts-client/warden.warden.v1beta2/registry.ts b/ts-client/warden.warden.v1beta2/registry.ts index 2207dac63..9380abe49 100755 --- a/ts-client/warden.warden.v1beta2/registry.ts +++ b/ts-client/warden.warden.v1beta2/registry.ts @@ -1,142 +1,146 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { SignRequest } from "./types/warden/warden/v1beta2/signature"; -import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta2/tx"; -import { QuerySpaceByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { QueryKeychainByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta2/tx"; +import { QueryAllKeysRequest } from "./types/warden/warden/v1beta2/query"; +import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySpacesRequest } from "./types/warden/warden/v1beta2/query"; +import { QueryKeysResponse } from "./types/warden/warden/v1beta2/query"; import { WalletKeyResponse } from "./types/warden/warden/v1beta2/query"; -import { KeychainFees } from "./types/warden/warden/v1beta2/keychain"; -import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateParams } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSpace } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateKeyResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta2/tx"; import { Keychain } from "./types/warden/warden/v1beta2/keychain"; -import { MsgAddKeychainParty } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeychainsRequest } from "./types/warden/warden/v1beta2/query"; -import { KeyResponse } from "./types/warden/warden/v1beta2/query"; -import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta2/query"; -import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta2/query"; -import { GenesisState } from "./types/warden/warden/v1beta2/genesis"; -import { MsgUpdateKeychain } from "./types/warden/warden/v1beta2/tx"; -import { KeyRequest } from "./types/warden/warden/v1beta2/key"; -import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { MsgNewKeychainResponse } from "./types/warden/warden/v1beta2/tx"; import { QuerySignatureRequestsResponse } from "./types/warden/warden/v1beta2/query"; -import { MsgUpdateKey } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta2/tx"; -import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { QuerySpacesResponse } from "./types/warden/warden/v1beta2/query"; -import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta2/query"; +import { SignTransactionRequest } from "./types/warden/warden/v1beta2/signature"; import { Space } from "./types/warden/warden/v1beta2/space"; -import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgAddKeychainPartyResponse } from "./types/warden/warden/v1beta2/tx"; +import { KeyRequest } from "./types/warden/warden/v1beta2/key"; import { MsgNewKey } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignTransactionRequest } from "./types/warden/warden/v1beta2/tx"; -import { SignTransactionRequest } from "./types/warden/warden/v1beta2/signature"; -import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewKeyRequest } from "./types/warden/warden/v1beta2/tx"; -import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta2/tx"; -import { MetadataEthereum } from "./types/warden/warden/v1beta2/tx"; -import { QueryParamsResponse } from "./types/warden/warden/v1beta2/query"; -import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgAddSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; -import { QueryKeychainsResponse } from "./types/warden/warden/v1beta2/query"; -import { QueryKeychainByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySpacesResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewKeychain } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeysBySpaceIdRequest } from "./types/warden/warden/v1beta2/query"; +import { GenesisState } from "./types/warden/warden/v1beta2/genesis"; +import { QuerySpaceByIdRequest } from "./types/warden/warden/v1beta2/query"; import { QueryKeyRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestsRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta2/tx"; import { QuerySignatureRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { SignRequest } from "./types/warden/warden/v1beta2/signature"; +import { MsgAddKeychainParty } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateSpaceResponse } from "./types/warden/warden/v1beta2/tx"; +import { QueryParamsResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateParamsResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKeyRequest } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainsResponse } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyRequestsRequest } from "./types/warden/warden/v1beta2/query"; import { QuerySignatureRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { QuerySignTransactionRequestsResponse } from "./types/warden/warden/v1beta2/query"; -import { QueryKeysRequest } from "./types/warden/warden/v1beta2/query"; -import { MsgFulfilSignatureRequest } from "./types/warden/warden/v1beta2/tx"; -import { QueryParamsRequest } from "./types/warden/warden/v1beta2/query"; -import { QuerySpacesRequest } from "./types/warden/warden/v1beta2/query"; +import { QuerySignTransactionRequestsRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgNewKeychainResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySpacesByOwnerRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgSignedData } from "./types/warden/warden/v1beta2/tx"; +import { MetadataEthereum } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { Key } from "./types/warden/warden/v1beta2/key"; +import { MsgNewKeyRequest } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { KeychainFees } from "./types/warden/warden/v1beta2/keychain"; +import { MsgAddSpaceOwner } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKey } from "./types/warden/warden/v1beta2/tx"; import { QuerySpaceByIdResponse } from "./types/warden/warden/v1beta2/query"; -import { QueryKeysResponse } from "./types/warden/warden/v1beta2/query"; -import { MsgNewKeychain } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSpaceResponse } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeyResponse } from "./types/warden/warden/v1beta2/query"; +import { QuerySignatureRequestsRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateParams } from "./types/warden/warden/v1beta2/tx"; +import { MsgRemoveSpaceOwner } from "./types/warden/warden/v1beta2/tx"; import { MsgRemoveSpaceOwnerResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { Key } from "./types/warden/warden/v1beta2/key"; import { MsgUpdateSpace } from "./types/warden/warden/v1beta2/tx"; +import { MsgFulfilSignatureRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QuerySignTransactionRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; import { Params } from "./types/warden/warden/v1beta2/params"; -import { MsgUpdateKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgNewKeyRequestResponse } from "./types/warden/warden/v1beta2/tx"; -import { MsgSignedData } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewSpace } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyRequestByIdResponse } from "./types/warden/warden/v1beta2/query"; +import { SignTransactionRequestResponse } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateKeychain } from "./types/warden/warden/v1beta2/tx"; +import { MsgNewSignatureRequest } from "./types/warden/warden/v1beta2/tx"; +import { QueryKeychainsRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgNewSignTransactionRequestResponse } from "./types/warden/warden/v1beta2/tx"; +import { QueryParamsRequest } from "./types/warden/warden/v1beta2/query"; +import { QueryKeyRequestsResponse } from "./types/warden/warden/v1beta2/query"; +import { QuerySignTransactionRequestByIdRequest } from "./types/warden/warden/v1beta2/query"; +import { MsgUpdateKeychainResponse } from "./types/warden/warden/v1beta2/tx"; +import { MsgUpdateKeyResponse } from "./types/warden/warden/v1beta2/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/warden.warden.v1beta2.SignRequest", SignRequest], - ["/warden.warden.v1beta2.MsgAddKeychainPartyResponse", MsgAddKeychainPartyResponse], - ["/warden.warden.v1beta2.QuerySpaceByIdRequest", QuerySpaceByIdRequest], - ["/warden.warden.v1beta2.QueryKeychainByIdRequest", QueryKeychainByIdRequest], - ["/warden.warden.v1beta2.QueryKeyRequestsResponse", QueryKeyRequestsResponse], + ["/warden.warden.v1beta2.MsgNewSignTransactionRequest", MsgNewSignTransactionRequest], + ["/warden.warden.v1beta2.QueryAllKeysRequest", QueryAllKeysRequest], + ["/warden.warden.v1beta2.QuerySignTransactionRequestsResponse", QuerySignTransactionRequestsResponse], + ["/warden.warden.v1beta2.MsgAddSpaceOwnerResponse", MsgAddSpaceOwnerResponse], + ["/warden.warden.v1beta2.MsgNewKeyRequestResponse", MsgNewKeyRequestResponse], + ["/warden.warden.v1beta2.QuerySpacesRequest", QuerySpacesRequest], + ["/warden.warden.v1beta2.QueryKeysResponse", QueryKeysResponse], ["/warden.warden.v1beta2.WalletKeyResponse", WalletKeyResponse], - ["/warden.warden.v1beta2.KeychainFees", KeychainFees], - ["/warden.warden.v1beta2.MsgRemoveSpaceOwner", MsgRemoveSpaceOwner], - ["/warden.warden.v1beta2.MsgUpdateParams", MsgUpdateParams], - ["/warden.warden.v1beta2.MsgNewSpace", MsgNewSpace], - ["/warden.warden.v1beta2.MsgUpdateSpaceResponse", MsgUpdateSpaceResponse], - ["/warden.warden.v1beta2.MsgUpdateKeyResponse", MsgUpdateKeyResponse], - ["/warden.warden.v1beta2.MsgNewSignTransactionRequestResponse", MsgNewSignTransactionRequestResponse], ["/warden.warden.v1beta2.Keychain", Keychain], - ["/warden.warden.v1beta2.MsgAddKeychainParty", MsgAddKeychainParty], - ["/warden.warden.v1beta2.QueryKeychainsRequest", QueryKeychainsRequest], - ["/warden.warden.v1beta2.KeyResponse", KeyResponse], - ["/warden.warden.v1beta2.QuerySignatureRequestsRequest", QuerySignatureRequestsRequest], - ["/warden.warden.v1beta2.SignTransactionRequestResponse", SignTransactionRequestResponse], - ["/warden.warden.v1beta2.GenesisState", GenesisState], - ["/warden.warden.v1beta2.MsgUpdateKeychain", MsgUpdateKeychain], - ["/warden.warden.v1beta2.KeyRequest", KeyRequest], - ["/warden.warden.v1beta2.QueryKeyRequestByIdResponse", QueryKeyRequestByIdResponse], - ["/warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse", QuerySignTransactionRequestByIdResponse], - ["/warden.warden.v1beta2.MsgNewKeychainResponse", MsgNewKeychainResponse], ["/warden.warden.v1beta2.QuerySignatureRequestsResponse", QuerySignatureRequestsResponse], - ["/warden.warden.v1beta2.MsgUpdateKey", MsgUpdateKey], - ["/warden.warden.v1beta2.MsgNewSignatureRequest", MsgNewSignatureRequest], - ["/warden.warden.v1beta2.MsgFulfilSignatureRequestResponse", MsgFulfilSignatureRequestResponse], - ["/warden.warden.v1beta2.QuerySpacesResponse", QuerySpacesResponse], - ["/warden.warden.v1beta2.QuerySpacesByOwnerRequest", QuerySpacesByOwnerRequest], + ["/warden.warden.v1beta2.SignTransactionRequest", SignTransactionRequest], ["/warden.warden.v1beta2.Space", Space], - ["/warden.warden.v1beta2.MsgUpdateKeychainResponse", MsgUpdateKeychainResponse], + ["/warden.warden.v1beta2.MsgAddKeychainPartyResponse", MsgAddKeychainPartyResponse], + ["/warden.warden.v1beta2.KeyRequest", KeyRequest], ["/warden.warden.v1beta2.MsgNewKey", MsgNewKey], - ["/warden.warden.v1beta2.MsgNewSignTransactionRequest", MsgNewSignTransactionRequest], - ["/warden.warden.v1beta2.SignTransactionRequest", SignTransactionRequest], - ["/warden.warden.v1beta2.MsgAddSpaceOwner", MsgAddSpaceOwner], - ["/warden.warden.v1beta2.MsgNewKeyRequest", MsgNewKeyRequest], - ["/warden.warden.v1beta2.MsgUpdateKeyRequest", MsgUpdateKeyRequest], - ["/warden.warden.v1beta2.MetadataEthereum", MetadataEthereum], - ["/warden.warden.v1beta2.QueryParamsResponse", QueryParamsResponse], - ["/warden.warden.v1beta2.QueryKeyRequestsRequest", QueryKeyRequestsRequest], - ["/warden.warden.v1beta2.QuerySignTransactionRequestByIdRequest", QuerySignTransactionRequestByIdRequest], - ["/warden.warden.v1beta2.MsgAddSpaceOwnerResponse", MsgAddSpaceOwnerResponse], - ["/warden.warden.v1beta2.QueryKeychainsResponse", QueryKeychainsResponse], - ["/warden.warden.v1beta2.QueryKeychainByIdResponse", QueryKeychainByIdResponse], + ["/warden.warden.v1beta2.MsgUpdateKeyRequestResponse", MsgUpdateKeyRequestResponse], + ["/warden.warden.v1beta2.QuerySpacesResponse", QuerySpacesResponse], + ["/warden.warden.v1beta2.MsgNewSpaceResponse", MsgNewSpaceResponse], + ["/warden.warden.v1beta2.MsgFulfilSignatureRequest", MsgFulfilSignatureRequest], + ["/warden.warden.v1beta2.MsgNewKeychain", MsgNewKeychain], + ["/warden.warden.v1beta2.QueryKeysBySpaceIdRequest", QueryKeysBySpaceIdRequest], + ["/warden.warden.v1beta2.GenesisState", GenesisState], + ["/warden.warden.v1beta2.QuerySpaceByIdRequest", QuerySpaceByIdRequest], ["/warden.warden.v1beta2.QueryKeyRequestByIdRequest", QueryKeyRequestByIdRequest], - ["/warden.warden.v1beta2.QuerySignTransactionRequestsRequest", QuerySignTransactionRequestsRequest], - ["/warden.warden.v1beta2.MsgUpdateParamsResponse", MsgUpdateParamsResponse], ["/warden.warden.v1beta2.QuerySignatureRequestByIdRequest", QuerySignatureRequestByIdRequest], + ["/warden.warden.v1beta2.SignRequest", SignRequest], + ["/warden.warden.v1beta2.MsgAddKeychainParty", MsgAddKeychainParty], + ["/warden.warden.v1beta2.MsgUpdateSpaceResponse", MsgUpdateSpaceResponse], + ["/warden.warden.v1beta2.QueryParamsResponse", QueryParamsResponse], + ["/warden.warden.v1beta2.MsgUpdateParamsResponse", MsgUpdateParamsResponse], + ["/warden.warden.v1beta2.MsgUpdateKeyRequest", MsgUpdateKeyRequest], + ["/warden.warden.v1beta2.QueryKeychainsResponse", QueryKeychainsResponse], + ["/warden.warden.v1beta2.QueryKeyRequestsRequest", QueryKeyRequestsRequest], ["/warden.warden.v1beta2.QuerySignatureRequestByIdResponse", QuerySignatureRequestByIdResponse], - ["/warden.warden.v1beta2.QuerySignTransactionRequestsResponse", QuerySignTransactionRequestsResponse], - ["/warden.warden.v1beta2.QueryKeysRequest", QueryKeysRequest], - ["/warden.warden.v1beta2.MsgFulfilSignatureRequest", MsgFulfilSignatureRequest], - ["/warden.warden.v1beta2.QueryParamsRequest", QueryParamsRequest], - ["/warden.warden.v1beta2.QuerySpacesRequest", QuerySpacesRequest], + ["/warden.warden.v1beta2.QuerySignTransactionRequestsRequest", QuerySignTransactionRequestsRequest], + ["/warden.warden.v1beta2.MsgNewKeychainResponse", MsgNewKeychainResponse], + ["/warden.warden.v1beta2.QuerySpacesByOwnerRequest", QuerySpacesByOwnerRequest], + ["/warden.warden.v1beta2.MsgSignedData", MsgSignedData], + ["/warden.warden.v1beta2.MetadataEthereum", MetadataEthereum], + ["/warden.warden.v1beta2.QueryKeychainByIdRequest", QueryKeychainByIdRequest], + ["/warden.warden.v1beta2.QueryKeyByIdRequest", QueryKeyByIdRequest], + ["/warden.warden.v1beta2.Key", Key], + ["/warden.warden.v1beta2.MsgNewKeyRequest", MsgNewKeyRequest], + ["/warden.warden.v1beta2.MsgNewSignatureRequestResponse", MsgNewSignatureRequestResponse], + ["/warden.warden.v1beta2.KeychainFees", KeychainFees], + ["/warden.warden.v1beta2.MsgAddSpaceOwner", MsgAddSpaceOwner], + ["/warden.warden.v1beta2.MsgUpdateKey", MsgUpdateKey], ["/warden.warden.v1beta2.QuerySpaceByIdResponse", QuerySpaceByIdResponse], - ["/warden.warden.v1beta2.QueryKeysResponse", QueryKeysResponse], - ["/warden.warden.v1beta2.MsgNewKeychain", MsgNewKeychain], - ["/warden.warden.v1beta2.MsgNewSpaceResponse", MsgNewSpaceResponse], + ["/warden.warden.v1beta2.QueryKeyResponse", QueryKeyResponse], + ["/warden.warden.v1beta2.QuerySignatureRequestsRequest", QuerySignatureRequestsRequest], + ["/warden.warden.v1beta2.MsgUpdateParams", MsgUpdateParams], + ["/warden.warden.v1beta2.MsgRemoveSpaceOwner", MsgRemoveSpaceOwner], ["/warden.warden.v1beta2.MsgRemoveSpaceOwnerResponse", MsgRemoveSpaceOwnerResponse], - ["/warden.warden.v1beta2.MsgNewSignatureRequestResponse", MsgNewSignatureRequestResponse], - ["/warden.warden.v1beta2.Key", Key], ["/warden.warden.v1beta2.MsgUpdateSpace", MsgUpdateSpace], + ["/warden.warden.v1beta2.MsgFulfilSignatureRequestResponse", MsgFulfilSignatureRequestResponse], + ["/warden.warden.v1beta2.QuerySignTransactionRequestByIdResponse", QuerySignTransactionRequestByIdResponse], ["/warden.warden.v1beta2.Params", Params], - ["/warden.warden.v1beta2.MsgUpdateKeyRequestResponse", MsgUpdateKeyRequestResponse], - ["/warden.warden.v1beta2.MsgNewKeyRequestResponse", MsgNewKeyRequestResponse], - ["/warden.warden.v1beta2.MsgSignedData", MsgSignedData], + ["/warden.warden.v1beta2.MsgNewSpace", MsgNewSpace], + ["/warden.warden.v1beta2.QueryKeychainByIdResponse", QueryKeychainByIdResponse], + ["/warden.warden.v1beta2.QueryKeyRequestByIdResponse", QueryKeyRequestByIdResponse], + ["/warden.warden.v1beta2.SignTransactionRequestResponse", SignTransactionRequestResponse], + ["/warden.warden.v1beta2.MsgUpdateKeychain", MsgUpdateKeychain], + ["/warden.warden.v1beta2.MsgNewSignatureRequest", MsgNewSignatureRequest], + ["/warden.warden.v1beta2.QueryKeychainsRequest", QueryKeychainsRequest], + ["/warden.warden.v1beta2.MsgNewSignTransactionRequestResponse", MsgNewSignTransactionRequestResponse], + ["/warden.warden.v1beta2.QueryParamsRequest", QueryParamsRequest], + ["/warden.warden.v1beta2.QueryKeyRequestsResponse", QueryKeyRequestsResponse], + ["/warden.warden.v1beta2.QuerySignTransactionRequestByIdRequest", QuerySignTransactionRequestByIdRequest], + ["/warden.warden.v1beta2.MsgUpdateKeychainResponse", MsgUpdateKeychainResponse], + ["/warden.warden.v1beta2.MsgUpdateKeyResponse", MsgUpdateKeyResponse], ]; diff --git a/ts-client/warden.warden.v1beta2/rest.ts b/ts-client/warden.warden.v1beta2/rest.ts index 504e1ffd3..cf93f2aa5 100644 --- a/ts-client/warden.warden.v1beta2/rest.ts +++ b/ts-client/warden.warden.v1beta2/rest.ts @@ -67,21 +67,6 @@ export enum KeyRequestStatus { KEY_REQUEST_STATUS_REJECTED = "KEY_REQUEST_STATUS_REJECTED", } -export interface KeyResponse { - key?: { - id?: string; - space_id?: string; - keychain_id?: string; - type?: "KEY_TYPE_UNSPECIFIED" | "KEY_TYPE_ECDSA_SECP256K1" | "KEY_TYPE_EDDSA_ED25519"; - public_key?: string; - intent_id?: string; - }; - wallets?: { - address?: string; - type?: "WALLET_TYPE_UNSPECIFIED" | "WALLET_TYPE_ETH" | "WALLET_TYPE_CELESTIA" | "WALLET_TYPE_SUI"; - }[]; -} - export enum KeyType { KEY_TYPE_UNSPECIFIED = "KEY_TYPE_UNSPECIFIED", KEYTYPEECDSASECP256K1 = "KEY_TYPE_ECDSA_SECP256K1", @@ -168,6 +153,21 @@ export interface QueryKeyRequestsResponse { }[]; } +export interface QueryKeyResponse { + key?: { + id?: string; + space_id?: string; + keychain_id?: string; + type?: "KEY_TYPE_UNSPECIFIED" | "KEY_TYPE_ECDSA_SECP256K1" | "KEY_TYPE_EDDSA_ED25519"; + public_key?: string; + intent_id?: string; + }; + wallets?: { + address?: string; + type?: "WALLET_TYPE_UNSPECIFIED" | "WALLET_TYPE_ETH" | "WALLET_TYPE_CELESTIA" | "WALLET_TYPE_SUI"; + }[]; +} + export interface QueryKeychainByIdResponse { keychain?: { id?: string; @@ -667,6 +667,43 @@ export class Api extends HttpClient + this.request< + { + key?: { + id?: string; + space_id?: string; + keychain_id?: string; + type?: "KEY_TYPE_UNSPECIFIED" | "KEY_TYPE_ECDSA_SECP256K1" | "KEY_TYPE_EDDSA_ED25519"; + public_key?: string; + intent_id?: string; + }; + wallets?: { + address?: string; + type?: "WALLET_TYPE_UNSPECIFIED" | "WALLET_TYPE_ETH" | "WALLET_TYPE_CELESTIA" | "WALLET_TYPE_SUI"; + }[]; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/warden/warden/v1beta2/key_by_id`, + method: "GET", + query: query, + ...params, + }); + /** * No description * @@ -822,19 +859,17 @@ export class Api extends HttpClient @@ -864,6 +899,51 @@ export class Api extends HttpClient + this.request< + { + pagination?: { next_key?: string; total?: string }; + keys?: { + key?: { + id?: string; + space_id?: string; + keychain_id?: string; + type?: "KEY_TYPE_UNSPECIFIED" | "KEY_TYPE_ECDSA_SECP256K1" | "KEY_TYPE_EDDSA_ED25519"; + public_key?: string; + intent_id?: string; + }; + wallets?: { + address?: string; + type?: "WALLET_TYPE_UNSPECIFIED" | "WALLET_TYPE_ETH" | "WALLET_TYPE_CELESTIA" | "WALLET_TYPE_SUI"; + }[]; + }[]; + }, + { code?: number; message?: string; details?: { "@type"?: string }[] } + >({ + path: `/warden/warden/v1beta2/keys_by_space_id`, + method: "GET", + query: query, + ...params, + }); + /** * No description * diff --git a/ts-client/warden.warden.v1beta2/types/warden/warden/v1beta2/query.ts b/ts-client/warden.warden.v1beta2/types/warden/warden/v1beta2/query.ts index 3b14faf35..779948f2d 100644 --- a/ts-client/warden.warden.v1beta2/types/warden/warden/v1beta2/query.ts +++ b/ts-client/warden.warden.v1beta2/types/warden/warden/v1beta2/query.ts @@ -87,24 +87,33 @@ export interface QueryKeyRequestByIdResponse { keyRequest: KeyRequest | undefined; } -export interface QueryKeysRequest { +export interface QueryAllKeysRequest { pagination: | PageRequest | undefined; /** Optional */ - spaceId: number; - /** Optional */ - type: WalletType; - /** Optional */ - keyId: number; + deriveWallets: WalletType[]; } export interface QueryKeysResponse { pagination: PageResponse | undefined; - keys: KeyResponse[]; + keys: QueryKeyResponse[]; +} + +export interface QueryKeysBySpaceIdRequest { + pagination: PageRequest | undefined; + spaceId: number; + /** Optional */ + deriveWallets: WalletType[]; +} + +export interface QueryKeyByIdRequest { + id: number; + /** Optional */ + deriveWallets: WalletType[]; } -export interface KeyResponse { +export interface QueryKeyResponse { key: Key | undefined; wallets: WalletKeyResponse[]; } @@ -1136,31 +1145,27 @@ export const QueryKeyRequestByIdResponse = { }, }; -function createBaseQueryKeysRequest(): QueryKeysRequest { - return { pagination: undefined, spaceId: 0, type: 0, keyId: 0 }; +function createBaseQueryAllKeysRequest(): QueryAllKeysRequest { + return { pagination: undefined, deriveWallets: [] }; } -export const QueryKeysRequest = { - encode(message: QueryKeysRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { +export const QueryAllKeysRequest = { + encode(message: QueryAllKeysRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.pagination !== undefined) { PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); } - if (message.spaceId !== 0) { - writer.uint32(16).uint64(message.spaceId); - } - if (message.type !== 0) { - writer.uint32(24).int32(message.type); - } - if (message.keyId !== 0) { - writer.uint32(32).uint64(message.keyId); + writer.uint32(18).fork(); + for (const v of message.deriveWallets) { + writer.int32(v); } + writer.ldelim(); return writer; }, - decode(input: _m0.Reader | Uint8Array, length?: number): QueryKeysRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllKeysRequest { const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseQueryKeysRequest(); + const message = createBaseQueryAllKeysRequest(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { @@ -1172,26 +1177,22 @@ export const QueryKeysRequest = { message.pagination = PageRequest.decode(reader, reader.uint32()); continue; case 2: - if (tag !== 16) { - break; - } + if (tag === 16) { + message.deriveWallets.push(reader.int32() as any); - message.spaceId = longToNumber(reader.uint64() as Long); - continue; - case 3: - if (tag !== 24) { - break; + continue; } - message.type = reader.int32() as any; - continue; - case 4: - if (tag !== 32) { - break; + if (tag === 18) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.deriveWallets.push(reader.int32() as any); + } + + continue; } - message.keyId = longToNumber(reader.uint64() as Long); - continue; + break; } if ((tag & 7) === 4 || tag === 0) { break; @@ -1201,43 +1202,35 @@ export const QueryKeysRequest = { return message; }, - fromJSON(object: any): QueryKeysRequest { + fromJSON(object: any): QueryAllKeysRequest { return { pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined, - spaceId: isSet(object.spaceId) ? Number(object.spaceId) : 0, - type: isSet(object.type) ? walletTypeFromJSON(object.type) : 0, - keyId: isSet(object.keyId) ? Number(object.keyId) : 0, + deriveWallets: Array.isArray(object?.deriveWallets) + ? object.deriveWallets.map((e: any) => walletTypeFromJSON(e)) + : [], }; }, - toJSON(message: QueryKeysRequest): unknown { + toJSON(message: QueryAllKeysRequest): unknown { const obj: any = {}; if (message.pagination !== undefined) { obj.pagination = PageRequest.toJSON(message.pagination); } - if (message.spaceId !== 0) { - obj.spaceId = Math.round(message.spaceId); - } - if (message.type !== 0) { - obj.type = walletTypeToJSON(message.type); - } - if (message.keyId !== 0) { - obj.keyId = Math.round(message.keyId); + if (message.deriveWallets?.length) { + obj.deriveWallets = message.deriveWallets.map((e) => walletTypeToJSON(e)); } return obj; }, - create, I>>(base?: I): QueryKeysRequest { - return QueryKeysRequest.fromPartial(base ?? ({} as any)); + create, I>>(base?: I): QueryAllKeysRequest { + return QueryAllKeysRequest.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): QueryKeysRequest { - const message = createBaseQueryKeysRequest(); + fromPartial, I>>(object: I): QueryAllKeysRequest { + const message = createBaseQueryAllKeysRequest(); message.pagination = (object.pagination !== undefined && object.pagination !== null) ? PageRequest.fromPartial(object.pagination) : undefined; - message.spaceId = object.spaceId ?? 0; - message.type = object.type ?? 0; - message.keyId = object.keyId ?? 0; + message.deriveWallets = object.deriveWallets?.map((e) => e) || []; return message; }, }; @@ -1252,7 +1245,7 @@ export const QueryKeysResponse = { PageResponse.encode(message.pagination, writer.uint32(10).fork()).ldelim(); } for (const v of message.keys) { - KeyResponse.encode(v!, writer.uint32(18).fork()).ldelim(); + QueryKeyResponse.encode(v!, writer.uint32(18).fork()).ldelim(); } return writer; }, @@ -1276,7 +1269,7 @@ export const QueryKeysResponse = { break; } - message.keys.push(KeyResponse.decode(reader, reader.uint32())); + message.keys.push(QueryKeyResponse.decode(reader, reader.uint32())); continue; } if ((tag & 7) === 4 || tag === 0) { @@ -1290,7 +1283,7 @@ export const QueryKeysResponse = { fromJSON(object: any): QueryKeysResponse { return { pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined, - keys: Array.isArray(object?.keys) ? object.keys.map((e: any) => KeyResponse.fromJSON(e)) : [], + keys: Array.isArray(object?.keys) ? object.keys.map((e: any) => QueryKeyResponse.fromJSON(e)) : [], }; }, @@ -1300,7 +1293,7 @@ export const QueryKeysResponse = { obj.pagination = PageResponse.toJSON(message.pagination); } if (message.keys?.length) { - obj.keys = message.keys.map((e) => KeyResponse.toJSON(e)); + obj.keys = message.keys.map((e) => QueryKeyResponse.toJSON(e)); } return obj; }, @@ -1313,17 +1306,210 @@ export const QueryKeysResponse = { message.pagination = (object.pagination !== undefined && object.pagination !== null) ? PageResponse.fromPartial(object.pagination) : undefined; - message.keys = object.keys?.map((e) => KeyResponse.fromPartial(e)) || []; + message.keys = object.keys?.map((e) => QueryKeyResponse.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseQueryKeysBySpaceIdRequest(): QueryKeysBySpaceIdRequest { + return { pagination: undefined, spaceId: 0, deriveWallets: [] }; +} + +export const QueryKeysBySpaceIdRequest = { + encode(message: QueryKeysBySpaceIdRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.pagination !== undefined) { + PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); + } + if (message.spaceId !== 0) { + writer.uint32(16).uint64(message.spaceId); + } + writer.uint32(26).fork(); + for (const v of message.deriveWallets) { + writer.int32(v); + } + writer.ldelim(); + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): QueryKeysBySpaceIdRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryKeysBySpaceIdRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.pagination = PageRequest.decode(reader, reader.uint32()); + continue; + case 2: + if (tag !== 16) { + break; + } + + message.spaceId = longToNumber(reader.uint64() as Long); + continue; + case 3: + if (tag === 24) { + message.deriveWallets.push(reader.int32() as any); + + continue; + } + + if (tag === 26) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.deriveWallets.push(reader.int32() as any); + } + + continue; + } + + break; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): QueryKeysBySpaceIdRequest { + return { + pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined, + spaceId: isSet(object.spaceId) ? Number(object.spaceId) : 0, + deriveWallets: Array.isArray(object?.deriveWallets) + ? object.deriveWallets.map((e: any) => walletTypeFromJSON(e)) + : [], + }; + }, + + toJSON(message: QueryKeysBySpaceIdRequest): unknown { + const obj: any = {}; + if (message.pagination !== undefined) { + obj.pagination = PageRequest.toJSON(message.pagination); + } + if (message.spaceId !== 0) { + obj.spaceId = Math.round(message.spaceId); + } + if (message.deriveWallets?.length) { + obj.deriveWallets = message.deriveWallets.map((e) => walletTypeToJSON(e)); + } + return obj; + }, + + create, I>>(base?: I): QueryKeysBySpaceIdRequest { + return QueryKeysBySpaceIdRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): QueryKeysBySpaceIdRequest { + const message = createBaseQueryKeysBySpaceIdRequest(); + message.pagination = (object.pagination !== undefined && object.pagination !== null) + ? PageRequest.fromPartial(object.pagination) + : undefined; + message.spaceId = object.spaceId ?? 0; + message.deriveWallets = object.deriveWallets?.map((e) => e) || []; return message; }, }; -function createBaseKeyResponse(): KeyResponse { +function createBaseQueryKeyByIdRequest(): QueryKeyByIdRequest { + return { id: 0, deriveWallets: [] }; +} + +export const QueryKeyByIdRequest = { + encode(message: QueryKeyByIdRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.id !== 0) { + writer.uint32(8).uint64(message.id); + } + writer.uint32(18).fork(); + for (const v of message.deriveWallets) { + writer.int32(v); + } + writer.ldelim(); + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): QueryKeyByIdRequest { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseQueryKeyByIdRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 8) { + break; + } + + message.id = longToNumber(reader.uint64() as Long); + continue; + case 2: + if (tag === 16) { + message.deriveWallets.push(reader.int32() as any); + + continue; + } + + if (tag === 18) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.deriveWallets.push(reader.int32() as any); + } + + continue; + } + + break; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): QueryKeyByIdRequest { + return { + id: isSet(object.id) ? Number(object.id) : 0, + deriveWallets: Array.isArray(object?.deriveWallets) + ? object.deriveWallets.map((e: any) => walletTypeFromJSON(e)) + : [], + }; + }, + + toJSON(message: QueryKeyByIdRequest): unknown { + const obj: any = {}; + if (message.id !== 0) { + obj.id = Math.round(message.id); + } + if (message.deriveWallets?.length) { + obj.deriveWallets = message.deriveWallets.map((e) => walletTypeToJSON(e)); + } + return obj; + }, + + create, I>>(base?: I): QueryKeyByIdRequest { + return QueryKeyByIdRequest.fromPartial(base ?? ({} as any)); + }, + fromPartial, I>>(object: I): QueryKeyByIdRequest { + const message = createBaseQueryKeyByIdRequest(); + message.id = object.id ?? 0; + message.deriveWallets = object.deriveWallets?.map((e) => e) || []; + return message; + }, +}; + +function createBaseQueryKeyResponse(): QueryKeyResponse { return { key: undefined, wallets: [] }; } -export const KeyResponse = { - encode(message: KeyResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { +export const QueryKeyResponse = { + encode(message: QueryKeyResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.key !== undefined) { Key.encode(message.key, writer.uint32(10).fork()).ldelim(); } @@ -1333,10 +1519,10 @@ export const KeyResponse = { return writer; }, - decode(input: _m0.Reader | Uint8Array, length?: number): KeyResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): QueryKeyResponse { const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseKeyResponse(); + const message = createBaseQueryKeyResponse(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { @@ -1363,14 +1549,14 @@ export const KeyResponse = { return message; }, - fromJSON(object: any): KeyResponse { + fromJSON(object: any): QueryKeyResponse { return { key: isSet(object.key) ? Key.fromJSON(object.key) : undefined, wallets: Array.isArray(object?.wallets) ? object.wallets.map((e: any) => WalletKeyResponse.fromJSON(e)) : [], }; }, - toJSON(message: KeyResponse): unknown { + toJSON(message: QueryKeyResponse): unknown { const obj: any = {}; if (message.key !== undefined) { obj.key = Key.toJSON(message.key); @@ -1381,11 +1567,11 @@ export const KeyResponse = { return obj; }, - create, I>>(base?: I): KeyResponse { - return KeyResponse.fromPartial(base ?? ({} as any)); + create, I>>(base?: I): QueryKeyResponse { + return QueryKeyResponse.fromPartial(base ?? ({} as any)); }, - fromPartial, I>>(object: I): KeyResponse { - const message = createBaseKeyResponse(); + fromPartial, I>>(object: I): QueryKeyResponse { + const message = createBaseQueryKeyResponse(); message.key = (object.key !== undefined && object.key !== null) ? Key.fromPartial(object.key) : undefined; message.wallets = object.wallets?.map((e) => WalletKeyResponse.fromPartial(e)) || []; return message; @@ -2189,7 +2375,11 @@ export interface Query { /** Queries a single KeyRequest by its id. */ KeyRequestById(request: QueryKeyRequestByIdRequest): Promise; /** Queries a list of Keys items. */ - Keys(request: QueryKeysRequest): Promise; + AllKeys(request: QueryAllKeysRequest): Promise; + /** Queries a list of Keys items by their Space ID. */ + KeysBySpaceId(request: QueryKeysBySpaceIdRequest): Promise; + /** Queries a Key by its ID. */ + KeyById(request: QueryKeyByIdRequest): Promise; /** Queries a list of SignatureRequests items. */ SignatureRequests(request: QuerySignatureRequestsRequest): Promise; /** Queries a single SignatureRequest by its id. */ @@ -2217,7 +2407,9 @@ export class QueryClientImpl implements Query { this.KeychainById = this.KeychainById.bind(this); this.KeyRequests = this.KeyRequests.bind(this); this.KeyRequestById = this.KeyRequestById.bind(this); - this.Keys = this.Keys.bind(this); + this.AllKeys = this.AllKeys.bind(this); + this.KeysBySpaceId = this.KeysBySpaceId.bind(this); + this.KeyById = this.KeyById.bind(this); this.SignatureRequests = this.SignatureRequests.bind(this); this.SignatureRequestById = this.SignatureRequestById.bind(this); this.SignTransactionRequests = this.SignTransactionRequests.bind(this); @@ -2271,12 +2463,24 @@ export class QueryClientImpl implements Query { return promise.then((data) => QueryKeyRequestByIdResponse.decode(_m0.Reader.create(data))); } - Keys(request: QueryKeysRequest): Promise { - const data = QueryKeysRequest.encode(request).finish(); - const promise = this.rpc.request(this.service, "Keys", data); + AllKeys(request: QueryAllKeysRequest): Promise { + const data = QueryAllKeysRequest.encode(request).finish(); + const promise = this.rpc.request(this.service, "AllKeys", data); return promise.then((data) => QueryKeysResponse.decode(_m0.Reader.create(data))); } + KeysBySpaceId(request: QueryKeysBySpaceIdRequest): Promise { + const data = QueryKeysBySpaceIdRequest.encode(request).finish(); + const promise = this.rpc.request(this.service, "KeysBySpaceId", data); + return promise.then((data) => QueryKeysResponse.decode(_m0.Reader.create(data))); + } + + KeyById(request: QueryKeyByIdRequest): Promise { + const data = QueryKeyByIdRequest.encode(request).finish(); + const promise = this.rpc.request(this.service, "KeyById", data); + return promise.then((data) => QueryKeyResponse.decode(_m0.Reader.create(data))); + } + SignatureRequests(request: QuerySignatureRequestsRequest): Promise { const data = QuerySignatureRequestsRequest.encode(request).finish(); const promise = this.rpc.request(this.service, "SignatureRequests", data); From 2da1b487dbb76b5c6be76f46c23d04c178ef2e6b Mon Sep 17 00:00:00 2001 From: Antonio Pitasi Date: Mon, 25 Mar 2024 12:41:01 +0100 Subject: [PATCH 3/3] fix(spaceward): use new Keys queries --- spaceward/src/components/assets.tsx | 6 +++--- spaceward/src/components/home-assets.tsx | 10 ++++++---- spaceward/src/components/keys.tsx | 5 +++-- spaceward/src/components/send-eth.tsx | 12 +++++------- spaceward/src/components/total-asset-value.tsx | 10 ++++++---- spaceward/src/routes/ethereum.tsx | 14 ++++++-------- spaceward/src/routes/key.tsx | 8 ++++---- 7 files changed, 33 insertions(+), 32 deletions(-) diff --git a/spaceward/src/components/assets.tsx b/spaceward/src/components/assets.tsx index a3f109c0e..c9478411a 100644 --- a/spaceward/src/components/assets.tsx +++ b/spaceward/src/components/assets.tsx @@ -41,10 +41,10 @@ async function getEthBalance(address: string) { } function Assets({ spaceId }: { spaceId: string }) { - const { QueryKeys } = useWardenWardenV1Beta2(); - const query = QueryKeys( + const { QueryKeysBySpaceId } = useWardenWardenV1Beta2(); + const query = QueryKeysBySpaceId( { - type: WalletType.WALLET_TYPE_ETH, + derive_wallets: WalletType.WALLET_TYPE_ETH, space_id: spaceId, }, {}, diff --git a/spaceward/src/components/home-assets.tsx b/spaceward/src/components/home-assets.tsx index c14524fbb..ad9dfd5af 100644 --- a/spaceward/src/components/home-assets.tsx +++ b/spaceward/src/components/home-assets.tsx @@ -23,13 +23,15 @@ async function getEthBalance(address: string) { function HomeAssets() { const { spaceId } = useSpaceId(); - const { QueryKeys } = useWardenWardenV1Beta2(); - const query = QueryKeys( + const { QueryKeysBySpaceId } = useWardenWardenV1Beta2(); + const query = QueryKeysBySpaceId( { - type: WalletType.WALLET_TYPE_ETH, + derive_wallets: WalletType.WALLET_TYPE_ETH, space_id: spaceId, }, - {}, + { + enabled: !!spaceId, + }, 10 ); diff --git a/spaceward/src/components/keys.tsx b/spaceward/src/components/keys.tsx index 9aa104376..f4f4146be 100644 --- a/spaceward/src/components/keys.tsx +++ b/spaceward/src/components/keys.tsx @@ -17,10 +17,11 @@ import ReceiveAssetButton from "./receive-asset-button"; import { MoveUpRight, KeyIcon } from "lucide-react"; import NewKeyButton from "./new-key-button"; import AddToMetaMaskButton from "./add-to-metamask-button"; +import { WalletType } from "warden-protocol-wardenprotocol-client-ts/lib/warden.warden.v1beta2/rest"; export default function Keys({ spaceId }: { spaceId: string }) { - const { QueryKeys } = useWardenWardenV1Beta2(); - const query = QueryKeys({ space_id: spaceId }, {}, 10); + const { QueryKeysBySpaceId } = useWardenWardenV1Beta2(); + const query = QueryKeysBySpaceId({ space_id: spaceId, derive_wallets: WalletType.WALLET_TYPE_ETH }, { enabled: !!spaceId }, 10); if (query.status === "loading") { return
Loading...
; diff --git a/spaceward/src/components/send-eth.tsx b/spaceward/src/components/send-eth.tsx index 4df1d857f..29c9d9f40 100644 --- a/spaceward/src/components/send-eth.tsx +++ b/spaceward/src/components/send-eth.tsx @@ -53,18 +53,16 @@ function SendEth() { const queryParameters = new URLSearchParams(window.location.search); const keyId = queryParameters.get("key") || ""; - const { QueryKeys } = useWardenWardenV1Beta2(); - const q = QueryKeys( - { key_id: keyId, type: WalletType.WALLET_TYPE_ETH }, + const { QueryKeyById } = useWardenWardenV1Beta2(); + const q = QueryKeyById( + { id: keyId, derive_wallets: WalletType.WALLET_TYPE_ETH }, {}, - 10 ); - const key = q.data?.pages?.[0].keys?.[0]; - const k = key?.key as Required; + const k = q.data?.key as Required; const ethAddr = - key?.wallets?.find( + q.data?.wallets?.find( (wallet) => wallet.type === WalletType.WALLET_TYPE_ETH )?.address || ""; diff --git a/spaceward/src/components/total-asset-value.tsx b/spaceward/src/components/total-asset-value.tsx index 00a09d256..312522765 100644 --- a/spaceward/src/components/total-asset-value.tsx +++ b/spaceward/src/components/total-asset-value.tsx @@ -32,13 +32,15 @@ function TotalAssetValue() { const { currency } = useCurrency(); const { spaceId } = useSpaceId(); - const { QueryKeys } = useWardenWardenV1Beta2(); - const { data: keysData } = QueryKeys( + const { QueryKeysBySpaceId } = useWardenWardenV1Beta2(); + const { data: keysData } = QueryKeysBySpaceId( { - type: WalletType.WALLET_TYPE_ETH, + derive_wallets: WalletType.WALLET_TYPE_ETH, space_id: spaceId, }, - {}, + { + enabled: !!spaceId, + }, 10 ); diff --git a/spaceward/src/routes/ethereum.tsx b/spaceward/src/routes/ethereum.tsx index dfda0e8c1..7376df378 100644 --- a/spaceward/src/routes/ethereum.tsx +++ b/spaceward/src/routes/ethereum.tsx @@ -65,18 +65,16 @@ function LayerOneEthereum({ chainId }: { chainId: number }) { useRequestTransactionSignature(); const { keyId } = useLoaderData() as Awaited>; - const { QueryKeys } = useWardenWardenV1Beta2(); - const q = QueryKeys( - { key_id: keyId, type: WalletType.WALLET_TYPE_ETH }, + const { QueryKeyById } = useWardenWardenV1Beta2(); + const q = QueryKeyById( + { id: keyId, derive_wallets: WalletType.WALLET_TYPE_ETH }, {}, - 10 ); - const key = q.data?.pages?.[0].keys?.[0]; - const k = key?.key as Required; + const k = q.data?.key as Required; const ethAddr = - key?.wallets?.find( + q.data?.wallets?.find( (wallet) => wallet.type === WalletType.WALLET_TYPE_ETH )?.address || ""; @@ -95,7 +93,7 @@ function LayerOneEthereum({ chainId }: { chainId: number }) { return
Loading ETH balance...
; } - if (!key) { + if (!k) { return
Key not found
; } diff --git a/spaceward/src/routes/key.tsx b/spaceward/src/routes/key.tsx index f05e9fb25..50c6c690b 100644 --- a/spaceward/src/routes/key.tsx +++ b/spaceward/src/routes/key.tsx @@ -61,8 +61,8 @@ const layer1s = [ function Key() { const { keyId } = useLoaderData() as Awaited>; - const { QueryKeys } = useWardenWardenV1Beta2(); - const q = QueryKeys({ key_id: keyId }, {}, 10); + const { QueryKeyById } = useWardenWardenV1Beta2(); + const q = QueryKeyById({ id: keyId }, {}); if (q.status === "loading") { return ( @@ -78,7 +78,7 @@ function Key() { ); } - const key = q.data?.pages?.[0].keys?.[0].key as Required; + const key = q.data?.key as Required; if (!key) { return (
@@ -93,7 +93,7 @@ function Key() { ); } - const addresses = (q.data?.pages?.[0].keys?.[0].wallets || + const addresses = (q.data?.wallets || []) as WalletKeyResponse[]; return (