@latticexyz/services 1.25.1 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/ecs-relay CHANGED
Binary file
package/bin/ecs-snapshot CHANGED
Binary file
package/bin/ecs-stream CHANGED
Binary file
package/bin/faucet CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@latticexyz/services",
3
3
  "license": "MIT",
4
- "version": "1.25.1",
4
+ "version": "1.26.0",
5
5
  "description": "MUD services for enhanced interactions with on-chain ECS state",
6
6
  "main": "protobuf/ts",
7
7
  "repository": {
@@ -20,5 +20,5 @@
20
20
  "ts-proto": "^1.126.1",
21
21
  "typedoc": "^0.23.10"
22
22
  },
23
- "gitHead": "167daad86b8a665ec9f5a48afc88bfc7a987d3bc"
23
+ "gitHead": "e1036af748f9640f2d21e823458b3aa769dbb443"
24
24
  }
@@ -693,6 +693,107 @@ func (x *LinkedAddressForTwitterResponse) GetAddress() string {
693
693
  return ""
694
694
  }
695
695
 
696
+ type SetLinkedTwitterRequest struct {
697
+ state protoimpl.MessageState
698
+ sizeCache protoimpl.SizeCache
699
+ unknownFields protoimpl.UnknownFields
700
+
701
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
702
+ Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
703
+ Signature string `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
704
+ }
705
+
706
+ func (x *SetLinkedTwitterRequest) Reset() {
707
+ *x = SetLinkedTwitterRequest{}
708
+ if protoimpl.UnsafeEnabled {
709
+ mi := &file_proto_faucet_proto_msgTypes[13]
710
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
711
+ ms.StoreMessageInfo(mi)
712
+ }
713
+ }
714
+
715
+ func (x *SetLinkedTwitterRequest) String() string {
716
+ return protoimpl.X.MessageStringOf(x)
717
+ }
718
+
719
+ func (*SetLinkedTwitterRequest) ProtoMessage() {}
720
+
721
+ func (x *SetLinkedTwitterRequest) ProtoReflect() protoreflect.Message {
722
+ mi := &file_proto_faucet_proto_msgTypes[13]
723
+ if protoimpl.UnsafeEnabled && x != nil {
724
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
725
+ if ms.LoadMessageInfo() == nil {
726
+ ms.StoreMessageInfo(mi)
727
+ }
728
+ return ms
729
+ }
730
+ return mi.MessageOf(x)
731
+ }
732
+
733
+ // Deprecated: Use SetLinkedTwitterRequest.ProtoReflect.Descriptor instead.
734
+ func (*SetLinkedTwitterRequest) Descriptor() ([]byte, []int) {
735
+ return file_proto_faucet_proto_rawDescGZIP(), []int{13}
736
+ }
737
+
738
+ func (x *SetLinkedTwitterRequest) GetAddress() string {
739
+ if x != nil {
740
+ return x.Address
741
+ }
742
+ return ""
743
+ }
744
+
745
+ func (x *SetLinkedTwitterRequest) GetUsername() string {
746
+ if x != nil {
747
+ return x.Username
748
+ }
749
+ return ""
750
+ }
751
+
752
+ func (x *SetLinkedTwitterRequest) GetSignature() string {
753
+ if x != nil {
754
+ return x.Signature
755
+ }
756
+ return ""
757
+ }
758
+
759
+ type SetLinkedTwitterResponse struct {
760
+ state protoimpl.MessageState
761
+ sizeCache protoimpl.SizeCache
762
+ unknownFields protoimpl.UnknownFields
763
+ }
764
+
765
+ func (x *SetLinkedTwitterResponse) Reset() {
766
+ *x = SetLinkedTwitterResponse{}
767
+ if protoimpl.UnsafeEnabled {
768
+ mi := &file_proto_faucet_proto_msgTypes[14]
769
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
770
+ ms.StoreMessageInfo(mi)
771
+ }
772
+ }
773
+
774
+ func (x *SetLinkedTwitterResponse) String() string {
775
+ return protoimpl.X.MessageStringOf(x)
776
+ }
777
+
778
+ func (*SetLinkedTwitterResponse) ProtoMessage() {}
779
+
780
+ func (x *SetLinkedTwitterResponse) ProtoReflect() protoreflect.Message {
781
+ mi := &file_proto_faucet_proto_msgTypes[14]
782
+ if protoimpl.UnsafeEnabled && x != nil {
783
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
784
+ if ms.LoadMessageInfo() == nil {
785
+ ms.StoreMessageInfo(mi)
786
+ }
787
+ return ms
788
+ }
789
+ return mi.MessageOf(x)
790
+ }
791
+
792
+ // Deprecated: Use SetLinkedTwitterResponse.ProtoReflect.Descriptor instead.
793
+ func (*SetLinkedTwitterResponse) Descriptor() ([]byte, []int) {
794
+ return file_proto_faucet_proto_rawDescGZIP(), []int{14}
795
+ }
796
+
696
797
  var File_proto_faucet_proto protoreflect.FileDescriptor
697
798
 
698
799
  var file_proto_faucet_proto_rawDesc = []byte{
@@ -782,46 +883,60 @@ var file_proto_faucet_proto_rawDesc = []byte{
782
883
  0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x77, 0x69, 0x74,
783
884
  0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61,
784
885
  0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64,
785
- 0x64, 0x72, 0x65, 0x73, 0x73, 0x32, 0xcf, 0x04, 0x0a, 0x0d, 0x46, 0x61, 0x75, 0x63, 0x65, 0x74,
786
- 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x44, 0x72, 0x69, 0x70, 0x12,
787
- 0x13, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x44, 0x72, 0x69, 0x70, 0x52, 0x65, 0x71,
788
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x44, 0x72,
789
- 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x07,
790
- 0x44, 0x72, 0x69, 0x70, 0x44, 0x65, 0x76, 0x12, 0x16, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74,
791
- 0x2e, 0x44, 0x72, 0x69, 0x70, 0x44, 0x65, 0x76, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
886
+ 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x6d, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b,
887
+ 0x65, 0x64, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
888
+ 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
889
+ 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73,
890
+ 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73,
891
+ 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74,
892
+ 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61,
893
+ 0x74, 0x75, 0x72, 0x65, 0x22, 0x1a, 0x0a, 0x18, 0x53, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x65,
894
+ 0x64, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
895
+ 0x32, 0xa8, 0x05, 0x0a, 0x0d, 0x46, 0x61, 0x75, 0x63, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69,
896
+ 0x63, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x44, 0x72, 0x69, 0x70, 0x12, 0x13, 0x2e, 0x66, 0x61, 0x75,
897
+ 0x63, 0x65, 0x74, 0x2e, 0x44, 0x72, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
792
898
  0x14, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x44, 0x72, 0x69, 0x70, 0x52, 0x65, 0x73,
793
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x49, 0x0a, 0x0f, 0x44, 0x72, 0x69, 0x70, 0x56,
794
- 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x77, 0x65, 0x65, 0x74, 0x12, 0x1e, 0x2e, 0x66, 0x61, 0x75,
795
- 0x63, 0x65, 0x74, 0x2e, 0x44, 0x72, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x77,
796
- 0x65, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x66, 0x61, 0x75,
899
+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x07, 0x44, 0x72, 0x69, 0x70, 0x44,
900
+ 0x65, 0x76, 0x12, 0x16, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x44, 0x72, 0x69, 0x70,
901
+ 0x44, 0x65, 0x76, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x66, 0x61, 0x75,
797
902
  0x63, 0x65, 0x74, 0x2e, 0x44, 0x72, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
798
- 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0d, 0x54, 0x69, 0x6d, 0x65, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x44,
799
- 0x72, 0x69, 0x70, 0x12, 0x13, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x44, 0x72, 0x69,
800
- 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65,
801
- 0x74, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x44, 0x72, 0x69, 0x70, 0x52,
802
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x11, 0x47, 0x65, 0x74,
803
- 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x73, 0x12, 0x20,
804
- 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x65,
805
- 0x64, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
806
- 0x1a, 0x21, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x6e,
807
- 0x6b, 0x65, 0x64, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
808
- 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b,
809
- 0x65, 0x64, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72,
810
- 0x65, 0x73, 0x73, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x4c, 0x69, 0x6e,
811
- 0x6b, 0x65, 0x64, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x41, 0x64, 0x64,
812
- 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61,
813
- 0x75, 0x63, 0x65, 0x74, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x54, 0x77, 0x69, 0x74, 0x74,
814
- 0x65, 0x72, 0x46, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70,
815
- 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x6e,
816
- 0x6b, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x77, 0x69,
817
- 0x74, 0x74, 0x65, 0x72, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x4c, 0x69,
818
- 0x6e, 0x6b, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x77,
819
- 0x69, 0x74, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66,
820
- 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72,
821
- 0x65, 0x73, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73,
822
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x14, 0x5a, 0x12, 0x70, 0x72, 0x6f, 0x74, 0x6f,
823
- 0x62, 0x75, 0x66, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x62, 0x06, 0x70,
824
- 0x72, 0x6f, 0x74, 0x6f, 0x33,
903
+ 0x22, 0x00, 0x12, 0x49, 0x0a, 0x0f, 0x44, 0x72, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79,
904
+ 0x54, 0x77, 0x65, 0x65, 0x74, 0x12, 0x1e, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x44,
905
+ 0x72, 0x69, 0x70, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x77, 0x65, 0x65, 0x74, 0x52, 0x65,
906
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x44,
907
+ 0x72, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x45, 0x0a,
908
+ 0x0d, 0x54, 0x69, 0x6d, 0x65, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x44, 0x72, 0x69, 0x70, 0x12, 0x13,
909
+ 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x44, 0x72, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75,
910
+ 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x54, 0x69, 0x6d,
911
+ 0x65, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x44, 0x72, 0x69, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
912
+ 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x65,
913
+ 0x64, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x73, 0x12, 0x20, 0x2e, 0x66, 0x61, 0x75, 0x63,
914
+ 0x65, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x54, 0x77, 0x69, 0x74,
915
+ 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x66, 0x61,
916
+ 0x75, 0x63, 0x65, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x54, 0x77,
917
+ 0x69, 0x74, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
918
+ 0x12, 0x6f, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x54, 0x77, 0x69,
919
+ 0x74, 0x74, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x26,
920
+ 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x54, 0x77,
921
+ 0x69, 0x74, 0x74, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52,
922
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e,
923
+ 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x46, 0x6f, 0x72,
924
+ 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
925
+ 0x00, 0x12, 0x6f, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x41, 0x64,
926
+ 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x12,
927
+ 0x26, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x41,
928
+ 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x6f, 0x72, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72,
929
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74,
930
+ 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x46, 0x6f,
931
+ 0x72, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
932
+ 0x22, 0x00, 0x12, 0x57, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x54,
933
+ 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x2e,
934
+ 0x53, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72,
935
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74,
936
+ 0x2e, 0x53, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x65, 0x64, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65,
937
+ 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x14, 0x5a, 0x12, 0x70,
938
+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x61, 0x75, 0x63, 0x65,
939
+ 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
825
940
  }
826
941
 
827
942
  var (
@@ -836,7 +951,7 @@ func file_proto_faucet_proto_rawDescGZIP() []byte {
836
951
  return file_proto_faucet_proto_rawDescData
837
952
  }
838
953
 
839
- var file_proto_faucet_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
954
+ var file_proto_faucet_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
840
955
  var file_proto_faucet_proto_goTypes = []interface{}{
841
956
  (*LinkedTwitterPair)(nil), // 0: faucet.LinkedTwitterPair
842
957
  (*FaucetStore)(nil), // 1: faucet.FaucetStore
@@ -851,14 +966,16 @@ var file_proto_faucet_proto_goTypes = []interface{}{
851
966
  (*LinkedTwitterForAddressResponse)(nil), // 10: faucet.LinkedTwitterForAddressResponse
852
967
  (*LinkedAddressForTwitterRequest)(nil), // 11: faucet.LinkedAddressForTwitterRequest
853
968
  (*LinkedAddressForTwitterResponse)(nil), // 12: faucet.LinkedAddressForTwitterResponse
854
- nil, // 13: faucet.FaucetStore.AddressToUsernameEntry
855
- nil, // 14: faucet.FaucetStore.UsernameToAddressEntry
856
- nil, // 15: faucet.FaucetStore.LatestDripEntry
969
+ (*SetLinkedTwitterRequest)(nil), // 13: faucet.SetLinkedTwitterRequest
970
+ (*SetLinkedTwitterResponse)(nil), // 14: faucet.SetLinkedTwitterResponse
971
+ nil, // 15: faucet.FaucetStore.AddressToUsernameEntry
972
+ nil, // 16: faucet.FaucetStore.UsernameToAddressEntry
973
+ nil, // 17: faucet.FaucetStore.LatestDripEntry
857
974
  }
858
975
  var file_proto_faucet_proto_depIdxs = []int32{
859
- 13, // 0: faucet.FaucetStore.addressToUsername:type_name -> faucet.FaucetStore.AddressToUsernameEntry
860
- 14, // 1: faucet.FaucetStore.usernameToAddress:type_name -> faucet.FaucetStore.UsernameToAddressEntry
861
- 15, // 2: faucet.FaucetStore.latestDrip:type_name -> faucet.FaucetStore.LatestDripEntry
976
+ 15, // 0: faucet.FaucetStore.addressToUsername:type_name -> faucet.FaucetStore.AddressToUsernameEntry
977
+ 16, // 1: faucet.FaucetStore.usernameToAddress:type_name -> faucet.FaucetStore.UsernameToAddressEntry
978
+ 17, // 2: faucet.FaucetStore.latestDrip:type_name -> faucet.FaucetStore.LatestDripEntry
862
979
  0, // 3: faucet.GetLinkedTwittersResponse.linkedTwitters:type_name -> faucet.LinkedTwitterPair
863
980
  2, // 4: faucet.FaucetService.Drip:input_type -> faucet.DripRequest
864
981
  4, // 5: faucet.FaucetService.DripDev:input_type -> faucet.DripDevRequest
@@ -867,15 +984,17 @@ var file_proto_faucet_proto_depIdxs = []int32{
867
984
  7, // 8: faucet.FaucetService.GetLinkedTwitters:input_type -> faucet.GetLinkedTwittersRequest
868
985
  9, // 9: faucet.FaucetService.GetLinkedTwitterForAddress:input_type -> faucet.LinkedTwitterForAddressRequest
869
986
  11, // 10: faucet.FaucetService.GetLinkedAddressForTwitter:input_type -> faucet.LinkedAddressForTwitterRequest
870
- 5, // 11: faucet.FaucetService.Drip:output_type -> faucet.DripResponse
871
- 5, // 12: faucet.FaucetService.DripDev:output_type -> faucet.DripResponse
872
- 5, // 13: faucet.FaucetService.DripVerifyTweet:output_type -> faucet.DripResponse
873
- 6, // 14: faucet.FaucetService.TimeUntilDrip:output_type -> faucet.TimeUntilDripResponse
874
- 8, // 15: faucet.FaucetService.GetLinkedTwitters:output_type -> faucet.GetLinkedTwittersResponse
875
- 10, // 16: faucet.FaucetService.GetLinkedTwitterForAddress:output_type -> faucet.LinkedTwitterForAddressResponse
876
- 12, // 17: faucet.FaucetService.GetLinkedAddressForTwitter:output_type -> faucet.LinkedAddressForTwitterResponse
877
- 11, // [11:18] is the sub-list for method output_type
878
- 4, // [4:11] is the sub-list for method input_type
987
+ 13, // 11: faucet.FaucetService.SetLinkedTwitter:input_type -> faucet.SetLinkedTwitterRequest
988
+ 5, // 12: faucet.FaucetService.Drip:output_type -> faucet.DripResponse
989
+ 5, // 13: faucet.FaucetService.DripDev:output_type -> faucet.DripResponse
990
+ 5, // 14: faucet.FaucetService.DripVerifyTweet:output_type -> faucet.DripResponse
991
+ 6, // 15: faucet.FaucetService.TimeUntilDrip:output_type -> faucet.TimeUntilDripResponse
992
+ 8, // 16: faucet.FaucetService.GetLinkedTwitters:output_type -> faucet.GetLinkedTwittersResponse
993
+ 10, // 17: faucet.FaucetService.GetLinkedTwitterForAddress:output_type -> faucet.LinkedTwitterForAddressResponse
994
+ 12, // 18: faucet.FaucetService.GetLinkedAddressForTwitter:output_type -> faucet.LinkedAddressForTwitterResponse
995
+ 14, // 19: faucet.FaucetService.SetLinkedTwitter:output_type -> faucet.SetLinkedTwitterResponse
996
+ 12, // [12:20] is the sub-list for method output_type
997
+ 4, // [4:12] is the sub-list for method input_type
879
998
  4, // [4:4] is the sub-list for extension type_name
880
999
  4, // [4:4] is the sub-list for extension extendee
881
1000
  0, // [0:4] is the sub-list for field type_name
@@ -1043,6 +1162,30 @@ func file_proto_faucet_proto_init() {
1043
1162
  return nil
1044
1163
  }
1045
1164
  }
1165
+ file_proto_faucet_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
1166
+ switch v := v.(*SetLinkedTwitterRequest); i {
1167
+ case 0:
1168
+ return &v.state
1169
+ case 1:
1170
+ return &v.sizeCache
1171
+ case 2:
1172
+ return &v.unknownFields
1173
+ default:
1174
+ return nil
1175
+ }
1176
+ }
1177
+ file_proto_faucet_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
1178
+ switch v := v.(*SetLinkedTwitterResponse); i {
1179
+ case 0:
1180
+ return &v.state
1181
+ case 1:
1182
+ return &v.sizeCache
1183
+ case 2:
1184
+ return &v.unknownFields
1185
+ default:
1186
+ return nil
1187
+ }
1188
+ }
1046
1189
  }
1047
1190
  type x struct{}
1048
1191
  out := protoimpl.TypeBuilder{
@@ -1050,7 +1193,7 @@ func file_proto_faucet_proto_init() {
1050
1193
  GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1051
1194
  RawDescriptor: file_proto_faucet_proto_rawDesc,
1052
1195
  NumEnums: 0,
1053
- NumMessages: 16,
1196
+ NumMessages: 18,
1054
1197
  NumExtensions: 0,
1055
1198
  NumServices: 1,
1056
1199
  },
@@ -29,6 +29,8 @@ type FaucetServiceClient interface {
29
29
  GetLinkedTwitters(ctx context.Context, in *GetLinkedTwittersRequest, opts ...grpc.CallOption) (*GetLinkedTwittersResponse, error)
30
30
  GetLinkedTwitterForAddress(ctx context.Context, in *LinkedTwitterForAddressRequest, opts ...grpc.CallOption) (*LinkedTwitterForAddressResponse, error)
31
31
  GetLinkedAddressForTwitter(ctx context.Context, in *LinkedAddressForTwitterRequest, opts ...grpc.CallOption) (*LinkedAddressForTwitterResponse, error)
32
+ // Admin utility endpoints for modifying state. Requires a signature with faucet private key.
33
+ SetLinkedTwitter(ctx context.Context, in *SetLinkedTwitterRequest, opts ...grpc.CallOption) (*SetLinkedTwitterResponse, error)
32
34
  }
33
35
 
34
36
  type faucetServiceClient struct {
@@ -102,6 +104,15 @@ func (c *faucetServiceClient) GetLinkedAddressForTwitter(ctx context.Context, in
102
104
  return out, nil
103
105
  }
104
106
 
107
+ func (c *faucetServiceClient) SetLinkedTwitter(ctx context.Context, in *SetLinkedTwitterRequest, opts ...grpc.CallOption) (*SetLinkedTwitterResponse, error) {
108
+ out := new(SetLinkedTwitterResponse)
109
+ err := c.cc.Invoke(ctx, "/faucet.FaucetService/SetLinkedTwitter", in, out, opts...)
110
+ if err != nil {
111
+ return nil, err
112
+ }
113
+ return out, nil
114
+ }
115
+
105
116
  // FaucetServiceServer is the server API for FaucetService service.
106
117
  // All implementations must embed UnimplementedFaucetServiceServer
107
118
  // for forward compatibility
@@ -113,6 +124,8 @@ type FaucetServiceServer interface {
113
124
  GetLinkedTwitters(context.Context, *GetLinkedTwittersRequest) (*GetLinkedTwittersResponse, error)
114
125
  GetLinkedTwitterForAddress(context.Context, *LinkedTwitterForAddressRequest) (*LinkedTwitterForAddressResponse, error)
115
126
  GetLinkedAddressForTwitter(context.Context, *LinkedAddressForTwitterRequest) (*LinkedAddressForTwitterResponse, error)
127
+ // Admin utility endpoints for modifying state. Requires a signature with faucet private key.
128
+ SetLinkedTwitter(context.Context, *SetLinkedTwitterRequest) (*SetLinkedTwitterResponse, error)
116
129
  mustEmbedUnimplementedFaucetServiceServer()
117
130
  }
118
131
 
@@ -141,6 +154,9 @@ func (UnimplementedFaucetServiceServer) GetLinkedTwitterForAddress(context.Conte
141
154
  func (UnimplementedFaucetServiceServer) GetLinkedAddressForTwitter(context.Context, *LinkedAddressForTwitterRequest) (*LinkedAddressForTwitterResponse, error) {
142
155
  return nil, status.Errorf(codes.Unimplemented, "method GetLinkedAddressForTwitter not implemented")
143
156
  }
157
+ func (UnimplementedFaucetServiceServer) SetLinkedTwitter(context.Context, *SetLinkedTwitterRequest) (*SetLinkedTwitterResponse, error) {
158
+ return nil, status.Errorf(codes.Unimplemented, "method SetLinkedTwitter not implemented")
159
+ }
144
160
  func (UnimplementedFaucetServiceServer) mustEmbedUnimplementedFaucetServiceServer() {}
145
161
 
146
162
  // UnsafeFaucetServiceServer may be embedded to opt out of forward compatibility for this service.
@@ -280,6 +296,24 @@ func _FaucetService_GetLinkedAddressForTwitter_Handler(srv interface{}, ctx cont
280
296
  return interceptor(ctx, in, info, handler)
281
297
  }
282
298
 
299
+ func _FaucetService_SetLinkedTwitter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
300
+ in := new(SetLinkedTwitterRequest)
301
+ if err := dec(in); err != nil {
302
+ return nil, err
303
+ }
304
+ if interceptor == nil {
305
+ return srv.(FaucetServiceServer).SetLinkedTwitter(ctx, in)
306
+ }
307
+ info := &grpc.UnaryServerInfo{
308
+ Server: srv,
309
+ FullMethod: "/faucet.FaucetService/SetLinkedTwitter",
310
+ }
311
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
312
+ return srv.(FaucetServiceServer).SetLinkedTwitter(ctx, req.(*SetLinkedTwitterRequest))
313
+ }
314
+ return interceptor(ctx, in, info, handler)
315
+ }
316
+
283
317
  // FaucetService_ServiceDesc is the grpc.ServiceDesc for FaucetService service.
284
318
  // It's only intended for direct use with grpc.RegisterService,
285
319
  // and not to be introspected or modified (even as a copy)
@@ -315,6 +349,10 @@ var FaucetService_ServiceDesc = grpc.ServiceDesc{
315
349
  MethodName: "GetLinkedAddressForTwitter",
316
350
  Handler: _FaucetService_GetLinkedAddressForTwitter_Handler,
317
351
  },
352
+ {
353
+ MethodName: "SetLinkedTwitter",
354
+ Handler: _FaucetService_SetLinkedTwitter_Handler,
355
+ },
318
356
  },
319
357
  Streams: []grpc.StreamDesc{},
320
358
  Metadata: "proto/faucet.proto",
@@ -85,6 +85,14 @@ export interface LinkedAddressForTwitterResponse {
85
85
  address: string;
86
86
  }
87
87
 
88
+ export interface SetLinkedTwitterRequest {
89
+ address: string;
90
+ username: string;
91
+ signature: string;
92
+ }
93
+
94
+ export interface SetLinkedTwitterResponse {}
95
+
88
96
  function createBaseLinkedTwitterPair(): LinkedTwitterPair {
89
97
  return { username: "", address: "" };
90
98
  }
@@ -780,6 +788,87 @@ export const LinkedAddressForTwitterResponse = {
780
788
  },
781
789
  };
782
790
 
791
+ function createBaseSetLinkedTwitterRequest(): SetLinkedTwitterRequest {
792
+ return { address: "", username: "", signature: "" };
793
+ }
794
+
795
+ export const SetLinkedTwitterRequest = {
796
+ encode(message: SetLinkedTwitterRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
797
+ if (message.address !== "") {
798
+ writer.uint32(10).string(message.address);
799
+ }
800
+ if (message.username !== "") {
801
+ writer.uint32(18).string(message.username);
802
+ }
803
+ if (message.signature !== "") {
804
+ writer.uint32(26).string(message.signature);
805
+ }
806
+ return writer;
807
+ },
808
+
809
+ decode(input: _m0.Reader | Uint8Array, length?: number): SetLinkedTwitterRequest {
810
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
811
+ let end = length === undefined ? reader.len : reader.pos + length;
812
+ const message = createBaseSetLinkedTwitterRequest();
813
+ while (reader.pos < end) {
814
+ const tag = reader.uint32();
815
+ switch (tag >>> 3) {
816
+ case 1:
817
+ message.address = reader.string();
818
+ break;
819
+ case 2:
820
+ message.username = reader.string();
821
+ break;
822
+ case 3:
823
+ message.signature = reader.string();
824
+ break;
825
+ default:
826
+ reader.skipType(tag & 7);
827
+ break;
828
+ }
829
+ }
830
+ return message;
831
+ },
832
+
833
+ fromPartial(object: DeepPartial<SetLinkedTwitterRequest>): SetLinkedTwitterRequest {
834
+ const message = createBaseSetLinkedTwitterRequest();
835
+ message.address = object.address ?? "";
836
+ message.username = object.username ?? "";
837
+ message.signature = object.signature ?? "";
838
+ return message;
839
+ },
840
+ };
841
+
842
+ function createBaseSetLinkedTwitterResponse(): SetLinkedTwitterResponse {
843
+ return {};
844
+ }
845
+
846
+ export const SetLinkedTwitterResponse = {
847
+ encode(_: SetLinkedTwitterResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
848
+ return writer;
849
+ },
850
+
851
+ decode(input: _m0.Reader | Uint8Array, length?: number): SetLinkedTwitterResponse {
852
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
853
+ let end = length === undefined ? reader.len : reader.pos + length;
854
+ const message = createBaseSetLinkedTwitterResponse();
855
+ while (reader.pos < end) {
856
+ const tag = reader.uint32();
857
+ switch (tag >>> 3) {
858
+ default:
859
+ reader.skipType(tag & 7);
860
+ break;
861
+ }
862
+ }
863
+ return message;
864
+ },
865
+
866
+ fromPartial(_: DeepPartial<SetLinkedTwitterResponse>): SetLinkedTwitterResponse {
867
+ const message = createBaseSetLinkedTwitterResponse();
868
+ return message;
869
+ },
870
+ };
871
+
783
872
  /** The Faucet Service definition. */
784
873
  export type FaucetServiceDefinition = typeof FaucetServiceDefinition;
785
874
  export const FaucetServiceDefinition = {
@@ -842,6 +931,15 @@ export const FaucetServiceDefinition = {
842
931
  responseStream: false,
843
932
  options: {},
844
933
  },
934
+ /** Admin utility endpoints for modifying state. Requires a signature with faucet private key. */
935
+ setLinkedTwitter: {
936
+ name: "SetLinkedTwitter",
937
+ requestType: SetLinkedTwitterRequest,
938
+ requestStream: false,
939
+ responseType: SetLinkedTwitterResponse,
940
+ responseStream: false,
941
+ options: {},
942
+ },
845
943
  },
846
944
  } as const;
847
945
 
@@ -868,6 +966,11 @@ export interface FaucetServiceServiceImplementation<CallContextExt = {}> {
868
966
  request: LinkedAddressForTwitterRequest,
869
967
  context: CallContext & CallContextExt
870
968
  ): Promise<DeepPartial<LinkedAddressForTwitterResponse>>;
969
+ /** Admin utility endpoints for modifying state. Requires a signature with faucet private key. */
970
+ setLinkedTwitter(
971
+ request: SetLinkedTwitterRequest,
972
+ context: CallContext & CallContextExt
973
+ ): Promise<DeepPartial<SetLinkedTwitterResponse>>;
871
974
  }
872
975
 
873
976
  export interface FaucetServiceClient<CallOptionsExt = {}> {
@@ -893,6 +996,11 @@ export interface FaucetServiceClient<CallOptionsExt = {}> {
893
996
  request: DeepPartial<LinkedAddressForTwitterRequest>,
894
997
  options?: CallOptions & CallOptionsExt
895
998
  ): Promise<LinkedAddressForTwitterResponse>;
999
+ /** Admin utility endpoints for modifying state. Requires a signature with faucet private key. */
1000
+ setLinkedTwitter(
1001
+ request: DeepPartial<SetLinkedTwitterRequest>,
1002
+ options?: CallOptions & CallOptionsExt
1003
+ ): Promise<SetLinkedTwitterResponse>;
896
1004
  }
897
1005
 
898
1006
  declare var self: any | undefined;