diff --git a/data/pb/hivemapper/v1/hivemapper.pb.go b/data/pb/hivemapper/v1/hivemapper.pb.go index a39f126..45a7856 100644 --- a/data/pb/hivemapper/v1/hivemapper.pb.go +++ b/data/pb/hivemapper/v1/hivemapper.pb.go @@ -4,7 +4,7 @@ // protoc (unknown) // source: hivemapper/v1/hivemapper.proto -package pb +package v1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -30,6 +30,7 @@ type Output struct { NoSplitPayments []*NoSplitPayment `protobuf:"bytes,30,rep,name=no_split_payments,json=noSplitPayments,proto3" json:"no_split_payments,omitempty"` AiTrainerPayments []*AiTrainerPayment `protobuf:"bytes,50,rep,name=ai_trainer_payments,json=aiTrainerPayments,proto3" json:"ai_trainer_payments,omitempty"` OperationalPayments []*OperationalPayment `protobuf:"bytes,51,rep,name=operational_payments,json=operationalPayments,proto3" json:"operational_payments,omitempty"` + RewardPayments []*RewardPayment `protobuf:"bytes,52,rep,name=reward_payments,json=rewardPayments,proto3" json:"reward_payments,omitempty"` Transfers []*Transfer `protobuf:"bytes,60,rep,name=transfers,proto3" json:"transfers,omitempty"` Mints []*Mint `protobuf:"bytes,70,rep,name=mints,proto3" json:"mints,omitempty"` Burns []*Burn `protobuf:"bytes,80,rep,name=burns,proto3" json:"burns,omitempty"` @@ -103,6 +104,13 @@ func (x *Output) GetOperationalPayments() []*OperationalPayment { return nil } +func (x *Output) GetRewardPayments() []*RewardPayment { + if x != nil { + return x.RewardPayments + } + return nil +} + func (x *Output) GetTransfers() []*Transfer { if x != nil { return x.Transfers @@ -421,6 +429,53 @@ func (x *Payment) GetMint() *Mint { return nil } +type RewardPayment struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Mint *Mint `protobuf:"bytes,1,opt,name=mint,proto3" json:"mint,omitempty"` +} + +func (x *RewardPayment) Reset() { + *x = RewardPayment{} + if protoimpl.UnsafeEnabled { + mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RewardPayment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RewardPayment) ProtoMessage() {} + +func (x *RewardPayment) ProtoReflect() protoreflect.Message { + mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[7] + 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) +} + +// Deprecated: Use RewardPayment.ProtoReflect.Descriptor instead. +func (*RewardPayment) Descriptor() ([]byte, []int) { + return file_hivemapper_v1_hivemapper_proto_rawDescGZIP(), []int{7} +} + +func (x *RewardPayment) GetMint() *Mint { + if x != nil { + return x.Mint + } + return nil +} + type Transfer struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -436,7 +491,7 @@ type Transfer struct { func (x *Transfer) Reset() { *x = Transfer{} if protoimpl.UnsafeEnabled { - mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[7] + mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -449,7 +504,7 @@ func (x *Transfer) String() string { func (*Transfer) ProtoMessage() {} func (x *Transfer) ProtoReflect() protoreflect.Message { - mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[7] + mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -462,7 +517,7 @@ func (x *Transfer) ProtoReflect() protoreflect.Message { // Deprecated: Use Transfer.ProtoReflect.Descriptor instead. func (*Transfer) Descriptor() ([]byte, []int) { - return file_hivemapper_v1_hivemapper_proto_rawDescGZIP(), []int{7} + return file_hivemapper_v1_hivemapper_proto_rawDescGZIP(), []int{8} } func (x *Transfer) GetTrxHash() string { @@ -514,7 +569,7 @@ type Mint struct { func (x *Mint) Reset() { *x = Mint{} if protoimpl.UnsafeEnabled { - mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[8] + mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -527,7 +582,7 @@ func (x *Mint) String() string { func (*Mint) ProtoMessage() {} func (x *Mint) ProtoReflect() protoreflect.Message { - mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[8] + mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -540,7 +595,7 @@ func (x *Mint) ProtoReflect() protoreflect.Message { // Deprecated: Use Mint.ProtoReflect.Descriptor instead. func (*Mint) Descriptor() ([]byte, []int) { - return file_hivemapper_v1_hivemapper_proto_rawDescGZIP(), []int{8} + return file_hivemapper_v1_hivemapper_proto_rawDescGZIP(), []int{9} } func (x *Mint) GetTrxHash() string { @@ -585,7 +640,7 @@ type Burn struct { func (x *Burn) Reset() { *x = Burn{} if protoimpl.UnsafeEnabled { - mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[9] + mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -598,7 +653,7 @@ func (x *Burn) String() string { func (*Burn) ProtoMessage() {} func (x *Burn) ProtoReflect() protoreflect.Message { - mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[9] + mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -611,7 +666,7 @@ func (x *Burn) ProtoReflect() protoreflect.Message { // Deprecated: Use Burn.ProtoReflect.Descriptor instead. func (*Burn) Descriptor() ([]byte, []int) { - return file_hivemapper_v1_hivemapper_proto_rawDescGZIP(), []int{9} + return file_hivemapper_v1_hivemapper_proto_rawDescGZIP(), []int{10} } func (x *Burn) GetTrxHash() string { @@ -656,7 +711,7 @@ type InitializedAccount struct { func (x *InitializedAccount) Reset() { *x = InitializedAccount{} if protoimpl.UnsafeEnabled { - mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[10] + mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -669,7 +724,7 @@ func (x *InitializedAccount) String() string { func (*InitializedAccount) ProtoMessage() {} func (x *InitializedAccount) ProtoReflect() protoreflect.Message { - mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[10] + mi := &file_hivemapper_v1_hivemapper_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -682,7 +737,7 @@ func (x *InitializedAccount) ProtoReflect() protoreflect.Message { // Deprecated: Use InitializedAccount.ProtoReflect.Descriptor instead. func (*InitializedAccount) Descriptor() ([]byte, []int) { - return file_hivemapper_v1_hivemapper_proto_rawDescGZIP(), []int{10} + return file_hivemapper_v1_hivemapper_proto_rawDescGZIP(), []int{11} } func (x *InitializedAccount) GetTrxHash() string { @@ -719,7 +774,7 @@ var file_hivemapper_v1_hivemapper_proto_rawDesc = []byte{ 0x0a, 0x1e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x76, 0x31, 0x22, 0xce, 0x05, 0x0a, 0x06, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x22, 0x9b, 0x06, 0x0a, 0x06, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x64, 0x0a, 0x18, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, @@ -748,82 +803,91 @@ var file_hivemapper_v1_hivemapper_proto_rawDesc = []byte{ 0x27, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x13, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3b, 0x0a, - 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x73, 0x18, 0x3c, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, - 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x6d, 0x69, - 0x6e, 0x74, 0x73, 0x18, 0x46, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x68, 0x69, 0x76, 0x65, - 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x69, 0x6e, 0x74, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x62, - 0x75, 0x72, 0x6e, 0x73, 0x18, 0x50, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x68, 0x69, 0x76, - 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x42, 0x75, 0x72, 0x6e, 0x52, 0x05, 0x62, 0x75, 0x72, 0x6e, 0x73, 0x12, 0x58, 0x0a, 0x13, - 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x78, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x68, 0x69, 0x76, 0x65, - 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x52, 0x12, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x91, 0x01, 0x0a, 0x15, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x53, 0x70, 0x6c, 0x69, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, - 0x12, 0x3c, 0x0a, 0x0c, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x5f, 0x6d, 0x69, 0x6e, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, + 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x4b, 0x0a, + 0x0f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x18, 0x34, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, + 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x77, + 0x61, 0x72, 0x64, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0e, 0x72, 0x65, 0x77, 0x61, + 0x72, 0x64, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3b, 0x0a, 0x09, 0x74, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x73, 0x18, 0x3c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x09, 0x74, 0x72, + 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x74, 0x73, + 0x18, 0x46, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x6e, - 0x74, 0x52, 0x0b, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x4d, 0x69, 0x6e, 0x74, 0x12, 0x3a, - 0x0a, 0x0b, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, + 0x74, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x62, 0x75, 0x72, 0x6e, + 0x73, 0x18, 0x50, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, + 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, + 0x72, 0x6e, 0x52, 0x05, 0x62, 0x75, 0x72, 0x6e, 0x73, 0x12, 0x58, 0x0a, 0x13, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x78, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, + 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, + 0x12, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x22, 0x91, 0x01, 0x0a, 0x15, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x70, 0x6c, + 0x69, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3c, 0x0a, + 0x0c, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x5f, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x6e, 0x74, 0x52, 0x0a, - 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x4d, 0x69, 0x6e, 0x74, 0x22, 0x45, 0x0a, 0x14, 0x52, 0x65, - 0x67, 0x75, 0x6c, 0x61, 0x72, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6d, 0x65, - 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x6e, 0x74, 0x52, 0x0b, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x4d, 0x69, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x0b, 0x64, + 0x72, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x6e, 0x74, 0x52, 0x04, 0x6d, 0x69, 0x6e, - 0x74, 0x22, 0x3f, 0x0a, 0x0e, 0x4e, 0x6f, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x50, 0x61, 0x79, 0x6d, + 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x6e, 0x74, 0x52, 0x0a, 0x64, 0x72, 0x69, + 0x76, 0x65, 0x72, 0x4d, 0x69, 0x6e, 0x74, 0x22, 0x45, 0x0a, 0x14, 0x52, 0x65, 0x67, 0x75, 0x6c, + 0x61, 0x72, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, + 0x2d, 0x0a, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x6e, 0x74, 0x52, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x22, 0x3f, + 0x0a, 0x0e, 0x4e, 0x6f, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, + 0x12, 0x2d, 0x0a, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x6e, 0x74, 0x52, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x22, + 0x41, 0x0a, 0x10, 0x41, 0x69, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x6e, 0x74, 0x52, 0x04, 0x6d, 0x69, - 0x6e, 0x74, 0x22, 0x41, 0x0a, 0x10, 0x41, 0x69, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x50, - 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, - 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x6e, 0x74, 0x52, - 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x22, 0x43, 0x0a, 0x12, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x6d, - 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x68, 0x69, 0x76, 0x65, - 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x69, 0x6e, 0x74, 0x52, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x22, 0x38, 0x0a, 0x07, 0x50, 0x61, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x6e, 0x74, 0x52, 0x04, - 0x6d, 0x69, 0x6e, 0x74, 0x22, 0x7f, 0x0a, 0x08, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, - 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x74, 0x72, 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, - 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, - 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x16, 0x0a, - 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x52, 0x06, 0x61, - 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x67, 0x0a, 0x04, 0x4d, 0x69, 0x6e, 0x74, 0x12, 0x19, 0x0a, + 0x6e, 0x74, 0x22, 0x43, 0x0a, 0x12, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, + 0x6c, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x6d, 0x69, 0x6e, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, + 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x6e, + 0x74, 0x52, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x22, 0x38, 0x0a, 0x07, 0x50, 0x61, 0x79, 0x6d, 0x65, + 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x6e, 0x74, 0x52, 0x04, 0x6d, 0x69, 0x6e, + 0x74, 0x22, 0x3e, 0x0a, 0x0d, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x50, 0x61, 0x79, 0x6d, 0x65, + 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x68, 0x69, 0x76, 0x65, 0x6d, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x6e, 0x74, 0x52, 0x04, 0x6d, 0x69, 0x6e, + 0x74, 0x22, 0x7f, 0x0a, 0x08, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x72, 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x6b, - 0x0a, 0x04, 0x42, 0x75, 0x72, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x78, 0x5f, 0x68, 0x61, - 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x72, 0x78, 0x48, 0x61, 0x73, - 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, - 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, - 0x72, 0x6f, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x73, 0x0a, 0x12, 0x49, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x72, 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x18, 0x0a, 0x07, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, + 0x6e, 0x74, 0x22, 0x67, 0x0a, 0x04, 0x4d, 0x69, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, + 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x72, + 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x74, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x6b, 0x0a, 0x04, 0x42, + 0x75, 0x72, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x72, 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1c, + 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x12, 0x0a, 0x04, + 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, + 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, + 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x73, 0x0a, 0x12, 0x49, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x19, + 0x0a, 0x08, 0x74, 0x72, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x74, 0x72, 0x78, 0x48, 0x61, 0x73, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6d, 0x69, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -838,7 +902,7 @@ func file_hivemapper_v1_hivemapper_proto_rawDescGZIP() []byte { return file_hivemapper_v1_hivemapper_proto_rawDescData } -var file_hivemapper_v1_hivemapper_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_hivemapper_v1_hivemapper_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_hivemapper_v1_hivemapper_proto_goTypes = []interface{}{ (*Output)(nil), // 0: hivemapper.types.v1.Output (*TokenSplittingPayment)(nil), // 1: hivemapper.types.v1.TokenSplittingPayment @@ -847,10 +911,11 @@ var file_hivemapper_v1_hivemapper_proto_goTypes = []interface{}{ (*AiTrainerPayment)(nil), // 4: hivemapper.types.v1.AiTrainerPayment (*OperationalPayment)(nil), // 5: hivemapper.types.v1.OperationalPayment (*Payment)(nil), // 6: hivemapper.types.v1.Payment - (*Transfer)(nil), // 7: hivemapper.types.v1.Transfer - (*Mint)(nil), // 8: hivemapper.types.v1.Mint - (*Burn)(nil), // 9: hivemapper.types.v1.Burn - (*InitializedAccount)(nil), // 10: hivemapper.types.v1.InitializedAccount + (*RewardPayment)(nil), // 7: hivemapper.types.v1.RewardPayment + (*Transfer)(nil), // 8: hivemapper.types.v1.Transfer + (*Mint)(nil), // 9: hivemapper.types.v1.Mint + (*Burn)(nil), // 10: hivemapper.types.v1.Burn + (*InitializedAccount)(nil), // 11: hivemapper.types.v1.InitializedAccount } var file_hivemapper_v1_hivemapper_proto_depIdxs = []int32{ 1, // 0: hivemapper.types.v1.Output.token_splitting_payments:type_name -> hivemapper.types.v1.TokenSplittingPayment @@ -858,22 +923,24 @@ var file_hivemapper_v1_hivemapper_proto_depIdxs = []int32{ 3, // 2: hivemapper.types.v1.Output.no_split_payments:type_name -> hivemapper.types.v1.NoSplitPayment 4, // 3: hivemapper.types.v1.Output.ai_trainer_payments:type_name -> hivemapper.types.v1.AiTrainerPayment 5, // 4: hivemapper.types.v1.Output.operational_payments:type_name -> hivemapper.types.v1.OperationalPayment - 7, // 5: hivemapper.types.v1.Output.transfers:type_name -> hivemapper.types.v1.Transfer - 8, // 6: hivemapper.types.v1.Output.mints:type_name -> hivemapper.types.v1.Mint - 9, // 7: hivemapper.types.v1.Output.burns:type_name -> hivemapper.types.v1.Burn - 10, // 8: hivemapper.types.v1.Output.initialized_account:type_name -> hivemapper.types.v1.InitializedAccount - 8, // 9: hivemapper.types.v1.TokenSplittingPayment.manager_mint:type_name -> hivemapper.types.v1.Mint - 8, // 10: hivemapper.types.v1.TokenSplittingPayment.driver_mint:type_name -> hivemapper.types.v1.Mint - 8, // 11: hivemapper.types.v1.RegularDriverPayment.mint:type_name -> hivemapper.types.v1.Mint - 8, // 12: hivemapper.types.v1.NoSplitPayment.mint:type_name -> hivemapper.types.v1.Mint - 8, // 13: hivemapper.types.v1.AiTrainerPayment.mint:type_name -> hivemapper.types.v1.Mint - 8, // 14: hivemapper.types.v1.OperationalPayment.mint:type_name -> hivemapper.types.v1.Mint - 8, // 15: hivemapper.types.v1.Payment.mint:type_name -> hivemapper.types.v1.Mint - 16, // [16:16] is the sub-list for method output_type - 16, // [16:16] is the sub-list for method input_type - 16, // [16:16] is the sub-list for extension type_name - 16, // [16:16] is the sub-list for extension extendee - 0, // [0:16] is the sub-list for field type_name + 7, // 5: hivemapper.types.v1.Output.reward_payments:type_name -> hivemapper.types.v1.RewardPayment + 8, // 6: hivemapper.types.v1.Output.transfers:type_name -> hivemapper.types.v1.Transfer + 9, // 7: hivemapper.types.v1.Output.mints:type_name -> hivemapper.types.v1.Mint + 10, // 8: hivemapper.types.v1.Output.burns:type_name -> hivemapper.types.v1.Burn + 11, // 9: hivemapper.types.v1.Output.initialized_account:type_name -> hivemapper.types.v1.InitializedAccount + 9, // 10: hivemapper.types.v1.TokenSplittingPayment.manager_mint:type_name -> hivemapper.types.v1.Mint + 9, // 11: hivemapper.types.v1.TokenSplittingPayment.driver_mint:type_name -> hivemapper.types.v1.Mint + 9, // 12: hivemapper.types.v1.RegularDriverPayment.mint:type_name -> hivemapper.types.v1.Mint + 9, // 13: hivemapper.types.v1.NoSplitPayment.mint:type_name -> hivemapper.types.v1.Mint + 9, // 14: hivemapper.types.v1.AiTrainerPayment.mint:type_name -> hivemapper.types.v1.Mint + 9, // 15: hivemapper.types.v1.OperationalPayment.mint:type_name -> hivemapper.types.v1.Mint + 9, // 16: hivemapper.types.v1.Payment.mint:type_name -> hivemapper.types.v1.Mint + 9, // 17: hivemapper.types.v1.RewardPayment.mint:type_name -> hivemapper.types.v1.Mint + 18, // [18:18] is the sub-list for method output_type + 18, // [18:18] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name } func init() { file_hivemapper_v1_hivemapper_proto_init() } @@ -967,7 +1034,7 @@ func file_hivemapper_v1_hivemapper_proto_init() { } } file_hivemapper_v1_hivemapper_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Transfer); i { + switch v := v.(*RewardPayment); i { case 0: return &v.state case 1: @@ -979,7 +1046,7 @@ func file_hivemapper_v1_hivemapper_proto_init() { } } file_hivemapper_v1_hivemapper_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Mint); i { + switch v := v.(*Transfer); i { case 0: return &v.state case 1: @@ -991,7 +1058,7 @@ func file_hivemapper_v1_hivemapper_proto_init() { } } file_hivemapper_v1_hivemapper_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Burn); i { + switch v := v.(*Mint); i { case 0: return &v.state case 1: @@ -1003,6 +1070,18 @@ func file_hivemapper_v1_hivemapper_proto_init() { } } file_hivemapper_v1_hivemapper_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Burn); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_hivemapper_v1_hivemapper_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*InitializedAccount); i { case 0: return &v.state @@ -1021,7 +1100,7 @@ func file_hivemapper_v1_hivemapper_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_hivemapper_v1_hivemapper_proto_rawDesc, NumEnums: 0, - NumMessages: 11, + NumMessages: 12, NumExtensions: 0, NumServices: 0, }, diff --git a/data/psql.go b/data/psql.go index c167f39..121f486 100644 --- a/data/psql.go +++ b/data/psql.go @@ -374,6 +374,27 @@ func (p *Psql) HandleOperationalPayments(dbBlockID int64, payments []*pb.Operati return nil } +func (p *Psql) HandleRewardPayments(dbBlockID int64, payments []*pb.RewardPayment) error { + for _, payment := range payments { + dbTransactionID, err := p.handleTransaction(dbBlockID, payment.Mint.TrxHash) + if err != nil { + return fmt.Errorf("inserting transaction: %w", err) + } + + mintDbID, err := p.insertMint(dbTransactionID, payment.Mint) + if err != nil { + return fmt.Errorf("inserting mint: %w", err) + } + + _, err = p.tx.Exec("INSERT INTO hivemapper.reward_payments (mint_id) VALUES ($1) RETURNING id", mintDbID) + if err != nil { + return fmt.Errorf("inserting reward_payments: %w", err) + } + } + + return nil +} + func (p *Psql) insertBurns(dbTransactionID int64, burn *pb.Burn) (dbMintID int64, err error) { row := p.tx.QueryRow("INSERT INTO hivemapper.burns (transaction_id, from_address, amount) VALUES ($1, $2, $3) RETURNING id", dbTransactionID, burn.From, burn.Amount) err = row.Err() diff --git a/data/sinker.go b/data/sinker.go index 2d1fbba..431558d 100644 --- a/data/sinker.go +++ b/data/sinker.go @@ -124,6 +124,10 @@ func (s *Sinker) HandleBlockScopedData(ctx context.Context, data *pbsubstreamsrp return fmt.Errorf("handle OperationalPayments: %w", err) } + if err := s.db.HandleRewardPayments(dbBlockID, moduleOutput.RewardPayments); err != nil { + return fmt.Errorf("handle HandleRewardPayments: %w", err) + } + if err := s.db.HandleSplitPayments(dbBlockID, moduleOutput.TokenSplittingPayments); err != nil { return fmt.Errorf("handle split payments: %w", err) } diff --git a/data/sql.go b/data/sql.go index c506bc6..4988718 100644 --- a/data/sql.go +++ b/data/sql.go @@ -78,6 +78,11 @@ CREATE TABLE IF NOT EXISTS hivemapper.operational_payments ( mint_id INTEGER NOT NULL, CONSTRAINT fk_mint FOREIGN KEY (mint_id) REFERENCES hivemapper.mints(id) ); +CREATE TABLE IF NOT EXISTS hivemapper.reward_payments ( + id SERIAL PRIMARY KEY, + mint_id INTEGER NOT NULL, + CONSTRAINT fk_mint FOREIGN KEY (mint_id) REFERENCES hivemapper.mints(id) +); CREATE TABLE IF NOT EXISTS hivemapper.split_payments ( id SERIAL PRIMARY KEY, diff --git a/proto/buf.lock b/proto/buf.lock index 9da9330..6bc8db9 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -4,5 +4,5 @@ deps: - remote: buf.build owner: streamingfast repository: hivemapper - commit: 6f303294dce04f3fa82c264ba12a15ee - digest: shake256:7540108bfdd3a03c5252b0a155d6f1632626641ab8b226518791bd385c6f96c370a383dafecbb2accfa2d0c3b9dd6cbdc4c858569f47dbc0c79bcc374c19eaee + commit: 0acc9cdb55ff4ac9970272514acc3ebc + digest: shake256:2d67b2a28df875fccfdd0c4db36971be72ccbaa4c889932618f9550c2129e3a355f1099bc29c2952e7e83d0dc8afcaa741785f84d1055400b1e045a4da5db332