diff --git a/src/CAServer.Application.Contracts/CAActivity/ActivityConstants.cs b/src/CAServer.Application.Contracts/CAActivity/ActivityConstants.cs index 0ba0a0a89..b326a87d5 100644 --- a/src/CAServer.Application.Contracts/CAActivity/ActivityConstants.cs +++ b/src/CAServer.Application.Contracts/CAActivity/ActivityConstants.cs @@ -13,4 +13,5 @@ public static class ActivityConstants public const string ReceiveName = "Receive"; public const string SendName = "Send"; public const string SwapExactTokensForTokensName = "SwapExactTokensForTokens"; + public const string FreeMintNftName = "MintNft"; } \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Cache/ICacheProvider.cs b/src/CAServer.Application.Contracts/Cache/ICacheProvider.cs index 18f742cbf..c6b030e5a 100644 --- a/src/CAServer.Application.Contracts/Cache/ICacheProvider.cs +++ b/src/CAServer.Application.Contracts/Cache/ICacheProvider.cs @@ -28,4 +28,12 @@ public interface ICacheProvider Task GetSortedSetLengthAsync(string leaderboardKey); + Task SetAddAsync(string key, string value, TimeSpan? timeSpan); + + Task SetMembersAsync(string key); + + + + + } \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Commons/ContractServiceConstant.cs b/src/CAServer.Application.Contracts/Commons/ContractServiceConstant.cs index cdf78db4a..39f2f782d 100644 --- a/src/CAServer.Application.Contracts/Commons/ContractServiceConstant.cs +++ b/src/CAServer.Application.Contracts/Commons/ContractServiceConstant.cs @@ -113,6 +113,20 @@ public static class CommonConstant public const string NftToFtStartVersion = "1.18.0"; public const string ReferralKey = "Portkey:ReferralBank"; + public const string HamsterRankKey = "Portkey:HamsterBank"; + public const string DefaultReferralActivityStartTime = "2024-06-27 00:00:00"; + + public const string SingUp = " created a Portkey account"; + public const string HamsterScore = " collected {0} $ACORNS"; + + + public const int InitTokenId = 10; + public const string FreeMintTokenIdGrainId = "FreeMint-TokenId"; + public const int FreeMintTotalSupply = 1; + public const int FreeMintDecimals = 0; + + public const string PortkeyS3Mark = "did"; + public const string ImS3Mark = "im"; } \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Contracts/FreeMintContract.c.cs b/src/CAServer.Application.Contracts/Contracts/FreeMintContract.c.cs new file mode 100644 index 000000000..33fce8932 --- /dev/null +++ b/src/CAServer.Application.Contracts/Contracts/FreeMintContract.c.cs @@ -0,0 +1,89 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: free_mint_contract.proto +// +// Original file comments: +// the version of the language, use proto3 for contracts +#pragma warning disable 0414, 1591 +#region Designer generated code + +using System.Collections.Generic; +using aelf = global::AElf.CSharp.Core; + +namespace Portkey.FreeMint { + + #region Events + #endregion + public static partial class FreeMintContractContainer + { + static readonly string __ServiceName = "FreeMintContract"; + + #region Marshallers + static readonly aelf::Marshaller __Marshaller_aelf_Address = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Types.Address.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_Empty = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.Empty.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_MintNftInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Portkey.FreeMint.MintNftInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_GetMyContextOutput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Portkey.FreeMint.GetMyContextOutput.Parser.ParseFrom); + #endregion + + #region Methods + static readonly aelf::Method __Method_Initialize = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Initialize", + __Marshaller_aelf_Address, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetManager = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetManager", + __Marshaller_aelf_Address, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_GetManager = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetManager", + __Marshaller_google_protobuf_Empty, + __Marshaller_aelf_Address); + + static readonly aelf::Method __Method_MintNft = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "MintNft", + __Marshaller_MintNftInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_GetMyContextInfo = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetMyContextInfo", + __Marshaller_google_protobuf_Empty, + __Marshaller_GetMyContextOutput); + + #endregion + + #region Descriptors + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::Portkey.FreeMint.FreeMintContractReflection.Descriptor.Services[0]; } + } + + public static global::System.Collections.Generic.IReadOnlyList Descriptors + { + get + { + return new global::System.Collections.Generic.List() + { + global::AElf.Standards.ACS12.Acs12Reflection.Descriptor.Services[0], + global::Portkey.FreeMint.FreeMintContractReflection.Descriptor.Services[0], + }; + } + } + #endregion + + + } +} +#endregion + diff --git a/src/CAServer.Application.Contracts/Contracts/FreeMintContract.g.cs b/src/CAServer.Application.Contracts/Contracts/FreeMintContract.g.cs new file mode 100644 index 000000000..60f7410c4 --- /dev/null +++ b/src/CAServer.Application.Contracts/Contracts/FreeMintContract.g.cs @@ -0,0 +1,1307 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: free_mint_contract.proto +// +#pragma warning disable 1591, 0612, 3021, 8981 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Portkey.FreeMint { + + /// Holder for reflection information generated from free_mint_contract.proto + public static partial class FreeMintContractReflection { + + #region Descriptor + /// File descriptor for free_mint_contract.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static FreeMintContractReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChhmcmVlX21pbnRfY29udHJhY3QucHJvdG8aD2FlbGYvY29yZS5wcm90bxoS", + "YWVsZi9vcHRpb25zLnByb3RvGgthY3MxMi5wcm90bxobZ29vZ2xlL3Byb3Rv", + "YnVmL2VtcHR5LnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnBy", + "b3RvIkkKDFRyYW5zZmVySW5mbxIZCgJ0bxgBIAEoCzINLmFlbGYuQWRkcmVz", + "cxIOCgZzeW1ib2wYAiABKAkSDgoGYW1vdW50GAMgASgDImUKDEV4dGVybmFs", + "SW5mbxInCgV2YWx1ZRgBIAMoCzIYLkV4dGVybmFsSW5mby5WYWx1ZUVudHJ5", + "GiwKClZhbHVlRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4", + "ASLIAQoMTWludE5mdElucHV0Eg4KBnN5bWJvbBgBIAEoCRISCgp0b2tlbl9u", + "YW1lGAIgASgJEhQKDHRvdGFsX3N1cHBseRgDIAEoAxIQCghkZWNpbWFscxgE", + "IAEoBRITCgtpc19idXJuYWJsZRgGIAEoCBIWCg5pc3N1ZV9jaGFpbl9pZBgI", + "IAEoBRIkCg1leHRlcm5hbF9pbmZvGAkgASgLMg0uRXh0ZXJuYWxJbmZvEhkK", + "AnRvGAsgASgLMg0uYWVsZi5BZGRyZXNzIm8KEkdldE15Q29udGV4dE91dHB1", + "dBIdCgZzZW5kZXIYASABKAsyDS5hZWxmLkFkZHJlc3MSGwoEc2VsZhgCIAEo", + "CzINLmFlbGYuQWRkcmVzcxIdCgZvcmlnaW4YAyABKAsyDS5hZWxmLkFkZHJl", + "c3My9QIKEEZyZWVNaW50Q29udHJhY3QSNQoKSW5pdGlhbGl6ZRINLmFlbGYu", + "QWRkcmVzcxoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEjUKClNldE1hbmFn", + "ZXISDS5hZWxmLkFkZHJlc3MaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABI6", + "CgpHZXRNYW5hZ2VyEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Gg0uYWVsZi5B", + "ZGRyZXNzIgWIifcBARIyCgdNaW50TmZ0Eg0uTWludE5mdElucHV0GhYuZ29v", + "Z2xlLnByb3RvYnVmLkVtcHR5IgASRgoQR2V0TXlDb250ZXh0SW5mbxIWLmdv", + "b2dsZS5wcm90b2J1Zi5FbXB0eRoTLkdldE15Q29udGV4dE91dHB1dCIFiIn3", + "AQEaO8rK9gELYWNzMTIucHJvdG+yzPYBJlBvcnRrZXkuRnJlZU1pbnQuRnJl", + "ZU1pbnRDb250cmFjdFN0YXRlQhOqAhBQb3J0a2V5LkZyZWVNaW50YgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.OptionsReflection.Descriptor, global::AElf.Standards.ACS12.Acs12Reflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Portkey.FreeMint.TransferInfo), global::Portkey.FreeMint.TransferInfo.Parser, new[]{ "To", "Symbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Portkey.FreeMint.ExternalInfo), global::Portkey.FreeMint.ExternalInfo.Parser, new[]{ "Value" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Portkey.FreeMint.MintNftInput), global::Portkey.FreeMint.MintNftInput.Parser, new[]{ "Symbol", "TokenName", "TotalSupply", "Decimals", "IsBurnable", "IssueChainId", "ExternalInfo", "To" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Portkey.FreeMint.GetMyContextOutput), global::Portkey.FreeMint.GetMyContextOutput.Parser, new[]{ "Sender", "Self", "Origin" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class TransferInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransferInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Portkey.FreeMint.FreeMintContractReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransferInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransferInfo(TransferInfo other) : this() { + to_ = other.to_ != null ? other.to_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransferInfo Clone() { + return new TransferInfo(this); + } + + /// Field number for the "to" field. + public const int ToFieldNumber = 1; + private global::AElf.Types.Address to_; + /// + /// The receiver of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address To { + get { return to_; } + set { + to_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 2; + private string symbol_ = ""; + /// + /// The token symbol to transfer. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 3; + private long amount_; + /// + /// The amount to to transfer. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransferInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransferInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(To, other.To)) return false; + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (to_ != null) hash ^= To.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (to_ != null) { + output.WriteRawTag(10); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (to_ != null) { + output.WriteRawTag(10); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (to_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransferInfo other) { + if (other == null) { + return; + } + if (other.to_ != null) { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + To.MergeFrom(other.To); + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ExternalInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Portkey.FreeMint.FreeMintContractReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExternalInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExternalInfo(ExternalInfo other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ExternalInfo Clone() { + return new ExternalInfo(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_value_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 10); + private readonly pbc::MapField value_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ExternalInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ExternalInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Value.Equals(other.Value)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= Value.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + value_.WriteTo(output, _map_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _map_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_map_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ExternalInfo other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + value_.AddEntriesFrom(input, _map_value_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _map_value_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class MintNftInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MintNftInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Portkey.FreeMint.FreeMintContractReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MintNftInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MintNftInput(MintNftInput other) : this() { + symbol_ = other.symbol_; + tokenName_ = other.tokenName_; + totalSupply_ = other.totalSupply_; + decimals_ = other.decimals_; + isBurnable_ = other.isBurnable_; + issueChainId_ = other.issueChainId_; + externalInfo_ = other.externalInfo_ != null ? other.externalInfo_.Clone() : null; + to_ = other.to_ != null ? other.to_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MintNftInput Clone() { + return new MintNftInput(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "token_name" field. + public const int TokenNameFieldNumber = 2; + private string tokenName_ = ""; + /// + /// The full name of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TokenName { + get { return tokenName_; } + set { + tokenName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "total_supply" field. + public const int TotalSupplyFieldNumber = 3; + private long totalSupply_; + /// + /// The total supply of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TotalSupply { + get { return totalSupply_; } + set { + totalSupply_ = value; + } + } + + /// Field number for the "decimals" field. + public const int DecimalsFieldNumber = 4; + private int decimals_; + /// + /// The precision of the token + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Decimals { + get { return decimals_; } + set { + decimals_ = value; + } + } + + /// Field number for the "is_burnable" field. + public const int IsBurnableFieldNumber = 6; + private bool isBurnable_; + /// + /// A flag indicating if this token is burnable. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsBurnable { + get { return isBurnable_; } + set { + isBurnable_ = value; + } + } + + /// Field number for the "issue_chain_id" field. + public const int IssueChainIdFieldNumber = 8; + private int issueChainId_; + /// + /// The chain id of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IssueChainId { + get { return issueChainId_; } + set { + issueChainId_ = value; + } + } + + /// Field number for the "external_info" field. + public const int ExternalInfoFieldNumber = 9; + private global::Portkey.FreeMint.ExternalInfo externalInfo_; + /// + /// The external information of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Portkey.FreeMint.ExternalInfo ExternalInfo { + get { return externalInfo_; } + set { + externalInfo_ = value; + } + } + + /// Field number for the "to" field. + public const int ToFieldNumber = 11; + private global::AElf.Types.Address to_; + /// + /// The target address to issue. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address To { + get { return to_; } + set { + to_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MintNftInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MintNftInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (TokenName != other.TokenName) return false; + if (TotalSupply != other.TotalSupply) return false; + if (Decimals != other.Decimals) return false; + if (IsBurnable != other.IsBurnable) return false; + if (IssueChainId != other.IssueChainId) return false; + if (!object.Equals(ExternalInfo, other.ExternalInfo)) return false; + if (!object.Equals(To, other.To)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (TokenName.Length != 0) hash ^= TokenName.GetHashCode(); + if (TotalSupply != 0L) hash ^= TotalSupply.GetHashCode(); + if (Decimals != 0) hash ^= Decimals.GetHashCode(); + if (IsBurnable != false) hash ^= IsBurnable.GetHashCode(); + if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); + if (externalInfo_ != null) hash ^= ExternalInfo.GetHashCode(); + if (to_ != null) hash ^= To.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (TokenName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TokenName); + } + if (TotalSupply != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TotalSupply); + } + if (Decimals != 0) { + output.WriteRawTag(32); + output.WriteInt32(Decimals); + } + if (IsBurnable != false) { + output.WriteRawTag(48); + output.WriteBool(IsBurnable); + } + if (IssueChainId != 0) { + output.WriteRawTag(64); + output.WriteInt32(IssueChainId); + } + if (externalInfo_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ExternalInfo); + } + if (to_ != null) { + output.WriteRawTag(90); + output.WriteMessage(To); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (TokenName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TokenName); + } + if (TotalSupply != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TotalSupply); + } + if (Decimals != 0) { + output.WriteRawTag(32); + output.WriteInt32(Decimals); + } + if (IsBurnable != false) { + output.WriteRawTag(48); + output.WriteBool(IsBurnable); + } + if (IssueChainId != 0) { + output.WriteRawTag(64); + output.WriteInt32(IssueChainId); + } + if (externalInfo_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ExternalInfo); + } + if (to_ != null) { + output.WriteRawTag(90); + output.WriteMessage(To); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (TokenName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenName); + } + if (TotalSupply != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalSupply); + } + if (Decimals != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Decimals); + } + if (IsBurnable != false) { + size += 1 + 1; + } + if (IssueChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId); + } + if (externalInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalInfo); + } + if (to_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MintNftInput other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.TokenName.Length != 0) { + TokenName = other.TokenName; + } + if (other.TotalSupply != 0L) { + TotalSupply = other.TotalSupply; + } + if (other.Decimals != 0) { + Decimals = other.Decimals; + } + if (other.IsBurnable != false) { + IsBurnable = other.IsBurnable; + } + if (other.IssueChainId != 0) { + IssueChainId = other.IssueChainId; + } + if (other.externalInfo_ != null) { + if (externalInfo_ == null) { + ExternalInfo = new global::Portkey.FreeMint.ExternalInfo(); + } + ExternalInfo.MergeFrom(other.ExternalInfo); + } + if (other.to_ != null) { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + To.MergeFrom(other.To); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + TokenName = input.ReadString(); + break; + } + case 24: { + TotalSupply = input.ReadInt64(); + break; + } + case 32: { + Decimals = input.ReadInt32(); + break; + } + case 48: { + IsBurnable = input.ReadBool(); + break; + } + case 64: { + IssueChainId = input.ReadInt32(); + break; + } + case 74: { + if (externalInfo_ == null) { + ExternalInfo = new global::Portkey.FreeMint.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + case 90: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + TokenName = input.ReadString(); + break; + } + case 24: { + TotalSupply = input.ReadInt64(); + break; + } + case 32: { + Decimals = input.ReadInt32(); + break; + } + case 48: { + IsBurnable = input.ReadBool(); + break; + } + case 64: { + IssueChainId = input.ReadInt32(); + break; + } + case 74: { + if (externalInfo_ == null) { + ExternalInfo = new global::Portkey.FreeMint.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + case 90: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetMyContextOutput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetMyContextOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Portkey.FreeMint.FreeMintContractReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMyContextOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMyContextOutput(GetMyContextOutput other) : this() { + sender_ = other.sender_ != null ? other.sender_.Clone() : null; + self_ = other.self_ != null ? other.self_.Clone() : null; + origin_ = other.origin_ != null ? other.origin_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetMyContextOutput Clone() { + return new GetMyContextOutput(this); + } + + /// Field number for the "sender" field. + public const int SenderFieldNumber = 1; + private global::AElf.Types.Address sender_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Sender { + get { return sender_; } + set { + sender_ = value; + } + } + + /// Field number for the "self" field. + public const int SelfFieldNumber = 2; + private global::AElf.Types.Address self_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Self { + get { return self_; } + set { + self_ = value; + } + } + + /// Field number for the "origin" field. + public const int OriginFieldNumber = 3; + private global::AElf.Types.Address origin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Origin { + get { return origin_; } + set { + origin_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetMyContextOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetMyContextOutput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Sender, other.Sender)) return false; + if (!object.Equals(Self, other.Self)) return false; + if (!object.Equals(Origin, other.Origin)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (sender_ != null) hash ^= Sender.GetHashCode(); + if (self_ != null) hash ^= Self.GetHashCode(); + if (origin_ != null) hash ^= Origin.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (sender_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Sender); + } + if (self_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Self); + } + if (origin_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Origin); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (sender_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Sender); + } + if (self_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Self); + } + if (origin_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Origin); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (sender_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sender); + } + if (self_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Self); + } + if (origin_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetMyContextOutput other) { + if (other == null) { + return; + } + if (other.sender_ != null) { + if (sender_ == null) { + Sender = new global::AElf.Types.Address(); + } + Sender.MergeFrom(other.Sender); + } + if (other.self_ != null) { + if (self_ == null) { + Self = new global::AElf.Types.Address(); + } + Self.MergeFrom(other.Self); + } + if (other.origin_ != null) { + if (origin_ == null) { + Origin = new global::AElf.Types.Address(); + } + Origin.MergeFrom(other.Origin); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (sender_ == null) { + Sender = new global::AElf.Types.Address(); + } + input.ReadMessage(Sender); + break; + } + case 18: { + if (self_ == null) { + Self = new global::AElf.Types.Address(); + } + input.ReadMessage(Self); + break; + } + case 26: { + if (origin_ == null) { + Origin = new global::AElf.Types.Address(); + } + input.ReadMessage(Origin); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (sender_ == null) { + Sender = new global::AElf.Types.Address(); + } + input.ReadMessage(Sender); + break; + } + case 18: { + if (self_ == null) { + Self = new global::AElf.Types.Address(); + } + input.ReadMessage(Self); + break; + } + case 26: { + if (origin_ == null) { + Origin = new global::AElf.Types.Address(); + } + input.ReadMessage(Origin); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/CAServer.Application.Contracts/Contracts/TokenContract.c.cs b/src/CAServer.Application.Contracts/Contracts/TokenContract.c.cs index 27b05d478..9a34bb799 100644 --- a/src/CAServer.Application.Contracts/Contracts/TokenContract.c.cs +++ b/src/CAServer.Application.Contracts/Contracts/TokenContract.c.cs @@ -200,6 +200,8 @@ public RentalCharged GetNonIndexed() { Symbol = Symbol, Amount = Amount, + Payer = Payer, + Receiver = Receiver, }; } } @@ -244,6 +246,7 @@ public TokenCreated GetNonIndexed() IsBurnable = IsBurnable, IssueChainId = IssueChainId, ExternalInfo = ExternalInfo, + Owner = Owner, }; } } @@ -319,21 +322,110 @@ public CrossChainReceived GetNonIndexed() } } - public partial class ExternalInfoChanged : aelf::IEvent + public partial class TransactionFeeDelegationAdded : aelf::IEvent { - public global::System.Collections.Generic.IEnumerable GetIndexed() + public global::System.Collections.Generic.IEnumerable GetIndexed() { - return new List + return new List { + new TransactionFeeDelegationAdded + { + Delegator = Delegator + }, + new TransactionFeeDelegationAdded + { + Delegatee = Delegatee + }, + new TransactionFeeDelegationAdded + { + Caller = Caller + }, }; } - public ExternalInfoChanged GetNonIndexed() + public TransactionFeeDelegationAdded GetNonIndexed() { - return new ExternalInfoChanged + return new TransactionFeeDelegationAdded + { + }; + } + } + + public partial class TransactionFeeDelegationCancelled : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + new TransactionFeeDelegationCancelled + { + Delegator = Delegator + }, + new TransactionFeeDelegationCancelled + { + Delegatee = Delegatee + }, + new TransactionFeeDelegationCancelled + { + Caller = Caller + }, + }; + } + + public TransactionFeeDelegationCancelled GetNonIndexed() + { + return new TransactionFeeDelegationCancelled + { + }; + } + } + + public partial class SymbolAliasAdded : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + new SymbolAliasAdded + { + Symbol = Symbol + }, + new SymbolAliasAdded + { + Alias = Alias + }, + }; + } + + public SymbolAliasAdded GetNonIndexed() + { + return new SymbolAliasAdded + { + }; + } + } + + public partial class SymbolAliasDeleted : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + new SymbolAliasDeleted + { + Symbol = Symbol + }, + new SymbolAliasDeleted + { + Alias = Alias + }, + }; + } + + public SymbolAliasDeleted GetNonIndexed() + { + return new SymbolAliasDeleted { - Symbol = Symbol, - ExternalInfo = ExternalInfo, }; } } diff --git a/src/CAServer.Application.Contracts/Contracts/TokenContract.g.cs b/src/CAServer.Application.Contracts/Contracts/TokenContract.g.cs index 0d5595eec..b18dc5eb2 100644 --- a/src/CAServer.Application.Contracts/Contracts/TokenContract.g.cs +++ b/src/CAServer.Application.Contracts/Contracts/TokenContract.g.cs @@ -2,7 +2,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: token_contract.proto // -#pragma warning disable 1591, 0612, 3021 +#pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; @@ -26,253 +26,312 @@ static TokenContractReflection() { string.Concat( "ChR0b2tlbl9jb250cmFjdC5wcm90bxIFdG9rZW4aD2FlbGYvY29yZS5wcm90", "bxoSYWVsZi9vcHRpb25zLnByb3RvGhtnb29nbGUvcHJvdG9idWYvZW1wdHku", - "cHJvdG8aHmdvb2dsZS9wcm90b2J1Zi93cmFwcGVycy5wcm90byLvAQoJVG9r", + "cHJvdG8aHmdvb2dsZS9wcm90b2J1Zi93cmFwcGVycy5wcm90byKNAgoJVG9r", "ZW5JbmZvEg4KBnN5bWJvbBgBIAEoCRISCgp0b2tlbl9uYW1lGAIgASgJEg4K", "BnN1cHBseRgDIAEoAxIUCgx0b3RhbF9zdXBwbHkYBCABKAMSEAoIZGVjaW1h", "bHMYBSABKAUSHQoGaXNzdWVyGAYgASgLMg0uYWVsZi5BZGRyZXNzEhMKC2lz", "X2J1cm5hYmxlGAcgASgIEhYKDmlzc3VlX2NoYWluX2lkGAggASgFEg4KBmlz", "c3VlZBgJIAEoAxIqCg1leHRlcm5hbF9pbmZvGAogASgLMhMudG9rZW4uRXh0", - "ZXJuYWxJbmZvImsKDEV4dGVybmFsSW5mbxItCgV2YWx1ZRgBIAMoCzIeLnRv", - "a2VuLkV4dGVybmFsSW5mby5WYWx1ZUVudHJ5GiwKClZhbHVlRW50cnkSCwoD", - "a2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASL5AQoLQ3JlYXRlSW5wdXQS", - "DgoGc3ltYm9sGAEgASgJEhIKCnRva2VuX25hbWUYAiABKAkSFAoMdG90YWxf", - "c3VwcGx5GAMgASgDEhAKCGRlY2ltYWxzGAQgASgFEh0KBmlzc3VlchgFIAEo", - "CzINLmFlbGYuQWRkcmVzcxITCgtpc19idXJuYWJsZRgGIAEoCBImCg9sb2Nr", - "X3doaXRlX2xpc3QYByADKAsyDS5hZWxmLkFkZHJlc3MSFgoOaXNzdWVfY2hh", - "aW5faWQYCCABKAUSKgoNZXh0ZXJuYWxfaW5mbxgJIAEoCzITLnRva2VuLkV4", - "dGVybmFsSW5mbyIsChpTZXRQcmltYXJ5VG9rZW5TeW1ib2xJbnB1dBIOCgZz", - "eW1ib2wYASABKAkiVQoKSXNzdWVJbnB1dBIOCgZzeW1ib2wYASABKAkSDgoG", - "YW1vdW50GAIgASgDEgwKBG1lbW8YAyABKAkSGQoCdG8YBCABKAsyDS5hZWxm", - "LkFkZHJlc3MiWAoNVHJhbnNmZXJJbnB1dBIZCgJ0bxgBIAEoCzINLmFlbGYu", - "QWRkcmVzcxIOCgZzeW1ib2wYAiABKAkSDgoGYW1vdW50GAMgASgDEgwKBG1l", - "bW8YBCABKAkidwoJTG9ja0lucHV0Eh4KB2FkZHJlc3MYASABKAsyDS5hZWxm", - "LkFkZHJlc3MSGwoHbG9ja19pZBgCIAEoCzIKLmFlbGYuSGFzaBIOCgZzeW1i", - "b2wYAyABKAkSDQoFdXNhZ2UYBCABKAkSDgoGYW1vdW50GAUgASgDInkKC1Vu", - "bG9ja0lucHV0Eh4KB2FkZHJlc3MYASABKAsyDS5hZWxmLkFkZHJlc3MSGwoH", - "bG9ja19pZBgCIAEoCzIKLmFlbGYuSGFzaBIOCgZzeW1ib2wYAyABKAkSDQoF", - "dXNhZ2UYBCABKAkSDgoGYW1vdW50GAUgASgDInkKEVRyYW5zZmVyRnJvbUlu", - "cHV0EhsKBGZyb20YASABKAsyDS5hZWxmLkFkZHJlc3MSGQoCdG8YAiABKAsy", - "DS5hZWxmLkFkZHJlc3MSDgoGc3ltYm9sGAMgASgJEg4KBmFtb3VudBgEIAEo", - "AxIMCgRtZW1vGAUgASgJIk4KDEFwcHJvdmVJbnB1dBIeCgdzcGVuZGVyGAEg", - "ASgLMg0uYWVsZi5BZGRyZXNzEg4KBnN5bWJvbBgCIAEoCRIOCgZhbW91bnQY", - "AyABKAMiUAoOVW5BcHByb3ZlSW5wdXQSHgoHc3BlbmRlchgBIAEoCzINLmFl", - "bGYuQWRkcmVzcxIOCgZzeW1ib2wYAiABKAkSDgoGYW1vdW50GAMgASgDIisK", - "CUJ1cm5JbnB1dBIOCgZzeW1ib2wYASABKAkSDgoGYW1vdW50GAIgASgDIqkB", - "ChhDaGFyZ2VSZXNvdXJjZVRva2VuSW5wdXQSPgoIY29zdF9kaWMYASADKAsy", - "LC50b2tlbi5DaGFyZ2VSZXNvdXJjZVRva2VuSW5wdXQuQ29zdERpY0VudHJ5", - "Eh0KBmNhbGxlchgCIAEoCzINLmFlbGYuQWRkcmVzcxouCgxDb3N0RGljRW50", - "cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgDOgI4ASJ+ChJUcmFuc2Fj", - "dGlvbkZlZUJpbGwSOAoIZmVlc19tYXAYASADKAsyJi50b2tlbi5UcmFuc2Fj", - "dGlvbkZlZUJpbGwuRmVlc01hcEVudHJ5Gi4KDEZlZXNNYXBFbnRyeRILCgNr", - "ZXkYASABKAkSDQoFdmFsdWUYAiABKAM6AjgBItoBChNDaGVja1RocmVzaG9s", - "ZElucHV0Eh0KBnNlbmRlchgBIAEoCzINLmFlbGYuQWRkcmVzcxJOChNzeW1i", - "b2xfdG9fdGhyZXNob2xkGAIgAygLMjEudG9rZW4uQ2hlY2tUaHJlc2hvbGRJ", - "bnB1dC5TeW1ib2xUb1RocmVzaG9sZEVudHJ5EhoKEmlzX2NoZWNrX2FsbG93", - "YW5jZRgDIAEoCBo4ChZTeW1ib2xUb1RocmVzaG9sZEVudHJ5EgsKA2tleRgB", - "IAEoCRINCgV2YWx1ZRgCIAEoAzoCOAEiIwoRR2V0VG9rZW5JbmZvSW5wdXQS", - "DgoGc3ltYm9sGAEgASgJIj8KD0dldEJhbGFuY2VJbnB1dBIOCgZzeW1ib2wY", - "ASABKAkSHAoFb3duZXIYAiABKAsyDS5hZWxmLkFkZHJlc3MiUQoQR2V0QmFs", - "YW5jZU91dHB1dBIOCgZzeW1ib2wYASABKAkSHAoFb3duZXIYAiABKAsyDS5h", - "ZWxmLkFkZHJlc3MSDwoHYmFsYW5jZRgDIAEoAyJhChFHZXRBbGxvd2FuY2VJ", - "bnB1dBIOCgZzeW1ib2wYASABKAkSHAoFb3duZXIYAiABKAsyDS5hZWxmLkFk", - "ZHJlc3MSHgoHc3BlbmRlchgDIAEoCzINLmFlbGYuQWRkcmVzcyJ1ChJHZXRB", - "bGxvd2FuY2VPdXRwdXQSDgoGc3ltYm9sGAEgASgJEhwKBW93bmVyGAIgASgL", - "Mg0uYWVsZi5BZGRyZXNzEh4KB3NwZW5kZXIYAyABKAsyDS5hZWxmLkFkZHJl", - "c3MSEQoJYWxsb3dhbmNlGAQgASgDIo8BChdDcm9zc0NoYWluVHJhbnNmZXJJ", - "bnB1dBIZCgJ0bxgBIAEoCzINLmFlbGYuQWRkcmVzcxIOCgZzeW1ib2wYAiAB", - "KAkSDgoGYW1vdW50GAMgASgDEgwKBG1lbW8YBCABKAkSEwoLdG9fY2hhaW5f", - "aWQYBSABKAUSFgoOaXNzdWVfY2hhaW5faWQYBiABKAUinAEKG0Nyb3NzQ2hh", - "aW5SZWNlaXZlVG9rZW5JbnB1dBIVCg1mcm9tX2NoYWluX2lkGAEgASgFEhsK", - "E3BhcmVudF9jaGFpbl9oZWlnaHQYAiABKAMSIgoadHJhbnNmZXJfdHJhbnNh", - "Y3Rpb25fYnl0ZXMYAyABKAwSJQoLbWVya2xlX3BhdGgYBCABKAsyEC5hZWxm", - "Lk1lcmtsZVBhdGgiRAoSSXNJbldoaXRlTGlzdElucHV0Eg4KBnN5bWJvbBgB", - "IAEoCRIeCgdhZGRyZXNzGAIgASgLMg0uYWVsZi5BZGRyZXNzImMKFFN5bWJv", - "bFRvUGF5VHhTaXplRmVlEhQKDHRva2VuX3N5bWJvbBgBIAEoCRIZChFiYXNl", - "X3Rva2VuX3dlaWdodBgCIAEoBRIaChJhZGRlZF90b2tlbl93ZWlnaHQYAyAB", - "KAUiWwoYU3ltYm9sTGlzdFRvUGF5VHhTaXplRmVlEj8KGnN5bWJvbHNfdG9f", - "cGF5X3R4X3NpemVfZmVlGAEgAygLMhsudG9rZW4uU3ltYm9sVG9QYXlUeFNp", - "emVGZWUiuQEKGkNoYXJnZVRyYW5zYWN0aW9uRmVlc0lucHV0EhMKC21ldGhv", - "ZF9uYW1lGAEgASgJEicKEGNvbnRyYWN0X2FkZHJlc3MYAiABKAsyDS5hZWxm", - "LkFkZHJlc3MSHAoUdHJhbnNhY3Rpb25fc2l6ZV9mZWUYAyABKAMSPwoac3lt", - "Ym9sc190b19wYXlfdHhfc2l6ZV9mZWUYBCADKAsyGy50b2tlbi5TeW1ib2xU", - "b1BheVR4U2l6ZUZlZSJMChtDaGFyZ2VUcmFuc2FjdGlvbkZlZXNPdXRwdXQS", - "DwoHc3VjY2VzcxgBIAEoCBIcChRjaGFyZ2luZ19pbmZvcm1hdGlvbhgCIAEo", - "CSJMCgxDYWxsYmFja0luZm8SJwoQY29udHJhY3RfYWRkcmVzcxgBIAEoCzIN", - "LmFlbGYuQWRkcmVzcxITCgttZXRob2RfbmFtZRgCIAEoCSJnChZFeHRyYVRv", - "a2VuTGlzdE1vZGlmaWVkEkcKHnN5bWJvbF9saXN0X3RvX3BheV90eF9zaXpl", - "X2ZlZRgBIAEoCzIfLnRva2VuLlN5bWJvbExpc3RUb1BheVR4U2l6ZUZlZToE", - "oLsYASJjChRHZXRMb2NrZWRBbW91bnRJbnB1dBIeCgdhZGRyZXNzGAEgASgL", - "Mg0uYWVsZi5BZGRyZXNzEg4KBnN5bWJvbBgCIAEoCRIbCgdsb2NrX2lkGAMg", - "ASgLMgouYWVsZi5IYXNoInQKFUdldExvY2tlZEFtb3VudE91dHB1dBIeCgdh", - "ZGRyZXNzGAEgASgLMg0uYWVsZi5BZGRyZXNzEg4KBnN5bWJvbBgCIAEoCRIb", - "Cgdsb2NrX2lkGAMgASgLMgouYWVsZi5IYXNoEg4KBmFtb3VudBgEIAEoAyIw", - "Cg1Ub2tlbkluZm9MaXN0Eh8KBXZhbHVlGAEgAygLMhAudG9rZW4uVG9rZW5J", - "bmZvIkEKLkdldENyb3NzQ2hhaW5UcmFuc2ZlclRva2VuQ29udHJhY3RBZGRy", - "ZXNzSW5wdXQSDwoHY2hhaW5JZBgBIAEoBSKSAQoaQ3Jvc3NDaGFpbkNyZWF0", - "ZVRva2VuSW5wdXQSFQoNZnJvbV9jaGFpbl9pZBgBIAEoBRIbChNwYXJlbnRf", - "Y2hhaW5faGVpZ2h0GAIgASgDEhkKEXRyYW5zYWN0aW9uX2J5dGVzGAMgASgM", - "EiUKC21lcmtsZV9wYXRoGAQgASgLMhAuYWVsZi5NZXJrbGVQYXRoIq4DCh5J", - "bml0aWFsaXplRnJvbVBhcmVudENoYWluSW5wdXQSUgoPcmVzb3VyY2VfYW1v", - "dW50GAEgAygLMjkudG9rZW4uSW5pdGlhbGl6ZUZyb21QYXJlbnRDaGFpbklu", - "cHV0LlJlc291cmNlQW1vdW50RW50cnkSgwEKKXJlZ2lzdGVyZWRfb3RoZXJf", - "dG9rZW5fY29udHJhY3RfYWRkcmVzc2VzGAIgAygLMlAudG9rZW4uSW5pdGlh", - "bGl6ZUZyb21QYXJlbnRDaGFpbklucHV0LlJlZ2lzdGVyZWRPdGhlclRva2Vu", - "Q29udHJhY3RBZGRyZXNzZXNFbnRyeRIeCgdjcmVhdG9yGAMgASgLMg0uYWVs", - "Zi5BZGRyZXNzGjUKE1Jlc291cmNlQW1vdW50RW50cnkSCwoDa2V5GAEgASgJ", - "Eg0KBXZhbHVlGAIgASgFOgI4ARpbCipSZWdpc3RlcmVkT3RoZXJUb2tlbkNv", - "bnRyYWN0QWRkcmVzc2VzRW50cnkSCwoDa2V5GAEgASgFEhwKBXZhbHVlGAIg", - "ASgLMg0uYWVsZi5BZGRyZXNzOgI4ASJnChdVcGRhdGVDb2VmZmljaWVudHNJ", - "bnB1dBIVCg1waWVjZV9udW1iZXJzGAEgAygFEjUKDGNvZWZmaWNpZW50cxgC", - "IAEoCzIfLnRva2VuLkNhbGN1bGF0ZUZlZUNvZWZmaWNpZW50cyIuCh1DYWxj", - "dWxhdGVGZWVQaWVjZUNvZWZmaWNpZW50cxINCgV2YWx1ZRgBIAMoBSJ5ChhD", - "YWxjdWxhdGVGZWVDb2VmZmljaWVudHMSFgoOZmVlX3Rva2VuX3R5cGUYASAB", - "KAUSRQoXcGllY2VfY29lZmZpY2llbnRzX2xpc3QYAiADKAsyJC50b2tlbi5D", - "YWxjdWxhdGVGZWVQaWVjZUNvZWZmaWNpZW50cyJNChtBbGxDYWxjdWxhdGVG", - "ZWVDb2VmZmljaWVudHMSLgoFdmFsdWUYASADKAsyHy50b2tlbi5DYWxjdWxh", - "dGVGZWVDb2VmZmljaWVudHMitwEKF1RvdGFsVHJhbnNhY3Rpb25GZWVzTWFw", - "EjgKBXZhbHVlGAEgAygLMikudG9rZW4uVG90YWxUcmFuc2FjdGlvbkZlZXNN", - "YXAuVmFsdWVFbnRyeRIeCgpibG9ja19oYXNoGAIgASgLMgouYWVsZi5IYXNo", - "EhQKDGJsb2NrX2hlaWdodBgDIAEoAxosCgpWYWx1ZUVudHJ5EgsKA2tleRgB", - "IAEoCRINCgV2YWx1ZRgCIAEoAzoCOAEiggEKF1RvdGFsUmVzb3VyY2VUb2tl", - "bnNNYXBzEjEKBXZhbHVlGAEgAygLMiIudG9rZW4uQ29udHJhY3RUb3RhbFJl", - "c291cmNlVG9rZW5zEh4KCmJsb2NrX2hhc2gYAiABKAsyCi5hZWxmLkhhc2gS", - "FAoMYmxvY2tfaGVpZ2h0GAMgASgDInkKG0NvbnRyYWN0VG90YWxSZXNvdXJj", - "ZVRva2VucxInChBjb250cmFjdF9hZGRyZXNzGAEgASgLMg0uYWVsZi5BZGRy", - "ZXNzEjEKCnRva2Vuc19tYXAYAiABKAsyHS50b2tlbi5Ub3RhbFJlc291cmNl", - "VG9rZW5zTWFwIn8KFlRvdGFsUmVzb3VyY2VUb2tlbnNNYXASNwoFdmFsdWUY", - "ASADKAsyKC50b2tlbi5Ub3RhbFJlc291cmNlVG9rZW5zTWFwLlZhbHVlRW50", - "cnkaLAoKVmFsdWVFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAM6", - "AjgBIlEKFkNoYW5nZVRva2VuSXNzdWVySW5wdXQSDgoGc3ltYm9sGAEgASgJ", - "EicKEG5ld190b2tlbl9Jc3N1ZXIYAiABKAsyDS5hZWxmLkFkZHJlc3MiVAoW", - "UmVzZXRFeHRlcm5hbEluZm9JbnB1dBIOCgZzeW1ib2wYASABKAkSKgoNZXh0", - "ZXJuYWxfaW5mbxgCIAEoCzITLnRva2VuLkV4dGVybmFsSW5mbyIbCgpTdHJp", - "bmdMaXN0Eg0KBXZhbHVlGAEgAygJIo4BCgtUcmFuc2ZlcnJlZBIiCgRmcm9t", - "GAEgASgLMg0uYWVsZi5BZGRyZXNzQgWIj/UBARIgCgJ0bxgCIAEoCzINLmFl", - "bGYuQWRkcmVzc0IFiI/1AQESFQoGc3ltYm9sGAMgASgJQgWIj/UBARIOCgZh", - "bW91bnQYBCABKAMSDAoEbWVtbxgFIAEoCToEoLsYASKDAQoIQXBwcm92ZWQS", - "IwoFb3duZXIYASABKAsyDS5hZWxmLkFkZHJlc3NCBYiP9QEBEiUKB3NwZW5k", - "ZXIYAiABKAsyDS5hZWxmLkFkZHJlc3NCBYiP9QEBEhUKBnN5bWJvbBgDIAEo", - "CUIFiI/1AQESDgoGYW1vdW50GAQgASgDOgSguxgBIoUBCgpVbkFwcHJvdmVk", + "ZXJuYWxJbmZvEhwKBW93bmVyGAsgASgLMg0uYWVsZi5BZGRyZXNzImsKDEV4", + "dGVybmFsSW5mbxItCgV2YWx1ZRgBIAMoCzIeLnRva2VuLkV4dGVybmFsSW5m", + "by5WYWx1ZUVudHJ5GiwKClZhbHVlRW50cnkSCwoDa2V5GAEgASgJEg0KBXZh", + "bHVlGAIgASgJOgI4ASKXAgoLQ3JlYXRlSW5wdXQSDgoGc3ltYm9sGAEgASgJ", + "EhIKCnRva2VuX25hbWUYAiABKAkSFAoMdG90YWxfc3VwcGx5GAMgASgDEhAK", + "CGRlY2ltYWxzGAQgASgFEh0KBmlzc3VlchgFIAEoCzINLmFlbGYuQWRkcmVz", + "cxITCgtpc19idXJuYWJsZRgGIAEoCBImCg9sb2NrX3doaXRlX2xpc3QYByAD", + "KAsyDS5hZWxmLkFkZHJlc3MSFgoOaXNzdWVfY2hhaW5faWQYCCABKAUSKgoN", + "ZXh0ZXJuYWxfaW5mbxgJIAEoCzITLnRva2VuLkV4dGVybmFsSW5mbxIcCgVv", + "d25lchgKIAEoCzINLmFlbGYuQWRkcmVzcyIsChpTZXRQcmltYXJ5VG9rZW5T", + "eW1ib2xJbnB1dBIOCgZzeW1ib2wYASABKAkiVQoKSXNzdWVJbnB1dBIOCgZz", + "eW1ib2wYASABKAkSDgoGYW1vdW50GAIgASgDEgwKBG1lbW8YAyABKAkSGQoC", + "dG8YBCABKAsyDS5hZWxmLkFkZHJlc3MiWAoNVHJhbnNmZXJJbnB1dBIZCgJ0", + "bxgBIAEoCzINLmFlbGYuQWRkcmVzcxIOCgZzeW1ib2wYAiABKAkSDgoGYW1v", + "dW50GAMgASgDEgwKBG1lbW8YBCABKAkidwoJTG9ja0lucHV0Eh4KB2FkZHJl", + "c3MYASABKAsyDS5hZWxmLkFkZHJlc3MSGwoHbG9ja19pZBgCIAEoCzIKLmFl", + "bGYuSGFzaBIOCgZzeW1ib2wYAyABKAkSDQoFdXNhZ2UYBCABKAkSDgoGYW1v", + "dW50GAUgASgDInkKC1VubG9ja0lucHV0Eh4KB2FkZHJlc3MYASABKAsyDS5h", + "ZWxmLkFkZHJlc3MSGwoHbG9ja19pZBgCIAEoCzIKLmFlbGYuSGFzaBIOCgZz", + "eW1ib2wYAyABKAkSDQoFdXNhZ2UYBCABKAkSDgoGYW1vdW50GAUgASgDInkK", + "EVRyYW5zZmVyRnJvbUlucHV0EhsKBGZyb20YASABKAsyDS5hZWxmLkFkZHJl", + "c3MSGQoCdG8YAiABKAsyDS5hZWxmLkFkZHJlc3MSDgoGc3ltYm9sGAMgASgJ", + "Eg4KBmFtb3VudBgEIAEoAxIMCgRtZW1vGAUgASgJIk4KDEFwcHJvdmVJbnB1", + "dBIeCgdzcGVuZGVyGAEgASgLMg0uYWVsZi5BZGRyZXNzEg4KBnN5bWJvbBgC", + "IAEoCRIOCgZhbW91bnQYAyABKAMiNwoRQmF0Y2hBcHByb3ZlSW5wdXQSIgoF", + "dmFsdWUYASADKAsyEy50b2tlbi5BcHByb3ZlSW5wdXQiUAoOVW5BcHByb3Zl", + "SW5wdXQSHgoHc3BlbmRlchgBIAEoCzINLmFlbGYuQWRkcmVzcxIOCgZzeW1i", + "b2wYAiABKAkSDgoGYW1vdW50GAMgASgDIisKCUJ1cm5JbnB1dBIOCgZzeW1i", + "b2wYASABKAkSDgoGYW1vdW50GAIgASgDIqkBChhDaGFyZ2VSZXNvdXJjZVRv", + "a2VuSW5wdXQSPgoIY29zdF9kaWMYASADKAsyLC50b2tlbi5DaGFyZ2VSZXNv", + "dXJjZVRva2VuSW5wdXQuQ29zdERpY0VudHJ5Eh0KBmNhbGxlchgCIAEoCzIN", + "LmFlbGYuQWRkcmVzcxouCgxDb3N0RGljRW50cnkSCwoDa2V5GAEgASgJEg0K", + "BXZhbHVlGAIgASgDOgI4ASJ+ChJUcmFuc2FjdGlvbkZlZUJpbGwSOAoIZmVl", + "c19tYXAYASADKAsyJi50b2tlbi5UcmFuc2FjdGlvbkZlZUJpbGwuRmVlc01h", + "cEVudHJ5Gi4KDEZlZXNNYXBFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUY", + "AiABKAM6AjgBIsEBCh9UcmFuc2FjdGlvbkZyZWVGZWVBbGxvd2FuY2VCaWxs", + "EmEKF2ZyZWVfZmVlX2FsbG93YW5jZXNfbWFwGAEgAygLMkAudG9rZW4uVHJh", + "bnNhY3Rpb25GcmVlRmVlQWxsb3dhbmNlQmlsbC5GcmVlRmVlQWxsb3dhbmNl", + "c01hcEVudHJ5GjsKGUZyZWVGZWVBbGxvd2FuY2VzTWFwRW50cnkSCwoDa2V5", + "GAEgASgJEg0KBXZhbHVlGAIgASgDOgI4ASLaAQoTQ2hlY2tUaHJlc2hvbGRJ", + "bnB1dBIdCgZzZW5kZXIYASABKAsyDS5hZWxmLkFkZHJlc3MSTgoTc3ltYm9s", + "X3RvX3RocmVzaG9sZBgCIAMoCzIxLnRva2VuLkNoZWNrVGhyZXNob2xkSW5w", + "dXQuU3ltYm9sVG9UaHJlc2hvbGRFbnRyeRIaChJpc19jaGVja19hbGxvd2Fu", + "Y2UYAyABKAgaOAoWU3ltYm9sVG9UaHJlc2hvbGRFbnRyeRILCgNrZXkYASAB", + "KAkSDQoFdmFsdWUYAiABKAM6AjgBIiMKEUdldFRva2VuSW5mb0lucHV0Eg4K", + "BnN5bWJvbBgBIAEoCSI/Cg9HZXRCYWxhbmNlSW5wdXQSDgoGc3ltYm9sGAEg", + "ASgJEhwKBW93bmVyGAIgASgLMg0uYWVsZi5BZGRyZXNzIlEKEEdldEJhbGFu", + "Y2VPdXRwdXQSDgoGc3ltYm9sGAEgASgJEhwKBW93bmVyGAIgASgLMg0uYWVs", + "Zi5BZGRyZXNzEg8KB2JhbGFuY2UYAyABKAMiYQoRR2V0QWxsb3dhbmNlSW5w", + "dXQSDgoGc3ltYm9sGAEgASgJEhwKBW93bmVyGAIgASgLMg0uYWVsZi5BZGRy", + "ZXNzEh4KB3NwZW5kZXIYAyABKAsyDS5hZWxmLkFkZHJlc3MidQoSR2V0QWxs", + "b3dhbmNlT3V0cHV0Eg4KBnN5bWJvbBgBIAEoCRIcCgVvd25lchgCIAEoCzIN", + "LmFlbGYuQWRkcmVzcxIeCgdzcGVuZGVyGAMgASgLMg0uYWVsZi5BZGRyZXNz", + "EhEKCWFsbG93YW5jZRgEIAEoAyKPAQoXQ3Jvc3NDaGFpblRyYW5zZmVySW5w", + "dXQSGQoCdG8YASABKAsyDS5hZWxmLkFkZHJlc3MSDgoGc3ltYm9sGAIgASgJ", + "Eg4KBmFtb3VudBgDIAEoAxIMCgRtZW1vGAQgASgJEhMKC3RvX2NoYWluX2lk", + "GAUgASgFEhYKDmlzc3VlX2NoYWluX2lkGAYgASgFIpwBChtDcm9zc0NoYWlu", + "UmVjZWl2ZVRva2VuSW5wdXQSFQoNZnJvbV9jaGFpbl9pZBgBIAEoBRIbChNw", + "YXJlbnRfY2hhaW5faGVpZ2h0GAIgASgDEiIKGnRyYW5zZmVyX3RyYW5zYWN0", + "aW9uX2J5dGVzGAMgASgMEiUKC21lcmtsZV9wYXRoGAQgASgLMhAuYWVsZi5N", + "ZXJrbGVQYXRoIkQKEklzSW5XaGl0ZUxpc3RJbnB1dBIOCgZzeW1ib2wYASAB", + "KAkSHgoHYWRkcmVzcxgCIAEoCzINLmFlbGYuQWRkcmVzcyJjChRTeW1ib2xU", + "b1BheVR4U2l6ZUZlZRIUCgx0b2tlbl9zeW1ib2wYASABKAkSGQoRYmFzZV90", + "b2tlbl93ZWlnaHQYAiABKAUSGgoSYWRkZWRfdG9rZW5fd2VpZ2h0GAMgASgF", + "IlsKGFN5bWJvbExpc3RUb1BheVR4U2l6ZUZlZRI/ChpzeW1ib2xzX3RvX3Bh", + "eV90eF9zaXplX2ZlZRgBIAMoCzIbLnRva2VuLlN5bWJvbFRvUGF5VHhTaXpl", + "RmVlIrkBChpDaGFyZ2VUcmFuc2FjdGlvbkZlZXNJbnB1dBITCgttZXRob2Rf", + "bmFtZRgBIAEoCRInChBjb250cmFjdF9hZGRyZXNzGAIgASgLMg0uYWVsZi5B", + "ZGRyZXNzEhwKFHRyYW5zYWN0aW9uX3NpemVfZmVlGAMgASgDEj8KGnN5bWJv", + "bHNfdG9fcGF5X3R4X3NpemVfZmVlGAQgAygLMhsudG9rZW4uU3ltYm9sVG9Q", + "YXlUeFNpemVGZWUiTAobQ2hhcmdlVHJhbnNhY3Rpb25GZWVzT3V0cHV0Eg8K", + "B3N1Y2Nlc3MYASABKAgSHAoUY2hhcmdpbmdfaW5mb3JtYXRpb24YAiABKAki", + "TAoMQ2FsbGJhY2tJbmZvEicKEGNvbnRyYWN0X2FkZHJlc3MYASABKAsyDS5h", + "ZWxmLkFkZHJlc3MSEwoLbWV0aG9kX25hbWUYAiABKAkiZwoWRXh0cmFUb2tl", + "bkxpc3RNb2RpZmllZBJHCh5zeW1ib2xfbGlzdF90b19wYXlfdHhfc2l6ZV9m", + "ZWUYASABKAsyHy50b2tlbi5TeW1ib2xMaXN0VG9QYXlUeFNpemVGZWU6BKC7", + "GAEiYwoUR2V0TG9ja2VkQW1vdW50SW5wdXQSHgoHYWRkcmVzcxgBIAEoCzIN", + "LmFlbGYuQWRkcmVzcxIOCgZzeW1ib2wYAiABKAkSGwoHbG9ja19pZBgDIAEo", + "CzIKLmFlbGYuSGFzaCJ0ChVHZXRMb2NrZWRBbW91bnRPdXRwdXQSHgoHYWRk", + "cmVzcxgBIAEoCzINLmFlbGYuQWRkcmVzcxIOCgZzeW1ib2wYAiABKAkSGwoH", + "bG9ja19pZBgDIAEoCzIKLmFlbGYuSGFzaBIOCgZhbW91bnQYBCABKAMiMAoN", + "VG9rZW5JbmZvTGlzdBIfCgV2YWx1ZRgBIAMoCzIQLnRva2VuLlRva2VuSW5m", + "byJBCi5HZXRDcm9zc0NoYWluVHJhbnNmZXJUb2tlbkNvbnRyYWN0QWRkcmVz", + "c0lucHV0Eg8KB2NoYWluSWQYASABKAUikgEKGkNyb3NzQ2hhaW5DcmVhdGVU", + "b2tlbklucHV0EhUKDWZyb21fY2hhaW5faWQYASABKAUSGwoTcGFyZW50X2No", + "YWluX2hlaWdodBgCIAEoAxIZChF0cmFuc2FjdGlvbl9ieXRlcxgDIAEoDBIl", + "CgttZXJrbGVfcGF0aBgEIAEoCzIQLmFlbGYuTWVya2xlUGF0aCKuAwoeSW5p", + "dGlhbGl6ZUZyb21QYXJlbnRDaGFpbklucHV0ElIKD3Jlc291cmNlX2Ftb3Vu", + "dBgBIAMoCzI5LnRva2VuLkluaXRpYWxpemVGcm9tUGFyZW50Q2hhaW5JbnB1", + "dC5SZXNvdXJjZUFtb3VudEVudHJ5EoMBCilyZWdpc3RlcmVkX290aGVyX3Rv", + "a2VuX2NvbnRyYWN0X2FkZHJlc3NlcxgCIAMoCzJQLnRva2VuLkluaXRpYWxp", + "emVGcm9tUGFyZW50Q2hhaW5JbnB1dC5SZWdpc3RlcmVkT3RoZXJUb2tlbkNv", + "bnRyYWN0QWRkcmVzc2VzRW50cnkSHgoHY3JlYXRvchgDIAEoCzINLmFlbGYu", + "QWRkcmVzcxo1ChNSZXNvdXJjZUFtb3VudEVudHJ5EgsKA2tleRgBIAEoCRIN", + "CgV2YWx1ZRgCIAEoBToCOAEaWwoqUmVnaXN0ZXJlZE90aGVyVG9rZW5Db250", + "cmFjdEFkZHJlc3Nlc0VudHJ5EgsKA2tleRgBIAEoBRIcCgV2YWx1ZRgCIAEo", + "CzINLmFlbGYuQWRkcmVzczoCOAEiZwoXVXBkYXRlQ29lZmZpY2llbnRzSW5w", + "dXQSFQoNcGllY2VfbnVtYmVycxgBIAMoBRI1Cgxjb2VmZmljaWVudHMYAiAB", + "KAsyHy50b2tlbi5DYWxjdWxhdGVGZWVDb2VmZmljaWVudHMiLgodQ2FsY3Vs", + "YXRlRmVlUGllY2VDb2VmZmljaWVudHMSDQoFdmFsdWUYASADKAUieQoYQ2Fs", + "Y3VsYXRlRmVlQ29lZmZpY2llbnRzEhYKDmZlZV90b2tlbl90eXBlGAEgASgF", + "EkUKF3BpZWNlX2NvZWZmaWNpZW50c19saXN0GAIgAygLMiQudG9rZW4uQ2Fs", + "Y3VsYXRlRmVlUGllY2VDb2VmZmljaWVudHMiTQobQWxsQ2FsY3VsYXRlRmVl", + "Q29lZmZpY2llbnRzEi4KBXZhbHVlGAEgAygLMh8udG9rZW4uQ2FsY3VsYXRl", + "RmVlQ29lZmZpY2llbnRzIrcBChdUb3RhbFRyYW5zYWN0aW9uRmVlc01hcBI4", + "CgV2YWx1ZRgBIAMoCzIpLnRva2VuLlRvdGFsVHJhbnNhY3Rpb25GZWVzTWFw", + "LlZhbHVlRW50cnkSHgoKYmxvY2tfaGFzaBgCIAEoCzIKLmFlbGYuSGFzaBIU", + "CgxibG9ja19oZWlnaHQYAyABKAMaLAoKVmFsdWVFbnRyeRILCgNrZXkYASAB", + "KAkSDQoFdmFsdWUYAiABKAM6AjgBIoIBChdUb3RhbFJlc291cmNlVG9rZW5z", + "TWFwcxIxCgV2YWx1ZRgBIAMoCzIiLnRva2VuLkNvbnRyYWN0VG90YWxSZXNv", + "dXJjZVRva2VucxIeCgpibG9ja19oYXNoGAIgASgLMgouYWVsZi5IYXNoEhQK", + "DGJsb2NrX2hlaWdodBgDIAEoAyJ5ChtDb250cmFjdFRvdGFsUmVzb3VyY2VU", + "b2tlbnMSJwoQY29udHJhY3RfYWRkcmVzcxgBIAEoCzINLmFlbGYuQWRkcmVz", + "cxIxCgp0b2tlbnNfbWFwGAIgASgLMh0udG9rZW4uVG90YWxSZXNvdXJjZVRv", + "a2Vuc01hcCJ/ChZUb3RhbFJlc291cmNlVG9rZW5zTWFwEjcKBXZhbHVlGAEg", + "AygLMigudG9rZW4uVG90YWxSZXNvdXJjZVRva2Vuc01hcC5WYWx1ZUVudHJ5", + "GiwKClZhbHVlRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgDOgI4", + "ASIbCgpTdHJpbmdMaXN0Eg0KBXZhbHVlGAEgAygJIsoBChlUcmFuc2FjdGlv", + "bkZlZURlbGVnYXRpb25zEkYKC2RlbGVnYXRpb25zGAEgAygLMjEudG9rZW4u", + "VHJhbnNhY3Rpb25GZWVEZWxlZ2F0aW9ucy5EZWxlZ2F0aW9uc0VudHJ5EhQK", + "DGJsb2NrX2hlaWdodBgCIAEoAxIbChNpc1VubGltaXRlZERlbGVnYXRlGAMg", + "ASgIGjIKEERlbGVnYXRpb25zRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVl", + "GAIgASgDOgI4ASK0AQoYVHJhbnNhY3Rpb25GZWVEZWxlZ2F0ZWVzEkMKCmRl", + "bGVnYXRlZXMYASADKAsyLy50b2tlbi5UcmFuc2FjdGlvbkZlZURlbGVnYXRl", + "ZXMuRGVsZWdhdGVlc0VudHJ5GlMKD0RlbGVnYXRlZXNFbnRyeRILCgNrZXkY", + "ASABKAkSLwoFdmFsdWUYAiABKAsyIC50b2tlbi5UcmFuc2FjdGlvbkZlZURl", + "bGVnYXRpb25zOgI4ASLRAQohU2V0VHJhbnNhY3Rpb25GZWVEZWxlZ2F0aW9u", + "c0lucHV0EigKEWRlbGVnYXRvcl9hZGRyZXNzGAEgASgLMg0uYWVsZi5BZGRy", + "ZXNzEk4KC2RlbGVnYXRpb25zGAIgAygLMjkudG9rZW4uU2V0VHJhbnNhY3Rp", + "b25GZWVEZWxlZ2F0aW9uc0lucHV0LkRlbGVnYXRpb25zRW50cnkaMgoQRGVs", + "ZWdhdGlvbnNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAM6AjgB", + "IjUKIlNldFRyYW5zYWN0aW9uRmVlRGVsZWdhdGlvbnNPdXRwdXQSDwoHc3Vj", + "Y2VzcxgBIAEoCCJOCiJSZW1vdmVUcmFuc2FjdGlvbkZlZURlbGVnYXRvcklu", + "cHV0EigKEWRlbGVnYXRvcl9hZGRyZXNzGAEgASgLMg0uYWVsZi5BZGRyZXNz", + "Ik4KIlJlbW92ZVRyYW5zYWN0aW9uRmVlRGVsZWdhdGVlSW5wdXQSKAoRZGVs", + "ZWdhdGVlX2FkZHJlc3MYASABKAsyDS5hZWxmLkFkZHJlc3MigwEKLUdldFRy", + "YW5zYWN0aW9uRmVlRGVsZWdhdGlvbnNPZkFEZWxlZ2F0ZWVJbnB1dBIoChFk", + "ZWxlZ2F0ZWVfYWRkcmVzcxgBIAEoCzINLmFlbGYuQWRkcmVzcxIoChFkZWxl", + "Z2F0b3JfYWRkcmVzcxgCIAEoCzINLmFlbGYuQWRkcmVzcyJMCiBHZXRUcmFu", + "c2FjdGlvbkZlZURlbGVnYXRlZXNJbnB1dBIoChFkZWxlZ2F0b3JfYWRkcmVz", + "cxgBIAEoCzINLmFlbGYuQWRkcmVzcyJPCiFHZXRUcmFuc2FjdGlvbkZlZURl", + "bGVnYXRlZXNPdXRwdXQSKgoTZGVsZWdhdGVlX2FkZHJlc3NlcxgBIAMoCzIN", + "LmFlbGYuQWRkcmVzcyI0ChNTZXRTeW1ib2xBbGlhc0lucHV0Eg4KBnN5bWJv", + "bBgBIAEoCRINCgVhbGlhcxgCIAEoCSKOAQoLVHJhbnNmZXJyZWQSIgoEZnJv", + "bRgBIAEoCzINLmFlbGYuQWRkcmVzc0IFiI/1AQESIAoCdG8YAiABKAsyDS5h", + "ZWxmLkFkZHJlc3NCBYiP9QEBEhUKBnN5bWJvbBgDIAEoCUIFiI/1AQESDgoG", + "YW1vdW50GAQgASgDEgwKBG1lbW8YBSABKAk6BKC7GAEigwEKCEFwcHJvdmVk", "EiMKBW93bmVyGAEgASgLMg0uYWVsZi5BZGRyZXNzQgWIj/UBARIlCgdzcGVu", "ZGVyGAIgASgLMg0uYWVsZi5BZGRyZXNzQgWIj/UBARIVCgZzeW1ib2wYAyAB", - "KAlCBYiP9QEBEg4KBmFtb3VudBgEIAEoAzoEoLsYASJbCgZCdXJuZWQSJAoG", - "YnVybmVyGAEgASgLMg0uYWVsZi5BZGRyZXNzQgWIj/UBARIVCgZzeW1ib2wY", - "AiABKAlCBYiP9QEBEg4KBmFtb3VudBgDIAEoAzoEoLsYASI4ChpDaGFpblBy", - "aW1hcnlUb2tlblN5bWJvbFNldBIUCgx0b2tlbl9zeW1ib2wYASABKAk6BKC7", - "GAEiawocQ2FsY3VsYXRlRmVlQWxnb3JpdGhtVXBkYXRlZBJFChlhbGxfdHlw", - "ZV9mZWVfY29lZmZpY2llbnRzGAEgASgLMiIudG9rZW4uQWxsQ2FsY3VsYXRl", - "RmVlQ29lZmZpY2llbnRzOgSguxgBIjUKDVJlbnRhbENoYXJnZWQSDgoGc3lt", - "Ym9sGAEgASgJEg4KBmFtb3VudBgCIAEoAzoEoLsYASJICiBSZW50YWxBY2Nv", - "dW50QmFsYW5jZUluc3VmZmljaWVudBIOCgZzeW1ib2wYASABKAkSDgoGYW1v", - "dW50GAIgASgDOgSguxgBItgBCgxUb2tlbkNyZWF0ZWQSDgoGc3ltYm9sGAEg", - "ASgJEhIKCnRva2VuX25hbWUYAiABKAkSFAoMdG90YWxfc3VwcGx5GAMgASgD", - "EhAKCGRlY2ltYWxzGAQgASgFEh0KBmlzc3VlchgFIAEoCzINLmFlbGYuQWRk", - "cmVzcxITCgtpc19idXJuYWJsZRgGIAEoCBIWCg5pc3N1ZV9jaGFpbl9pZBgH", - "IAEoBRIqCg1leHRlcm5hbF9pbmZvGAggASgLMhMudG9rZW4uRXh0ZXJuYWxJ", - "bmZvOgSguxgBIlcKBklzc3VlZBIOCgZzeW1ib2wYASABKAkSDgoGYW1vdW50", - "GAIgASgDEgwKBG1lbW8YAyABKAkSGQoCdG8YBCABKAsyDS5hZWxmLkFkZHJl", - "c3M6BKC7GAEisAEKFUNyb3NzQ2hhaW5UcmFuc2ZlcnJlZBIbCgRmcm9tGAEg", + "KAlCBYiP9QEBEg4KBmFtb3VudBgEIAEoAzoEoLsYASKFAQoKVW5BcHByb3Zl", + "ZBIjCgVvd25lchgBIAEoCzINLmFlbGYuQWRkcmVzc0IFiI/1AQESJQoHc3Bl", + "bmRlchgCIAEoCzINLmFlbGYuQWRkcmVzc0IFiI/1AQESFQoGc3ltYm9sGAMg", + "ASgJQgWIj/UBARIOCgZhbW91bnQYBCABKAM6BKC7GAEiWwoGQnVybmVkEiQK", + "BmJ1cm5lchgBIAEoCzINLmFlbGYuQWRkcmVzc0IFiI/1AQESFQoGc3ltYm9s", + "GAIgASgJQgWIj/UBARIOCgZhbW91bnQYAyABKAM6BKC7GAEiOAoaQ2hhaW5Q", + "cmltYXJ5VG9rZW5TeW1ib2xTZXQSFAoMdG9rZW5fc3ltYm9sGAEgASgJOgSg", + "uxgBImsKHENhbGN1bGF0ZUZlZUFsZ29yaXRobVVwZGF0ZWQSRQoZYWxsX3R5", + "cGVfZmVlX2NvZWZmaWNpZW50cxgBIAEoCzIiLnRva2VuLkFsbENhbGN1bGF0", + "ZUZlZUNvZWZmaWNpZW50czoEoLsYASJ0Cg1SZW50YWxDaGFyZ2VkEg4KBnN5", + "bWJvbBgBIAEoCRIOCgZhbW91bnQYAiABKAMSHAoFcGF5ZXIYAyABKAsyDS5h", + "ZWxmLkFkZHJlc3MSHwoIcmVjZWl2ZXIYBCABKAsyDS5hZWxmLkFkZHJlc3M6", + "BKC7GAEiSAogUmVudGFsQWNjb3VudEJhbGFuY2VJbnN1ZmZpY2llbnQSDgoG", + "c3ltYm9sGAEgASgJEg4KBmFtb3VudBgCIAEoAzoEoLsYASL2AQoMVG9rZW5D", + "cmVhdGVkEg4KBnN5bWJvbBgBIAEoCRISCgp0b2tlbl9uYW1lGAIgASgJEhQK", + "DHRvdGFsX3N1cHBseRgDIAEoAxIQCghkZWNpbWFscxgEIAEoBRIdCgZpc3N1", + "ZXIYBSABKAsyDS5hZWxmLkFkZHJlc3MSEwoLaXNfYnVybmFibGUYBiABKAgS", + "FgoOaXNzdWVfY2hhaW5faWQYByABKAUSKgoNZXh0ZXJuYWxfaW5mbxgIIAEo", + "CzITLnRva2VuLkV4dGVybmFsSW5mbxIcCgVvd25lchgJIAEoCzINLmFlbGYu", + "QWRkcmVzczoEoLsYASJXCgZJc3N1ZWQSDgoGc3ltYm9sGAEgASgJEg4KBmFt", + "b3VudBgCIAEoAxIMCgRtZW1vGAMgASgJEhkKAnRvGAQgASgLMg0uYWVsZi5B", + "ZGRyZXNzOgSguxgBIrABChVDcm9zc0NoYWluVHJhbnNmZXJyZWQSGwoEZnJv", + "bRgBIAEoCzINLmFlbGYuQWRkcmVzcxIZCgJ0bxgCIAEoCzINLmFlbGYuQWRk", + "cmVzcxIOCgZzeW1ib2wYAyABKAkSDgoGYW1vdW50GAQgASgDEgwKBG1lbW8Y", + "BSABKAkSEwoLdG9fY2hhaW5faWQYBiABKAUSFgoOaXNzdWVfY2hhaW5faWQY", + "ByABKAU6BKC7GAEi+QEKEkNyb3NzQ2hhaW5SZWNlaXZlZBIbCgRmcm9tGAEg", "ASgLMg0uYWVsZi5BZGRyZXNzEhkKAnRvGAIgASgLMg0uYWVsZi5BZGRyZXNz", "Eg4KBnN5bWJvbBgDIAEoCRIOCgZhbW91bnQYBCABKAMSDAoEbWVtbxgFIAEo", - "CRITCgt0b19jaGFpbl9pZBgGIAEoBRIWCg5pc3N1ZV9jaGFpbl9pZBgHIAEo", - "BToEoLsYASL5AQoSQ3Jvc3NDaGFpblJlY2VpdmVkEhsKBGZyb20YASABKAsy", - "DS5hZWxmLkFkZHJlc3MSGQoCdG8YAiABKAsyDS5hZWxmLkFkZHJlc3MSDgoG", - "c3ltYm9sGAMgASgJEg4KBmFtb3VudBgEIAEoAxIMCgRtZW1vGAUgASgJEhUK", - "DWZyb21fY2hhaW5faWQYBiABKAUSFgoOaXNzdWVfY2hhaW5faWQYByABKAUS", - "GwoTcGFyZW50X2NoYWluX2hlaWdodBgIIAEoAxIrChd0cmFuc2Zlcl90cmFu", - "c2FjdGlvbl9pZBgJIAEoCzIKLmFlbGYuSGFzaDoEoLsYASJXChNFeHRlcm5h", - "bEluZm9DaGFuZ2VkEg4KBnN5bWJvbBgBIAEoCRIqCg1leHRlcm5hbF9pbmZv", - "GAIgASgLMhMudG9rZW4uRXh0ZXJuYWxJbmZvOgSguxgBKkQKC0ZlZVR5cGVF", - "bnVtEggKBFJFQUQQABILCgdTVE9SQUdFEAESCQoFV1JJVEUQAhILCgdUUkFG", - "RklDEAMSBgoCVFgQBDLKHAoNVG9rZW5Db250cmFjdBI2CgZDcmVhdGUSEi50", - "b2tlbi5DcmVhdGVJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEjQK", - "BUlzc3VlEhEudG9rZW4uSXNzdWVJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5F", - "bXB0eSIAEjoKCFRyYW5zZmVyEhQudG9rZW4uVHJhbnNmZXJJbnB1dBoWLmdv", - "b2dsZS5wcm90b2J1Zi5FbXB0eSIAEkIKDFRyYW5zZmVyRnJvbRIYLnRva2Vu", - "LlRyYW5zZmVyRnJvbUlucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgAS", - "OAoHQXBwcm92ZRITLnRva2VuLkFwcHJvdmVJbnB1dBoWLmdvb2dsZS5wcm90", - "b2J1Zi5FbXB0eSIAEjwKCVVuQXBwcm92ZRIVLnRva2VuLlVuQXBwcm92ZUlu", - "cHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASMgoETG9jaxIQLnRva2Vu", - "LkxvY2tJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEjYKBlVubG9j", - "axISLnRva2VuLlVubG9ja0lucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5", - "IgASMgoEQnVybhIQLnRva2VuLkJ1cm5JbnB1dBoWLmdvb2dsZS5wcm90b2J1", - "Zi5FbXB0eSIAEkwKEUNoYW5nZVRva2VuSXNzdWVyEh0udG9rZW4uQ2hhbmdl", - "VG9rZW5Jc3N1ZXJJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElQK", - "FVNldFByaW1hcnlUb2tlblN5bWJvbBIhLnRva2VuLlNldFByaW1hcnlUb2tl", - "blN5bWJvbElucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASTgoSQ3Jv", - "c3NDaGFpblRyYW5zZmVyEh4udG9rZW4uQ3Jvc3NDaGFpblRyYW5zZmVySW5w", - "dXQaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJWChZDcm9zc0NoYWluUmVj", - "ZWl2ZVRva2VuEiIudG9rZW4uQ3Jvc3NDaGFpblJlY2VpdmVUb2tlbklucHV0", - "GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASVAoVQ3Jvc3NDaGFpbkNyZWF0", - "ZVRva2VuEiEudG9rZW4uQ3Jvc3NDaGFpbkNyZWF0ZVRva2VuSW5wdXQaFi5n", - "b29nbGUucHJvdG9idWYuRW1wdHkiABJcChlJbml0aWFsaXplRnJvbVBhcmVu", - "dENoYWluEiUudG9rZW4uSW5pdGlhbGl6ZUZyb21QYXJlbnRDaGFpbklucHV0", - "GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASUAoUQ2xhaW1UcmFuc2FjdGlv", - "bkZlZXMSHi50b2tlbi5Ub3RhbFRyYW5zYWN0aW9uRmVlc01hcBoWLmdvb2ds", - "ZS5wcm90b2J1Zi5FbXB0eSIAEmAKFUNoYXJnZVRyYW5zYWN0aW9uRmVlcxIh", - "LnRva2VuLkNoYXJnZVRyYW5zYWN0aW9uRmVlc0lucHV0GiIudG9rZW4uQ2hh", - "cmdlVHJhbnNhY3Rpb25GZWVzT3V0cHV0IgASRgoOQ2hlY2tUaHJlc2hvbGQS", - "Gi50b2tlbi5DaGVja1RocmVzaG9sZElucHV0GhYuZ29vZ2xlLnByb3RvYnVm", - "LkVtcHR5IgASRwoTSW5pdGlhbENvZWZmaWNpZW50cxIWLmdvb2dsZS5wcm90", - "b2J1Zi5FbXB0eRoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEk8KE0RvbmF0", - "ZVJlc291cmNlVG9rZW4SHi50b2tlbi5Ub3RhbFJlc291cmNlVG9rZW5zTWFw", - "cxoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElAKE0NoYXJnZVJlc291cmNl", - "VG9rZW4SHy50b2tlbi5DaGFyZ2VSZXNvdXJjZVRva2VuSW5wdXQaFi5nb29n", - "bGUucHJvdG9idWYuRW1wdHkiABJGChJDaGVja1Jlc291cmNlVG9rZW4SFi5n", - "b29nbGUucHJvdG9idWYuRW1wdHkaFi5nb29nbGUucHJvdG9idWYuRW1wdHki", - "ABJVChhTZXRTeW1ib2xzVG9QYXlUeFNpemVGZWUSHy50b2tlbi5TeW1ib2xM", - "aXN0VG9QYXlUeFNpemVGZWUaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJX", - "ChtVcGRhdGVDb2VmZmljaWVudHNGb3JTZW5kZXISHi50b2tlbi5VcGRhdGVD", - "b2VmZmljaWVudHNJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElkK", - "HVVwZGF0ZUNvZWZmaWNpZW50c0ZvckNvbnRyYWN0Eh4udG9rZW4uVXBkYXRl", - "Q29lZmZpY2llbnRzSW5wdXQaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJS", - "Ch5Jbml0aWFsaXplQXV0aG9yaXplZENvbnRyb2xsZXISFi5nb29nbGUucHJv", - "dG9idWYuRW1wdHkaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJMChFSZXNl", - "dEV4dGVybmFsSW5mbxIdLnRva2VuLlJlc2V0RXh0ZXJuYWxJbmZvSW5wdXQa", + "CRIVCg1mcm9tX2NoYWluX2lkGAYgASgFEhYKDmlzc3VlX2NoYWluX2lkGAcg", + "ASgFEhsKE3BhcmVudF9jaGFpbl9oZWlnaHQYCCABKAMSKwoXdHJhbnNmZXJf", + "dHJhbnNhY3Rpb25faWQYCSABKAsyCi5hZWxmLkhhc2g6BKC7GAEinQEKHVRy", + "YW5zYWN0aW9uRmVlRGVsZWdhdGlvbkFkZGVkEicKCWRlbGVnYXRvchgBIAEo", + "CzINLmFlbGYuQWRkcmVzc0IFiI/1AQESJwoJZGVsZWdhdGVlGAIgASgLMg0u", + "YWVsZi5BZGRyZXNzQgWIj/UBARIkCgZjYWxsZXIYAyABKAsyDS5hZWxmLkFk", + "ZHJlc3NCBYiP9QEBOgSguxgBIqEBCiFUcmFuc2FjdGlvbkZlZURlbGVnYXRp", + "b25DYW5jZWxsZWQSJwoJZGVsZWdhdG9yGAEgASgLMg0uYWVsZi5BZGRyZXNz", + "QgWIj/UBARInCglkZWxlZ2F0ZWUYAiABKAsyDS5hZWxmLkFkZHJlc3NCBYiP", + "9QEBEiQKBmNhbGxlchgDIAEoCzINLmFlbGYuQWRkcmVzc0IFiI/1AQE6BKC7", + "GAEiRQoQU3ltYm9sQWxpYXNBZGRlZBIVCgZzeW1ib2wYASABKAlCBYiP9QEB", + "EhQKBWFsaWFzGAIgASgJQgWIj/UBAToEoLsYASJHChJTeW1ib2xBbGlhc0Rl", + "bGV0ZWQSFQoGc3ltYm9sGAEgASgJQgWIj/UBARIUCgVhbGlhcxgCIAEoCUIF", + "iI/1AQE6BKC7GAEqRAoLRmVlVHlwZUVudW0SCAoEUkVBRBAAEgsKB1NUT1JB", + "R0UQARIJCgVXUklURRACEgsKB1RSQUZGSUMQAxIGCgJUWBAEMqIjCg1Ub2tl", + "bkNvbnRyYWN0EjYKBkNyZWF0ZRISLnRva2VuLkNyZWF0ZUlucHV0GhYuZ29v", + "Z2xlLnByb3RvYnVmLkVtcHR5IgASNAoFSXNzdWUSES50b2tlbi5Jc3N1ZUlu", + "cHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASOgoIVHJhbnNmZXISFC50", + "b2tlbi5UcmFuc2ZlcklucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgAS", + "QgoMVHJhbnNmZXJGcm9tEhgudG9rZW4uVHJhbnNmZXJGcm9tSW5wdXQaFi5n", + "b29nbGUucHJvdG9idWYuRW1wdHkiABI4CgdBcHByb3ZlEhMudG9rZW4uQXBw", + "cm92ZUlucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASQgoMQmF0Y2hB", + "cHByb3ZlEhgudG9rZW4uQmF0Y2hBcHByb3ZlSW5wdXQaFi5nb29nbGUucHJv", + "dG9idWYuRW1wdHkiABI8CglVbkFwcHJvdmUSFS50b2tlbi5VbkFwcHJvdmVJ", + "bnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEjIKBExvY2sSEC50b2tl", + "bi5Mb2NrSW5wdXQaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABI2CgZVbmxv", + "Y2sSEi50b2tlbi5VbmxvY2tJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0", + "eSIAEjIKBEJ1cm4SEC50b2tlbi5CdXJuSW5wdXQaFi5nb29nbGUucHJvdG9i", + "dWYuRW1wdHkiABJUChVTZXRQcmltYXJ5VG9rZW5TeW1ib2wSIS50b2tlbi5T", + "ZXRQcmltYXJ5VG9rZW5TeW1ib2xJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5F", + "bXB0eSIAEk4KEkNyb3NzQ2hhaW5UcmFuc2ZlchIeLnRva2VuLkNyb3NzQ2hh", + "aW5UcmFuc2ZlcklucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASVgoW", + "Q3Jvc3NDaGFpblJlY2VpdmVUb2tlbhIiLnRva2VuLkNyb3NzQ2hhaW5SZWNl", + "aXZlVG9rZW5JbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElQKFUNy", + "b3NzQ2hhaW5DcmVhdGVUb2tlbhIhLnRva2VuLkNyb3NzQ2hhaW5DcmVhdGVU", + "b2tlbklucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASXAoZSW5pdGlh", + "bGl6ZUZyb21QYXJlbnRDaGFpbhIlLnRva2VuLkluaXRpYWxpemVGcm9tUGFy", + "ZW50Q2hhaW5JbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElAKFENs", + "YWltVHJhbnNhY3Rpb25GZWVzEh4udG9rZW4uVG90YWxUcmFuc2FjdGlvbkZl", + "ZXNNYXAaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJgChVDaGFyZ2VUcmFu", + "c2FjdGlvbkZlZXMSIS50b2tlbi5DaGFyZ2VUcmFuc2FjdGlvbkZlZXNJbnB1", + "dBoiLnRva2VuLkNoYXJnZVRyYW5zYWN0aW9uRmVlc091dHB1dCIAEmwKIUNo", + "YXJnZVVzZXJDb250cmFjdFRyYW5zYWN0aW9uRmVlcxIhLnRva2VuLkNoYXJn", + "ZVRyYW5zYWN0aW9uRmVlc0lucHV0GiIudG9rZW4uQ2hhcmdlVHJhbnNhY3Rp", + "b25GZWVzT3V0cHV0IgASRgoOQ2hlY2tUaHJlc2hvbGQSGi50b2tlbi5DaGVj", + "a1RocmVzaG9sZElucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASRwoT", + "SW5pdGlhbENvZWZmaWNpZW50cxIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoW", + "Lmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEk8KE0RvbmF0ZVJlc291cmNlVG9r", + "ZW4SHi50b2tlbi5Ub3RhbFJlc291cmNlVG9rZW5zTWFwcxoWLmdvb2dsZS5w", + "cm90b2J1Zi5FbXB0eSIAElAKE0NoYXJnZVJlc291cmNlVG9rZW4SHy50b2tl", + "bi5DaGFyZ2VSZXNvdXJjZVRva2VuSW5wdXQaFi5nb29nbGUucHJvdG9idWYu", + "RW1wdHkiABJGChJDaGVja1Jlc291cmNlVG9rZW4SFi5nb29nbGUucHJvdG9i", + "dWYuRW1wdHkaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJVChhTZXRTeW1i", + "b2xzVG9QYXlUeFNpemVGZWUSHy50b2tlbi5TeW1ib2xMaXN0VG9QYXlUeFNp", + "emVGZWUaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJXChtVcGRhdGVDb2Vm", + "ZmljaWVudHNGb3JTZW5kZXISHi50b2tlbi5VcGRhdGVDb2VmZmljaWVudHNJ", + "bnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElkKHVVwZGF0ZUNvZWZm", + "aWNpZW50c0ZvckNvbnRyYWN0Eh4udG9rZW4uVXBkYXRlQ29lZmZpY2llbnRz", + "SW5wdXQaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJSCh5Jbml0aWFsaXpl", + "QXV0aG9yaXplZENvbnRyb2xsZXISFi5nb29nbGUucHJvdG9idWYuRW1wdHka", "Fi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJLCiBBZGRBZGRyZXNzVG9DcmVh", "dGVUb2tlbldoaXRlTGlzdBINLmFlbGYuQWRkcmVzcxoWLmdvb2dsZS5wcm90", "b2J1Zi5FbXB0eSIAElAKJVJlbW92ZUFkZHJlc3NGcm9tQ3JlYXRlVG9rZW5X", "aGl0ZUxpc3QSDS5hZWxmLkFkZHJlc3MaFi5nb29nbGUucHJvdG9idWYuRW1w", - "dHkiABJBCgxHZXRUb2tlbkluZm8SGC50b2tlbi5HZXRUb2tlbkluZm9JbnB1", - "dBoQLnRva2VuLlRva2VuSW5mbyIFiIn3AQESRQoSR2V0TmF0aXZlVG9rZW5J", - "bmZvEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GhAudG9rZW4uVG9rZW5JbmZv", - "IgWIifcBARJLChRHZXRSZXNvdXJjZVRva2VuSW5mbxIWLmdvb2dsZS5wcm90", - "b2J1Zi5FbXB0eRoULnRva2VuLlRva2VuSW5mb0xpc3QiBYiJ9wEBEkQKCkdl", - "dEJhbGFuY2USFi50b2tlbi5HZXRCYWxhbmNlSW5wdXQaFy50b2tlbi5HZXRC", - "YWxhbmNlT3V0cHV0IgWIifcBARJKCgxHZXRBbGxvd2FuY2USGC50b2tlbi5H", - "ZXRBbGxvd2FuY2VJbnB1dBoZLnRva2VuLkdldEFsbG93YW5jZU91dHB1dCIF", - "iIn3AQESTQoNSXNJbldoaXRlTGlzdBIZLnRva2VuLklzSW5XaGl0ZUxpc3RJ", - "bnB1dBoaLmdvb2dsZS5wcm90b2J1Zi5Cb29sVmFsdWUiBYiJ9wEBElMKD0dl", - "dExvY2tlZEFtb3VudBIbLnRva2VuLkdldExvY2tlZEFtb3VudElucHV0Ghwu", - "dG9rZW4uR2V0TG9ja2VkQW1vdW50T3V0cHV0IgWIifcBARJ4CilHZXRDcm9z", - "c0NoYWluVHJhbnNmZXJUb2tlbkNvbnRyYWN0QWRkcmVzcxI1LnRva2VuLkdl", - "dENyb3NzQ2hhaW5UcmFuc2ZlclRva2VuQ29udHJhY3RBZGRyZXNzSW5wdXQa", - "DS5hZWxmLkFkZHJlc3MiBYiJ9wEBElQKFUdldFByaW1hcnlUb2tlblN5bWJv", - "bBIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRocLmdvb2dsZS5wcm90b2J1Zi5T", - "dHJpbmdWYWx1ZSIFiIn3AQESbQomR2V0Q2FsY3VsYXRlRmVlQ29lZmZpY2ll", - "bnRzRm9yQ29udHJhY3QSGy5nb29nbGUucHJvdG9idWYuSW50MzJWYWx1ZRof", - "LnRva2VuLkNhbGN1bGF0ZUZlZUNvZWZmaWNpZW50cyIFiIn3AQESZgokR2V0", - "Q2FsY3VsYXRlRmVlQ29lZmZpY2llbnRzRm9yU2VuZGVyEhYuZ29vZ2xlLnBy", - "b3RvYnVmLkVtcHR5Gh8udG9rZW4uQ2FsY3VsYXRlRmVlQ29lZmZpY2llbnRz", - "IgWIifcBARJaChhHZXRTeW1ib2xzVG9QYXlUeFNpemVGZWUSFi5nb29nbGUu", - "cHJvdG9idWYuRW1wdHkaHy50b2tlbi5TeW1ib2xMaXN0VG9QYXlUeFNpemVG", - "ZWUiBYiJ9wEBElEKJEdldExhdGVzdFRvdGFsVHJhbnNhY3Rpb25GZWVzTWFw", - "SGFzaBIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoKLmFlbGYuSGFzaCIFiIn3", - "AQESUQokR2V0TGF0ZXN0VG90YWxSZXNvdXJjZVRva2Vuc01hcHNIYXNoEhYu", - "Z29vZ2xlLnByb3RvYnVmLkVtcHR5GgouYWVsZi5IYXNoIgWIifcBARJfChxJ", - "c1Rva2VuQXZhaWxhYmxlRm9yTWV0aG9kRmVlEhwuZ29vZ2xlLnByb3RvYnVm", - "LlN0cmluZ1ZhbHVlGhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZSIFiIn3", - "AQESTAoYSXNJbkNyZWF0ZVRva2VuV2hpdGVMaXN0Eg0uYWVsZi5BZGRyZXNz", - "GhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZSIFiIn3AQESUgoeR2V0UmVz", - "ZXJ2ZWRFeHRlcm5hbEluZm9LZXlMaXN0EhYuZ29vZ2xlLnByb3RvYnVmLkVt", - "cHR5GhEudG9rZW4uU3RyaW5nTGlzdCIFiIn3AQFCHKoCGUFFbGYuQ29udHJh", - "Y3RzLk11bHRpVG9rZW5iBnByb3RvMw==")); + "dHkiABJ1ChxTZXRUcmFuc2FjdGlvbkZlZURlbGVnYXRpb25zEigudG9rZW4u", + "U2V0VHJhbnNhY3Rpb25GZWVEZWxlZ2F0aW9uc0lucHV0GikudG9rZW4uU2V0", + "VHJhbnNhY3Rpb25GZWVEZWxlZ2F0aW9uc091dHB1dCIAEmQKHVJlbW92ZVRy", + "YW5zYWN0aW9uRmVlRGVsZWdhdG9yEikudG9rZW4uUmVtb3ZlVHJhbnNhY3Rp", + "b25GZWVEZWxlZ2F0b3JJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIA", + "EmQKHVJlbW92ZVRyYW5zYWN0aW9uRmVlRGVsZWdhdGVlEikudG9rZW4uUmVt", + "b3ZlVHJhbnNhY3Rpb25GZWVEZWxlZ2F0ZWVJbnB1dBoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSIAEkYKDlNldFN5bWJvbEFsaWFzEhoudG9rZW4uU2V0U3lt", + "Ym9sQWxpYXNJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEncKG0dl", + "dFRyYW5zYWN0aW9uRmVlRGVsZWdhdGVlcxInLnRva2VuLkdldFRyYW5zYWN0", + "aW9uRmVlRGVsZWdhdGVlc0lucHV0GigudG9rZW4uR2V0VHJhbnNhY3Rpb25G", + "ZWVEZWxlZ2F0ZWVzT3V0cHV0IgWIifcBARJBCgxHZXRUb2tlbkluZm8SGC50", + "b2tlbi5HZXRUb2tlbkluZm9JbnB1dBoQLnRva2VuLlRva2VuSW5mbyIFiIn3", + "AQESRQoSR2V0TmF0aXZlVG9rZW5JbmZvEhYuZ29vZ2xlLnByb3RvYnVmLkVt", + "cHR5GhAudG9rZW4uVG9rZW5JbmZvIgWIifcBARJLChRHZXRSZXNvdXJjZVRv", + "a2VuSW5mbxIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoULnRva2VuLlRva2Vu", + "SW5mb0xpc3QiBYiJ9wEBEkQKCkdldEJhbGFuY2USFi50b2tlbi5HZXRCYWxh", + "bmNlSW5wdXQaFy50b2tlbi5HZXRCYWxhbmNlT3V0cHV0IgWIifcBARJKCgxH", + "ZXRBbGxvd2FuY2USGC50b2tlbi5HZXRBbGxvd2FuY2VJbnB1dBoZLnRva2Vu", + "LkdldEFsbG93YW5jZU91dHB1dCIFiIn3AQESUwoVR2V0QXZhaWxhYmxlQWxs", + "b3dhbmNlEhgudG9rZW4uR2V0QWxsb3dhbmNlSW5wdXQaGS50b2tlbi5HZXRB", + "bGxvd2FuY2VPdXRwdXQiBYiJ9wEBEk0KDUlzSW5XaGl0ZUxpc3QSGS50b2tl", + "bi5Jc0luV2hpdGVMaXN0SW5wdXQaGi5nb29nbGUucHJvdG9idWYuQm9vbFZh", + "bHVlIgWIifcBARJTCg9HZXRMb2NrZWRBbW91bnQSGy50b2tlbi5HZXRMb2Nr", + "ZWRBbW91bnRJbnB1dBocLnRva2VuLkdldExvY2tlZEFtb3VudE91dHB1dCIF", + "iIn3AQESeAopR2V0Q3Jvc3NDaGFpblRyYW5zZmVyVG9rZW5Db250cmFjdEFk", + "ZHJlc3MSNS50b2tlbi5HZXRDcm9zc0NoYWluVHJhbnNmZXJUb2tlbkNvbnRy", + "YWN0QWRkcmVzc0lucHV0Gg0uYWVsZi5BZGRyZXNzIgWIifcBARJUChVHZXRQ", + "cmltYXJ5VG9rZW5TeW1ib2wSFi5nb29nbGUucHJvdG9idWYuRW1wdHkaHC5n", + "b29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUiBYiJ9wEBEm0KJkdldENhbGN1", + "bGF0ZUZlZUNvZWZmaWNpZW50c0ZvckNvbnRyYWN0EhsuZ29vZ2xlLnByb3Rv", + "YnVmLkludDMyVmFsdWUaHy50b2tlbi5DYWxjdWxhdGVGZWVDb2VmZmljaWVu", + "dHMiBYiJ9wEBEmYKJEdldENhbGN1bGF0ZUZlZUNvZWZmaWNpZW50c0ZvclNl", + "bmRlchIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRofLnRva2VuLkNhbGN1bGF0", + "ZUZlZUNvZWZmaWNpZW50cyIFiIn3AQESWgoYR2V0U3ltYm9sc1RvUGF5VHhT", + "aXplRmVlEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Gh8udG9rZW4uU3ltYm9s", + "TGlzdFRvUGF5VHhTaXplRmVlIgWIifcBARJRCiRHZXRMYXRlc3RUb3RhbFRy", + "YW5zYWN0aW9uRmVlc01hcEhhc2gSFi5nb29nbGUucHJvdG9idWYuRW1wdHka", + "Ci5hZWxmLkhhc2giBYiJ9wEBElEKJEdldExhdGVzdFRvdGFsUmVzb3VyY2VU", + "b2tlbnNNYXBzSGFzaBIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoKLmFlbGYu", + "SGFzaCIFiIn3AQESXwocSXNUb2tlbkF2YWlsYWJsZUZvck1ldGhvZEZlZRIc", + "Lmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZRoaLmdvb2dsZS5wcm90b2J1", + "Zi5Cb29sVmFsdWUiBYiJ9wEBElIKHkdldFJlc2VydmVkRXh0ZXJuYWxJbmZv", + "S2V5TGlzdBIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoRLnRva2VuLlN0cmlu", + "Z0xpc3QiBYiJ9wEBEokBCihHZXRUcmFuc2FjdGlvbkZlZURlbGVnYXRpb25z", + "T2ZBRGVsZWdhdGVlEjQudG9rZW4uR2V0VHJhbnNhY3Rpb25GZWVEZWxlZ2F0", + "aW9uc09mQURlbGVnYXRlZUlucHV0GiAudG9rZW4uVHJhbnNhY3Rpb25GZWVE", + "ZWxlZ2F0aW9ucyIFiIn3AQESUgoNR2V0VG9rZW5BbGlhcxIcLmdvb2dsZS5w", + "cm90b2J1Zi5TdHJpbmdWYWx1ZRocLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdW", + "YWx1ZSIFiIn3AQESVQoQR2V0U3ltYm9sQnlBbGlhcxIcLmdvb2dsZS5wcm90", + "b2J1Zi5TdHJpbmdWYWx1ZRocLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1", + "ZSIFiIn3AQFCHKoCGUFFbGYuQ29udHJhY3RzLk11bHRpVG9rZW5iBnByb3Rv", + "Mw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.OptionsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AElf.Contracts.MultiToken.FeeTypeEnum), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TokenInfo), global::AElf.Contracts.MultiToken.TokenInfo.Parser, new[]{ "Symbol", "TokenName", "Supply", "TotalSupply", "Decimals", "Issuer", "IsBurnable", "IssueChainId", "Issued", "ExternalInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TokenInfo), global::AElf.Contracts.MultiToken.TokenInfo.Parser, new[]{ "Symbol", "TokenName", "Supply", "TotalSupply", "Decimals", "Issuer", "IsBurnable", "IssueChainId", "Issued", "ExternalInfo", "Owner" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ExternalInfo), global::AElf.Contracts.MultiToken.ExternalInfo.Parser, new[]{ "Value" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CreateInput), global::AElf.Contracts.MultiToken.CreateInput.Parser, new[]{ "Symbol", "TokenName", "TotalSupply", "Decimals", "Issuer", "IsBurnable", "LockWhiteList", "IssueChainId", "ExternalInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CreateInput), global::AElf.Contracts.MultiToken.CreateInput.Parser, new[]{ "Symbol", "TokenName", "TotalSupply", "Decimals", "Issuer", "IsBurnable", "LockWhiteList", "IssueChainId", "ExternalInfo", "Owner" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.SetPrimaryTokenSymbolInput), global::AElf.Contracts.MultiToken.SetPrimaryTokenSymbolInput.Parser, new[]{ "Symbol" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.IssueInput), global::AElf.Contracts.MultiToken.IssueInput.Parser, new[]{ "Symbol", "Amount", "Memo", "To" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransferInput), global::AElf.Contracts.MultiToken.TransferInput.Parser, new[]{ "To", "Symbol", "Amount", "Memo" }, null, null, null, null), @@ -280,10 +339,12 @@ static TokenContractReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.UnlockInput), global::AElf.Contracts.MultiToken.UnlockInput.Parser, new[]{ "Address", "LockId", "Symbol", "Usage", "Amount" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransferFromInput), global::AElf.Contracts.MultiToken.TransferFromInput.Parser, new[]{ "From", "To", "Symbol", "Amount", "Memo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ApproveInput), global::AElf.Contracts.MultiToken.ApproveInput.Parser, new[]{ "Spender", "Symbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.BatchApproveInput), global::AElf.Contracts.MultiToken.BatchApproveInput.Parser, new[]{ "Value" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.UnApproveInput), global::AElf.Contracts.MultiToken.UnApproveInput.Parser, new[]{ "Spender", "Symbol", "Amount" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.BurnInput), global::AElf.Contracts.MultiToken.BurnInput.Parser, new[]{ "Symbol", "Amount" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ChargeResourceTokenInput), global::AElf.Contracts.MultiToken.ChargeResourceTokenInput.Parser, new[]{ "CostDic", "Caller" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeBill), global::AElf.Contracts.MultiToken.TransactionFeeBill.Parser, new[]{ "FeesMap" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFreeFeeAllowanceBill), global::AElf.Contracts.MultiToken.TransactionFreeFeeAllowanceBill.Parser, new[]{ "FreeFeeAllowancesMap" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CheckThresholdInput), global::AElf.Contracts.MultiToken.CheckThresholdInput.Parser, new[]{ "Sender", "SymbolToThreshold", "IsCheckAllowance" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetTokenInfoInput), global::AElf.Contracts.MultiToken.GetTokenInfoInput.Parser, new[]{ "Symbol" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetBalanceInput), global::AElf.Contracts.MultiToken.GetBalanceInput.Parser, new[]{ "Symbol", "Owner" }, null, null, null, null), @@ -313,22 +374,33 @@ static TokenContractReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TotalResourceTokensMaps), global::AElf.Contracts.MultiToken.TotalResourceTokensMaps.Parser, new[]{ "Value", "BlockHash", "BlockHeight" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ContractTotalResourceTokens), global::AElf.Contracts.MultiToken.ContractTotalResourceTokens.Parser, new[]{ "ContractAddress", "TokensMap" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TotalResourceTokensMap), global::AElf.Contracts.MultiToken.TotalResourceTokensMap.Parser, new[]{ "Value" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), - new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ChangeTokenIssuerInput), global::AElf.Contracts.MultiToken.ChangeTokenIssuerInput.Parser, new[]{ "Symbol", "NewTokenIssuer" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ResetExternalInfoInput), global::AElf.Contracts.MultiToken.ResetExternalInfoInput.Parser, new[]{ "Symbol", "ExternalInfo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.StringList), global::AElf.Contracts.MultiToken.StringList.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeDelegations), global::AElf.Contracts.MultiToken.TransactionFeeDelegations.Parser, new[]{ "Delegations", "BlockHeight", "IsUnlimitedDelegate" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeDelegatees), global::AElf.Contracts.MultiToken.TransactionFeeDelegatees.Parser, new[]{ "Delegatees" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.SetTransactionFeeDelegationsInput), global::AElf.Contracts.MultiToken.SetTransactionFeeDelegationsInput.Parser, new[]{ "DelegatorAddress", "Delegations" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.SetTransactionFeeDelegationsOutput), global::AElf.Contracts.MultiToken.SetTransactionFeeDelegationsOutput.Parser, new[]{ "Success" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegatorInput), global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegatorInput.Parser, new[]{ "DelegatorAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegateeInput), global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegateeInput.Parser, new[]{ "DelegateeAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetTransactionFeeDelegationsOfADelegateeInput), global::AElf.Contracts.MultiToken.GetTransactionFeeDelegationsOfADelegateeInput.Parser, new[]{ "DelegateeAddress", "DelegatorAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateesInput), global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateesInput.Parser, new[]{ "DelegatorAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateesOutput), global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateesOutput.Parser, new[]{ "DelegateeAddresses" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.SetSymbolAliasInput), global::AElf.Contracts.MultiToken.SetSymbolAliasInput.Parser, new[]{ "Symbol", "Alias" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.Transferred), global::AElf.Contracts.MultiToken.Transferred.Parser, new[]{ "From", "To", "Symbol", "Amount", "Memo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.Approved), global::AElf.Contracts.MultiToken.Approved.Parser, new[]{ "Owner", "Spender", "Symbol", "Amount" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.UnApproved), global::AElf.Contracts.MultiToken.UnApproved.Parser, new[]{ "Owner", "Spender", "Symbol", "Amount" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.Burned), global::AElf.Contracts.MultiToken.Burned.Parser, new[]{ "Burner", "Symbol", "Amount" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ChainPrimaryTokenSymbolSet), global::AElf.Contracts.MultiToken.ChainPrimaryTokenSymbolSet.Parser, new[]{ "TokenSymbol" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CalculateFeeAlgorithmUpdated), global::AElf.Contracts.MultiToken.CalculateFeeAlgorithmUpdated.Parser, new[]{ "AllTypeFeeCoefficients" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RentalCharged), global::AElf.Contracts.MultiToken.RentalCharged.Parser, new[]{ "Symbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RentalCharged), global::AElf.Contracts.MultiToken.RentalCharged.Parser, new[]{ "Symbol", "Amount", "Payer", "Receiver" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RentalAccountBalanceInsufficient), global::AElf.Contracts.MultiToken.RentalAccountBalanceInsufficient.Parser, new[]{ "Symbol", "Amount" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TokenCreated), global::AElf.Contracts.MultiToken.TokenCreated.Parser, new[]{ "Symbol", "TokenName", "TotalSupply", "Decimals", "Issuer", "IsBurnable", "IssueChainId", "ExternalInfo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TokenCreated), global::AElf.Contracts.MultiToken.TokenCreated.Parser, new[]{ "Symbol", "TokenName", "TotalSupply", "Decimals", "Issuer", "IsBurnable", "IssueChainId", "ExternalInfo", "Owner" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.Issued), global::AElf.Contracts.MultiToken.Issued.Parser, new[]{ "Symbol", "Amount", "Memo", "To" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CrossChainTransferred), global::AElf.Contracts.MultiToken.CrossChainTransferred.Parser, new[]{ "From", "To", "Symbol", "Amount", "Memo", "ToChainId", "IssueChainId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.CrossChainReceived), global::AElf.Contracts.MultiToken.CrossChainReceived.Parser, new[]{ "From", "To", "Symbol", "Amount", "Memo", "FromChainId", "IssueChainId", "ParentChainHeight", "TransferTransactionId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ExternalInfoChanged), global::AElf.Contracts.MultiToken.ExternalInfoChanged.Parser, new[]{ "Symbol", "ExternalInfo" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeDelegationAdded), global::AElf.Contracts.MultiToken.TransactionFeeDelegationAdded.Parser, new[]{ "Delegator", "Delegatee", "Caller" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeDelegationCancelled), global::AElf.Contracts.MultiToken.TransactionFeeDelegationCancelled.Parser, new[]{ "Delegator", "Delegatee", "Caller" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.SymbolAliasAdded), global::AElf.Contracts.MultiToken.SymbolAliasAdded.Parser, new[]{ "Symbol", "Alias" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.SymbolAliasDeleted), global::AElf.Contracts.MultiToken.SymbolAliasDeleted.Parser, new[]{ "Symbol", "Alias" }, null, null, null, null) })); } #endregion @@ -346,23 +418,31 @@ public enum FeeTypeEnum { #endregion #region Messages - public sealed partial class TokenInfo : pb::IMessage { + public sealed partial class TokenInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenInfo()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TokenInfo() { OnConstruction(); } @@ -370,6 +450,7 @@ public TokenInfo() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TokenInfo(TokenInfo other) : this() { symbol_ = other.symbol_; tokenName_ = other.tokenName_; @@ -381,10 +462,12 @@ public TokenInfo(TokenInfo other) : this() { issueChainId_ = other.issueChainId_; issued_ = other.issued_; externalInfo_ = other.externalInfo_ != null ? other.externalInfo_.Clone() : null; + owner_ = other.owner_ != null ? other.owner_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TokenInfo Clone() { return new TokenInfo(this); } @@ -396,6 +479,7 @@ public TokenInfo Clone() { /// The symbol of the token.f /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -410,6 +494,7 @@ public string Symbol { /// The full name of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TokenName { get { return tokenName_; } set { @@ -424,6 +509,7 @@ public string TokenName { /// The current supply of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Supply { get { return supply_; } set { @@ -438,6 +524,7 @@ public long Supply { /// The total supply of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long TotalSupply { get { return totalSupply_; } set { @@ -452,6 +539,7 @@ public long TotalSupply { /// The precision of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Decimals { get { return decimals_; } set { @@ -463,9 +551,10 @@ public int Decimals { public const int IssuerFieldNumber = 6; private global::AElf.Types.Address issuer_; /// - /// The address that created the token. + /// The address that has permission to issue the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Issuer { get { return issuer_; } set { @@ -480,6 +569,7 @@ public int Decimals { /// A flag indicating if this token is burnable. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsBurnable { get { return isBurnable_; } set { @@ -494,6 +584,7 @@ public bool IsBurnable { /// The chain id of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int IssueChainId { get { return issueChainId_; } set { @@ -508,6 +599,7 @@ public int IssueChainId { /// The amount of issued tokens. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Issued { get { return issued_; } set { @@ -522,6 +614,7 @@ public long Issued { /// The external information of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { get { return externalInfo_; } set { @@ -529,12 +622,29 @@ public long Issued { } } + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 11; + private global::AElf.Types.Address owner_; + /// + /// The address that owns the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Owner { + get { return owner_; } + set { + owner_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TokenInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TokenInfo other) { if (ReferenceEquals(other, null)) { return false; @@ -552,10 +662,12 @@ public bool Equals(TokenInfo other) { if (IssueChainId != other.IssueChainId) return false; if (Issued != other.Issued) return false; if (!object.Equals(ExternalInfo, other.ExternalInfo)) return false; + if (!object.Equals(Owner, other.Owner)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); @@ -568,6 +680,7 @@ public override int GetHashCode() { if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); if (Issued != 0L) hash ^= Issued.GetHashCode(); if (externalInfo_ != null) hash ^= ExternalInfo.GetHashCode(); + if (owner_ != null) hash ^= Owner.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -575,12 +688,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Symbol.Length != 0) { output.WriteRawTag(10); output.WriteString(Symbol); @@ -621,12 +739,72 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(82); output.WriteMessage(ExternalInfo); } + if (owner_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Owner); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (TokenName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TokenName); + } + if (Supply != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Supply); + } + if (TotalSupply != 0L) { + output.WriteRawTag(32); + output.WriteInt64(TotalSupply); + } + if (Decimals != 0) { + output.WriteRawTag(40); + output.WriteInt32(Decimals); + } + if (issuer_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Issuer); + } + if (IsBurnable != false) { + output.WriteRawTag(56); + output.WriteBool(IsBurnable); + } + if (IssueChainId != 0) { + output.WriteRawTag(64); + output.WriteInt32(IssueChainId); + } + if (Issued != 0L) { + output.WriteRawTag(72); + output.WriteInt64(Issued); + } + if (externalInfo_ != null) { + output.WriteRawTag(82); + output.WriteMessage(ExternalInfo); + } + if (owner_ != null) { + output.WriteRawTag(90); + output.WriteMessage(Owner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Symbol.Length != 0) { @@ -659,6 +837,9 @@ public int CalculateSize() { if (externalInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalInfo); } + if (owner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -666,6 +847,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TokenInfo other) { if (other == null) { return; @@ -706,11 +888,21 @@ public void MergeFrom(TokenInfo other) { } ExternalInfo.MergeFrom(other.ExternalInfo); } + if (other.owner_ != null) { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + Owner.MergeFrom(other.Owner); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -763,29 +955,113 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(ExternalInfo); break; } + case 90: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + TokenName = input.ReadString(); + break; + } + case 24: { + Supply = input.ReadInt64(); + break; + } + case 32: { + TotalSupply = input.ReadInt64(); + break; + } + case 40: { + Decimals = input.ReadInt32(); + break; + } + case 50: { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + input.ReadMessage(Issuer); + break; + } + case 56: { + IsBurnable = input.ReadBool(); + break; + } + case 64: { + IssueChainId = input.ReadInt32(); + break; + } + case 72: { + Issued = input.ReadInt64(); + break; + } + case 82: { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + case 90: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } } } } + #endif } - public sealed partial class ExternalInfo : pb::IMessage { + public sealed partial class ExternalInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalInfo()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ExternalInfo() { OnConstruction(); } @@ -793,12 +1069,14 @@ public ExternalInfo() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ExternalInfo(ExternalInfo other) : this() { value_ = other.value_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ExternalInfo Clone() { return new ExternalInfo(this); } @@ -809,16 +1087,19 @@ public ExternalInfo Clone() { = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 10); private readonly pbc::MapField value_ = new pbc::MapField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField Value { get { return value_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ExternalInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ExternalInfo other) { if (ReferenceEquals(other, null)) { return false; @@ -831,6 +1112,7 @@ public bool Equals(ExternalInfo other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= Value.GetHashCode(); @@ -841,19 +1123,37 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else value_.WriteTo(output, _map_value_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _map_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += value_.CalculateSize(_map_value_codec); @@ -864,6 +1164,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ExternalInfo other) { if (other == null) { return; @@ -873,7 +1174,11 @@ public void MergeFrom(ExternalInfo other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -886,27 +1191,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _map_value_codec); + break; + } + } + } } + #endif } - public sealed partial class CreateInput : pb::IMessage { + public sealed partial class CreateInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CreateInput() { OnConstruction(); } @@ -914,6 +1247,7 @@ public CreateInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CreateInput(CreateInput other) : this() { symbol_ = other.symbol_; tokenName_ = other.tokenName_; @@ -924,10 +1258,12 @@ public CreateInput(CreateInput other) : this() { lockWhiteList_ = other.lockWhiteList_.Clone(); issueChainId_ = other.issueChainId_; externalInfo_ = other.externalInfo_ != null ? other.externalInfo_.Clone() : null; + owner_ = other.owner_ != null ? other.owner_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CreateInput Clone() { return new CreateInput(this); } @@ -939,6 +1275,7 @@ public CreateInput Clone() { /// The symbol of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -953,6 +1290,7 @@ public string Symbol { /// The full name of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TokenName { get { return tokenName_; } set { @@ -967,6 +1305,7 @@ public string TokenName { /// The total supply of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long TotalSupply { get { return totalSupply_; } set { @@ -981,6 +1320,7 @@ public long TotalSupply { /// The precision of the token /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Decimals { get { return decimals_; } set { @@ -992,9 +1332,10 @@ public int Decimals { public const int IssuerFieldNumber = 5; private global::AElf.Types.Address issuer_; /// - /// The address that created the token. + /// The address that has permission to issue the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Issuer { get { return issuer_; } set { @@ -1009,6 +1350,7 @@ public int Decimals { /// A flag indicating if this token is burnable. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsBurnable { get { return isBurnable_; } set { @@ -1025,6 +1367,7 @@ public bool IsBurnable { /// A whitelist address list used to lock tokens. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField LockWhiteList { get { return lockWhiteList_; } } @@ -1036,6 +1379,7 @@ public bool IsBurnable { /// The chain id of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int IssueChainId { get { return issueChainId_; } set { @@ -1050,6 +1394,7 @@ public int IssueChainId { /// The external information of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { get { return externalInfo_; } set { @@ -1057,12 +1402,29 @@ public int IssueChainId { } } + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 10; + private global::AElf.Types.Address owner_; + /// + /// The address that owns the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Owner { + get { return owner_; } + set { + owner_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CreateInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CreateInput other) { if (ReferenceEquals(other, null)) { return false; @@ -1079,10 +1441,12 @@ public bool Equals(CreateInput other) { if(!lockWhiteList_.Equals(other.lockWhiteList_)) return false; if (IssueChainId != other.IssueChainId) return false; if (!object.Equals(ExternalInfo, other.ExternalInfo)) return false; + if (!object.Equals(Owner, other.Owner)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); @@ -1094,6 +1458,7 @@ public override int GetHashCode() { hash ^= lockWhiteList_.GetHashCode(); if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); if (externalInfo_ != null) hash ^= ExternalInfo.GetHashCode(); + if (owner_ != null) hash ^= Owner.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1101,12 +1466,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Symbol.Length != 0) { output.WriteRawTag(10); output.WriteString(Symbol); @@ -1140,12 +1510,65 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(74); output.WriteMessage(ExternalInfo); } + if (owner_ != null) { + output.WriteRawTag(82); + output.WriteMessage(Owner); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (TokenName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TokenName); + } + if (TotalSupply != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TotalSupply); + } + if (Decimals != 0) { + output.WriteRawTag(32); + output.WriteInt32(Decimals); + } + if (issuer_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Issuer); + } + if (IsBurnable != false) { + output.WriteRawTag(48); + output.WriteBool(IsBurnable); + } + lockWhiteList_.WriteTo(ref output, _repeated_lockWhiteList_codec); + if (IssueChainId != 0) { + output.WriteRawTag(64); + output.WriteInt32(IssueChainId); + } + if (externalInfo_ != null) { + output.WriteRawTag(74); + output.WriteMessage(ExternalInfo); + } + if (owner_ != null) { + output.WriteRawTag(82); + output.WriteMessage(Owner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Symbol.Length != 0) { @@ -1173,6 +1596,9 @@ public int CalculateSize() { if (externalInfo_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalInfo); } + if (owner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1180,6 +1606,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CreateInput other) { if (other == null) { return; @@ -1215,11 +1642,21 @@ public void MergeFrom(CreateInput other) { } ExternalInfo.MergeFrom(other.ExternalInfo); } + if (other.owner_ != null) { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + Owner.MergeFrom(other.Owner); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1268,42 +1705,124 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(ExternalInfo); break; } + case 82: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } } } + #endif } - } - - public sealed partial class SetPrimaryTokenSymbolInput : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetPrimaryTokenSymbolInput()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SetPrimaryTokenSymbolInput() { - OnConstruction(); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + TokenName = input.ReadString(); + break; + } + case 24: { + TotalSupply = input.ReadInt64(); + break; + } + case 32: { + Decimals = input.ReadInt32(); + break; + } + case 42: { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + input.ReadMessage(Issuer); + break; + } + case 48: { + IsBurnable = input.ReadBool(); + break; + } + case 58: { + lockWhiteList_.AddEntriesFrom(ref input, _repeated_lockWhiteList_codec); + break; + } + case 64: { + IssueChainId = input.ReadInt32(); + break; + } + case 74: { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + case 82: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetPrimaryTokenSymbolInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetPrimaryTokenSymbolInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetPrimaryTokenSymbolInput() { + OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SetPrimaryTokenSymbolInput(SetPrimaryTokenSymbolInput other) : this() { symbol_ = other.symbol_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SetPrimaryTokenSymbolInput Clone() { return new SetPrimaryTokenSymbolInput(this); } @@ -1315,6 +1834,7 @@ public SetPrimaryTokenSymbolInput Clone() { /// The symbol of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -1323,11 +1843,13 @@ public string Symbol { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SetPrimaryTokenSymbolInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SetPrimaryTokenSymbolInput other) { if (ReferenceEquals(other, null)) { return false; @@ -1340,6 +1862,7 @@ public bool Equals(SetPrimaryTokenSymbolInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); @@ -1350,12 +1873,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Symbol.Length != 0) { output.WriteRawTag(10); output.WriteString(Symbol); @@ -1363,9 +1891,25 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Symbol.Length != 0) { @@ -1378,6 +1922,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SetPrimaryTokenSymbolInput other) { if (other == null) { return; @@ -1389,7 +1934,11 @@ public void MergeFrom(SetPrimaryTokenSymbolInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1402,27 +1951,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + } + } } + #endif } - public sealed partial class IssueInput : pb::IMessage { + public sealed partial class IssueInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IssueInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public IssueInput() { OnConstruction(); } @@ -1430,6 +2007,7 @@ public IssueInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public IssueInput(IssueInput other) : this() { symbol_ = other.symbol_; amount_ = other.amount_; @@ -1439,6 +2017,7 @@ public IssueInput(IssueInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public IssueInput Clone() { return new IssueInput(this); } @@ -1450,6 +2029,7 @@ public IssueInput Clone() { /// The token symbol to issue. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -1464,6 +2044,7 @@ public string Symbol { /// The token amount to issue. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Amount { get { return amount_; } set { @@ -1478,6 +2059,7 @@ public long Amount { /// The memo. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Memo { get { return memo_; } set { @@ -1492,6 +2074,7 @@ public string Memo { /// The target address to issue. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address To { get { return to_; } set { @@ -1500,11 +2083,13 @@ public string Memo { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as IssueInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(IssueInput other) { if (ReferenceEquals(other, null)) { return false; @@ -1520,6 +2105,7 @@ public bool Equals(IssueInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); @@ -1533,12 +2119,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Symbol.Length != 0) { output.WriteRawTag(10); output.WriteString(Symbol); @@ -1558,9 +2149,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Memo); + } + if (to_ != null) { + output.WriteRawTag(34); + output.WriteMessage(To); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Symbol.Length != 0) { @@ -1582,6 +2201,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(IssueInput other) { if (other == null) { return; @@ -1605,7 +2225,11 @@ public void MergeFrom(IssueInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1633,27 +2257,70 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + Memo = input.ReadString(); + break; + } + case 34: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + } + } } + #endif } - public sealed partial class TransferInput : pb::IMessage { + public sealed partial class TransferInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransferInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TransferInput() { OnConstruction(); } @@ -1661,6 +2328,7 @@ public TransferInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TransferInput(TransferInput other) : this() { to_ = other.to_ != null ? other.to_.Clone() : null; symbol_ = other.symbol_; @@ -1670,6 +2338,7 @@ public TransferInput(TransferInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TransferInput Clone() { return new TransferInput(this); } @@ -1681,6 +2350,7 @@ public TransferInput Clone() { /// The receiver of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address To { get { return to_; } set { @@ -1695,6 +2365,7 @@ public TransferInput Clone() { /// The token symbol to transfer. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -1709,6 +2380,7 @@ public string Symbol { /// The amount to to transfer. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Amount { get { return amount_; } set { @@ -1723,6 +2395,7 @@ public long Amount { /// The memo. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Memo { get { return memo_; } set { @@ -1731,11 +2404,13 @@ public string Memo { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TransferInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TransferInput other) { if (ReferenceEquals(other, null)) { return false; @@ -1751,6 +2426,7 @@ public bool Equals(TransferInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (to_ != null) hash ^= To.GetHashCode(); @@ -1764,12 +2440,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (to_ != null) { output.WriteRawTag(10); output.WriteMessage(To); @@ -1789,9 +2470,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (to_ != null) { + output.WriteRawTag(10); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Memo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (to_ != null) { @@ -1813,6 +2522,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TransferInput other) { if (other == null) { return; @@ -1836,7 +2546,11 @@ public void MergeFrom(TransferInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1864,27 +2578,70 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + case 34: { + Memo = input.ReadString(); + break; + } + } + } } + #endif } - public sealed partial class LockInput : pb::IMessage { + public sealed partial class LockInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LockInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LockInput() { OnConstruction(); } @@ -1892,6 +2649,7 @@ public LockInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LockInput(LockInput other) : this() { address_ = other.address_ != null ? other.address_.Clone() : null; lockId_ = other.lockId_ != null ? other.lockId_.Clone() : null; @@ -1902,6 +2660,7 @@ public LockInput(LockInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LockInput Clone() { return new LockInput(this); } @@ -1913,6 +2672,7 @@ public LockInput Clone() { /// The one want to lock his token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Address { get { return address_; } set { @@ -1927,6 +2687,7 @@ public LockInput Clone() { /// Id of the lock. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Hash LockId { get { return lockId_; } set { @@ -1941,6 +2702,7 @@ public LockInput Clone() { /// The symbol of the token to lock. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -1955,6 +2717,7 @@ public string Symbol { /// a memo. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Usage { get { return usage_; } set { @@ -1969,6 +2732,7 @@ public string Usage { /// The amount of tokens to lock. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Amount { get { return amount_; } set { @@ -1977,11 +2741,13 @@ public long Amount { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as LockInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(LockInput other) { if (ReferenceEquals(other, null)) { return false; @@ -1998,6 +2764,7 @@ public bool Equals(LockInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (address_ != null) hash ^= Address.GetHashCode(); @@ -2012,12 +2779,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (address_ != null) { output.WriteRawTag(10); output.WriteMessage(Address); @@ -2041,9 +2813,41 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (lockId_ != null) { + output.WriteRawTag(18); + output.WriteMessage(LockId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Usage.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Usage); + } + if (Amount != 0L) { + output.WriteRawTag(40); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (address_ != null) { @@ -2068,6 +2872,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(LockInput other) { if (other == null) { return; @@ -2097,7 +2902,11 @@ public void MergeFrom(LockInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -2132,44 +2941,96 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - } - - public sealed partial class UnlockInput : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnlockInput()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public UnlockInput() { - OnConstruction(); - } - - partial void OnConstruction(); - + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public UnlockInput(UnlockInput other) : this() { - address_ = other.address_ != null ? other.address_.Clone() : null; - lockId_ = other.lockId_ != null ? other.lockId_.Clone() : null; - symbol_ = other.symbol_; - usage_ = other.usage_; - amount_ = other.amount_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 18: { + if (lockId_ == null) { + LockId = new global::AElf.Types.Hash(); + } + input.ReadMessage(LockId); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 34: { + Usage = input.ReadString(); + break; + } + case 40: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UnlockInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnlockInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnlockInput(UnlockInput other) : this() { + address_ = other.address_ != null ? other.address_.Clone() : null; + lockId_ = other.lockId_ != null ? other.lockId_.Clone() : null; + symbol_ = other.symbol_; + usage_ = other.usage_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UnlockInput Clone() { return new UnlockInput(this); } @@ -2181,6 +3042,7 @@ public UnlockInput Clone() { /// The one want to un-lock his token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Address { get { return address_; } set { @@ -2195,6 +3057,7 @@ public UnlockInput Clone() { /// Id of the lock. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Hash LockId { get { return lockId_; } set { @@ -2209,6 +3072,7 @@ public UnlockInput Clone() { /// The symbol of the token to un-lock. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -2223,6 +3087,7 @@ public string Symbol { /// a memo. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Usage { get { return usage_; } set { @@ -2237,6 +3102,7 @@ public string Usage { /// The amount of tokens to un-lock. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Amount { get { return amount_; } set { @@ -2245,11 +3111,13 @@ public long Amount { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as UnlockInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(UnlockInput other) { if (ReferenceEquals(other, null)) { return false; @@ -2266,6 +3134,7 @@ public bool Equals(UnlockInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (address_ != null) hash ^= Address.GetHashCode(); @@ -2280,12 +3149,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (address_ != null) { output.WriteRawTag(10); output.WriteMessage(Address); @@ -2309,9 +3183,41 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (lockId_ != null) { + output.WriteRawTag(18); + output.WriteMessage(LockId); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Usage.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Usage); + } + if (Amount != 0L) { + output.WriteRawTag(40); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (address_ != null) { @@ -2336,6 +3242,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(UnlockInput other) { if (other == null) { return; @@ -2365,7 +3272,11 @@ public void MergeFrom(UnlockInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -2400,27 +3311,77 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 18: { + if (lockId_ == null) { + LockId = new global::AElf.Types.Hash(); + } + input.ReadMessage(LockId); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 34: { + Usage = input.ReadString(); + break; + } + case 40: { + Amount = input.ReadInt64(); + break; + } + } + } } + #endif } - public sealed partial class TransferFromInput : pb::IMessage { + public sealed partial class TransferFromInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransferFromInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TransferFromInput() { OnConstruction(); } @@ -2428,6 +3389,7 @@ public TransferFromInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TransferFromInput(TransferFromInput other) : this() { from_ = other.from_ != null ? other.from_.Clone() : null; to_ = other.to_ != null ? other.to_.Clone() : null; @@ -2438,6 +3400,7 @@ public TransferFromInput(TransferFromInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TransferFromInput Clone() { return new TransferFromInput(this); } @@ -2449,6 +3412,7 @@ public TransferFromInput Clone() { /// The source address of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address From { get { return from_; } set { @@ -2463,6 +3427,7 @@ public TransferFromInput Clone() { /// The destination address of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address To { get { return to_; } set { @@ -2477,6 +3442,7 @@ public TransferFromInput Clone() { /// The symbol of the token to transfer. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -2491,6 +3457,7 @@ public string Symbol { /// The amount to transfer. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Amount { get { return amount_; } set { @@ -2505,6 +3472,7 @@ public long Amount { /// The memo. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Memo { get { return memo_; } set { @@ -2513,11 +3481,13 @@ public string Memo { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TransferFromInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TransferFromInput other) { if (ReferenceEquals(other, null)) { return false; @@ -2534,6 +3504,7 @@ public bool Equals(TransferFromInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (from_ != null) hash ^= From.GetHashCode(); @@ -2548,12 +3519,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (from_ != null) { output.WriteRawTag(10); output.WriteMessage(From); @@ -2577,9 +3553,41 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(18); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Memo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (from_ != null) { @@ -2604,6 +3612,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TransferFromInput other) { if (other == null) { return; @@ -2633,7 +3642,11 @@ public void MergeFrom(TransferFromInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -2668,27 +3681,77 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + input.ReadMessage(From); + break; + } + case 18: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + Memo = input.ReadString(); + break; + } + } + } } + #endif } - public sealed partial class ApproveInput : pb::IMessage { + public sealed partial class ApproveInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApproveInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ApproveInput() { OnConstruction(); } @@ -2696,6 +3759,7 @@ public ApproveInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ApproveInput(ApproveInput other) : this() { spender_ = other.spender_ != null ? other.spender_.Clone() : null; symbol_ = other.symbol_; @@ -2704,6 +3768,7 @@ public ApproveInput(ApproveInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ApproveInput Clone() { return new ApproveInput(this); } @@ -2715,6 +3780,7 @@ public ApproveInput Clone() { /// The address that allowance will be increased. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Spender { get { return spender_; } set { @@ -2729,6 +3795,7 @@ public ApproveInput Clone() { /// The symbol of token to approve. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -2743,6 +3810,7 @@ public string Symbol { /// The amount of token to approve. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Amount { get { return amount_; } set { @@ -2751,11 +3819,13 @@ public long Amount { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ApproveInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ApproveInput other) { if (ReferenceEquals(other, null)) { return false; @@ -2770,6 +3840,7 @@ public bool Equals(ApproveInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (spender_ != null) hash ^= Spender.GetHashCode(); @@ -2782,12 +3853,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (spender_ != null) { output.WriteRawTag(10); output.WriteMessage(Spender); @@ -2803,9 +3879,33 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (spender_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Spender); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (spender_ != null) { @@ -2824,6 +3924,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ApproveInput other) { if (other == null) { return; @@ -2844,7 +3945,11 @@ public void MergeFrom(ApproveInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -2868,67 +3973,288 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } } + #endif } - public sealed partial class UnApproveInput : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnApproveInput()); + public sealed partial class BatchApproveInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchApproveInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[10]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public UnApproveInput() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchApproveInput() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public UnApproveInput(UnApproveInput other) : this() { - spender_ = other.spender_ != null ? other.spender_.Clone() : null; - symbol_ = other.symbol_; - amount_ = other.amount_; + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchApproveInput(BatchApproveInput other) : this() { + value_ = other.value_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public UnApproveInput Clone() { - return new UnApproveInput(this); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BatchApproveInput Clone() { + return new BatchApproveInput(this); } - /// Field number for the "spender" field. - public const int SpenderFieldNumber = 1; - private global::AElf.Types.Address spender_; - /// - /// The address that allowance will be decreased. - /// + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_value_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Contracts.MultiToken.ApproveInput.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Address Spender { - get { return spender_; } - set { - spender_ = value; - } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } } - /// Field number for the "symbol" field. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BatchApproveInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BatchApproveInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!value_.Equals(other.value_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= value_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + value_.WriteTo(output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_repeated_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(BatchApproveInput other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + value_.AddEntriesFrom(input, _repeated_value_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class UnApproveInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnApproveInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnApproveInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnApproveInput(UnApproveInput other) : this() { + spender_ = other.spender_ != null ? other.spender_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnApproveInput Clone() { + return new UnApproveInput(this); + } + + /// Field number for the "spender" field. + public const int SpenderFieldNumber = 1; + private global::AElf.Types.Address spender_; + /// + /// The address that allowance will be decreased. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Spender { + get { return spender_; } + set { + spender_ = value; + } + } + + /// Field number for the "symbol" field. public const int SymbolFieldNumber = 2; private string symbol_ = ""; /// /// The symbol of token to un-approve. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -2943,6 +4269,7 @@ public string Symbol { /// The amount of token to un-approve. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Amount { get { return amount_; } set { @@ -2951,11 +4278,13 @@ public long Amount { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as UnApproveInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(UnApproveInput other) { if (ReferenceEquals(other, null)) { return false; @@ -2970,6 +4299,7 @@ public bool Equals(UnApproveInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (spender_ != null) hash ^= Spender.GetHashCode(); @@ -2982,12 +4312,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (spender_ != null) { output.WriteRawTag(10); output.WriteMessage(Spender); @@ -3003,9 +4338,33 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (spender_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Spender); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (spender_ != null) { @@ -3024,6 +4383,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(UnApproveInput other) { if (other == null) { return; @@ -3044,7 +4404,11 @@ public void MergeFrom(UnApproveInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -3068,27 +4432,66 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } } + #endif } - public sealed partial class BurnInput : pb::IMessage { + public sealed partial class BurnInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BurnInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[11]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BurnInput() { OnConstruction(); } @@ -3096,6 +4499,7 @@ public BurnInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BurnInput(BurnInput other) : this() { symbol_ = other.symbol_; amount_ = other.amount_; @@ -3103,6 +4507,7 @@ public BurnInput(BurnInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BurnInput Clone() { return new BurnInput(this); } @@ -3114,6 +4519,7 @@ public BurnInput Clone() { /// The symbol of token to burn. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -3128,6 +4534,7 @@ public string Symbol { /// The amount of token to burn. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Amount { get { return amount_; } set { @@ -3136,11 +4543,13 @@ public long Amount { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as BurnInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(BurnInput other) { if (ReferenceEquals(other, null)) { return false; @@ -3154,6 +4563,7 @@ public bool Equals(BurnInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); @@ -3165,12 +4575,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Symbol.Length != 0) { output.WriteRawTag(10); output.WriteString(Symbol); @@ -3182,9 +4597,29 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Symbol.Length != 0) { @@ -3200,6 +4635,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(BurnInput other) { if (other == null) { return; @@ -3214,7 +4650,11 @@ public void MergeFrom(BurnInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -3231,27 +4671,59 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } } + #endif } - public sealed partial class ChargeResourceTokenInput : pb::IMessage { + public sealed partial class ChargeResourceTokenInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChargeResourceTokenInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[12]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ChargeResourceTokenInput() { OnConstruction(); } @@ -3259,6 +4731,7 @@ public ChargeResourceTokenInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ChargeResourceTokenInput(ChargeResourceTokenInput other) : this() { costDic_ = other.costDic_.Clone(); caller_ = other.caller_ != null ? other.caller_.Clone() : null; @@ -3266,6 +4739,7 @@ public ChargeResourceTokenInput(ChargeResourceTokenInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ChargeResourceTokenInput Clone() { return new ChargeResourceTokenInput(this); } @@ -3279,6 +4753,7 @@ public ChargeResourceTokenInput Clone() { /// Collection of charge resource token, Symbol->Amount. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField CostDic { get { return costDic_; } } @@ -3290,6 +4765,7 @@ public ChargeResourceTokenInput Clone() { /// The sender of the transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Caller { get { return caller_; } set { @@ -3298,11 +4774,13 @@ public ChargeResourceTokenInput Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ChargeResourceTokenInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ChargeResourceTokenInput other) { if (ReferenceEquals(other, null)) { return false; @@ -3316,6 +4794,7 @@ public bool Equals(ChargeResourceTokenInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= CostDic.GetHashCode(); @@ -3327,12 +4806,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else costDic_.WriteTo(output, _map_costDic_codec); if (caller_ != null) { output.WriteRawTag(18); @@ -3341,9 +4825,26 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + costDic_.WriteTo(ref output, _map_costDic_codec); + if (caller_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Caller); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += costDic_.CalculateSize(_map_costDic_codec); @@ -3357,6 +4858,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ChargeResourceTokenInput other) { if (other == null) { return; @@ -3372,7 +4874,11 @@ public void MergeFrom(ChargeResourceTokenInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -3392,27 +4898,62 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + costDic_.AddEntriesFrom(ref input, _map_costDic_codec); + break; + } + case 18: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + } + } } + #endif } - public sealed partial class TransactionFeeBill : pb::IMessage { + public sealed partial class TransactionFeeBill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeBill()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[13]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TransactionFeeBill() { OnConstruction(); } @@ -3420,12 +4961,14 @@ public TransactionFeeBill() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TransactionFeeBill(TransactionFeeBill other) : this() { feesMap_ = other.feesMap_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TransactionFeeBill Clone() { return new TransactionFeeBill(this); } @@ -3439,16 +4982,19 @@ public TransactionFeeBill Clone() { /// The transaction fee dictionary, Symbol->fee. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField FeesMap { get { return feesMap_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TransactionFeeBill); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TransactionFeeBill other) { if (ReferenceEquals(other, null)) { return false; @@ -3461,6 +5007,7 @@ public bool Equals(TransactionFeeBill other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= FeesMap.GetHashCode(); @@ -3471,19 +5018,37 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else feesMap_.WriteTo(output, _map_feesMap_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + feesMap_.WriteTo(ref output, _map_feesMap_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += feesMap_.CalculateSize(_map_feesMap_codec); @@ -3494,6 +5059,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TransactionFeeBill other) { if (other == null) { return; @@ -3503,7 +5069,11 @@ public void MergeFrom(TransactionFeeBill other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -3516,27 +5086,236 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + feesMap_.AddEntriesFrom(ref input, _map_feesMap_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFreeFeeAllowanceBill : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFreeFeeAllowanceBill()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFreeFeeAllowanceBill() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFreeFeeAllowanceBill(TransactionFreeFeeAllowanceBill other) : this() { + freeFeeAllowancesMap_ = other.freeFeeAllowancesMap_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFreeFeeAllowanceBill Clone() { + return new TransactionFreeFeeAllowanceBill(this); + } + + /// Field number for the "free_fee_allowances_map" field. + public const int FreeFeeAllowancesMapFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_freeFeeAllowancesMap_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 10); + private readonly pbc::MapField freeFeeAllowancesMap_ = new pbc::MapField(); + /// + /// The transaction free fee allowance dictionary, Symbol->fee. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField FreeFeeAllowancesMap { + get { return freeFeeAllowancesMap_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFreeFeeAllowanceBill); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFreeFeeAllowanceBill other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!FreeFeeAllowancesMap.Equals(other.FreeFeeAllowancesMap)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= FreeFeeAllowancesMap.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + freeFeeAllowancesMap_.WriteTo(output, _map_freeFeeAllowancesMap_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + freeFeeAllowancesMap_.WriteTo(ref output, _map_freeFeeAllowancesMap_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += freeFeeAllowancesMap_.CalculateSize(_map_freeFeeAllowancesMap_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFreeFeeAllowanceBill other) { + if (other == null) { + return; + } + freeFeeAllowancesMap_.Add(other.freeFeeAllowancesMap_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + freeFeeAllowancesMap_.AddEntriesFrom(input, _map_freeFeeAllowancesMap_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + freeFeeAllowancesMap_.AddEntriesFrom(ref input, _map_freeFeeAllowancesMap_codec); + break; + } + } + } + } + #endif + + } - public sealed partial class CheckThresholdInput : pb::IMessage { + public sealed partial class CheckThresholdInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CheckThresholdInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[14]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CheckThresholdInput() { OnConstruction(); } @@ -3544,6 +5323,7 @@ public CheckThresholdInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CheckThresholdInput(CheckThresholdInput other) : this() { sender_ = other.sender_ != null ? other.sender_.Clone() : null; symbolToThreshold_ = other.symbolToThreshold_.Clone(); @@ -3552,6 +5332,7 @@ public CheckThresholdInput(CheckThresholdInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CheckThresholdInput Clone() { return new CheckThresholdInput(this); } @@ -3563,6 +5344,7 @@ public CheckThresholdInput Clone() { /// The sender of the transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Sender { get { return sender_; } set { @@ -3579,6 +5361,7 @@ public CheckThresholdInput Clone() { /// The threshold to set, Symbol->Threshold. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField SymbolToThreshold { get { return symbolToThreshold_; } } @@ -3590,6 +5373,7 @@ public CheckThresholdInput Clone() { /// Whether to check the allowance. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsCheckAllowance { get { return isCheckAllowance_; } set { @@ -3598,11 +5382,13 @@ public bool IsCheckAllowance { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CheckThresholdInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CheckThresholdInput other) { if (ReferenceEquals(other, null)) { return false; @@ -3617,6 +5403,7 @@ public bool Equals(CheckThresholdInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (sender_ != null) hash ^= Sender.GetHashCode(); @@ -3629,12 +5416,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (sender_ != null) { output.WriteRawTag(10); output.WriteMessage(Sender); @@ -3647,9 +5439,30 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (sender_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Sender); + } + symbolToThreshold_.WriteTo(ref output, _map_symbolToThreshold_codec); + if (IsCheckAllowance != false) { + output.WriteRawTag(24); + output.WriteBool(IsCheckAllowance); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (sender_ != null) { @@ -3666,6 +5479,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CheckThresholdInput other) { if (other == null) { return; @@ -3684,7 +5498,11 @@ public void MergeFrom(CheckThresholdInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -3708,27 +5526,66 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (sender_ == null) { + Sender = new global::AElf.Types.Address(); + } + input.ReadMessage(Sender); + break; + } + case 18: { + symbolToThreshold_.AddEntriesFrom(ref input, _map_symbolToThreshold_codec); + break; + } + case 24: { + IsCheckAllowance = input.ReadBool(); + break; + } + } + } } + #endif } - public sealed partial class GetTokenInfoInput : pb::IMessage { + public sealed partial class GetTokenInfoInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTokenInfoInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[15]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTokenInfoInput() { OnConstruction(); } @@ -3736,12 +5593,14 @@ public GetTokenInfoInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTokenInfoInput(GetTokenInfoInput other) : this() { symbol_ = other.symbol_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTokenInfoInput Clone() { return new GetTokenInfoInput(this); } @@ -3753,6 +5612,7 @@ public GetTokenInfoInput Clone() { /// The symbol of token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -3761,11 +5621,13 @@ public string Symbol { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetTokenInfoInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetTokenInfoInput other) { if (ReferenceEquals(other, null)) { return false; @@ -3778,6 +5640,7 @@ public bool Equals(GetTokenInfoInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); @@ -3788,12 +5651,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Symbol.Length != 0) { output.WriteRawTag(10); output.WriteString(Symbol); @@ -3801,9 +5669,25 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Symbol.Length != 0) { @@ -3816,6 +5700,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetTokenInfoInput other) { if (other == null) { return; @@ -3827,7 +5712,11 @@ public void MergeFrom(GetTokenInfoInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -3840,27 +5729,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + } + } } + #endif } - public sealed partial class GetBalanceInput : pb::IMessage { + public sealed partial class GetBalanceInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBalanceInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[16]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[18]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBalanceInput() { OnConstruction(); } @@ -3868,6 +5785,7 @@ public GetBalanceInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBalanceInput(GetBalanceInput other) : this() { symbol_ = other.symbol_; owner_ = other.owner_ != null ? other.owner_.Clone() : null; @@ -3875,6 +5793,7 @@ public GetBalanceInput(GetBalanceInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBalanceInput Clone() { return new GetBalanceInput(this); } @@ -3886,6 +5805,7 @@ public GetBalanceInput Clone() { /// The symbol of token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -3900,6 +5820,7 @@ public string Symbol { /// The target address of the query. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Owner { get { return owner_; } set { @@ -3908,11 +5829,13 @@ public string Symbol { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBalanceInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBalanceInput other) { if (ReferenceEquals(other, null)) { return false; @@ -3926,6 +5849,7 @@ public bool Equals(GetBalanceInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); @@ -3937,12 +5861,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Symbol.Length != 0) { output.WriteRawTag(10); output.WriteString(Symbol); @@ -3954,9 +5883,29 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (owner_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Owner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Symbol.Length != 0) { @@ -3972,6 +5921,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetBalanceInput other) { if (other == null) { return; @@ -3989,7 +5939,11 @@ public void MergeFrom(GetBalanceInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -4009,27 +5963,62 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + } + } } + #endif } - public sealed partial class GetBalanceOutput : pb::IMessage { + public sealed partial class GetBalanceOutput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBalanceOutput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[17]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[19]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBalanceOutput() { OnConstruction(); } @@ -4037,6 +6026,7 @@ public GetBalanceOutput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBalanceOutput(GetBalanceOutput other) : this() { symbol_ = other.symbol_; owner_ = other.owner_ != null ? other.owner_.Clone() : null; @@ -4045,6 +6035,7 @@ public GetBalanceOutput(GetBalanceOutput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBalanceOutput Clone() { return new GetBalanceOutput(this); } @@ -4056,6 +6047,7 @@ public GetBalanceOutput Clone() { /// The symbol of token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -4070,6 +6062,7 @@ public string Symbol { /// The target address of the query. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Owner { get { return owner_; } set { @@ -4084,6 +6077,7 @@ public string Symbol { /// The balance of the owner. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Balance { get { return balance_; } set { @@ -4092,11 +6086,13 @@ public long Balance { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBalanceOutput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBalanceOutput other) { if (ReferenceEquals(other, null)) { return false; @@ -4111,6 +6107,7 @@ public bool Equals(GetBalanceOutput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); @@ -4123,12 +6120,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Symbol.Length != 0) { output.WriteRawTag(10); output.WriteString(Symbol); @@ -4144,9 +6146,33 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (owner_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Owner); + } + if (Balance != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Balance); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Symbol.Length != 0) { @@ -4165,6 +6191,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetBalanceOutput other) { if (other == null) { return; @@ -4185,7 +6212,11 @@ public void MergeFrom(GetBalanceOutput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -4209,27 +6240,66 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - } - - public sealed partial class GetAllowanceInput : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllowanceInput()); - private pb::UnknownFieldSet _unknownFields; + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 24: { + Balance = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetAllowanceInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllowanceInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[18]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[20]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetAllowanceInput() { OnConstruction(); } @@ -4237,6 +6307,7 @@ public GetAllowanceInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetAllowanceInput(GetAllowanceInput other) : this() { symbol_ = other.symbol_; owner_ = other.owner_ != null ? other.owner_.Clone() : null; @@ -4245,6 +6316,7 @@ public GetAllowanceInput(GetAllowanceInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetAllowanceInput Clone() { return new GetAllowanceInput(this); } @@ -4256,6 +6328,7 @@ public GetAllowanceInput Clone() { /// The symbol of token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -4270,6 +6343,7 @@ public string Symbol { /// The address of the token owner. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Owner { get { return owner_; } set { @@ -4284,6 +6358,7 @@ public string Symbol { /// The address of the spender. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Spender { get { return spender_; } set { @@ -4292,11 +6367,13 @@ public string Symbol { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetAllowanceInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetAllowanceInput other) { if (ReferenceEquals(other, null)) { return false; @@ -4311,6 +6388,7 @@ public bool Equals(GetAllowanceInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); @@ -4323,12 +6401,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Symbol.Length != 0) { output.WriteRawTag(10); output.WriteString(Symbol); @@ -4344,9 +6427,33 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (owner_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Owner); + } + if (spender_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Spender); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Symbol.Length != 0) { @@ -4365,6 +6472,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetAllowanceInput other) { if (other == null) { return; @@ -4388,7 +6496,11 @@ public void MergeFrom(GetAllowanceInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -4415,27 +6527,69 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 26: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); + break; + } + } + } } + #endif } - public sealed partial class GetAllowanceOutput : pb::IMessage { + public sealed partial class GetAllowanceOutput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAllowanceOutput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[19]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[21]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetAllowanceOutput() { OnConstruction(); } @@ -4443,6 +6597,7 @@ public GetAllowanceOutput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetAllowanceOutput(GetAllowanceOutput other) : this() { symbol_ = other.symbol_; owner_ = other.owner_ != null ? other.owner_.Clone() : null; @@ -4452,6 +6607,7 @@ public GetAllowanceOutput(GetAllowanceOutput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetAllowanceOutput Clone() { return new GetAllowanceOutput(this); } @@ -4463,6 +6619,7 @@ public GetAllowanceOutput Clone() { /// The symbol of token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -4477,6 +6634,7 @@ public string Symbol { /// The address of the token owner. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Owner { get { return owner_; } set { @@ -4491,6 +6649,7 @@ public string Symbol { /// The address of the spender. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Spender { get { return spender_; } set { @@ -4505,6 +6664,7 @@ public string Symbol { /// The amount of allowance. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Allowance { get { return allowance_; } set { @@ -4513,11 +6673,13 @@ public long Allowance { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetAllowanceOutput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetAllowanceOutput other) { if (ReferenceEquals(other, null)) { return false; @@ -4533,6 +6695,7 @@ public bool Equals(GetAllowanceOutput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); @@ -4546,12 +6709,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Symbol.Length != 0) { output.WriteRawTag(10); output.WriteString(Symbol); @@ -4571,9 +6739,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (owner_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Owner); + } + if (spender_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Spender); + } + if (Allowance != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Allowance); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Symbol.Length != 0) { @@ -4595,6 +6791,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetAllowanceOutput other) { if (other == null) { return; @@ -4621,7 +6818,11 @@ public void MergeFrom(GetAllowanceOutput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -4652,27 +6853,73 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 26: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); + break; + } + case 32: { + Allowance = input.ReadInt64(); + break; + } + } + } } + #endif } - public sealed partial class CrossChainTransferInput : pb::IMessage { + public sealed partial class CrossChainTransferInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainTransferInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[20]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[22]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CrossChainTransferInput() { OnConstruction(); } @@ -4680,6 +6927,7 @@ public CrossChainTransferInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CrossChainTransferInput(CrossChainTransferInput other) : this() { to_ = other.to_ != null ? other.to_.Clone() : null; symbol_ = other.symbol_; @@ -4691,6 +6939,7 @@ public CrossChainTransferInput(CrossChainTransferInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CrossChainTransferInput Clone() { return new CrossChainTransferInput(this); } @@ -4702,6 +6951,7 @@ public CrossChainTransferInput Clone() { /// The receiver of transfer. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address To { get { return to_; } set { @@ -4716,6 +6966,7 @@ public CrossChainTransferInput Clone() { /// The symbol of token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -4730,6 +6981,7 @@ public string Symbol { /// The amount of token to transfer. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Amount { get { return amount_; } set { @@ -4744,6 +6996,7 @@ public long Amount { /// The memo. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Memo { get { return memo_; } set { @@ -4758,6 +7011,7 @@ public string Memo { /// The destination chain id. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ToChainId { get { return toChainId_; } set { @@ -4772,6 +7026,7 @@ public int ToChainId { /// The chain id of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int IssueChainId { get { return issueChainId_; } set { @@ -4780,11 +7035,13 @@ public int IssueChainId { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CrossChainTransferInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CrossChainTransferInput other) { if (ReferenceEquals(other, null)) { return false; @@ -4802,6 +7059,7 @@ public bool Equals(CrossChainTransferInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (to_ != null) hash ^= To.GetHashCode(); @@ -4817,12 +7075,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (to_ != null) { output.WriteRawTag(10); output.WriteMessage(To); @@ -4850,9 +7113,45 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (to_ != null) { + output.WriteRawTag(10); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Memo); + } + if (ToChainId != 0) { + output.WriteRawTag(40); + output.WriteInt32(ToChainId); + } + if (IssueChainId != 0) { + output.WriteRawTag(48); + output.WriteInt32(IssueChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (to_ != null) { @@ -4880,6 +7179,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CrossChainTransferInput other) { if (other == null) { return; @@ -4909,7 +7209,11 @@ public void MergeFrom(CrossChainTransferInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -4945,27 +7249,78 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + case 34: { + Memo = input.ReadString(); + break; + } + case 40: { + ToChainId = input.ReadInt32(); + break; + } + case 48: { + IssueChainId = input.ReadInt32(); + break; + } + } + } } + #endif } - public sealed partial class CrossChainReceiveTokenInput : pb::IMessage { + public sealed partial class CrossChainReceiveTokenInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainReceiveTokenInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[21]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[23]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CrossChainReceiveTokenInput() { OnConstruction(); } @@ -4973,6 +7328,7 @@ public CrossChainReceiveTokenInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CrossChainReceiveTokenInput(CrossChainReceiveTokenInput other) : this() { fromChainId_ = other.fromChainId_; parentChainHeight_ = other.parentChainHeight_; @@ -4982,6 +7338,7 @@ public CrossChainReceiveTokenInput(CrossChainReceiveTokenInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CrossChainReceiveTokenInput Clone() { return new CrossChainReceiveTokenInput(this); } @@ -4993,6 +7350,7 @@ public CrossChainReceiveTokenInput Clone() { /// The source chain id. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int FromChainId { get { return fromChainId_; } set { @@ -5007,6 +7365,7 @@ public int FromChainId { /// The height of the transfer transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long ParentChainHeight { get { return parentChainHeight_; } set { @@ -5021,6 +7380,7 @@ public long ParentChainHeight { /// The raw bytes of the transfer transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString TransferTransactionBytes { get { return transferTransactionBytes_; } set { @@ -5035,6 +7395,7 @@ public long ParentChainHeight { /// The merkle path created from the transfer transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.MerklePath MerklePath { get { return merklePath_; } set { @@ -5043,11 +7404,13 @@ public long ParentChainHeight { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CrossChainReceiveTokenInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CrossChainReceiveTokenInput other) { if (ReferenceEquals(other, null)) { return false; @@ -5063,6 +7426,7 @@ public bool Equals(CrossChainReceiveTokenInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (FromChainId != 0) hash ^= FromChainId.GetHashCode(); @@ -5076,12 +7440,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (FromChainId != 0) { output.WriteRawTag(8); output.WriteInt32(FromChainId); @@ -5101,9 +7470,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FromChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(FromChainId); + } + if (ParentChainHeight != 0L) { + output.WriteRawTag(16); + output.WriteInt64(ParentChainHeight); + } + if (TransferTransactionBytes.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(TransferTransactionBytes); + } + if (merklePath_ != null) { + output.WriteRawTag(34); + output.WriteMessage(MerklePath); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (FromChainId != 0) { @@ -5125,6 +7522,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CrossChainReceiveTokenInput other) { if (other == null) { return; @@ -5148,7 +7546,11 @@ public void MergeFrom(CrossChainReceiveTokenInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -5176,27 +7578,70 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + FromChainId = input.ReadInt32(); + break; + } + case 16: { + ParentChainHeight = input.ReadInt64(); + break; + } + case 26: { + TransferTransactionBytes = input.ReadBytes(); + break; + } + case 34: { + if (merklePath_ == null) { + MerklePath = new global::AElf.Types.MerklePath(); + } + input.ReadMessage(MerklePath); + break; + } + } + } } + #endif } - public sealed partial class IsInWhiteListInput : pb::IMessage { + public sealed partial class IsInWhiteListInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IsInWhiteListInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[22]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[24]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public IsInWhiteListInput() { OnConstruction(); } @@ -5204,6 +7649,7 @@ public IsInWhiteListInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public IsInWhiteListInput(IsInWhiteListInput other) : this() { symbol_ = other.symbol_; address_ = other.address_ != null ? other.address_.Clone() : null; @@ -5211,6 +7657,7 @@ public IsInWhiteListInput(IsInWhiteListInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public IsInWhiteListInput Clone() { return new IsInWhiteListInput(this); } @@ -5222,6 +7669,7 @@ public IsInWhiteListInput Clone() { /// The symbol of token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -5236,6 +7684,7 @@ public string Symbol { /// The address to check. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Address { get { return address_; } set { @@ -5244,11 +7693,13 @@ public string Symbol { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as IsInWhiteListInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(IsInWhiteListInput other) { if (ReferenceEquals(other, null)) { return false; @@ -5262,6 +7713,7 @@ public bool Equals(IsInWhiteListInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); @@ -5273,12 +7725,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Symbol.Length != 0) { output.WriteRawTag(10); output.WriteString(Symbol); @@ -5290,11 +7747,31 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (address_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Address); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; if (Symbol.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); } @@ -5308,6 +7785,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(IsInWhiteListInput other) { if (other == null) { return; @@ -5325,7 +7803,11 @@ public void MergeFrom(IsInWhiteListInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -5345,27 +7827,62 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + } + } } + #endif } - public sealed partial class SymbolToPayTxSizeFee : pb::IMessage { + public sealed partial class SymbolToPayTxSizeFee : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SymbolToPayTxSizeFee()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[23]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[25]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SymbolToPayTxSizeFee() { OnConstruction(); } @@ -5373,6 +7890,7 @@ public SymbolToPayTxSizeFee() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SymbolToPayTxSizeFee(SymbolToPayTxSizeFee other) : this() { tokenSymbol_ = other.tokenSymbol_; baseTokenWeight_ = other.baseTokenWeight_; @@ -5381,6 +7899,7 @@ public SymbolToPayTxSizeFee(SymbolToPayTxSizeFee other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SymbolToPayTxSizeFee Clone() { return new SymbolToPayTxSizeFee(this); } @@ -5392,6 +7911,7 @@ public SymbolToPayTxSizeFee Clone() { /// The symbol of token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TokenSymbol { get { return tokenSymbol_; } set { @@ -5406,6 +7926,7 @@ public string TokenSymbol { /// The charge weight of primary token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int BaseTokenWeight { get { return baseTokenWeight_; } set { @@ -5422,6 +7943,7 @@ public int BaseTokenWeight { /// the user can also pay for 10 newly added tokens. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int AddedTokenWeight { get { return addedTokenWeight_; } set { @@ -5430,11 +7952,13 @@ public int AddedTokenWeight { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SymbolToPayTxSizeFee); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SymbolToPayTxSizeFee other) { if (ReferenceEquals(other, null)) { return false; @@ -5449,6 +7973,7 @@ public bool Equals(SymbolToPayTxSizeFee other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (TokenSymbol.Length != 0) hash ^= TokenSymbol.GetHashCode(); @@ -5461,12 +7986,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (TokenSymbol.Length != 0) { output.WriteRawTag(10); output.WriteString(TokenSymbol); @@ -5482,9 +8012,33 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TokenSymbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TokenSymbol); + } + if (BaseTokenWeight != 0) { + output.WriteRawTag(16); + output.WriteInt32(BaseTokenWeight); + } + if (AddedTokenWeight != 0) { + output.WriteRawTag(24); + output.WriteInt32(AddedTokenWeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (TokenSymbol.Length != 0) { @@ -5503,6 +8057,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SymbolToPayTxSizeFee other) { if (other == null) { return; @@ -5520,7 +8075,11 @@ public void MergeFrom(SymbolToPayTxSizeFee other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -5541,27 +8100,63 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + TokenSymbol = input.ReadString(); + break; + } + case 16: { + BaseTokenWeight = input.ReadInt32(); + break; + } + case 24: { + AddedTokenWeight = input.ReadInt32(); + break; + } + } + } } + #endif } - public sealed partial class SymbolListToPayTxSizeFee : pb::IMessage { + public sealed partial class SymbolListToPayTxSizeFee : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SymbolListToPayTxSizeFee()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[24]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[26]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SymbolListToPayTxSizeFee() { OnConstruction(); } @@ -5569,12 +8164,14 @@ public SymbolListToPayTxSizeFee() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SymbolListToPayTxSizeFee(SymbolListToPayTxSizeFee other) : this() { symbolsToPayTxSizeFee_ = other.symbolsToPayTxSizeFee_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SymbolListToPayTxSizeFee Clone() { return new SymbolListToPayTxSizeFee(this); } @@ -5588,16 +8185,19 @@ public SymbolListToPayTxSizeFee Clone() { /// Transaction fee token information. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField SymbolsToPayTxSizeFee { get { return symbolsToPayTxSizeFee_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SymbolListToPayTxSizeFee); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SymbolListToPayTxSizeFee other) { if (ReferenceEquals(other, null)) { return false; @@ -5610,6 +8210,7 @@ public bool Equals(SymbolListToPayTxSizeFee other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= symbolsToPayTxSizeFee_.GetHashCode(); @@ -5620,19 +8221,37 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else symbolsToPayTxSizeFee_.WriteTo(output, _repeated_symbolsToPayTxSizeFee_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + symbolsToPayTxSizeFee_.WriteTo(ref output, _repeated_symbolsToPayTxSizeFee_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += symbolsToPayTxSizeFee_.CalculateSize(_repeated_symbolsToPayTxSizeFee_codec); @@ -5643,6 +8262,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SymbolListToPayTxSizeFee other) { if (other == null) { return; @@ -5652,7 +8272,11 @@ public void MergeFrom(SymbolListToPayTxSizeFee other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -5665,27 +8289,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + symbolsToPayTxSizeFee_.AddEntriesFrom(ref input, _repeated_symbolsToPayTxSizeFee_codec); + break; + } + } + } } + #endif } - public sealed partial class ChargeTransactionFeesInput : pb::IMessage { + public sealed partial class ChargeTransactionFeesInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChargeTransactionFeesInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[25]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[27]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ChargeTransactionFeesInput() { OnConstruction(); } @@ -5693,6 +8345,7 @@ public ChargeTransactionFeesInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ChargeTransactionFeesInput(ChargeTransactionFeesInput other) : this() { methodName_ = other.methodName_; contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; @@ -5702,6 +8355,7 @@ public ChargeTransactionFeesInput(ChargeTransactionFeesInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ChargeTransactionFeesInput Clone() { return new ChargeTransactionFeesInput(this); } @@ -5713,6 +8367,7 @@ public ChargeTransactionFeesInput Clone() { /// The method name of transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string MethodName { get { return methodName_; } set { @@ -5727,6 +8382,7 @@ public string MethodName { /// The contract address of transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address ContractAddress { get { return contractAddress_; } set { @@ -5741,6 +8397,7 @@ public string MethodName { /// The amount of transaction size fee. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long TransactionSizeFee { get { return transactionSizeFee_; } set { @@ -5757,16 +8414,19 @@ public long TransactionSizeFee { /// Transaction fee token information. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField SymbolsToPayTxSizeFee { get { return symbolsToPayTxSizeFee_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ChargeTransactionFeesInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ChargeTransactionFeesInput other) { if (ReferenceEquals(other, null)) { return false; @@ -5782,6 +8442,7 @@ public bool Equals(ChargeTransactionFeesInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (MethodName.Length != 0) hash ^= MethodName.GetHashCode(); @@ -5795,12 +8456,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (MethodName.Length != 0) { output.WriteRawTag(10); output.WriteString(MethodName); @@ -5817,9 +8483,34 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (MethodName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(MethodName); + } + if (contractAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ContractAddress); + } + if (TransactionSizeFee != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TransactionSizeFee); + } + symbolsToPayTxSizeFee_.WriteTo(ref output, _repeated_symbolsToPayTxSizeFee_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (MethodName.Length != 0) { @@ -5839,6 +8530,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ChargeTransactionFeesInput other) { if (other == null) { return; @@ -5860,7 +8552,11 @@ public void MergeFrom(ChargeTransactionFeesInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -5888,27 +8584,70 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + MethodName = input.ReadString(); + break; + } + case 18: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 24: { + TransactionSizeFee = input.ReadInt64(); + break; + } + case 34: { + symbolsToPayTxSizeFee_.AddEntriesFrom(ref input, _repeated_symbolsToPayTxSizeFee_codec); + break; + } + } + } } + #endif } - public sealed partial class ChargeTransactionFeesOutput : pb::IMessage { + public sealed partial class ChargeTransactionFeesOutput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChargeTransactionFeesOutput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[26]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[28]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ChargeTransactionFeesOutput() { OnConstruction(); } @@ -5916,6 +8655,7 @@ public ChargeTransactionFeesOutput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ChargeTransactionFeesOutput(ChargeTransactionFeesOutput other) : this() { success_ = other.success_; chargingInformation_ = other.chargingInformation_; @@ -5923,6 +8663,7 @@ public ChargeTransactionFeesOutput(ChargeTransactionFeesOutput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ChargeTransactionFeesOutput Clone() { return new ChargeTransactionFeesOutput(this); } @@ -5934,6 +8675,7 @@ public ChargeTransactionFeesOutput Clone() { /// Whether the charge was successful. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Success { get { return success_; } set { @@ -5948,6 +8690,7 @@ public bool Success { /// The charging information. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ChargingInformation { get { return chargingInformation_; } set { @@ -5956,11 +8699,13 @@ public string ChargingInformation { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ChargeTransactionFeesOutput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ChargeTransactionFeesOutput other) { if (ReferenceEquals(other, null)) { return false; @@ -5974,6 +8719,7 @@ public bool Equals(ChargeTransactionFeesOutput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Success != false) hash ^= Success.GetHashCode(); @@ -5985,12 +8731,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Success != false) { output.WriteRawTag(8); output.WriteBool(Success); @@ -6002,9 +8753,29 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Success != false) { + output.WriteRawTag(8); + output.WriteBool(Success); + } + if (ChargingInformation.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ChargingInformation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Success != false) { @@ -6020,6 +8791,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ChargeTransactionFeesOutput other) { if (other == null) { return; @@ -6034,7 +8806,11 @@ public void MergeFrom(ChargeTransactionFeesOutput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -6051,27 +8827,59 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Success = input.ReadBool(); + break; + } + case 18: { + ChargingInformation = input.ReadString(); + break; + } + } + } } + #endif } - public sealed partial class CallbackInfo : pb::IMessage { + public sealed partial class CallbackInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallbackInfo()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[27]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[29]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CallbackInfo() { OnConstruction(); } @@ -6079,6 +8887,7 @@ public CallbackInfo() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CallbackInfo(CallbackInfo other) : this() { contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; methodName_ = other.methodName_; @@ -6086,6 +8895,7 @@ public CallbackInfo(CallbackInfo other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CallbackInfo Clone() { return new CallbackInfo(this); } @@ -6094,6 +8904,7 @@ public CallbackInfo Clone() { public const int ContractAddressFieldNumber = 1; private global::AElf.Types.Address contractAddress_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address ContractAddress { get { return contractAddress_; } set { @@ -6105,6 +8916,7 @@ public CallbackInfo Clone() { public const int MethodNameFieldNumber = 2; private string methodName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string MethodName { get { return methodName_; } set { @@ -6113,11 +8925,13 @@ public string MethodName { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CallbackInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CallbackInfo other) { if (ReferenceEquals(other, null)) { return false; @@ -6131,6 +8945,7 @@ public bool Equals(CallbackInfo other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (contractAddress_ != null) hash ^= ContractAddress.GetHashCode(); @@ -6142,12 +8957,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (contractAddress_ != null) { output.WriteRawTag(10); output.WriteMessage(ContractAddress); @@ -6159,9 +8979,29 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (contractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ContractAddress); + } + if (MethodName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MethodName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (contractAddress_ != null) { @@ -6177,6 +9017,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CallbackInfo other) { if (other == null) { return; @@ -6194,7 +9035,11 @@ public void MergeFrom(CallbackInfo other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -6214,27 +9059,62 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 18: { + MethodName = input.ReadString(); + break; + } + } + } + } + #endif + } - public sealed partial class ExtraTokenListModified : pb::IMessage { + public sealed partial class ExtraTokenListModified : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExtraTokenListModified()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[28]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[30]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ExtraTokenListModified() { OnConstruction(); } @@ -6242,12 +9122,14 @@ public ExtraTokenListModified() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ExtraTokenListModified(ExtraTokenListModified other) : this() { symbolListToPayTxSizeFee_ = other.symbolListToPayTxSizeFee_ != null ? other.symbolListToPayTxSizeFee_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ExtraTokenListModified Clone() { return new ExtraTokenListModified(this); } @@ -6259,6 +9141,7 @@ public ExtraTokenListModified Clone() { /// Transaction fee token information. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Contracts.MultiToken.SymbolListToPayTxSizeFee SymbolListToPayTxSizeFee { get { return symbolListToPayTxSizeFee_; } set { @@ -6267,11 +9150,13 @@ public ExtraTokenListModified Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ExtraTokenListModified); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ExtraTokenListModified other) { if (ReferenceEquals(other, null)) { return false; @@ -6284,6 +9169,7 @@ public bool Equals(ExtraTokenListModified other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (symbolListToPayTxSizeFee_ != null) hash ^= SymbolListToPayTxSizeFee.GetHashCode(); @@ -6294,12 +9180,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (symbolListToPayTxSizeFee_ != null) { output.WriteRawTag(10); output.WriteMessage(SymbolListToPayTxSizeFee); @@ -6307,9 +9198,25 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (symbolListToPayTxSizeFee_ != null) { + output.WriteRawTag(10); + output.WriteMessage(SymbolListToPayTxSizeFee); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (symbolListToPayTxSizeFee_ != null) { @@ -6322,6 +9229,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ExtraTokenListModified other) { if (other == null) { return; @@ -6336,7 +9244,11 @@ public void MergeFrom(ExtraTokenListModified other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -6352,27 +9264,58 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (symbolListToPayTxSizeFee_ == null) { + SymbolListToPayTxSizeFee = new global::AElf.Contracts.MultiToken.SymbolListToPayTxSizeFee(); + } + input.ReadMessage(SymbolListToPayTxSizeFee); + break; + } + } + } + } + #endif + } - public sealed partial class GetLockedAmountInput : pb::IMessage { + public sealed partial class GetLockedAmountInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLockedAmountInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[29]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[31]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetLockedAmountInput() { OnConstruction(); } @@ -6380,6 +9323,7 @@ public GetLockedAmountInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetLockedAmountInput(GetLockedAmountInput other) : this() { address_ = other.address_ != null ? other.address_.Clone() : null; symbol_ = other.symbol_; @@ -6388,6 +9332,7 @@ public GetLockedAmountInput(GetLockedAmountInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetLockedAmountInput Clone() { return new GetLockedAmountInput(this); } @@ -6399,6 +9344,7 @@ public GetLockedAmountInput Clone() { /// The address of the lock. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Address { get { return address_; } set { @@ -6413,6 +9359,7 @@ public GetLockedAmountInput Clone() { /// The token symbol. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -6427,6 +9374,7 @@ public string Symbol { /// The id of the lock. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Hash LockId { get { return lockId_; } set { @@ -6435,11 +9383,13 @@ public string Symbol { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetLockedAmountInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetLockedAmountInput other) { if (ReferenceEquals(other, null)) { return false; @@ -6454,6 +9404,7 @@ public bool Equals(GetLockedAmountInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (address_ != null) hash ^= Address.GetHashCode(); @@ -6466,12 +9417,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (address_ != null) { output.WriteRawTag(10); output.WriteMessage(Address); @@ -6487,27 +9443,52 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (address_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address); + output.WriteRawTag(10); + output.WriteMessage(Address); } if (Symbol.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + output.WriteRawTag(18); + output.WriteString(Symbol); } if (lockId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LockId); + output.WriteRawTag(26); + output.WriteMessage(LockId); } if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); + _unknownFields.WriteTo(ref output); } - return size; } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (address_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (lockId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LockId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetLockedAmountInput other) { if (other == null) { return; @@ -6531,7 +9512,11 @@ public void MergeFrom(GetLockedAmountInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -6558,27 +9543,69 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 26: { + if (lockId_ == null) { + LockId = new global::AElf.Types.Hash(); + } + input.ReadMessage(LockId); + break; + } + } + } } + #endif } - public sealed partial class GetLockedAmountOutput : pb::IMessage { + public sealed partial class GetLockedAmountOutput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetLockedAmountOutput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[30]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[32]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetLockedAmountOutput() { OnConstruction(); } @@ -6586,6 +9613,7 @@ public GetLockedAmountOutput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetLockedAmountOutput(GetLockedAmountOutput other) : this() { address_ = other.address_ != null ? other.address_.Clone() : null; symbol_ = other.symbol_; @@ -6595,6 +9623,7 @@ public GetLockedAmountOutput(GetLockedAmountOutput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetLockedAmountOutput Clone() { return new GetLockedAmountOutput(this); } @@ -6606,6 +9635,7 @@ public GetLockedAmountOutput Clone() { /// The address of the lock. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Address { get { return address_; } set { @@ -6620,6 +9650,7 @@ public GetLockedAmountOutput Clone() { /// The token symbol. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -6634,6 +9665,7 @@ public string Symbol { /// The id of the lock. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Hash LockId { get { return lockId_; } set { @@ -6648,6 +9680,7 @@ public string Symbol { /// The locked amount. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Amount { get { return amount_; } set { @@ -6656,11 +9689,13 @@ public long Amount { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetLockedAmountOutput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetLockedAmountOutput other) { if (ReferenceEquals(other, null)) { return false; @@ -6676,6 +9711,7 @@ public bool Equals(GetLockedAmountOutput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (address_ != null) hash ^= Address.GetHashCode(); @@ -6689,12 +9725,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (address_ != null) { output.WriteRawTag(10); output.WriteMessage(Address); @@ -6714,9 +9755,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (lockId_ != null) { + output.WriteRawTag(26); + output.WriteMessage(LockId); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (address_ != null) { @@ -6738,6 +9807,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetLockedAmountOutput other) { if (other == null) { return; @@ -6764,7 +9834,11 @@ public void MergeFrom(GetLockedAmountOutput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -6795,27 +9869,73 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 26: { + if (lockId_ == null) { + LockId = new global::AElf.Types.Hash(); + } + input.ReadMessage(LockId); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + } + } } + #endif } - public sealed partial class TokenInfoList : pb::IMessage { + public sealed partial class TokenInfoList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenInfoList()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[31]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[33]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TokenInfoList() { OnConstruction(); } @@ -6823,12 +9943,14 @@ public TokenInfoList() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TokenInfoList(TokenInfoList other) : this() { value_ = other.value_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TokenInfoList Clone() { return new TokenInfoList(this); } @@ -6842,16 +9964,19 @@ public TokenInfoList Clone() { /// List of token information. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Value { get { return value_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TokenInfoList); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TokenInfoList other) { if (ReferenceEquals(other, null)) { return false; @@ -6864,6 +9989,7 @@ public bool Equals(TokenInfoList other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= value_.GetHashCode(); @@ -6874,19 +10000,37 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else value_.WriteTo(output, _repeated_value_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += value_.CalculateSize(_repeated_value_codec); @@ -6897,6 +10041,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TokenInfoList other) { if (other == null) { return; @@ -6906,7 +10051,11 @@ public void MergeFrom(TokenInfoList other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -6919,27 +10068,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + } + } } + #endif } - public sealed partial class GetCrossChainTransferTokenContractAddressInput : pb::IMessage { + public sealed partial class GetCrossChainTransferTokenContractAddressInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCrossChainTransferTokenContractAddressInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[32]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[34]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetCrossChainTransferTokenContractAddressInput() { OnConstruction(); } @@ -6947,12 +10124,14 @@ public GetCrossChainTransferTokenContractAddressInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetCrossChainTransferTokenContractAddressInput(GetCrossChainTransferTokenContractAddressInput other) : this() { chainId_ = other.chainId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetCrossChainTransferTokenContractAddressInput Clone() { return new GetCrossChainTransferTokenContractAddressInput(this); } @@ -6964,6 +10143,7 @@ public GetCrossChainTransferTokenContractAddressInput Clone() { /// The chain id. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ChainId { get { return chainId_; } set { @@ -6972,11 +10152,13 @@ public int ChainId { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetCrossChainTransferTokenContractAddressInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetCrossChainTransferTokenContractAddressInput other) { if (ReferenceEquals(other, null)) { return false; @@ -6989,6 +10171,7 @@ public bool Equals(GetCrossChainTransferTokenContractAddressInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (ChainId != 0) hash ^= ChainId.GetHashCode(); @@ -6999,12 +10182,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (ChainId != 0) { output.WriteRawTag(8); output.WriteInt32(ChainId); @@ -7012,9 +10200,25 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(ChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (ChainId != 0) { @@ -7027,6 +10231,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetCrossChainTransferTokenContractAddressInput other) { if (other == null) { return; @@ -7038,7 +10243,11 @@ public void MergeFrom(GetCrossChainTransferTokenContractAddressInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -7051,27 +10260,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ChainId = input.ReadInt32(); + break; + } + } + } } + #endif } - public sealed partial class CrossChainCreateTokenInput : pb::IMessage { + public sealed partial class CrossChainCreateTokenInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainCreateTokenInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[33]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[35]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CrossChainCreateTokenInput() { OnConstruction(); } @@ -7079,6 +10316,7 @@ public CrossChainCreateTokenInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CrossChainCreateTokenInput(CrossChainCreateTokenInput other) : this() { fromChainId_ = other.fromChainId_; parentChainHeight_ = other.parentChainHeight_; @@ -7088,6 +10326,7 @@ public CrossChainCreateTokenInput(CrossChainCreateTokenInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CrossChainCreateTokenInput Clone() { return new CrossChainCreateTokenInput(this); } @@ -7099,6 +10338,7 @@ public CrossChainCreateTokenInput Clone() { /// The chain id of the chain on which the token was created. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int FromChainId { get { return fromChainId_; } set { @@ -7113,6 +10353,7 @@ public int FromChainId { /// The height of the transaction that created the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long ParentChainHeight { get { return parentChainHeight_; } set { @@ -7127,6 +10368,7 @@ public long ParentChainHeight { /// The transaction that created the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString TransactionBytes { get { return transactionBytes_; } set { @@ -7141,6 +10383,7 @@ public long ParentChainHeight { /// The merkle path created from the transaction that created the transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.MerklePath MerklePath { get { return merklePath_; } set { @@ -7149,11 +10392,13 @@ public long ParentChainHeight { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CrossChainCreateTokenInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CrossChainCreateTokenInput other) { if (ReferenceEquals(other, null)) { return false; @@ -7169,6 +10414,7 @@ public bool Equals(CrossChainCreateTokenInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (FromChainId != 0) hash ^= FromChainId.GetHashCode(); @@ -7182,12 +10428,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (FromChainId != 0) { output.WriteRawTag(8); output.WriteInt32(FromChainId); @@ -7207,9 +10458,37 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FromChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(FromChainId); + } + if (ParentChainHeight != 0L) { + output.WriteRawTag(16); + output.WriteInt64(ParentChainHeight); + } + if (TransactionBytes.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(TransactionBytes); + } + if (merklePath_ != null) { + output.WriteRawTag(34); + output.WriteMessage(MerklePath); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (FromChainId != 0) { @@ -7231,6 +10510,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CrossChainCreateTokenInput other) { if (other == null) { return; @@ -7254,7 +10534,11 @@ public void MergeFrom(CrossChainCreateTokenInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -7282,27 +10566,70 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + FromChainId = input.ReadInt32(); + break; + } + case 16: { + ParentChainHeight = input.ReadInt64(); + break; + } + case 26: { + TransactionBytes = input.ReadBytes(); + break; + } + case 34: { + if (merklePath_ == null) { + MerklePath = new global::AElf.Types.MerklePath(); + } + input.ReadMessage(MerklePath); + break; + } + } + } } + #endif } - public sealed partial class InitializeFromParentChainInput : pb::IMessage { + public sealed partial class InitializeFromParentChainInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InitializeFromParentChainInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[34]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[36]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InitializeFromParentChainInput() { OnConstruction(); } @@ -7310,6 +10637,7 @@ public InitializeFromParentChainInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InitializeFromParentChainInput(InitializeFromParentChainInput other) : this() { resourceAmount_ = other.resourceAmount_.Clone(); registeredOtherTokenContractAddresses_ = other.registeredOtherTokenContractAddresses_.Clone(); @@ -7318,6 +10646,7 @@ public InitializeFromParentChainInput(InitializeFromParentChainInput other) : th } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InitializeFromParentChainInput Clone() { return new InitializeFromParentChainInput(this); } @@ -7331,6 +10660,7 @@ public InitializeFromParentChainInput Clone() { /// The amount of resource. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField ResourceAmount { get { return resourceAmount_; } } @@ -7344,6 +10674,7 @@ public InitializeFromParentChainInput Clone() { /// The token contract addresses. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField RegisteredOtherTokenContractAddresses { get { return registeredOtherTokenContractAddresses_; } } @@ -7355,6 +10686,7 @@ public InitializeFromParentChainInput Clone() { /// The creator the side chain. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Creator { get { return creator_; } set { @@ -7363,11 +10695,13 @@ public InitializeFromParentChainInput Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as InitializeFromParentChainInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(InitializeFromParentChainInput other) { if (ReferenceEquals(other, null)) { return false; @@ -7382,6 +10716,7 @@ public bool Equals(InitializeFromParentChainInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= ResourceAmount.GetHashCode(); @@ -7394,12 +10729,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else resourceAmount_.WriteTo(output, _map_resourceAmount_codec); registeredOtherTokenContractAddresses_.WriteTo(output, _map_registeredOtherTokenContractAddresses_codec); if (creator_ != null) { @@ -7409,9 +10749,27 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + resourceAmount_.WriteTo(ref output, _map_resourceAmount_codec); + registeredOtherTokenContractAddresses_.WriteTo(ref output, _map_registeredOtherTokenContractAddresses_codec); + if (creator_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Creator); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += resourceAmount_.CalculateSize(_map_resourceAmount_codec); @@ -7426,6 +10784,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(InitializeFromParentChainInput other) { if (other == null) { return; @@ -7442,7 +10801,11 @@ public void MergeFrom(InitializeFromParentChainInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -7466,27 +10829,66 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + resourceAmount_.AddEntriesFrom(ref input, _map_resourceAmount_codec); + break; + } + case 18: { + registeredOtherTokenContractAddresses_.AddEntriesFrom(ref input, _map_registeredOtherTokenContractAddresses_codec); + break; + } + case 26: { + if (creator_ == null) { + Creator = new global::AElf.Types.Address(); + } + input.ReadMessage(Creator); + break; + } + } + } } + #endif } - public sealed partial class UpdateCoefficientsInput : pb::IMessage { + public sealed partial class UpdateCoefficientsInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateCoefficientsInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[35]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[37]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UpdateCoefficientsInput() { OnConstruction(); } @@ -7494,6 +10896,7 @@ public UpdateCoefficientsInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UpdateCoefficientsInput(UpdateCoefficientsInput other) : this() { pieceNumbers_ = other.pieceNumbers_.Clone(); coefficients_ = other.coefficients_ != null ? other.coefficients_.Clone() : null; @@ -7501,6 +10904,7 @@ public UpdateCoefficientsInput(UpdateCoefficientsInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UpdateCoefficientsInput Clone() { return new UpdateCoefficientsInput(this); } @@ -7514,6 +10918,7 @@ public UpdateCoefficientsInput Clone() { /// The specify pieces gonna update. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField PieceNumbers { get { return pieceNumbers_; } } @@ -7525,6 +10930,7 @@ public UpdateCoefficientsInput Clone() { /// Coefficients of one single type. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Contracts.MultiToken.CalculateFeeCoefficients Coefficients { get { return coefficients_; } set { @@ -7533,11 +10939,13 @@ public UpdateCoefficientsInput Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as UpdateCoefficientsInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(UpdateCoefficientsInput other) { if (ReferenceEquals(other, null)) { return false; @@ -7551,6 +10959,7 @@ public bool Equals(UpdateCoefficientsInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= pieceNumbers_.GetHashCode(); @@ -7562,12 +10971,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else pieceNumbers_.WriteTo(output, _repeated_pieceNumbers_codec); if (coefficients_ != null) { output.WriteRawTag(18); @@ -7576,9 +10990,26 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + pieceNumbers_.WriteTo(ref output, _repeated_pieceNumbers_codec); + if (coefficients_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Coefficients); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += pieceNumbers_.CalculateSize(_repeated_pieceNumbers_codec); @@ -7592,6 +11023,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(UpdateCoefficientsInput other) { if (other == null) { return; @@ -7607,7 +11039,11 @@ public void MergeFrom(UpdateCoefficientsInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -7628,27 +11064,63 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - } - - public sealed partial class CalculateFeePieceCoefficients : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalculateFeePieceCoefficients()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[36]; } - } - + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + pieceNumbers_.AddEntriesFrom(ref input, _repeated_pieceNumbers_codec); + break; + } + case 18: { + if (coefficients_ == null) { + Coefficients = new global::AElf.Contracts.MultiToken.CalculateFeeCoefficients(); + } + input.ReadMessage(Coefficients); + break; + } + } + } + } + #endif + + } + + public sealed partial class CalculateFeePieceCoefficients : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalculateFeePieceCoefficients()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CalculateFeePieceCoefficients() { OnConstruction(); } @@ -7656,12 +11128,14 @@ public CalculateFeePieceCoefficients() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CalculateFeePieceCoefficients(CalculateFeePieceCoefficients other) : this() { value_ = other.value_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CalculateFeePieceCoefficients Clone() { return new CalculateFeePieceCoefficients(this); } @@ -7677,16 +11151,19 @@ public CalculateFeePieceCoefficients Clone() { /// The second char is its piece upper bound. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Value { get { return value_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CalculateFeePieceCoefficients); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CalculateFeePieceCoefficients other) { if (ReferenceEquals(other, null)) { return false; @@ -7699,6 +11176,7 @@ public bool Equals(CalculateFeePieceCoefficients other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= value_.GetHashCode(); @@ -7709,19 +11187,37 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else value_.WriteTo(output, _repeated_value_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += value_.CalculateSize(_repeated_value_codec); @@ -7732,6 +11228,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CalculateFeePieceCoefficients other) { if (other == null) { return; @@ -7741,7 +11238,11 @@ public void MergeFrom(CalculateFeePieceCoefficients other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -7755,27 +11256,56 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: + case 8: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + } + } } + #endif } - public sealed partial class CalculateFeeCoefficients : pb::IMessage { + public sealed partial class CalculateFeeCoefficients : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalculateFeeCoefficients()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[37]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[39]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CalculateFeeCoefficients() { OnConstruction(); } @@ -7783,6 +11313,7 @@ public CalculateFeeCoefficients() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CalculateFeeCoefficients(CalculateFeeCoefficients other) : this() { feeTokenType_ = other.feeTokenType_; pieceCoefficientsList_ = other.pieceCoefficientsList_.Clone(); @@ -7790,6 +11321,7 @@ public CalculateFeeCoefficients(CalculateFeeCoefficients other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CalculateFeeCoefficients Clone() { return new CalculateFeeCoefficients(this); } @@ -7801,6 +11333,7 @@ public CalculateFeeCoefficients Clone() { /// The resource fee type, like READ, WRITE, etc. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int FeeTokenType { get { return feeTokenType_; } set { @@ -7817,16 +11350,19 @@ public int FeeTokenType { /// Coefficients of one single piece. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField PieceCoefficientsList { get { return pieceCoefficientsList_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CalculateFeeCoefficients); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CalculateFeeCoefficients other) { if (ReferenceEquals(other, null)) { return false; @@ -7840,6 +11376,7 @@ public bool Equals(CalculateFeeCoefficients other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (FeeTokenType != 0) hash ^= FeeTokenType.GetHashCode(); @@ -7851,12 +11388,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (FeeTokenType != 0) { output.WriteRawTag(8); output.WriteInt32(FeeTokenType); @@ -7865,9 +11407,26 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FeeTokenType != 0) { + output.WriteRawTag(8); + output.WriteInt32(FeeTokenType); + } + pieceCoefficientsList_.WriteTo(ref output, _repeated_pieceCoefficientsList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (FeeTokenType != 0) { @@ -7881,6 +11440,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CalculateFeeCoefficients other) { if (other == null) { return; @@ -7893,7 +11453,11 @@ public void MergeFrom(CalculateFeeCoefficients other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -7910,27 +11474,59 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + FeeTokenType = input.ReadInt32(); + break; + } + case 18: { + pieceCoefficientsList_.AddEntriesFrom(ref input, _repeated_pieceCoefficientsList_codec); + break; + } + } + } + } + #endif + } - public sealed partial class AllCalculateFeeCoefficients : pb::IMessage { + public sealed partial class AllCalculateFeeCoefficients : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AllCalculateFeeCoefficients()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[38]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[40]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AllCalculateFeeCoefficients() { OnConstruction(); } @@ -7938,12 +11534,14 @@ public AllCalculateFeeCoefficients() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AllCalculateFeeCoefficients(AllCalculateFeeCoefficients other) : this() { value_ = other.value_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AllCalculateFeeCoefficients Clone() { return new AllCalculateFeeCoefficients(this); } @@ -7957,16 +11555,19 @@ public AllCalculateFeeCoefficients Clone() { /// The coefficients of fee Calculation. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Value { get { return value_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AllCalculateFeeCoefficients); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AllCalculateFeeCoefficients other) { if (ReferenceEquals(other, null)) { return false; @@ -7979,6 +11580,7 @@ public bool Equals(AllCalculateFeeCoefficients other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= value_.GetHashCode(); @@ -7989,19 +11591,37 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else value_.WriteTo(output, _repeated_value_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += value_.CalculateSize(_repeated_value_codec); @@ -8012,6 +11632,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AllCalculateFeeCoefficients other) { if (other == null) { return; @@ -8021,7 +11642,11 @@ public void MergeFrom(AllCalculateFeeCoefficients other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -8034,27 +11659,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + } + } } + #endif } - public sealed partial class TotalTransactionFeesMap : pb::IMessage { + public sealed partial class TotalTransactionFeesMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TotalTransactionFeesMap()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[39]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[41]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TotalTransactionFeesMap() { OnConstruction(); } @@ -8062,6 +11715,7 @@ public TotalTransactionFeesMap() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TotalTransactionFeesMap(TotalTransactionFeesMap other) : this() { value_ = other.value_.Clone(); blockHash_ = other.blockHash_ != null ? other.blockHash_.Clone() : null; @@ -8070,6 +11724,7 @@ public TotalTransactionFeesMap(TotalTransactionFeesMap other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TotalTransactionFeesMap Clone() { return new TotalTransactionFeesMap(this); } @@ -8083,6 +11738,7 @@ public TotalTransactionFeesMap Clone() { /// Token dictionary that charge transaction fee, Symbol->Amount. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField Value { get { return value_; } } @@ -8094,6 +11750,7 @@ public TotalTransactionFeesMap Clone() { /// The hash of the block processing the transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Hash BlockHash { get { return blockHash_; } set { @@ -8108,6 +11765,7 @@ public TotalTransactionFeesMap Clone() { /// The height of the block processing the transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long BlockHeight { get { return blockHeight_; } set { @@ -8116,11 +11774,13 @@ public long BlockHeight { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TotalTransactionFeesMap); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TotalTransactionFeesMap other) { if (ReferenceEquals(other, null)) { return false; @@ -8135,6 +11795,7 @@ public bool Equals(TotalTransactionFeesMap other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= Value.GetHashCode(); @@ -8147,12 +11808,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else value_.WriteTo(output, _map_value_codec); if (blockHash_ != null) { output.WriteRawTag(18); @@ -8165,9 +11831,30 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _map_value_codec); + if (blockHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BlockHash); + } + if (BlockHeight != 0L) { + output.WriteRawTag(24); + output.WriteInt64(BlockHeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += value_.CalculateSize(_map_value_codec); @@ -8184,6 +11871,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TotalTransactionFeesMap other) { if (other == null) { return; @@ -8202,7 +11890,11 @@ public void MergeFrom(TotalTransactionFeesMap other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -8226,27 +11918,66 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _map_value_codec); + break; + } + case 18: { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(BlockHash); + break; + } + case 24: { + BlockHeight = input.ReadInt64(); + break; + } + } + } } + #endif } - public sealed partial class TotalResourceTokensMaps : pb::IMessage { + public sealed partial class TotalResourceTokensMaps : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TotalResourceTokensMaps()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[40]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[42]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TotalResourceTokensMaps() { OnConstruction(); } @@ -8254,6 +11985,7 @@ public TotalResourceTokensMaps() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TotalResourceTokensMaps(TotalResourceTokensMaps other) : this() { value_ = other.value_.Clone(); blockHash_ = other.blockHash_ != null ? other.blockHash_.Clone() : null; @@ -8262,6 +11994,7 @@ public TotalResourceTokensMaps(TotalResourceTokensMaps other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TotalResourceTokensMaps Clone() { return new TotalResourceTokensMaps(this); } @@ -8275,6 +12008,7 @@ public TotalResourceTokensMaps Clone() { /// Resource tokens to charge. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Value { get { return value_; } } @@ -8286,6 +12020,7 @@ public TotalResourceTokensMaps Clone() { /// The hash of the block processing the transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Hash BlockHash { get { return blockHash_; } set { @@ -8300,6 +12035,7 @@ public TotalResourceTokensMaps Clone() { /// The height of the block processing the transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long BlockHeight { get { return blockHeight_; } set { @@ -8308,11 +12044,13 @@ public long BlockHeight { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TotalResourceTokensMaps); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TotalResourceTokensMaps other) { if (ReferenceEquals(other, null)) { return false; @@ -8327,6 +12065,7 @@ public bool Equals(TotalResourceTokensMaps other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= value_.GetHashCode(); @@ -8339,12 +12078,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else value_.WriteTo(output, _repeated_value_codec); if (blockHash_ != null) { output.WriteRawTag(18); @@ -8357,9 +12101,30 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _repeated_value_codec); + if (blockHash_ != null) { + output.WriteRawTag(18); + output.WriteMessage(BlockHash); + } + if (BlockHeight != 0L) { + output.WriteRawTag(24); + output.WriteInt64(BlockHeight); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += value_.CalculateSize(_repeated_value_codec); @@ -8376,6 +12141,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TotalResourceTokensMaps other) { if (other == null) { return; @@ -8394,7 +12160,11 @@ public void MergeFrom(TotalResourceTokensMaps other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -8418,27 +12188,66 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + case 18: { + if (blockHash_ == null) { + BlockHash = new global::AElf.Types.Hash(); + } + input.ReadMessage(BlockHash); + break; + } + case 24: { + BlockHeight = input.ReadInt64(); + break; + } + } + } } + #endif } - public sealed partial class ContractTotalResourceTokens : pb::IMessage { + public sealed partial class ContractTotalResourceTokens : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContractTotalResourceTokens()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[41]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[43]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ContractTotalResourceTokens() { OnConstruction(); } @@ -8446,6 +12255,7 @@ public ContractTotalResourceTokens() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ContractTotalResourceTokens(ContractTotalResourceTokens other) : this() { contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; tokensMap_ = other.tokensMap_ != null ? other.tokensMap_.Clone() : null; @@ -8453,6 +12263,7 @@ public ContractTotalResourceTokens(ContractTotalResourceTokens other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ContractTotalResourceTokens Clone() { return new ContractTotalResourceTokens(this); } @@ -8464,6 +12275,7 @@ public ContractTotalResourceTokens Clone() { /// The contract address. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address ContractAddress { get { return contractAddress_; } set { @@ -8478,6 +12290,7 @@ public ContractTotalResourceTokens Clone() { /// Resource tokens to charge. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Contracts.MultiToken.TotalResourceTokensMap TokensMap { get { return tokensMap_; } set { @@ -8486,11 +12299,13 @@ public ContractTotalResourceTokens Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ContractTotalResourceTokens); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ContractTotalResourceTokens other) { if (ReferenceEquals(other, null)) { return false; @@ -8504,6 +12319,7 @@ public bool Equals(ContractTotalResourceTokens other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (contractAddress_ != null) hash ^= ContractAddress.GetHashCode(); @@ -8515,12 +12331,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (contractAddress_ != null) { output.WriteRawTag(10); output.WriteMessage(ContractAddress); @@ -8532,9 +12353,29 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (contractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ContractAddress); + } + if (tokensMap_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TokensMap); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (contractAddress_ != null) { @@ -8550,6 +12391,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ContractTotalResourceTokens other) { if (other == null) { return; @@ -8570,7 +12412,11 @@ public void MergeFrom(ContractTotalResourceTokens other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -8593,27 +12439,65 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 18: { + if (tokensMap_ == null) { + TokensMap = new global::AElf.Contracts.MultiToken.TotalResourceTokensMap(); + } + input.ReadMessage(TokensMap); + break; + } + } + } } + #endif } - public sealed partial class TotalResourceTokensMap : pb::IMessage { + public sealed partial class TotalResourceTokensMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TotalResourceTokensMap()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[42]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[44]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TotalResourceTokensMap() { OnConstruction(); } @@ -8621,12 +12505,14 @@ public TotalResourceTokensMap() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TotalResourceTokensMap(TotalResourceTokensMap other) : this() { value_ = other.value_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TotalResourceTokensMap Clone() { return new TotalResourceTokensMap(this); } @@ -8640,16 +12526,19 @@ public TotalResourceTokensMap Clone() { /// Resource token dictionary, Symbol->Amount. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField Value { get { return value_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TotalResourceTokensMap); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TotalResourceTokensMap other) { if (ReferenceEquals(other, null)) { return false; @@ -8662,6 +12551,7 @@ public bool Equals(TotalResourceTokensMap other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= Value.GetHashCode(); @@ -8672,19 +12562,37 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else value_.WriteTo(output, _map_value_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _map_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += value_.CalculateSize(_map_value_codec); @@ -8695,6 +12603,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TotalResourceTokensMap other) { if (other == null) { return; @@ -8704,7 +12613,11 @@ public void MergeFrom(TotalResourceTokensMap other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -8717,96 +12630,109 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _map_value_codec); + break; + } + } + } } + #endif } - public sealed partial class ChangeTokenIssuerInput : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeTokenIssuerInput()); + public sealed partial class StringList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StringList()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[43]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[45]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ChangeTokenIssuerInput() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StringList() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ChangeTokenIssuerInput(ChangeTokenIssuerInput other) : this() { - symbol_ = other.symbol_; - newTokenIssuer_ = other.newTokenIssuer_ != null ? other.newTokenIssuer_.Clone() : null; + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StringList(StringList other) : this() { + value_ = other.value_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ChangeTokenIssuerInput Clone() { - return new ChangeTokenIssuerInput(this); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public StringList Clone() { + return new StringList(this); } - /// Field number for the "symbol" field. - public const int SymbolFieldNumber = 1; - private string symbol_ = ""; - /// - /// The token symbol. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Symbol { - get { return symbol_; } - set { - symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "new_token_Issuer" field. - public const int NewTokenIssuerFieldNumber = 2; - private global::AElf.Types.Address newTokenIssuer_; - /// - /// The new token issuer for change. - /// + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_value_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Address NewTokenIssuer { - get { return newTokenIssuer_; } - set { - newTokenIssuer_ = value; - } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ChangeTokenIssuerInput); + return Equals(other as StringList); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(ChangeTokenIssuerInput other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(StringList other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Symbol != other.Symbol) return false; - if (!object.Equals(NewTokenIssuer, other.NewTokenIssuer)) return false; + if(!value_.Equals(other.value_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); - if (newTokenIssuer_ != null) hash ^= NewTokenIssuer.GetHashCode(); + hash ^= value_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8814,34 +12740,40 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (Symbol.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Symbol); - } - if (newTokenIssuer_ != null) { - output.WriteRawTag(18); - output.WriteMessage(NewTokenIssuer); - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + value_.WriteTo(output, _repeated_value_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Symbol.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); - } - if (newTokenIssuer_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewTokenIssuer); - } + size += value_.CalculateSize(_repeated_value_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -8849,24 +12781,21 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(ChangeTokenIssuerInput other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(StringList other) { if (other == null) { return; } - if (other.Symbol.Length != 0) { - Symbol = other.Symbol; - } - if (other.newTokenIssuer_ != null) { - if (newTokenIssuer_ == null) { - NewTokenIssuer = new global::AElf.Types.Address(); - } - NewTokenIssuer.MergeFrom(other.NewTokenIssuer); - } + value_.Add(other.value_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -8874,102 +12803,153 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Symbol = input.ReadString(); + value_.AddEntriesFrom(input, _repeated_value_codec); break; } - case 18: { - if (newTokenIssuer_ == null) { - NewTokenIssuer = new global::AElf.Types.Address(); - } - input.ReadMessage(NewTokenIssuer); + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); break; } } } } + #endif } - public sealed partial class ResetExternalInfoInput : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResetExternalInfoInput()); + public sealed partial class TransactionFeeDelegations : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeDelegations()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[44]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[46]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ResetExternalInfoInput() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegations() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ResetExternalInfoInput(ResetExternalInfoInput other) : this() { - symbol_ = other.symbol_; - externalInfo_ = other.externalInfo_ != null ? other.externalInfo_.Clone() : null; + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegations(TransactionFeeDelegations other) : this() { + delegations_ = other.delegations_.Clone(); + blockHeight_ = other.blockHeight_; + isUnlimitedDelegate_ = other.isUnlimitedDelegate_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ResetExternalInfoInput Clone() { - return new ResetExternalInfoInput(this); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegations Clone() { + return new TransactionFeeDelegations(this); } - /// Field number for the "symbol" field. - public const int SymbolFieldNumber = 1; - private string symbol_ = ""; + /// Field number for the "delegations" field. + public const int DelegationsFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_delegations_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 10); + private readonly pbc::MapField delegations_ = new pbc::MapField(); + /// + /// delegation, symbols and its' amount + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Symbol { - get { return symbol_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Delegations { + get { return delegations_; } + } + + /// Field number for the "block_height" field. + public const int BlockHeightFieldNumber = 2; + private long blockHeight_; + /// + /// height when added + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long BlockHeight { + get { return blockHeight_; } set { - symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + blockHeight_ = value; } } - /// Field number for the "external_info" field. - public const int ExternalInfoFieldNumber = 2; - private global::AElf.Contracts.MultiToken.ExternalInfo externalInfo_; + /// Field number for the "isUnlimitedDelegate" field. + public const int IsUnlimitedDelegateFieldNumber = 3; + private bool isUnlimitedDelegate_; + /// + ///Whether to pay transaction fee continuously + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { - get { return externalInfo_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsUnlimitedDelegate { + get { return isUnlimitedDelegate_; } set { - externalInfo_ = value; + isUnlimitedDelegate_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ResetExternalInfoInput); + return Equals(other as TransactionFeeDelegations); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(ResetExternalInfoInput other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeDelegations other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Symbol != other.Symbol) return false; - if (!object.Equals(ExternalInfo, other.ExternalInfo)) return false; + if (!Delegations.Equals(other.Delegations)) return false; + if (BlockHeight != other.BlockHeight) return false; + if (IsUnlimitedDelegate != other.IsUnlimitedDelegate) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); - if (externalInfo_ != null) hash ^= ExternalInfo.GetHashCode(); + hash ^= Delegations.GetHashCode(); + if (BlockHeight != 0L) hash ^= BlockHeight.GetHashCode(); + if (IsUnlimitedDelegate != false) hash ^= IsUnlimitedDelegate.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8977,33 +12957,61 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (Symbol.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Symbol); + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + delegations_.WriteTo(output, _map_delegations_codec); + if (BlockHeight != 0L) { + output.WriteRawTag(16); + output.WriteInt64(BlockHeight); } - if (externalInfo_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ExternalInfo); + if (IsUnlimitedDelegate != false) { + output.WriteRawTag(24); + output.WriteBool(IsUnlimitedDelegate); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + delegations_.WriteTo(ref output, _map_delegations_codec); + if (BlockHeight != 0L) { + output.WriteRawTag(16); + output.WriteInt64(BlockHeight); + } + if (IsUnlimitedDelegate != false) { + output.WriteRawTag(24); + output.WriteBool(IsUnlimitedDelegate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Symbol.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + size += delegations_.CalculateSize(_map_delegations_codec); + if (BlockHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(BlockHeight); } - if (externalInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalInfo); + if (IsUnlimitedDelegate != false) { + size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -9012,24 +13020,27 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(ResetExternalInfoInput other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeDelegations other) { if (other == null) { return; } - if (other.Symbol.Length != 0) { - Symbol = other.Symbol; + delegations_.Add(other.delegations_); + if (other.BlockHeight != 0L) { + BlockHeight = other.BlockHeight; } - if (other.externalInfo_ != null) { - if (externalInfo_ == null) { - ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); - } - ExternalInfo.MergeFrom(other.ExternalInfo); + if (other.IsUnlimitedDelegate != false) { + IsUnlimitedDelegate = other.IsUnlimitedDelegate; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -9037,87 +13048,130 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Symbol = input.ReadString(); + delegations_.AddEntriesFrom(input, _map_delegations_codec); break; } - case 18: { - if (externalInfo_ == null) { - ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); - } - input.ReadMessage(ExternalInfo); + case 16: { + BlockHeight = input.ReadInt64(); + break; + } + case 24: { + IsUnlimitedDelegate = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + delegations_.AddEntriesFrom(ref input, _map_delegations_codec); + break; + } + case 16: { + BlockHeight = input.ReadInt64(); + break; + } + case 24: { + IsUnlimitedDelegate = input.ReadBool(); break; } } } } + #endif } - public sealed partial class StringList : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StringList()); + public sealed partial class TransactionFeeDelegatees : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeDelegatees()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[45]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[47]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public StringList() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegatees() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public StringList(StringList other) : this() { - value_ = other.value_.Clone(); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegatees(TransactionFeeDelegatees other) : this() { + delegatees_ = other.delegatees_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public StringList Clone() { - return new StringList(this); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegatees Clone() { + return new TransactionFeeDelegatees(this); } - /// Field number for the "value" field. - public const int ValueFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_value_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + /// Field number for the "delegatees" field. + public const int DelegateesFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_delegatees_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::AElf.Contracts.MultiToken.TransactionFeeDelegations.Parser), 10); + private readonly pbc::MapField delegatees_ = new pbc::MapField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Value { - get { return value_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Delegatees { + get { return delegatees_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as StringList); + return Equals(other as TransactionFeeDelegatees); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(StringList other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeDelegatees other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!value_.Equals(other.value_)) return false; + if (!Delegatees.Equals(other.Delegatees)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= value_.GetHashCode(); + hash ^= Delegatees.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -9125,22 +13179,40 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - value_.WriteTo(output, _repeated_value_codec); + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + delegatees_.WriteTo(output, _map_delegatees_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + delegatees_.WriteTo(ref output, _map_delegatees_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += value_.CalculateSize(_repeated_value_codec); + size += delegatees_.CalculateSize(_map_delegatees_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -9148,16 +13220,21 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(StringList other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeDelegatees other) { if (other == null) { return; } - value_.Add(other.value_); + delegatees_.Add(other.delegatees_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -9165,152 +13242,135 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - value_.AddEntriesFrom(input, _repeated_value_codec); + delegatees_.AddEntriesFrom(input, _map_delegatees_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + delegatees_.AddEntriesFrom(ref input, _map_delegatees_codec); break; } } } } + #endif } - public sealed partial class Transferred : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Transferred()); + public sealed partial class SetTransactionFeeDelegationsInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetTransactionFeeDelegationsInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[46]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[48]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Transferred() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegationsInput() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Transferred(Transferred other) : this() { - from_ = other.from_ != null ? other.from_.Clone() : null; - to_ = other.to_ != null ? other.to_.Clone() : null; - symbol_ = other.symbol_; - amount_ = other.amount_; - memo_ = other.memo_; + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegationsInput(SetTransactionFeeDelegationsInput other) : this() { + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; + delegations_ = other.delegations_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Transferred Clone() { - return new Transferred(this); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegationsInput Clone() { + return new SetTransactionFeeDelegationsInput(this); } - /// Field number for the "from" field. - public const int FromFieldNumber = 1; - private global::AElf.Types.Address from_; + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 1; + private global::AElf.Types.Address delegatorAddress_; /// - /// The source address of the transferred token. + /// the delegator address /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Address From { - get { return from_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } set { - from_ = value; + delegatorAddress_ = value; } } - /// Field number for the "to" field. - public const int ToFieldNumber = 2; - private global::AElf.Types.Address to_; + /// Field number for the "delegations" field. + public const int DelegationsFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_delegations_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 18); + private readonly pbc::MapField delegations_ = new pbc::MapField(); /// - /// The destination address of the transferred token. + /// delegation, symbols and its' amount /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Address To { - get { return to_; } - set { - to_ = value; - } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Delegations { + get { return delegations_; } } - /// Field number for the "symbol" field. - public const int SymbolFieldNumber = 3; - private string symbol_ = ""; - /// - /// The symbol of the transferred token. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Symbol { - get { return symbol_; } - set { - symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetTransactionFeeDelegationsInput); } - /// Field number for the "amount" field. - public const int AmountFieldNumber = 4; - private long amount_; - /// - /// The amount of the transferred token. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long Amount { - get { return amount_; } - set { - amount_ = value; - } - } - - /// Field number for the "memo" field. - public const int MemoFieldNumber = 5; - private string memo_ = ""; - /// - /// The memo. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Memo { - get { return memo_; } - set { - memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Transferred); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Transferred other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetTransactionFeeDelegationsInput other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(From, other.From)) return false; - if (!object.Equals(To, other.To)) return false; - if (Symbol != other.Symbol) return false; - if (Amount != other.Amount) return false; - if (Memo != other.Memo) return false; + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; + if (!Delegations.Equals(other.Delegations)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (from_ != null) hash ^= From.GetHashCode(); - if (to_ != null) hash ^= To.GetHashCode(); - if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); - if (Amount != 0L) hash ^= Amount.GetHashCode(); - if (Memo.Length != 0) hash ^= Memo.GetHashCode(); + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); + hash ^= Delegations.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -9318,55 +13378,51 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (from_ != null) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegatorAddress_ != null) { output.WriteRawTag(10); - output.WriteMessage(From); - } - if (to_ != null) { - output.WriteRawTag(18); - output.WriteMessage(To); - } - if (Symbol.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Symbol); + output.WriteMessage(DelegatorAddress); } - if (Amount != 0L) { - output.WriteRawTag(32); - output.WriteInt64(Amount); + delegations_.WriteTo(output, _map_delegations_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } - if (Memo.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Memo); + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); } + delegations_.WriteTo(ref output, _map_delegations_codec); if (_unknownFields != null) { - _unknownFields.WriteTo(output); + _unknownFields.WriteTo(ref output); } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (from_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(From); - } - if (to_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); - } - if (Symbol.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); - } - if (Amount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); - } - if (Memo.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); } + size += delegations_.CalculateSize(_map_delegations_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -9374,36 +13430,27 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Transferred other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetTransactionFeeDelegationsInput other) { if (other == null) { return; } - if (other.from_ != null) { - if (from_ == null) { - From = new global::AElf.Types.Address(); - } - From.MergeFrom(other.From); - } - if (other.to_ != null) { - if (to_ == null) { - To = new global::AElf.Types.Address(); + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); } - To.MergeFrom(other.To); - } - if (other.Symbol.Length != 0) { - Symbol = other.Symbol; - } - if (other.Amount != 0L) { - Amount = other.Amount; - } - if (other.Memo.Length != 0) { - Memo = other.Memo; + DelegatorAddress.MergeFrom(other.DelegatorAddress); } + delegations_.Add(other.delegations_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -9411,157 +13458,129 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (from_ == null) { - From = new global::AElf.Types.Address(); + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); } - input.ReadMessage(From); + input.ReadMessage(DelegatorAddress); break; } case 18: { - if (to_ == null) { - To = new global::AElf.Types.Address(); - } - input.ReadMessage(To); + delegations_.AddEntriesFrom(input, _map_delegations_codec); break; } - case 26: { - Symbol = input.ReadString(); + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } - case 32: { - Amount = input.ReadInt64(); + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); break; } - case 42: { - Memo = input.ReadString(); + case 18: { + delegations_.AddEntriesFrom(ref input, _map_delegations_codec); break; } } } } + #endif } - public sealed partial class Approved : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Approved()); + public sealed partial class SetTransactionFeeDelegationsOutput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetTransactionFeeDelegationsOutput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[47]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[49]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Approved() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegationsOutput() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Approved(Approved other) : this() { - owner_ = other.owner_ != null ? other.owner_.Clone() : null; - spender_ = other.spender_ != null ? other.spender_.Clone() : null; - symbol_ = other.symbol_; - amount_ = other.amount_; + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegationsOutput(SetTransactionFeeDelegationsOutput other) : this() { + success_ = other.success_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Approved Clone() { - return new Approved(this); - } - - /// Field number for the "owner" field. - public const int OwnerFieldNumber = 1; - private global::AElf.Types.Address owner_; - /// - /// The address of the token owner. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Address Owner { - get { return owner_; } - set { - owner_ = value; - } - } - - /// Field number for the "spender" field. - public const int SpenderFieldNumber = 2; - private global::AElf.Types.Address spender_; - /// - /// The address that allowance be increased. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Address Spender { - get { return spender_; } - set { - spender_ = value; - } - } - - /// Field number for the "symbol" field. - public const int SymbolFieldNumber = 3; - private string symbol_ = ""; - /// - /// The symbol of approved token. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Symbol { - get { return symbol_; } - set { - symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegationsOutput Clone() { + return new SetTransactionFeeDelegationsOutput(this); } - /// Field number for the "amount" field. - public const int AmountFieldNumber = 4; - private long amount_; - /// - /// The amount of approved token. - /// + /// Field number for the "success" field. + public const int SuccessFieldNumber = 1; + private bool success_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long Amount { - get { return amount_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Success { + get { return success_; } set { - amount_ = value; + success_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as Approved); + return Equals(other as SetTransactionFeeDelegationsOutput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Approved other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetTransactionFeeDelegationsOutput other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Owner, other.Owner)) return false; - if (!object.Equals(Spender, other.Spender)) return false; - if (Symbol != other.Symbol) return false; - if (Amount != other.Amount) return false; + if (Success != other.Success) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (owner_ != null) hash ^= Owner.GetHashCode(); - if (spender_ != null) hash ^= Spender.GetHashCode(); - if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); - if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (Success != false) hash ^= Success.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -9569,47 +13588,47 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (owner_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Owner); - } - if (spender_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Spender); + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Success != false) { + output.WriteRawTag(8); + output.WriteBool(Success); } - if (Symbol.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Symbol); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } - if (Amount != 0L) { - output.WriteRawTag(32); - output.WriteInt64(Amount); + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Success != false) { + output.WriteRawTag(8); + output.WriteBool(Success); } if (_unknownFields != null) { - _unknownFields.WriteTo(output); + _unknownFields.WriteTo(ref output); } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (owner_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); - } - if (spender_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spender); - } - if (Symbol.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); - } - if (Amount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + if (Success != false) { + size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -9618,187 +13637,142 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Approved other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetTransactionFeeDelegationsOutput other) { if (other == null) { return; } - if (other.owner_ != null) { - if (owner_ == null) { - Owner = new global::AElf.Types.Address(); - } - Owner.MergeFrom(other.Owner); - } - if (other.spender_ != null) { - if (spender_ == null) { - Spender = new global::AElf.Types.Address(); - } - Spender.MergeFrom(other.Spender); - } - if (other.Symbol.Length != 0) { - Symbol = other.Symbol; - } - if (other.Amount != 0L) { - Amount = other.Amount; + if (other.Success != false) { + Success = other.Success; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - if (owner_ == null) { - Owner = new global::AElf.Types.Address(); - } - input.ReadMessage(Owner); - break; - } - case 18: { - if (spender_ == null) { - Spender = new global::AElf.Types.Address(); - } - input.ReadMessage(Spender); + case 8: { + Success = input.ReadBool(); break; } - case 26: { - Symbol = input.ReadString(); + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } - case 32: { - Amount = input.ReadInt64(); + case 8: { + Success = input.ReadBool(); break; } } } } + #endif } - public sealed partial class UnApproved : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnApproved()); + public sealed partial class RemoveTransactionFeeDelegatorInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveTransactionFeeDelegatorInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[48]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[50]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public UnApproved() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegatorInput() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public UnApproved(UnApproved other) : this() { - owner_ = other.owner_ != null ? other.owner_.Clone() : null; - spender_ = other.spender_ != null ? other.spender_.Clone() : null; - symbol_ = other.symbol_; - amount_ = other.amount_; + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegatorInput(RemoveTransactionFeeDelegatorInput other) : this() { + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public UnApproved Clone() { - return new UnApproved(this); - } - - /// Field number for the "owner" field. - public const int OwnerFieldNumber = 1; - private global::AElf.Types.Address owner_; - /// - /// The address of the token owner. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Address Owner { - get { return owner_; } - set { - owner_ = value; - } - } - - /// Field number for the "spender" field. - public const int SpenderFieldNumber = 2; - private global::AElf.Types.Address spender_; - /// - /// The address that allowance be decreased. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Address Spender { - get { return spender_; } - set { - spender_ = value; - } - } - - /// Field number for the "symbol" field. - public const int SymbolFieldNumber = 3; - private string symbol_ = ""; - /// - /// The symbol of un-approved token. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Symbol { - get { return symbol_; } - set { - symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegatorInput Clone() { + return new RemoveTransactionFeeDelegatorInput(this); } - /// Field number for the "amount" field. - public const int AmountFieldNumber = 4; - private long amount_; + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 1; + private global::AElf.Types.Address delegatorAddress_; /// - /// The amount of un-approved token. + /// the delegator address /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long Amount { - get { return amount_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } set { - amount_ = value; + delegatorAddress_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UnApproved); + return Equals(other as RemoveTransactionFeeDelegatorInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(UnApproved other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoveTransactionFeeDelegatorInput other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Owner, other.Owner)) return false; - if (!object.Equals(Spender, other.Spender)) return false; - if (Symbol != other.Symbol) return false; - if (Amount != other.Amount) return false; + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (owner_ != null) hash ^= Owner.GetHashCode(); - if (spender_ != null) hash ^= Spender.GetHashCode(); - if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); - if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -9806,47 +13780,47 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (owner_ != null) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegatorAddress_ != null) { output.WriteRawTag(10); - output.WriteMessage(Owner); - } - if (spender_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Spender); + output.WriteMessage(DelegatorAddress); } - if (Symbol.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Symbol); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } - if (Amount != 0L) { - output.WriteRawTag(32); - output.WriteInt64(Amount); + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); } if (_unknownFields != null) { - _unknownFields.WriteTo(output); + _unknownFields.WriteTo(ref output); } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (owner_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); - } - if (spender_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spender); - } - if (Symbol.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); - } - if (Amount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -9855,33 +13829,26 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(UnApproved other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoveTransactionFeeDelegatorInput other) { if (other == null) { return; } - if (other.owner_ != null) { - if (owner_ == null) { - Owner = new global::AElf.Types.Address(); - } - Owner.MergeFrom(other.Owner); - } - if (other.spender_ != null) { - if (spender_ == null) { - Spender = new global::AElf.Types.Address(); + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); } - Spender.MergeFrom(other.Spender); - } - if (other.Symbol.Length != 0) { - Symbol = other.Symbol; - } - if (other.Amount != 0L) { - Amount = other.Amount; + DelegatorAddress.MergeFrom(other.DelegatorAddress); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -9889,136 +13856,124 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (owner_ == null) { - Owner = new global::AElf.Types.Address(); - } - input.ReadMessage(Owner); - break; - } - case 18: { - if (spender_ == null) { - Spender = new global::AElf.Types.Address(); + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); } - input.ReadMessage(Spender); + input.ReadMessage(DelegatorAddress); break; } - case 26: { - Symbol = input.ReadString(); + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } - case 32: { - Amount = input.ReadInt64(); + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); break; } } } } + #endif } - public sealed partial class Burned : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Burned()); + public sealed partial class RemoveTransactionFeeDelegateeInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveTransactionFeeDelegateeInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[49]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[51]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Burned() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegateeInput() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Burned(Burned other) : this() { - burner_ = other.burner_ != null ? other.burner_.Clone() : null; - symbol_ = other.symbol_; - amount_ = other.amount_; + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegateeInput(RemoveTransactionFeeDelegateeInput other) : this() { + delegateeAddress_ = other.delegateeAddress_ != null ? other.delegateeAddress_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Burned Clone() { - return new Burned(this); - } - - /// Field number for the "burner" field. - public const int BurnerFieldNumber = 1; - private global::AElf.Types.Address burner_; - /// - /// The address who wants to burn token. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Address Burner { - get { return burner_; } - set { - burner_ = value; - } - } - - /// Field number for the "symbol" field. - public const int SymbolFieldNumber = 2; - private string symbol_ = ""; - /// - /// The symbol of burned token. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Symbol { - get { return symbol_; } - set { - symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegateeInput Clone() { + return new RemoveTransactionFeeDelegateeInput(this); } - /// Field number for the "amount" field. - public const int AmountFieldNumber = 3; - private long amount_; + /// Field number for the "delegatee_address" field. + public const int DelegateeAddressFieldNumber = 1; + private global::AElf.Types.Address delegateeAddress_; /// - /// The amount of burned token. + /// the delegatee address /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long Amount { - get { return amount_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegateeAddress { + get { return delegateeAddress_; } set { - amount_ = value; + delegateeAddress_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as Burned); + return Equals(other as RemoveTransactionFeeDelegateeInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Burned other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoveTransactionFeeDelegateeInput other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(Burner, other.Burner)) return false; - if (Symbol != other.Symbol) return false; - if (Amount != other.Amount) return false; + if (!object.Equals(DelegateeAddress, other.DelegateeAddress)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (burner_ != null) hash ^= Burner.GetHashCode(); - if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); - if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (delegateeAddress_ != null) hash ^= DelegateeAddress.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10026,69 +13981,75 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (burner_ != null) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegateeAddress_ != null) { output.WriteRawTag(10); - output.WriteMessage(Burner); + output.WriteMessage(DelegateeAddress); } - if (Symbol.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Symbol); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } - if (Amount != 0L) { - output.WriteRawTag(24); - output.WriteInt64(Amount); + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegateeAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegateeAddress); } if (_unknownFields != null) { - _unknownFields.WriteTo(output); + _unknownFields.WriteTo(ref output); } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (burner_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Burner); + if (delegateeAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegateeAddress); } - if (Symbol.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); - } - if (Amount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Burned other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoveTransactionFeeDelegateeInput other) { if (other == null) { return; } - if (other.burner_ != null) { - if (burner_ == null) { - Burner = new global::AElf.Types.Address(); + if (other.delegateeAddress_ != null) { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); } - Burner.MergeFrom(other.Burner); - } - if (other.Symbol.Length != 0) { - Symbol = other.Symbol; - } - if (other.Amount != 0L) { - Amount = other.Amount; + DelegateeAddress.MergeFrom(other.DelegateeAddress); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -10096,95 +14057,136 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (burner_ == null) { - Burner = new global::AElf.Types.Address(); + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); } - input.ReadMessage(Burner); + input.ReadMessage(DelegateeAddress); break; } - case 18: { - Symbol = input.ReadString(); + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } - case 24: { - Amount = input.ReadInt64(); + case 10: { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegateeAddress); break; } } } } + #endif } - public sealed partial class ChainPrimaryTokenSymbolSet : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainPrimaryTokenSymbolSet()); + public sealed partial class GetTransactionFeeDelegationsOfADelegateeInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTransactionFeeDelegationsOfADelegateeInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[50]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[52]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ChainPrimaryTokenSymbolSet() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegationsOfADelegateeInput() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ChainPrimaryTokenSymbolSet(ChainPrimaryTokenSymbolSet other) : this() { - tokenSymbol_ = other.tokenSymbol_; + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegationsOfADelegateeInput(GetTransactionFeeDelegationsOfADelegateeInput other) : this() { + delegateeAddress_ = other.delegateeAddress_ != null ? other.delegateeAddress_.Clone() : null; + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ChainPrimaryTokenSymbolSet Clone() { - return new ChainPrimaryTokenSymbolSet(this); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegationsOfADelegateeInput Clone() { + return new GetTransactionFeeDelegationsOfADelegateeInput(this); } - /// Field number for the "token_symbol" field. - public const int TokenSymbolFieldNumber = 1; - private string tokenSymbol_ = ""; - /// - /// The symbol of token. - /// + /// Field number for the "delegatee_address" field. + public const int DelegateeAddressFieldNumber = 1; + private global::AElf.Types.Address delegateeAddress_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string TokenSymbol { - get { return tokenSymbol_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegateeAddress { + get { return delegateeAddress_; } set { - tokenSymbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + delegateeAddress_ = value; + } + } + + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 2; + private global::AElf.Types.Address delegatorAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } + set { + delegatorAddress_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ChainPrimaryTokenSymbolSet); + return Equals(other as GetTransactionFeeDelegationsOfADelegateeInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(ChainPrimaryTokenSymbolSet other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTransactionFeeDelegationsOfADelegateeInput other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (TokenSymbol != other.TokenSymbol) return false; + if (!object.Equals(DelegateeAddress, other.DelegateeAddress)) return false; + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (TokenSymbol.Length != 0) hash ^= TokenSymbol.GetHashCode(); + if (delegateeAddress_ != null) hash ^= DelegateeAddress.GetHashCode(); + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10192,26 +14194,58 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (TokenSymbol.Length != 0) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegateeAddress_ != null) { output.WriteRawTag(10); - output.WriteString(TokenSymbol); + output.WriteMessage(DelegateeAddress); + } + if (delegatorAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(DelegatorAddress); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegateeAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegateeAddress); + } + if (delegatorAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(DelegatorAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (TokenSymbol.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenSymbol); + if (delegateeAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegateeAddress); + } + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -10220,18 +14254,32 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(ChainPrimaryTokenSymbolSet other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTransactionFeeDelegationsOfADelegateeInput other) { if (other == null) { return; } - if (other.TokenSymbol.Length != 0) { - TokenSymbol = other.TokenSymbol; + if (other.delegateeAddress_ != null) { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + DelegateeAddress.MergeFrom(other.DelegateeAddress); + } + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + DelegatorAddress.MergeFrom(other.DelegatorAddress); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -10239,84 +14287,135 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - TokenSymbol = input.ReadString(); + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegateeAddress); + break; + } + case 18: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegateeAddress); + break; + } + case 18: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); break; } } } } + #endif } - public sealed partial class CalculateFeeAlgorithmUpdated : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalculateFeeAlgorithmUpdated()); + public sealed partial class GetTransactionFeeDelegateesInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTransactionFeeDelegateesInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[51]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[53]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CalculateFeeAlgorithmUpdated() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateesInput() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CalculateFeeAlgorithmUpdated(CalculateFeeAlgorithmUpdated other) : this() { - allTypeFeeCoefficients_ = other.allTypeFeeCoefficients_ != null ? other.allTypeFeeCoefficients_.Clone() : null; + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateesInput(GetTransactionFeeDelegateesInput other) : this() { + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CalculateFeeAlgorithmUpdated Clone() { - return new CalculateFeeAlgorithmUpdated(this); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateesInput Clone() { + return new GetTransactionFeeDelegateesInput(this); } - /// Field number for the "all_type_fee_coefficients" field. - public const int AllTypeFeeCoefficientsFieldNumber = 1; - private global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients allTypeFeeCoefficients_; - /// - /// All calculate fee coefficients after modification. - /// + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 1; + private global::AElf.Types.Address delegatorAddress_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients AllTypeFeeCoefficients { - get { return allTypeFeeCoefficients_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } set { - allTypeFeeCoefficients_ = value; + delegatorAddress_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as CalculateFeeAlgorithmUpdated); + return Equals(other as GetTransactionFeeDelegateesInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(CalculateFeeAlgorithmUpdated other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTransactionFeeDelegateesInput other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(AllTypeFeeCoefficients, other.AllTypeFeeCoefficients)) return false; + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (allTypeFeeCoefficients_ != null) hash ^= AllTypeFeeCoefficients.GetHashCode(); + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10324,26 +14423,47 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (allTypeFeeCoefficients_ != null) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegatorAddress_ != null) { output.WriteRawTag(10); - output.WriteMessage(AllTypeFeeCoefficients); + output.WriteMessage(DelegatorAddress); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (allTypeFeeCoefficients_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllTypeFeeCoefficients); + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -10352,21 +14472,26 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(CalculateFeeAlgorithmUpdated other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTransactionFeeDelegateesInput other) { if (other == null) { return; } - if (other.allTypeFeeCoefficients_ != null) { - if (allTypeFeeCoefficients_ == null) { - AllTypeFeeCoefficients = new global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients(); + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); } - AllTypeFeeCoefficients.MergeFrom(other.AllTypeFeeCoefficients); + DelegatorAddress.MergeFrom(other.DelegatorAddress); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -10374,104 +14499,120 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (allTypeFeeCoefficients_ == null) { - AllTypeFeeCoefficients = new global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients(); + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); } - input.ReadMessage(AllTypeFeeCoefficients); + input.ReadMessage(DelegatorAddress); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); break; } } } } + #endif } - public sealed partial class RentalCharged : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RentalCharged()); + public sealed partial class GetTransactionFeeDelegateesOutput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTransactionFeeDelegateesOutput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[52]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[54]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public RentalCharged() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateesOutput() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public RentalCharged(RentalCharged other) : this() { - symbol_ = other.symbol_; - amount_ = other.amount_; + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateesOutput(GetTransactionFeeDelegateesOutput other) : this() { + delegateeAddresses_ = other.delegateeAddresses_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public RentalCharged Clone() { - return new RentalCharged(this); - } - - /// Field number for the "symbol" field. - public const int SymbolFieldNumber = 1; - private string symbol_ = ""; - /// - /// The symbol of rental fee charged. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Symbol { - get { return symbol_; } - set { - symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateesOutput Clone() { + return new GetTransactionFeeDelegateesOutput(this); } - /// Field number for the "amount" field. - public const int AmountFieldNumber = 2; - private long amount_; - /// - /// The amount of rental fee charged. - /// + /// Field number for the "delegatee_addresses" field. + public const int DelegateeAddressesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_delegateeAddresses_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Types.Address.Parser); + private readonly pbc::RepeatedField delegateeAddresses_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long Amount { - get { return amount_; } - set { - amount_ = value; - } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DelegateeAddresses { + get { return delegateeAddresses_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as RentalCharged); + return Equals(other as GetTransactionFeeDelegateesOutput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(RentalCharged other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTransactionFeeDelegateesOutput other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Symbol != other.Symbol) return false; - if (Amount != other.Amount) return false; + if(!delegateeAddresses_.Equals(other.delegateeAddresses_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); - if (Amount != 0L) hash ^= Amount.GetHashCode(); + hash ^= delegateeAddresses_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10479,34 +14620,40 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (Symbol.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Symbol); - } - if (Amount != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Amount); - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + delegateeAddresses_.WriteTo(output, _repeated_delegateeAddresses_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + delegateeAddresses_.WriteTo(ref output, _repeated_delegateeAddresses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Symbol.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); - } - if (Amount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); - } + size += delegateeAddresses_.CalculateSize(_repeated_delegateeAddresses_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -10514,21 +14661,21 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(RentalCharged other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTransactionFeeDelegateesOutput other) { if (other == null) { return; } - if (other.Symbol.Length != 0) { - Symbol = other.Symbol; - } - if (other.Amount != 0L) { - Amount = other.Amount; - } + delegateeAddresses_.Add(other.delegateeAddresses_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -10536,61 +14683,85 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Symbol = input.ReadString(); + delegateeAddresses_.AddEntriesFrom(input, _repeated_delegateeAddresses_codec); break; } - case 16: { - Amount = input.ReadInt64(); + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + delegateeAddresses_.AddEntriesFrom(ref input, _repeated_delegateeAddresses_codec); break; } } } } + #endif } - public sealed partial class RentalAccountBalanceInsufficient : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RentalAccountBalanceInsufficient()); + public sealed partial class SetSymbolAliasInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetSymbolAliasInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[53]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[55]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public RentalAccountBalanceInsufficient() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSymbolAliasInput() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public RentalAccountBalanceInsufficient(RentalAccountBalanceInsufficient other) : this() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSymbolAliasInput(SetSymbolAliasInput other) : this() { symbol_ = other.symbol_; - amount_ = other.amount_; + alias_ = other.alias_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public RentalAccountBalanceInsufficient Clone() { - return new RentalAccountBalanceInsufficient(this); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetSymbolAliasInput Clone() { + return new SetSymbolAliasInput(this); } /// Field number for the "symbol" field. public const int SymbolFieldNumber = 1; private string symbol_ = ""; - /// - /// The symbol of insufficient rental account balance. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -10598,27 +14769,27 @@ public string Symbol { } } - /// Field number for the "amount" field. - public const int AmountFieldNumber = 2; - private long amount_; - /// - /// The balance of the account. - /// + /// Field number for the "alias" field. + public const int AliasFieldNumber = 2; + private string alias_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long Amount { - get { return amount_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Alias { + get { return alias_; } set { - amount_ = value; + alias_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as RentalAccountBalanceInsufficient); + return Equals(other as SetSymbolAliasInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(RentalAccountBalanceInsufficient other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetSymbolAliasInput other) { if (ReferenceEquals(other, null)) { return false; } @@ -10626,15 +14797,16 @@ public bool Equals(RentalAccountBalanceInsufficient other) { return true; } if (Symbol != other.Symbol) return false; - if (Amount != other.Amount) return false; + if (Alias != other.Alias) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); - if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (Alias.Length != 0) hash ^= Alias.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10642,33 +14814,58 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Symbol.Length != 0) { output.WriteRawTag(10); output.WriteString(Symbol); } - if (Amount != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Amount); + if (Alias.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Alias); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Alias.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Alias); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Symbol.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); } - if (Amount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + if (Alias.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Alias); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -10677,21 +14874,26 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(RentalAccountBalanceInsufficient other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetSymbolAliasInput other) { if (other == null) { return; } if (other.Symbol.Length != 0) { Symbol = other.Symbol; } - if (other.Amount != 0L) { - Amount = other.Amount; + if (other.Alias.Length != 0) { + Alias = other.Alias; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -10702,204 +14904,195 @@ public void MergeFrom(pb::CodedInputStream input) { Symbol = input.ReadString(); break; } - case 16: { - Amount = input.ReadInt64(); + case 18: { + Alias = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + Alias = input.ReadString(); break; } } } } + #endif } - public sealed partial class TokenCreated : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenCreated()); + public sealed partial class Transferred : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Transferred()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[54]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[56]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public TokenCreated() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Transferred() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public TokenCreated(TokenCreated other) : this() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Transferred(Transferred other) : this() { + from_ = other.from_ != null ? other.from_.Clone() : null; + to_ = other.to_ != null ? other.to_.Clone() : null; symbol_ = other.symbol_; - tokenName_ = other.tokenName_; - totalSupply_ = other.totalSupply_; - decimals_ = other.decimals_; - issuer_ = other.issuer_ != null ? other.issuer_.Clone() : null; - isBurnable_ = other.isBurnable_; - issueChainId_ = other.issueChainId_; - externalInfo_ = other.externalInfo_ != null ? other.externalInfo_.Clone() : null; + amount_ = other.amount_; + memo_ = other.memo_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public TokenCreated Clone() { - return new TokenCreated(this); - } - - /// Field number for the "symbol" field. - public const int SymbolFieldNumber = 1; - private string symbol_ = ""; - /// - /// The symbol of the token. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Symbol { - get { return symbol_; } - set { - symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "token_name" field. - public const int TokenNameFieldNumber = 2; - private string tokenName_ = ""; - /// - /// The full name of the token. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string TokenName { - get { return tokenName_; } - set { - tokenName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "total_supply" field. - public const int TotalSupplyFieldNumber = 3; - private long totalSupply_; - /// - /// The total supply of the token. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long TotalSupply { - get { return totalSupply_; } - set { - totalSupply_ = value; - } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Transferred Clone() { + return new Transferred(this); } - /// Field number for the "decimals" field. - public const int DecimalsFieldNumber = 4; - private int decimals_; + /// Field number for the "from" field. + public const int FromFieldNumber = 1; + private global::AElf.Types.Address from_; /// - /// The precision of the token. + /// The source address of the transferred token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Decimals { - get { return decimals_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address From { + get { return from_; } set { - decimals_ = value; + from_ = value; } } - /// Field number for the "issuer" field. - public const int IssuerFieldNumber = 5; - private global::AElf.Types.Address issuer_; + /// Field number for the "to" field. + public const int ToFieldNumber = 2; + private global::AElf.Types.Address to_; /// - /// The address that created the token. + /// The destination address of the transferred token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Address Issuer { - get { return issuer_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address To { + get { return to_; } set { - issuer_ = value; + to_ = value; } } - /// Field number for the "is_burnable" field. - public const int IsBurnableFieldNumber = 6; - private bool isBurnable_; + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 3; + private string symbol_ = ""; /// - /// A flag indicating if this token is burnable. + /// The symbol of the transferred token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool IsBurnable { - get { return isBurnable_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } set { - isBurnable_ = value; + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "issue_chain_id" field. - public const int IssueChainIdFieldNumber = 7; - private int issueChainId_; + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; /// - /// The chain id of the token. + /// The amount of the transferred token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int IssueChainId { - get { return issueChainId_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } set { - issueChainId_ = value; + amount_ = value; } } - /// Field number for the "external_info" field. - public const int ExternalInfoFieldNumber = 8; - private global::AElf.Contracts.MultiToken.ExternalInfo externalInfo_; + /// Field number for the "memo" field. + public const int MemoFieldNumber = 5; + private string memo_ = ""; /// - /// The external information of the token. + /// The memo. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { - get { return externalInfo_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Memo { + get { return memo_; } set { - externalInfo_ = value; + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TokenCreated); + return Equals(other as Transferred); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(TokenCreated other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Transferred other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (!object.Equals(From, other.From)) return false; + if (!object.Equals(To, other.To)) return false; if (Symbol != other.Symbol) return false; - if (TokenName != other.TokenName) return false; - if (TotalSupply != other.TotalSupply) return false; - if (Decimals != other.Decimals) return false; - if (!object.Equals(Issuer, other.Issuer)) return false; - if (IsBurnable != other.IsBurnable) return false; - if (IssueChainId != other.IssueChainId) return false; - if (!object.Equals(ExternalInfo, other.ExternalInfo)) return false; + if (Amount != other.Amount) return false; + if (Memo != other.Memo) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (from_ != null) hash ^= From.GetHashCode(); + if (to_ != null) hash ^= To.GetHashCode(); if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); - if (TokenName.Length != 0) hash ^= TokenName.GetHashCode(); - if (TotalSupply != 0L) hash ^= TotalSupply.GetHashCode(); - if (Decimals != 0) hash ^= Decimals.GetHashCode(); - if (issuer_ != null) hash ^= Issuer.GetHashCode(); - if (IsBurnable != false) hash ^= IsBurnable.GetHashCode(); - if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); - if (externalInfo_ != null) hash ^= ExternalInfo.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (Memo.Length != 0) hash ^= Memo.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -10907,75 +15100,91 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (Symbol.Length != 0) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (from_ != null) { output.WriteRawTag(10); - output.WriteString(Symbol); + output.WriteMessage(From); } - if (TokenName.Length != 0) { + if (to_ != null) { output.WriteRawTag(18); - output.WriteString(TokenName); + output.WriteMessage(To); } - if (TotalSupply != 0L) { - output.WriteRawTag(24); - output.WriteInt64(TotalSupply); + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); } - if (Decimals != 0) { + if (Amount != 0L) { output.WriteRawTag(32); - output.WriteInt32(Decimals); + output.WriteInt64(Amount); } - if (issuer_ != null) { + if (Memo.Length != 0) { output.WriteRawTag(42); - output.WriteMessage(Issuer); - } - if (IsBurnable != false) { - output.WriteRawTag(48); - output.WriteBool(IsBurnable); - } - if (IssueChainId != 0) { - output.WriteRawTag(56); - output.WriteInt32(IssueChainId); - } - if (externalInfo_ != null) { - output.WriteRawTag(66); - output.WriteMessage(ExternalInfo); + output.WriteString(Memo); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Symbol.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); - } - if (TokenName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenName); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); } - if (TotalSupply != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalSupply); + if (to_ != null) { + output.WriteRawTag(18); + output.WriteMessage(To); } - if (Decimals != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Decimals); + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); } - if (issuer_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Issuer); + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); } - if (IsBurnable != false) { - size += 1 + 1; + if (Memo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Memo); } - if (IssueChainId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } - if (externalInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalInfo); + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (from_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(From); + } + if (to_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (Memo.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -10984,45 +15193,41 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(TokenCreated other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Transferred other) { if (other == null) { return; } - if (other.Symbol.Length != 0) { - Symbol = other.Symbol; - } - if (other.TokenName.Length != 0) { - TokenName = other.TokenName; - } - if (other.TotalSupply != 0L) { - TotalSupply = other.TotalSupply; - } - if (other.Decimals != 0) { - Decimals = other.Decimals; + if (other.from_ != null) { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + From.MergeFrom(other.From); } - if (other.issuer_ != null) { - if (issuer_ == null) { - Issuer = new global::AElf.Types.Address(); + if (other.to_ != null) { + if (to_ == null) { + To = new global::AElf.Types.Address(); } - Issuer.MergeFrom(other.Issuer); + To.MergeFrom(other.To); } - if (other.IsBurnable != false) { - IsBurnable = other.IsBurnable; + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; } - if (other.IssueChainId != 0) { - IssueChainId = other.IssueChainId; + if (other.Amount != 0L) { + Amount = other.Amount; } - if (other.externalInfo_ != null) { - if (externalInfo_ == null) { - ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); - } - ExternalInfo.MergeFrom(other.ExternalInfo); + if (other.Memo.Length != 0) { + Memo = other.Memo; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -11030,169 +15235,216 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Symbol = input.ReadString(); + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + input.ReadMessage(From); break; } case 18: { - TokenName = input.ReadString(); + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); break; } - case 24: { - TotalSupply = input.ReadInt64(); + case 26: { + Symbol = input.ReadString(); break; } case 32: { - Decimals = input.ReadInt32(); + Amount = input.ReadInt64(); break; } case 42: { - if (issuer_ == null) { - Issuer = new global::AElf.Types.Address(); + Memo = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (from_ == null) { + From = new global::AElf.Types.Address(); } - input.ReadMessage(Issuer); + input.ReadMessage(From); break; } - case 48: { - IsBurnable = input.ReadBool(); + case 18: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); break; } - case 56: { - IssueChainId = input.ReadInt32(); + case 26: { + Symbol = input.ReadString(); break; } - case 66: { - if (externalInfo_ == null) { - ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); - } - input.ReadMessage(ExternalInfo); + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + Memo = input.ReadString(); break; } } } } + #endif } - public sealed partial class Issued : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Issued()); + public sealed partial class Approved : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Approved()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[55]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[57]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Issued() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Approved() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Issued(Issued other) : this() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Approved(Approved other) : this() { + owner_ = other.owner_ != null ? other.owner_.Clone() : null; + spender_ = other.spender_ != null ? other.spender_.Clone() : null; symbol_ = other.symbol_; amount_ = other.amount_; - memo_ = other.memo_; - to_ = other.to_ != null ? other.to_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Issued Clone() { - return new Issued(this); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Approved Clone() { + return new Approved(this); } - /// Field number for the "symbol" field. - public const int SymbolFieldNumber = 1; - private string symbol_ = ""; + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 1; + private global::AElf.Types.Address owner_; /// - /// The symbol of issued token. + /// The address of the token owner. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Symbol { - get { return symbol_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Owner { + get { return owner_; } set { - symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + owner_ = value; } } - /// Field number for the "amount" field. - public const int AmountFieldNumber = 2; - private long amount_; + /// Field number for the "spender" field. + public const int SpenderFieldNumber = 2; + private global::AElf.Types.Address spender_; /// - /// The amount of issued token. + /// The address that allowance be increased. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long Amount { - get { return amount_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Spender { + get { return spender_; } set { - amount_ = value; + spender_ = value; } } - /// Field number for the "memo" field. - public const int MemoFieldNumber = 3; - private string memo_ = ""; + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 3; + private string symbol_ = ""; /// - /// The memo. + /// The symbol of approved token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Memo { - get { return memo_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } set { - memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "to" field. - public const int ToFieldNumber = 4; - private global::AElf.Types.Address to_; + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; /// - /// The issued target address. + /// The amount of approved token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Address To { - get { return to_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } set { - to_ = value; + amount_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as Issued); + return Equals(other as Approved); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Issued other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Approved other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (!object.Equals(Owner, other.Owner)) return false; + if (!object.Equals(Spender, other.Spender)) return false; if (Symbol != other.Symbol) return false; if (Amount != other.Amount) return false; - if (Memo != other.Memo) return false; - if (!object.Equals(To, other.To)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (owner_ != null) hash ^= Owner.GetHashCode(); + if (spender_ != null) hash ^= Spender.GetHashCode(); if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); if (Amount != 0L) hash ^= Amount.GetHashCode(); - if (Memo.Length != 0) hash ^= Memo.GetHashCode(); - if (to_ != null) hash ^= To.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -11200,47 +15452,80 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (Symbol.Length != 0) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (owner_ != null) { output.WriteRawTag(10); - output.WriteString(Symbol); + output.WriteMessage(Owner); } - if (Amount != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Amount); + if (spender_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spender); } - if (Memo.Length != 0) { + if (Symbol.Length != 0) { output.WriteRawTag(26); - output.WriteString(Memo); + output.WriteString(Symbol); } - if (to_ != null) { - output.WriteRawTag(34); - output.WriteMessage(To); + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Symbol.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (owner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Owner); + } + if (spender_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spender); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); } if (Amount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + output.WriteRawTag(32); + output.WriteInt64(Amount); } - if (Memo.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } - if (to_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (owner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); + } + if (spender_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spender); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -11249,30 +15534,38 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Issued other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Approved other) { if (other == null) { return; } + if (other.owner_ != null) { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + Owner.MergeFrom(other.Owner); + } + if (other.spender_ != null) { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + Spender.MergeFrom(other.Spender); + } if (other.Symbol.Length != 0) { Symbol = other.Symbol; } if (other.Amount != 0L) { Amount = other.Amount; } - if (other.Memo.Length != 0) { - Memo = other.Memo; - } - if (other.to_ != null) { - if (to_ == null) { - To = new global::AElf.Types.Address(); - } - To.MergeFrom(other.To); - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -11280,95 +15573,145 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + case 18: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); + break; + } + case 26: { Symbol = input.ReadString(); break; } - case 16: { + case 32: { Amount = input.ReadInt64(); break; } - case 26: { - Memo = input.ReadString(); + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); break; } - case 34: { - if (to_ == null) { - To = new global::AElf.Types.Address(); + case 18: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); } - input.ReadMessage(To); + input.ReadMessage(Spender); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); break; } } } } + #endif } - public sealed partial class CrossChainTransferred : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainTransferred()); + public sealed partial class UnApproved : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnApproved()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[56]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[58]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CrossChainTransferred() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnApproved() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CrossChainTransferred(CrossChainTransferred other) : this() { - from_ = other.from_ != null ? other.from_.Clone() : null; - to_ = other.to_ != null ? other.to_.Clone() : null; + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnApproved(UnApproved other) : this() { + owner_ = other.owner_ != null ? other.owner_.Clone() : null; + spender_ = other.spender_ != null ? other.spender_.Clone() : null; symbol_ = other.symbol_; amount_ = other.amount_; - memo_ = other.memo_; - toChainId_ = other.toChainId_; - issueChainId_ = other.issueChainId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CrossChainTransferred Clone() { - return new CrossChainTransferred(this); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UnApproved Clone() { + return new UnApproved(this); } - /// Field number for the "from" field. - public const int FromFieldNumber = 1; - private global::AElf.Types.Address from_; + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 1; + private global::AElf.Types.Address owner_; /// - /// The source address of the transferred token. + /// The address of the token owner. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Address From { - get { return from_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Owner { + get { return owner_; } set { - from_ = value; + owner_ = value; } } - /// Field number for the "to" field. - public const int ToFieldNumber = 2; - private global::AElf.Types.Address to_; + /// Field number for the "spender" field. + public const int SpenderFieldNumber = 2; + private global::AElf.Types.Address spender_; /// - /// The destination address of the transferred token. + /// The address that allowance be decreased. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Address To { - get { return to_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Spender { + get { return spender_; } set { - to_ = value; + spender_ = value; } } @@ -11376,9 +15719,10 @@ public CrossChainTransferred Clone() { public const int SymbolFieldNumber = 3; private string symbol_ = ""; /// - /// The symbol of the transferred token. + /// The symbol of un-approved token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -11390,9 +15734,10 @@ public string Symbol { public const int AmountFieldNumber = 4; private long amount_; /// - /// The amount of the transferred token. + /// The amount of un-approved token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Amount { get { return amount_; } set { @@ -11400,81 +15745,36 @@ public long Amount { } } - /// Field number for the "memo" field. - public const int MemoFieldNumber = 5; - private string memo_ = ""; - /// - /// The memo. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Memo { - get { return memo_; } - set { - memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "to_chain_id" field. - public const int ToChainIdFieldNumber = 6; - private int toChainId_; - /// - /// The destination chain id. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int ToChainId { - get { return toChainId_; } - set { - toChainId_ = value; - } - } - - /// Field number for the "issue_chain_id" field. - public const int IssueChainIdFieldNumber = 7; - private int issueChainId_; - /// - /// The chain id of the token. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int IssueChainId { - get { return issueChainId_; } - set { - issueChainId_ = value; - } - } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as CrossChainTransferred); + return Equals(other as UnApproved); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(CrossChainTransferred other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UnApproved other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(From, other.From)) return false; - if (!object.Equals(To, other.To)) return false; + if (!object.Equals(Owner, other.Owner)) return false; + if (!object.Equals(Spender, other.Spender)) return false; if (Symbol != other.Symbol) return false; if (Amount != other.Amount) return false; - if (Memo != other.Memo) return false; - if (ToChainId != other.ToChainId) return false; - if (IssueChainId != other.IssueChainId) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (from_ != null) hash ^= From.GetHashCode(); - if (to_ != null) hash ^= To.GetHashCode(); + if (owner_ != null) hash ^= Owner.GetHashCode(); + if (spender_ != null) hash ^= Spender.GetHashCode(); if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); if (Amount != 0L) hash ^= Amount.GetHashCode(); - if (Memo.Length != 0) hash ^= Memo.GetHashCode(); - if (ToChainId != 0) hash ^= ToChainId.GetHashCode(); - if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -11482,19 +15782,24 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (from_ != null) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (owner_ != null) { output.WriteRawTag(10); - output.WriteMessage(From); + output.WriteMessage(Owner); } - if (to_ != null) { + if (spender_ != null) { output.WriteRawTag(18); - output.WriteMessage(To); + output.WriteMessage(Spender); } if (Symbol.Length != 0) { output.WriteRawTag(26); @@ -11504,46 +15809,53 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(32); output.WriteInt64(Amount); } - if (Memo.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Memo); - } - if (ToChainId != 0) { - output.WriteRawTag(48); - output.WriteInt32(ToChainId); - } - if (IssueChainId != 0) { - output.WriteRawTag(56); - output.WriteInt32(IssueChainId); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (from_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(From); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (owner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Owner); } - if (to_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); + if (spender_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spender); } if (Symbol.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + output.WriteRawTag(26); + output.WriteString(Symbol); } if (Amount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + output.WriteRawTag(32); + output.WriteInt64(Amount); } - if (Memo.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); } - if (ToChainId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToChainId); + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (owner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); } - if (IssueChainId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId); + if (spender_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spender); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -11552,21 +15864,22 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(CrossChainTransferred other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UnApproved other) { if (other == null) { return; } - if (other.from_ != null) { - if (from_ == null) { - From = new global::AElf.Types.Address(); + if (other.owner_ != null) { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); } - From.MergeFrom(other.From); + Owner.MergeFrom(other.Owner); } - if (other.to_ != null) { - if (to_ == null) { - To = new global::AElf.Types.Address(); + if (other.spender_ != null) { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); } - To.MergeFrom(other.To); + Spender.MergeFrom(other.Spender); } if (other.Symbol.Length != 0) { Symbol = other.Symbol; @@ -11574,20 +15887,15 @@ public void MergeFrom(CrossChainTransferred other) { if (other.Amount != 0L) { Amount = other.Amount; } - if (other.Memo.Length != 0) { - Memo = other.Memo; - } - if (other.ToChainId != 0) { - ToChainId = other.ToChainId; - } - if (other.IssueChainId != 0) { - IssueChainId = other.IssueChainId; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -11595,17 +15903,17 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (from_ == null) { - From = new global::AElf.Types.Address(); + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); } - input.ReadMessage(From); + input.ReadMessage(Owner); break; } case 18: { - if (to_ == null) { - To = new global::AElf.Types.Address(); + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); } - input.ReadMessage(To); + input.ReadMessage(Spender); break; } case 26: { @@ -11616,101 +15924,119 @@ public void MergeFrom(pb::CodedInputStream input) { Amount = input.ReadInt64(); break; } - case 42: { - Memo = input.ReadString(); + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); break; } - case 48: { - ToChainId = input.ReadInt32(); + case 18: { + if (spender_ == null) { + Spender = new global::AElf.Types.Address(); + } + input.ReadMessage(Spender); break; } - case 56: { - IssueChainId = input.ReadInt32(); + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); break; } } } } + #endif } - public sealed partial class CrossChainReceived : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainReceived()); + public sealed partial class Burned : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Burned()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[57]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[59]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CrossChainReceived() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Burned() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CrossChainReceived(CrossChainReceived other) : this() { - from_ = other.from_ != null ? other.from_.Clone() : null; - to_ = other.to_ != null ? other.to_.Clone() : null; + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Burned(Burned other) : this() { + burner_ = other.burner_ != null ? other.burner_.Clone() : null; symbol_ = other.symbol_; amount_ = other.amount_; - memo_ = other.memo_; - fromChainId_ = other.fromChainId_; - issueChainId_ = other.issueChainId_; - parentChainHeight_ = other.parentChainHeight_; - transferTransactionId_ = other.transferTransactionId_ != null ? other.transferTransactionId_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public CrossChainReceived Clone() { - return new CrossChainReceived(this); - } - - /// Field number for the "from" field. - public const int FromFieldNumber = 1; - private global::AElf.Types.Address from_; - /// - /// The source address of the transferred token. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Address From { - get { return from_; } - set { - from_ = value; - } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Burned Clone() { + return new Burned(this); } - /// Field number for the "to" field. - public const int ToFieldNumber = 2; - private global::AElf.Types.Address to_; + /// Field number for the "burner" field. + public const int BurnerFieldNumber = 1; + private global::AElf.Types.Address burner_; /// - /// The destination address of the transferred token. + /// The address who wants to burn token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Address To { - get { return to_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Burner { + get { return burner_; } set { - to_ = value; + burner_ = value; } } /// Field number for the "symbol" field. - public const int SymbolFieldNumber = 3; + public const int SymbolFieldNumber = 2; private string symbol_ = ""; /// - /// The symbol of the received token. + /// The symbol of burned token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -11719,12 +16045,13 @@ public string Symbol { } /// Field number for the "amount" field. - public const int AmountFieldNumber = 4; + public const int AmountFieldNumber = 3; private long amount_; /// - /// The amount of the received token. + /// The amount of burned token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Amount { get { return amount_; } set { @@ -11732,113 +16059,3675 @@ public long Amount { } } - /// Field number for the "memo" field. - public const int MemoFieldNumber = 5; - private string memo_ = ""; - /// - /// The memo. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Memo { - get { return memo_; } - set { - memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Burned); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Burned other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; } + if (!object.Equals(Burner, other.Burner)) return false; + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); } - /// Field number for the "from_chain_id" field. - public const int FromChainIdFieldNumber = 6; - private int fromChainId_; - /// - /// The destination chain id. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int FromChainId { - get { return fromChainId_; } - set { - fromChainId_ = value; - } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (burner_ != null) hash ^= Burner.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (burner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Burner); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (burner_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Burner); + } + if (Symbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (burner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Burner); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Burned other) { + if (other == null) { + return; + } + if (other.burner_ != null) { + if (burner_ == null) { + Burner = new global::AElf.Types.Address(); + } + Burner.MergeFrom(other.Burner); + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (burner_ == null) { + Burner = new global::AElf.Types.Address(); + } + input.ReadMessage(Burner); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (burner_ == null) { + Burner = new global::AElf.Types.Address(); + } + input.ReadMessage(Burner); + break; + } + case 18: { + Symbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ChainPrimaryTokenSymbolSet : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainPrimaryTokenSymbolSet()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[60]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChainPrimaryTokenSymbolSet() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChainPrimaryTokenSymbolSet(ChainPrimaryTokenSymbolSet other) : this() { + tokenSymbol_ = other.tokenSymbol_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ChainPrimaryTokenSymbolSet Clone() { + return new ChainPrimaryTokenSymbolSet(this); + } + + /// Field number for the "token_symbol" field. + public const int TokenSymbolFieldNumber = 1; + private string tokenSymbol_ = ""; + /// + /// The symbol of token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TokenSymbol { + get { return tokenSymbol_; } + set { + tokenSymbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ChainPrimaryTokenSymbolSet); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ChainPrimaryTokenSymbolSet other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TokenSymbol != other.TokenSymbol) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (TokenSymbol.Length != 0) hash ^= TokenSymbol.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (TokenSymbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TokenSymbol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (TokenSymbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(TokenSymbol); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (TokenSymbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenSymbol); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ChainPrimaryTokenSymbolSet other) { + if (other == null) { + return; + } + if (other.TokenSymbol.Length != 0) { + TokenSymbol = other.TokenSymbol; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + TokenSymbol = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + TokenSymbol = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CalculateFeeAlgorithmUpdated : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalculateFeeAlgorithmUpdated()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[61]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeeAlgorithmUpdated() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeeAlgorithmUpdated(CalculateFeeAlgorithmUpdated other) : this() { + allTypeFeeCoefficients_ = other.allTypeFeeCoefficients_ != null ? other.allTypeFeeCoefficients_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CalculateFeeAlgorithmUpdated Clone() { + return new CalculateFeeAlgorithmUpdated(this); + } + + /// Field number for the "all_type_fee_coefficients" field. + public const int AllTypeFeeCoefficientsFieldNumber = 1; + private global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients allTypeFeeCoefficients_; + /// + /// All calculate fee coefficients after modification. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients AllTypeFeeCoefficients { + get { return allTypeFeeCoefficients_; } + set { + allTypeFeeCoefficients_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CalculateFeeAlgorithmUpdated); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CalculateFeeAlgorithmUpdated other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AllTypeFeeCoefficients, other.AllTypeFeeCoefficients)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (allTypeFeeCoefficients_ != null) hash ^= AllTypeFeeCoefficients.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (allTypeFeeCoefficients_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AllTypeFeeCoefficients); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (allTypeFeeCoefficients_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AllTypeFeeCoefficients); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (allTypeFeeCoefficients_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllTypeFeeCoefficients); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CalculateFeeAlgorithmUpdated other) { + if (other == null) { + return; + } + if (other.allTypeFeeCoefficients_ != null) { + if (allTypeFeeCoefficients_ == null) { + AllTypeFeeCoefficients = new global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients(); + } + AllTypeFeeCoefficients.MergeFrom(other.AllTypeFeeCoefficients); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (allTypeFeeCoefficients_ == null) { + AllTypeFeeCoefficients = new global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients(); + } + input.ReadMessage(AllTypeFeeCoefficients); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (allTypeFeeCoefficients_ == null) { + AllTypeFeeCoefficients = new global::AElf.Contracts.MultiToken.AllCalculateFeeCoefficients(); + } + input.ReadMessage(AllTypeFeeCoefficients); + break; + } + } + } + } + #endif + + } + + public sealed partial class RentalCharged : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RentalCharged()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[62]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalCharged() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalCharged(RentalCharged other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + payer_ = other.payer_ != null ? other.payer_.Clone() : null; + receiver_ = other.receiver_ != null ? other.receiver_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalCharged Clone() { + return new RentalCharged(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of rental fee charged. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + /// + /// The amount of rental fee charged. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "payer" field. + public const int PayerFieldNumber = 3; + private global::AElf.Types.Address payer_; + /// + /// The payer of rental fee. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Payer { + get { return payer_; } + set { + payer_ = value; + } + } + + /// Field number for the "receiver" field. + public const int ReceiverFieldNumber = 4; + private global::AElf.Types.Address receiver_; + /// + /// The receiver of rental fee. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Receiver { + get { return receiver_; } + set { + receiver_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RentalCharged); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RentalCharged other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (!object.Equals(Payer, other.Payer)) return false; + if (!object.Equals(Receiver, other.Receiver)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (payer_ != null) hash ^= Payer.GetHashCode(); + if (receiver_ != null) hash ^= Receiver.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (payer_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payer); + } + if (receiver_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Receiver); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (payer_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Payer); + } + if (receiver_ != null) { + output.WriteRawTag(34); + output.WriteMessage(Receiver); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (payer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payer); + } + if (receiver_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Receiver); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RentalCharged other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.payer_ != null) { + if (payer_ == null) { + Payer = new global::AElf.Types.Address(); + } + Payer.MergeFrom(other.Payer); + } + if (other.receiver_ != null) { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + Receiver.MergeFrom(other.Receiver); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (payer_ == null) { + Payer = new global::AElf.Types.Address(); + } + input.ReadMessage(Payer); + break; + } + case 34: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + if (payer_ == null) { + Payer = new global::AElf.Types.Address(); + } + input.ReadMessage(Payer); + break; + } + case 34: { + if (receiver_ == null) { + Receiver = new global::AElf.Types.Address(); + } + input.ReadMessage(Receiver); + break; + } + } + } + } + #endif + + } + + public sealed partial class RentalAccountBalanceInsufficient : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RentalAccountBalanceInsufficient()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[63]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalAccountBalanceInsufficient() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalAccountBalanceInsufficient(RentalAccountBalanceInsufficient other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RentalAccountBalanceInsufficient Clone() { + return new RentalAccountBalanceInsufficient(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of insufficient rental account balance. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + /// + /// The balance of the account. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RentalAccountBalanceInsufficient); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RentalAccountBalanceInsufficient other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RentalAccountBalanceInsufficient other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TokenCreated : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenCreated()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[64]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenCreated() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenCreated(TokenCreated other) : this() { + symbol_ = other.symbol_; + tokenName_ = other.tokenName_; + totalSupply_ = other.totalSupply_; + decimals_ = other.decimals_; + issuer_ = other.issuer_ != null ? other.issuer_.Clone() : null; + isBurnable_ = other.isBurnable_; + issueChainId_ = other.issueChainId_; + externalInfo_ = other.externalInfo_ != null ? other.externalInfo_.Clone() : null; + owner_ = other.owner_ != null ? other.owner_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TokenCreated Clone() { + return new TokenCreated(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "token_name" field. + public const int TokenNameFieldNumber = 2; + private string tokenName_ = ""; + /// + /// The full name of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string TokenName { + get { return tokenName_; } + set { + tokenName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "total_supply" field. + public const int TotalSupplyFieldNumber = 3; + private long totalSupply_; + /// + /// The total supply of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TotalSupply { + get { return totalSupply_; } + set { + totalSupply_ = value; + } + } + + /// Field number for the "decimals" field. + public const int DecimalsFieldNumber = 4; + private int decimals_; + /// + /// The precision of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Decimals { + get { return decimals_; } + set { + decimals_ = value; + } + } + + /// Field number for the "issuer" field. + public const int IssuerFieldNumber = 5; + private global::AElf.Types.Address issuer_; + /// + /// The address that has permission to issue the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Issuer { + get { return issuer_; } + set { + issuer_ = value; + } + } + + /// Field number for the "is_burnable" field. + public const int IsBurnableFieldNumber = 6; + private bool isBurnable_; + /// + /// A flag indicating if this token is burnable. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsBurnable { + get { return isBurnable_; } + set { + isBurnable_ = value; + } + } + + /// Field number for the "issue_chain_id" field. + public const int IssueChainIdFieldNumber = 7; + private int issueChainId_; + /// + /// The chain id of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IssueChainId { + get { return issueChainId_; } + set { + issueChainId_ = value; + } + } + + /// Field number for the "external_info" field. + public const int ExternalInfoFieldNumber = 8; + private global::AElf.Contracts.MultiToken.ExternalInfo externalInfo_; + /// + /// The external information of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { + get { return externalInfo_; } + set { + externalInfo_ = value; + } + } + + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 9; + private global::AElf.Types.Address owner_; + /// + /// The address that owns the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Owner { + get { return owner_; } + set { + owner_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TokenCreated); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TokenCreated other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (TokenName != other.TokenName) return false; + if (TotalSupply != other.TotalSupply) return false; + if (Decimals != other.Decimals) return false; + if (!object.Equals(Issuer, other.Issuer)) return false; + if (IsBurnable != other.IsBurnable) return false; + if (IssueChainId != other.IssueChainId) return false; + if (!object.Equals(ExternalInfo, other.ExternalInfo)) return false; + if (!object.Equals(Owner, other.Owner)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (TokenName.Length != 0) hash ^= TokenName.GetHashCode(); + if (TotalSupply != 0L) hash ^= TotalSupply.GetHashCode(); + if (Decimals != 0) hash ^= Decimals.GetHashCode(); + if (issuer_ != null) hash ^= Issuer.GetHashCode(); + if (IsBurnable != false) hash ^= IsBurnable.GetHashCode(); + if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); + if (externalInfo_ != null) hash ^= ExternalInfo.GetHashCode(); + if (owner_ != null) hash ^= Owner.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (TokenName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TokenName); + } + if (TotalSupply != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TotalSupply); + } + if (Decimals != 0) { + output.WriteRawTag(32); + output.WriteInt32(Decimals); + } + if (issuer_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Issuer); + } + if (IsBurnable != false) { + output.WriteRawTag(48); + output.WriteBool(IsBurnable); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (externalInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ExternalInfo); + } + if (owner_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Owner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (TokenName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TokenName); + } + if (TotalSupply != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TotalSupply); + } + if (Decimals != 0) { + output.WriteRawTag(32); + output.WriteInt32(Decimals); + } + if (issuer_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Issuer); + } + if (IsBurnable != false) { + output.WriteRawTag(48); + output.WriteBool(IsBurnable); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (externalInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(ExternalInfo); + } + if (owner_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Owner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (TokenName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(TokenName); + } + if (TotalSupply != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalSupply); + } + if (Decimals != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Decimals); + } + if (issuer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Issuer); + } + if (IsBurnable != false) { + size += 1 + 1; + } + if (IssueChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId); + } + if (externalInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalInfo); + } + if (owner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TokenCreated other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.TokenName.Length != 0) { + TokenName = other.TokenName; + } + if (other.TotalSupply != 0L) { + TotalSupply = other.TotalSupply; + } + if (other.Decimals != 0) { + Decimals = other.Decimals; + } + if (other.issuer_ != null) { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + Issuer.MergeFrom(other.Issuer); + } + if (other.IsBurnable != false) { + IsBurnable = other.IsBurnable; + } + if (other.IssueChainId != 0) { + IssueChainId = other.IssueChainId; + } + if (other.externalInfo_ != null) { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + ExternalInfo.MergeFrom(other.ExternalInfo); + } + if (other.owner_ != null) { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + Owner.MergeFrom(other.Owner); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + TokenName = input.ReadString(); + break; + } + case 24: { + TotalSupply = input.ReadInt64(); + break; + } + case 32: { + Decimals = input.ReadInt32(); + break; + } + case 42: { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + input.ReadMessage(Issuer); + break; + } + case 48: { + IsBurnable = input.ReadBool(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + case 66: { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + case 74: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + TokenName = input.ReadString(); + break; + } + case 24: { + TotalSupply = input.ReadInt64(); + break; + } + case 32: { + Decimals = input.ReadInt32(); + break; + } + case 42: { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + input.ReadMessage(Issuer); + break; + } + case 48: { + IsBurnable = input.ReadBool(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + case 66: { + if (externalInfo_ == null) { + ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); + } + input.ReadMessage(ExternalInfo); + break; + } + case 74: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + } + } + } + #endif + + } + + public sealed partial class Issued : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Issued()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[65]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Issued() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Issued(Issued other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + memo_ = other.memo_; + to_ = other.to_ != null ? other.to_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Issued Clone() { + return new Issued(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + /// + /// The symbol of issued token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + /// + /// The amount of issued token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "memo" field. + public const int MemoFieldNumber = 3; + private string memo_ = ""; + /// + /// The memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "to" field. + public const int ToFieldNumber = 4; + private global::AElf.Types.Address to_; + /// + /// The issued target address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address To { + get { return to_; } + set { + to_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Issued); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Issued other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (Memo != other.Memo) return false; + if (!object.Equals(To, other.To)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (Memo.Length != 0) hash ^= Memo.GetHashCode(); + if (to_ != null) hash ^= To.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Memo); + } + if (to_ != null) { + output.WriteRawTag(34); + output.WriteMessage(To); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Memo); + } + if (to_ != null) { + output.WriteRawTag(34); + output.WriteMessage(To); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (Memo.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); + } + if (to_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Issued other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.Memo.Length != 0) { + Memo = other.Memo; + } + if (other.to_ != null) { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + To.MergeFrom(other.To); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + Memo = input.ReadString(); + break; + } + case 34: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + Memo = input.ReadString(); + break; + } + case 34: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + } + } + } + #endif + + } + + public sealed partial class CrossChainTransferred : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainTransferred()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[66]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainTransferred() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainTransferred(CrossChainTransferred other) : this() { + from_ = other.from_ != null ? other.from_.Clone() : null; + to_ = other.to_ != null ? other.to_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + memo_ = other.memo_; + toChainId_ = other.toChainId_; + issueChainId_ = other.issueChainId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainTransferred Clone() { + return new CrossChainTransferred(this); + } + + /// Field number for the "from" field. + public const int FromFieldNumber = 1; + private global::AElf.Types.Address from_; + /// + /// The source address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address From { + get { return from_; } + set { + from_ = value; + } + } + + /// Field number for the "to" field. + public const int ToFieldNumber = 2; + private global::AElf.Types.Address to_; + /// + /// The destination address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address To { + get { return to_; } + set { + to_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 3; + private string symbol_ = ""; + /// + /// The symbol of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; + /// + /// The amount of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "memo" field. + public const int MemoFieldNumber = 5; + private string memo_ = ""; + /// + /// The memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "to_chain_id" field. + public const int ToChainIdFieldNumber = 6; + private int toChainId_; + /// + /// The destination chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ToChainId { + get { return toChainId_; } + set { + toChainId_ = value; + } + } + + /// Field number for the "issue_chain_id" field. + public const int IssueChainIdFieldNumber = 7; + private int issueChainId_; + /// + /// The chain id of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IssueChainId { + get { return issueChainId_; } + set { + issueChainId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CrossChainTransferred); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CrossChainTransferred other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(From, other.From)) return false; + if (!object.Equals(To, other.To)) return false; + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (Memo != other.Memo) return false; + if (ToChainId != other.ToChainId) return false; + if (IssueChainId != other.IssueChainId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (from_ != null) hash ^= From.GetHashCode(); + if (to_ != null) hash ^= To.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (Memo.Length != 0) hash ^= Memo.GetHashCode(); + if (ToChainId != 0) hash ^= ToChainId.GetHashCode(); + if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(18); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Memo); + } + if (ToChainId != 0) { + output.WriteRawTag(48); + output.WriteInt32(ToChainId); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(18); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Memo); + } + if (ToChainId != 0) { + output.WriteRawTag(48); + output.WriteInt32(ToChainId); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (from_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(From); + } + if (to_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (Memo.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); + } + if (ToChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToChainId); + } + if (IssueChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CrossChainTransferred other) { + if (other == null) { + return; + } + if (other.from_ != null) { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + From.MergeFrom(other.From); + } + if (other.to_ != null) { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + To.MergeFrom(other.To); + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.Memo.Length != 0) { + Memo = other.Memo; + } + if (other.ToChainId != 0) { + ToChainId = other.ToChainId; + } + if (other.IssueChainId != 0) { + IssueChainId = other.IssueChainId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + input.ReadMessage(From); + break; + } + case 18: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + Memo = input.ReadString(); + break; + } + case 48: { + ToChainId = input.ReadInt32(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + input.ReadMessage(From); + break; + } + case 18: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + Memo = input.ReadString(); + break; + } + case 48: { + ToChainId = input.ReadInt32(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CrossChainReceived : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CrossChainReceived()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[67]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainReceived() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainReceived(CrossChainReceived other) : this() { + from_ = other.from_ != null ? other.from_.Clone() : null; + to_ = other.to_ != null ? other.to_.Clone() : null; + symbol_ = other.symbol_; + amount_ = other.amount_; + memo_ = other.memo_; + fromChainId_ = other.fromChainId_; + issueChainId_ = other.issueChainId_; + parentChainHeight_ = other.parentChainHeight_; + transferTransactionId_ = other.transferTransactionId_ != null ? other.transferTransactionId_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CrossChainReceived Clone() { + return new CrossChainReceived(this); + } + + /// Field number for the "from" field. + public const int FromFieldNumber = 1; + private global::AElf.Types.Address from_; + /// + /// The source address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address From { + get { return from_; } + set { + from_ = value; + } + } + + /// Field number for the "to" field. + public const int ToFieldNumber = 2; + private global::AElf.Types.Address to_; + /// + /// The destination address of the transferred token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address To { + get { return to_; } + set { + to_ = value; + } + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 3; + private string symbol_ = ""; + /// + /// The symbol of the received token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 4; + private long amount_; + /// + /// The amount of the received token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + /// Field number for the "memo" field. + public const int MemoFieldNumber = 5; + private string memo_ = ""; + /// + /// The memo. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Memo { + get { return memo_; } + set { + memo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "from_chain_id" field. + public const int FromChainIdFieldNumber = 6; + private int fromChainId_; + /// + /// The destination chain id. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int FromChainId { + get { return fromChainId_; } + set { + fromChainId_ = value; + } + } + + /// Field number for the "issue_chain_id" field. + public const int IssueChainIdFieldNumber = 7; + private int issueChainId_; + /// + /// The chain id of the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int IssueChainId { + get { return issueChainId_; } + set { + issueChainId_ = value; + } + } + + /// Field number for the "parent_chain_height" field. + public const int ParentChainHeightFieldNumber = 8; + private long parentChainHeight_; + /// + /// The parent chain height of the transfer transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ParentChainHeight { + get { return parentChainHeight_; } + set { + parentChainHeight_ = value; + } + } + + /// Field number for the "transfer_transaction_id" field. + public const int TransferTransactionIdFieldNumber = 9; + private global::AElf.Types.Hash transferTransactionId_; + /// + /// The id of transfer transaction. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Hash TransferTransactionId { + get { return transferTransactionId_; } + set { + transferTransactionId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CrossChainReceived); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CrossChainReceived other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(From, other.From)) return false; + if (!object.Equals(To, other.To)) return false; + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + if (Memo != other.Memo) return false; + if (FromChainId != other.FromChainId) return false; + if (IssueChainId != other.IssueChainId) return false; + if (ParentChainHeight != other.ParentChainHeight) return false; + if (!object.Equals(TransferTransactionId, other.TransferTransactionId)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (from_ != null) hash ^= From.GetHashCode(); + if (to_ != null) hash ^= To.GetHashCode(); + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (Memo.Length != 0) hash ^= Memo.GetHashCode(); + if (FromChainId != 0) hash ^= FromChainId.GetHashCode(); + if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); + if (ParentChainHeight != 0L) hash ^= ParentChainHeight.GetHashCode(); + if (transferTransactionId_ != null) hash ^= TransferTransactionId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(18); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Memo); + } + if (FromChainId != 0) { + output.WriteRawTag(48); + output.WriteInt32(FromChainId); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (ParentChainHeight != 0L) { + output.WriteRawTag(64); + output.WriteInt64(ParentChainHeight); + } + if (transferTransactionId_ != null) { + output.WriteRawTag(74); + output.WriteMessage(TransferTransactionId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (from_ != null) { + output.WriteRawTag(10); + output.WriteMessage(From); + } + if (to_ != null) { + output.WriteRawTag(18); + output.WriteMessage(To); + } + if (Symbol.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Memo); + } + if (FromChainId != 0) { + output.WriteRawTag(48); + output.WriteInt32(FromChainId); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + if (ParentChainHeight != 0L) { + output.WriteRawTag(64); + output.WriteInt64(ParentChainHeight); + } + if (transferTransactionId_ != null) { + output.WriteRawTag(74); + output.WriteMessage(TransferTransactionId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (from_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(From); + } + if (to_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); + } + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (Memo.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); + } + if (FromChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromChainId); + } + if (IssueChainId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId); + } + if (ParentChainHeight != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ParentChainHeight); + } + if (transferTransactionId_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransferTransactionId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CrossChainReceived other) { + if (other == null) { + return; + } + if (other.from_ != null) { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + From.MergeFrom(other.From); + } + if (other.to_ != null) { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + To.MergeFrom(other.To); + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + if (other.Memo.Length != 0) { + Memo = other.Memo; + } + if (other.FromChainId != 0) { + FromChainId = other.FromChainId; + } + if (other.IssueChainId != 0) { + IssueChainId = other.IssueChainId; + } + if (other.ParentChainHeight != 0L) { + ParentChainHeight = other.ParentChainHeight; + } + if (other.transferTransactionId_ != null) { + if (transferTransactionId_ == null) { + TransferTransactionId = new global::AElf.Types.Hash(); + } + TransferTransactionId.MergeFrom(other.TransferTransactionId); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + input.ReadMessage(From); + break; + } + case 18: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + Memo = input.ReadString(); + break; + } + case 48: { + FromChainId = input.ReadInt32(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + case 64: { + ParentChainHeight = input.ReadInt64(); + break; + } + case 74: { + if (transferTransactionId_ == null) { + TransferTransactionId = new global::AElf.Types.Hash(); + } + input.ReadMessage(TransferTransactionId); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (from_ == null) { + From = new global::AElf.Types.Address(); + } + input.ReadMessage(From); + break; + } + case 18: { + if (to_ == null) { + To = new global::AElf.Types.Address(); + } + input.ReadMessage(To); + break; + } + case 26: { + Symbol = input.ReadString(); + break; + } + case 32: { + Amount = input.ReadInt64(); + break; + } + case 42: { + Memo = input.ReadString(); + break; + } + case 48: { + FromChainId = input.ReadInt32(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + case 64: { + ParentChainHeight = input.ReadInt64(); + break; + } + case 74: { + if (transferTransactionId_ == null) { + TransferTransactionId = new global::AElf.Types.Hash(); + } + input.ReadMessage(TransferTransactionId); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeDelegationAdded : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeDelegationAdded()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[68]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationAdded() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationAdded(TransactionFeeDelegationAdded other) : this() { + delegator_ = other.delegator_ != null ? other.delegator_.Clone() : null; + delegatee_ = other.delegatee_ != null ? other.delegatee_.Clone() : null; + caller_ = other.caller_ != null ? other.caller_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationAdded Clone() { + return new TransactionFeeDelegationAdded(this); + } + + /// Field number for the "delegator" field. + public const int DelegatorFieldNumber = 1; + private global::AElf.Types.Address delegator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegator { + get { return delegator_; } + set { + delegator_ = value; + } + } + + /// Field number for the "delegatee" field. + public const int DelegateeFieldNumber = 2; + private global::AElf.Types.Address delegatee_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegatee { + get { return delegatee_; } + set { + delegatee_ = value; + } + } + + /// Field number for the "caller" field. + public const int CallerFieldNumber = 3; + private global::AElf.Types.Address caller_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Caller { + get { return caller_; } + set { + caller_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeDelegationAdded); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeDelegationAdded other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Delegator, other.Delegator)) return false; + if (!object.Equals(Delegatee, other.Delegatee)) return false; + if (!object.Equals(Caller, other.Caller)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegator_ != null) hash ^= Delegator.GetHashCode(); + if (delegatee_ != null) hash ^= Delegatee.GetHashCode(); + if (caller_ != null) hash ^= Caller.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegator_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegator); + } + if (delegatee_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegatee); + } + if (caller_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Caller); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeDelegationAdded other) { + if (other == null) { + return; + } + if (other.delegator_ != null) { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + Delegator.MergeFrom(other.Delegator); + } + if (other.delegatee_ != null) { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + Delegatee.MergeFrom(other.Delegatee); + } + if (other.caller_ != null) { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + Caller.MergeFrom(other.Caller); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeDelegationCancelled : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeDelegationCancelled()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[69]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationCancelled() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationCancelled(TransactionFeeDelegationCancelled other) : this() { + delegator_ = other.delegator_ != null ? other.delegator_.Clone() : null; + delegatee_ = other.delegatee_ != null ? other.delegatee_.Clone() : null; + caller_ = other.caller_ != null ? other.caller_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegationCancelled Clone() { + return new TransactionFeeDelegationCancelled(this); + } + + /// Field number for the "delegator" field. + public const int DelegatorFieldNumber = 1; + private global::AElf.Types.Address delegator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegator { + get { return delegator_; } + set { + delegator_ = value; + } + } + + /// Field number for the "delegatee" field. + public const int DelegateeFieldNumber = 2; + private global::AElf.Types.Address delegatee_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegatee { + get { return delegatee_; } + set { + delegatee_ = value; + } + } + + /// Field number for the "caller" field. + public const int CallerFieldNumber = 3; + private global::AElf.Types.Address caller_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Caller { + get { return caller_; } + set { + caller_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeDelegationCancelled); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeDelegationCancelled other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Delegator, other.Delegator)) return false; + if (!object.Equals(Delegatee, other.Delegatee)) return false; + if (!object.Equals(Caller, other.Caller)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegator_ != null) hash ^= Delegator.GetHashCode(); + if (delegatee_ != null) hash ^= Delegatee.GetHashCode(); + if (caller_ != null) hash ^= Caller.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegator_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegator); + } + if (delegatee_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegatee); + } + if (caller_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Caller); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeDelegationCancelled other) { + if (other == null) { + return; + } + if (other.delegator_ != null) { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + Delegator.MergeFrom(other.Delegator); + } + if (other.delegatee_ != null) { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + Delegatee.MergeFrom(other.Delegatee); + } + if (other.caller_ != null) { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + Caller.MergeFrom(other.Caller); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + } + } + } + #endif + + } + + public sealed partial class SymbolAliasAdded : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SymbolAliasAdded()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[70]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SymbolAliasAdded() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SymbolAliasAdded(SymbolAliasAdded other) : this() { + symbol_ = other.symbol_; + alias_ = other.alias_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } - /// Field number for the "issue_chain_id" field. - public const int IssueChainIdFieldNumber = 7; - private int issueChainId_; - /// - /// The chain id of the token. - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int IssueChainId { - get { return issueChainId_; } - set { - issueChainId_ = value; - } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SymbolAliasAdded Clone() { + return new SymbolAliasAdded(this); } - /// Field number for the "parent_chain_height" field. - public const int ParentChainHeightFieldNumber = 8; - private long parentChainHeight_; - /// - /// The parent chain height of the transfer transaction. - /// + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long ParentChainHeight { - get { return parentChainHeight_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } set { - parentChainHeight_ = value; + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "transfer_transaction_id" field. - public const int TransferTransactionIdFieldNumber = 9; - private global::AElf.Types.Hash transferTransactionId_; - /// - /// The id of transfer transaction. - /// + /// Field number for the "alias" field. + public const int AliasFieldNumber = 2; + private string alias_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Types.Hash TransferTransactionId { - get { return transferTransactionId_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Alias { + get { return alias_; } set { - transferTransactionId_ = value; + alias_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as CrossChainReceived); + return Equals(other as SymbolAliasAdded); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(CrossChainReceived other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SymbolAliasAdded other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (!object.Equals(From, other.From)) return false; - if (!object.Equals(To, other.To)) return false; if (Symbol != other.Symbol) return false; - if (Amount != other.Amount) return false; - if (Memo != other.Memo) return false; - if (FromChainId != other.FromChainId) return false; - if (IssueChainId != other.IssueChainId) return false; - if (ParentChainHeight != other.ParentChainHeight) return false; - if (!object.Equals(TransferTransactionId, other.TransferTransactionId)) return false; + if (Alias != other.Alias) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (from_ != null) hash ^= From.GetHashCode(); - if (to_ != null) hash ^= To.GetHashCode(); if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); - if (Amount != 0L) hash ^= Amount.GetHashCode(); - if (Memo.Length != 0) hash ^= Memo.GetHashCode(); - if (FromChainId != 0) hash ^= FromChainId.GetHashCode(); - if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); - if (ParentChainHeight != 0L) hash ^= ParentChainHeight.GetHashCode(); - if (transferTransactionId_ != null) hash ^= TransferTransactionId.GetHashCode(); + if (Alias.Length != 0) hash ^= Alias.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -11846,82 +19735,58 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { - if (from_ != null) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { output.WriteRawTag(10); - output.WriteMessage(From); + output.WriteString(Symbol); } - if (to_ != null) { + if (Alias.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(To); + output.WriteString(Alias); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Symbol.Length != 0) { - output.WriteRawTag(26); + output.WriteRawTag(10); output.WriteString(Symbol); } - if (Amount != 0L) { - output.WriteRawTag(32); - output.WriteInt64(Amount); - } - if (Memo.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Memo); - } - if (FromChainId != 0) { - output.WriteRawTag(48); - output.WriteInt32(FromChainId); - } - if (IssueChainId != 0) { - output.WriteRawTag(56); - output.WriteInt32(IssueChainId); - } - if (ParentChainHeight != 0L) { - output.WriteRawTag(64); - output.WriteInt64(ParentChainHeight); - } - if (transferTransactionId_ != null) { - output.WriteRawTag(74); - output.WriteMessage(TransferTransactionId); + if (Alias.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Alias); } if (_unknownFields != null) { - _unknownFields.WriteTo(output); + _unknownFields.WriteTo(ref output); } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (from_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(From); - } - if (to_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(To); - } if (Symbol.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); } - if (Amount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); - } - if (Memo.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Memo); - } - if (FromChainId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromChainId); - } - if (IssueChainId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId); - } - if (ParentChainHeight != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ParentChainHeight); - } - if (transferTransactionId_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransferTransactionId); + if (Alias.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Alias); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -11930,51 +19795,26 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(CrossChainReceived other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SymbolAliasAdded other) { if (other == null) { return; } - if (other.from_ != null) { - if (from_ == null) { - From = new global::AElf.Types.Address(); - } - From.MergeFrom(other.From); - } - if (other.to_ != null) { - if (to_ == null) { - To = new global::AElf.Types.Address(); - } - To.MergeFrom(other.To); - } if (other.Symbol.Length != 0) { Symbol = other.Symbol; } - if (other.Amount != 0L) { - Amount = other.Amount; - } - if (other.Memo.Length != 0) { - Memo = other.Memo; - } - if (other.FromChainId != 0) { - FromChainId = other.FromChainId; - } - if (other.IssueChainId != 0) { - IssueChainId = other.IssueChainId; - } - if (other.ParentChainHeight != 0L) { - ParentChainHeight = other.ParentChainHeight; - } - if (other.transferTransactionId_ != null) { - if (transferTransactionId_ == null) { - TransferTransactionId = new global::AElf.Types.Hash(); - } - TransferTransactionId.MergeFrom(other.TransferTransactionId); + if (other.Alias.Length != 0) { + Alias = other.Alias; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -11982,95 +19822,93 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - if (from_ == null) { - From = new global::AElf.Types.Address(); - } - input.ReadMessage(From); - break; - } - case 18: { - if (to_ == null) { - To = new global::AElf.Types.Address(); - } - input.ReadMessage(To); - break; - } - case 26: { Symbol = input.ReadString(); break; } - case 32: { - Amount = input.ReadInt64(); - break; - } - case 42: { - Memo = input.ReadString(); - break; - } - case 48: { - FromChainId = input.ReadInt32(); + case 18: { + Alias = input.ReadString(); break; } - case 56: { - IssueChainId = input.ReadInt32(); + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } - case 64: { - ParentChainHeight = input.ReadInt64(); + case 10: { + Symbol = input.ReadString(); break; } - case 74: { - if (transferTransactionId_ == null) { - TransferTransactionId = new global::AElf.Types.Hash(); - } - input.ReadMessage(TransferTransactionId); + case 18: { + Alias = input.ReadString(); break; } } } } + #endif } - public sealed partial class ExternalInfoChanged : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalInfoChanged()); + public sealed partial class SymbolAliasDeleted : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SymbolAliasDeleted()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[58]; } + get { return global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.MessageTypes[71]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ExternalInfoChanged() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SymbolAliasDeleted() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ExternalInfoChanged(ExternalInfoChanged other) : this() { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SymbolAliasDeleted(SymbolAliasDeleted other) : this() { symbol_ = other.symbol_; - externalInfo_ = other.externalInfo_ != null ? other.externalInfo_.Clone() : null; + alias_ = other.alias_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ExternalInfoChanged Clone() { - return new ExternalInfoChanged(this); + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SymbolAliasDeleted Clone() { + return new SymbolAliasDeleted(this); } /// Field number for the "symbol" field. public const int SymbolFieldNumber = 1; private string symbol_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -12078,24 +19916,27 @@ public string Symbol { } } - /// Field number for the "external_info" field. - public const int ExternalInfoFieldNumber = 2; - private global::AElf.Contracts.MultiToken.ExternalInfo externalInfo_; + /// Field number for the "alias" field. + public const int AliasFieldNumber = 2; + private string alias_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::AElf.Contracts.MultiToken.ExternalInfo ExternalInfo { - get { return externalInfo_; } + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Alias { + get { return alias_; } set { - externalInfo_ = value; + alias_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ExternalInfoChanged); + return Equals(other as SymbolAliasDeleted); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(ExternalInfoChanged other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SymbolAliasDeleted other) { if (ReferenceEquals(other, null)) { return false; } @@ -12103,15 +19944,16 @@ public bool Equals(ExternalInfoChanged other) { return true; } if (Symbol != other.Symbol) return false; - if (!object.Equals(ExternalInfo, other.ExternalInfo)) return false; + if (Alias != other.Alias) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); - if (externalInfo_ != null) hash ^= ExternalInfo.GetHashCode(); + if (Alias.Length != 0) hash ^= Alias.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -12119,33 +19961,58 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Symbol.Length != 0) { output.WriteRawTag(10); output.WriteString(Symbol); } - if (externalInfo_ != null) { + if (Alias.Length != 0) { output.WriteRawTag(18); - output.WriteMessage(ExternalInfo); + output.WriteString(Alias); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Alias.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Alias); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Symbol.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); } - if (externalInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalInfo); + if (Alias.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Alias); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -12154,24 +20021,26 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(ExternalInfoChanged other) { + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SymbolAliasDeleted other) { if (other == null) { return; } if (other.Symbol.Length != 0) { Symbol = other.Symbol; } - if (other.externalInfo_ != null) { - if (externalInfo_ == null) { - ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); - } - ExternalInfo.MergeFrom(other.ExternalInfo); + if (other.Alias.Length != 0) { + Alias = other.Alias; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -12183,15 +20052,36 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 18: { - if (externalInfo_ == null) { - ExternalInfo = new global::AElf.Contracts.MultiToken.ExternalInfo(); - } - input.ReadMessage(ExternalInfo); + Alias = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + Alias = input.ReadString(); break; } } } } + #endif } diff --git a/src/CAServer.Application.Contracts/Contracts/TokenContractImpl.c.cs b/src/CAServer.Application.Contracts/Contracts/TokenContractImpl.c.cs index 3921b0f60..279718394 100644 --- a/src/CAServer.Application.Contracts/Contracts/TokenContractImpl.c.cs +++ b/src/CAServer.Application.Contracts/Contracts/TokenContractImpl.c.cs @@ -18,7 +18,855 @@ namespace AElf.Contracts.MultiToken { #region Events + public partial class TransactionFeeDelegateInfoAdded : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public TransactionFeeDelegateInfoAdded GetNonIndexed() + { + return new TransactionFeeDelegateInfoAdded + { + Delegator = Delegator, + Delegatee = Delegatee, + Caller = Caller, + DelegateTransactionList = DelegateTransactionList, + }; + } + } + + public partial class TransactionFeeDelegateInfoUpdated : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public TransactionFeeDelegateInfoUpdated GetNonIndexed() + { + return new TransactionFeeDelegateInfoUpdated + { + Delegator = Delegator, + Delegatee = Delegatee, + Caller = Caller, + DelegateTransactionList = DelegateTransactionList, + }; + } + } + + public partial class TransactionFeeDelegateInfoCancelled : aelf::IEvent + { + public global::System.Collections.Generic.IEnumerable GetIndexed() + { + return new List + { + }; + } + + public TransactionFeeDelegateInfoCancelled GetNonIndexed() + { + return new TransactionFeeDelegateInfoCancelled + { + Delegator = Delegator, + Delegatee = Delegatee, + Caller = Caller, + DelegateTransactionList = DelegateTransactionList, + }; + } + } + #endregion + public static partial class TokenContractImplContainer + { + static readonly string __ServiceName = "tokenimpl.TokenContractImpl"; + + #region Marshallers + static readonly aelf::Marshaller __Marshaller_acs1_MethodFees = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Standards.ACS1.MethodFees.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_Empty = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.Empty.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_AuthorityInfo = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AuthorityInfo.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_StringValue = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.StringValue.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_aelf_Transaction = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Types.Transaction.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_acs2_ResourceInfo = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Standards.ACS2.ResourceInfo.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_CreateInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.CreateInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_IssueInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.IssueInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_TransferInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.TransferInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_TransferFromInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.TransferFromInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_ApproveInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.ApproveInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_BatchApproveInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.BatchApproveInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_UnApproveInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.UnApproveInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_LockInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.LockInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_UnlockInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.UnlockInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_BurnInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.BurnInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_SetPrimaryTokenSymbolInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.SetPrimaryTokenSymbolInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_CrossChainTransferInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.CrossChainTransferInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_CrossChainReceiveTokenInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.CrossChainReceiveTokenInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_CrossChainCreateTokenInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.CrossChainCreateTokenInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_InitializeFromParentChainInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.InitializeFromParentChainInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_TotalTransactionFeesMap = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.TotalTransactionFeesMap.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_ChargeTransactionFeesInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.ChargeTransactionFeesInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_ChargeTransactionFeesOutput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.ChargeTransactionFeesOutput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_CheckThresholdInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.CheckThresholdInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_TotalResourceTokensMaps = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.TotalResourceTokensMaps.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_ChargeResourceTokenInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.ChargeResourceTokenInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_SymbolListToPayTxSizeFee = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.SymbolListToPayTxSizeFee.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_UpdateCoefficientsInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.UpdateCoefficientsInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_aelf_Address = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Types.Address.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_SetTransactionFeeDelegationsInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.SetTransactionFeeDelegationsInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_SetTransactionFeeDelegationsOutput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.SetTransactionFeeDelegationsOutput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_RemoveTransactionFeeDelegatorInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegatorInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_RemoveTransactionFeeDelegateeInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegateeInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_SetSymbolAliasInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.SetSymbolAliasInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_GetTransactionFeeDelegateesInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateesInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_GetTransactionFeeDelegateesOutput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateesOutput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_GetTokenInfoInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetTokenInfoInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_TokenInfo = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.TokenInfo.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_TokenInfoList = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.TokenInfoList.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_GetBalanceInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetBalanceInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_GetBalanceOutput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetBalanceOutput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_GetAllowanceInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetAllowanceInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_GetAllowanceOutput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetAllowanceOutput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_IsInWhiteListInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.IsInWhiteListInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_BoolValue = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.BoolValue.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_GetLockedAmountInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetLockedAmountInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_GetLockedAmountOutput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetLockedAmountOutput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_GetCrossChainTransferTokenContractAddressInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetCrossChainTransferTokenContractAddressInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_google_protobuf_Int32Value = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.Int32Value.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_CalculateFeeCoefficients = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.CalculateFeeCoefficients.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_aelf_Hash = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Types.Hash.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_StringList = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.StringList.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_GetTransactionFeeDelegationsOfADelegateeInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetTransactionFeeDelegationsOfADelegateeInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_token_TransactionFeeDelegations = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.TransactionFeeDelegations.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_AdvanceResourceTokenInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.AdvanceResourceTokenInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_TakeResourceTokenBackInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.TakeResourceTokenBackInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_RegisterCrossChainTokenContractAddressInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.RegisterCrossChainTokenContractAddressInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_ValidateTokenInfoExistsInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.ValidateTokenInfoExistsInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_UpdateRentalInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.UpdateRentalInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_UpdateRentedResourcesInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.UpdateRentedResourcesInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_TransferToContractInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.TransferToContractInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_ConfigTransactionFeeFreeAllowancesInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.ConfigTransactionFeeFreeAllowancesInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_RemoveTransactionFeeFreeAllowancesConfigInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.RemoveTransactionFeeFreeAllowancesConfigInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_SetTransactionFeeDelegateInfosInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.SetTransactionFeeDelegateInfosInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_RemoveTransactionFeeDelegatorInfosInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegatorInfosInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_RemoveTransactionFeeDelegateeInfosInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegateeInfosInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_ResourceUsage = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.ResourceUsage.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_UserFeeController = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.UserFeeController.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_DeveloperFeeController = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.DeveloperFeeController.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_GetVirtualAddressForLockingInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetVirtualAddressForLockingInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_OwningRental = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.OwningRental.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_OwningRentalUnitValue = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.OwningRentalUnitValue.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_TransactionFeeFreeAllowancesMap = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowancesMap.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_GetTransactionFeeFreeAllowancesConfigOutput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetTransactionFeeFreeAllowancesConfigOutput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_GetTransactionFeeDelegateeListInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateeListInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_GetTransactionFeeDelegateeListOutput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateeListOutput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_GetTransactionFeeDelegateInfoInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateInfoInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_ModifyTokenIssuerAndOwnerInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.ModifyTokenIssuerAndOwnerInput.Parser.ParseFrom); + static readonly aelf::Marshaller __Marshaller_tokenimpl_SetTokenIssuerAndOwnerModificationEnabledInput = aelf::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::AElf.Contracts.MultiToken.SetTokenIssuerAndOwnerModificationEnabledInput.Parser.ParseFrom); + #endregion + + #region Methods + static readonly aelf::Method __Method_SetMethodFee = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetMethodFee", + __Marshaller_acs1_MethodFees, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChangeMethodFeeController = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChangeMethodFeeController", + __Marshaller_AuthorityInfo, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_GetMethodFee = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetMethodFee", + __Marshaller_google_protobuf_StringValue, + __Marshaller_acs1_MethodFees); + + static readonly aelf::Method __Method_GetMethodFeeController = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetMethodFeeController", + __Marshaller_google_protobuf_Empty, + __Marshaller_AuthorityInfo); + + static readonly aelf::Method __Method_GetResourceInfo = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetResourceInfo", + __Marshaller_aelf_Transaction, + __Marshaller_acs2_ResourceInfo); + + static readonly aelf::Method __Method_Create = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Create", + __Marshaller_token_CreateInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Issue = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Issue", + __Marshaller_token_IssueInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Transfer = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Transfer", + __Marshaller_token_TransferInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_TransferFrom = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "TransferFrom", + __Marshaller_token_TransferFromInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Approve = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Approve", + __Marshaller_token_ApproveInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_BatchApprove = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "BatchApprove", + __Marshaller_token_BatchApproveInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_UnApprove = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "UnApprove", + __Marshaller_token_UnApproveInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Lock = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Lock", + __Marshaller_token_LockInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Unlock = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Unlock", + __Marshaller_token_UnlockInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_Burn = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "Burn", + __Marshaller_token_BurnInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetPrimaryTokenSymbol = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetPrimaryTokenSymbol", + __Marshaller_token_SetPrimaryTokenSymbolInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_CrossChainTransfer = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "CrossChainTransfer", + __Marshaller_token_CrossChainTransferInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_CrossChainReceiveToken = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "CrossChainReceiveToken", + __Marshaller_token_CrossChainReceiveTokenInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_CrossChainCreateToken = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "CrossChainCreateToken", + __Marshaller_token_CrossChainCreateTokenInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_InitializeFromParentChain = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "InitializeFromParentChain", + __Marshaller_token_InitializeFromParentChainInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ClaimTransactionFees = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ClaimTransactionFees", + __Marshaller_token_TotalTransactionFeesMap, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChargeTransactionFees = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChargeTransactionFees", + __Marshaller_token_ChargeTransactionFeesInput, + __Marshaller_token_ChargeTransactionFeesOutput); + + static readonly aelf::Method __Method_ChargeUserContractTransactionFees = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChargeUserContractTransactionFees", + __Marshaller_token_ChargeTransactionFeesInput, + __Marshaller_token_ChargeTransactionFeesOutput); + + static readonly aelf::Method __Method_CheckThreshold = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "CheckThreshold", + __Marshaller_token_CheckThresholdInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_InitialCoefficients = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "InitialCoefficients", + __Marshaller_google_protobuf_Empty, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_DonateResourceToken = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "DonateResourceToken", + __Marshaller_token_TotalResourceTokensMaps, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChargeResourceToken = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChargeResourceToken", + __Marshaller_token_ChargeResourceTokenInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_CheckResourceToken = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "CheckResourceToken", + __Marshaller_google_protobuf_Empty, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetSymbolsToPayTxSizeFee = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetSymbolsToPayTxSizeFee", + __Marshaller_token_SymbolListToPayTxSizeFee, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_UpdateCoefficientsForSender = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "UpdateCoefficientsForSender", + __Marshaller_token_UpdateCoefficientsInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_UpdateCoefficientsForContract = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "UpdateCoefficientsForContract", + __Marshaller_token_UpdateCoefficientsInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_InitializeAuthorizedController = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "InitializeAuthorizedController", + __Marshaller_google_protobuf_Empty, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_AddAddressToCreateTokenWhiteList = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "AddAddressToCreateTokenWhiteList", + __Marshaller_aelf_Address, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_RemoveAddressFromCreateTokenWhiteList = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "RemoveAddressFromCreateTokenWhiteList", + __Marshaller_aelf_Address, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetTransactionFeeDelegations = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetTransactionFeeDelegations", + __Marshaller_token_SetTransactionFeeDelegationsInput, + __Marshaller_token_SetTransactionFeeDelegationsOutput); + + static readonly aelf::Method __Method_RemoveTransactionFeeDelegator = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "RemoveTransactionFeeDelegator", + __Marshaller_token_RemoveTransactionFeeDelegatorInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_RemoveTransactionFeeDelegatee = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "RemoveTransactionFeeDelegatee", + __Marshaller_token_RemoveTransactionFeeDelegateeInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetSymbolAlias = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetSymbolAlias", + __Marshaller_token_SetSymbolAliasInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_GetTransactionFeeDelegatees = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetTransactionFeeDelegatees", + __Marshaller_token_GetTransactionFeeDelegateesInput, + __Marshaller_token_GetTransactionFeeDelegateesOutput); + + static readonly aelf::Method __Method_GetTokenInfo = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetTokenInfo", + __Marshaller_token_GetTokenInfoInput, + __Marshaller_token_TokenInfo); + + static readonly aelf::Method __Method_GetNativeTokenInfo = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetNativeTokenInfo", + __Marshaller_google_protobuf_Empty, + __Marshaller_token_TokenInfo); + + static readonly aelf::Method __Method_GetResourceTokenInfo = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetResourceTokenInfo", + __Marshaller_google_protobuf_Empty, + __Marshaller_token_TokenInfoList); + + static readonly aelf::Method __Method_GetBalance = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetBalance", + __Marshaller_token_GetBalanceInput, + __Marshaller_token_GetBalanceOutput); + + static readonly aelf::Method __Method_GetAllowance = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetAllowance", + __Marshaller_token_GetAllowanceInput, + __Marshaller_token_GetAllowanceOutput); + + static readonly aelf::Method __Method_GetAvailableAllowance = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetAvailableAllowance", + __Marshaller_token_GetAllowanceInput, + __Marshaller_token_GetAllowanceOutput); + + static readonly aelf::Method __Method_IsInWhiteList = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "IsInWhiteList", + __Marshaller_token_IsInWhiteListInput, + __Marshaller_google_protobuf_BoolValue); + + static readonly aelf::Method __Method_GetLockedAmount = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetLockedAmount", + __Marshaller_token_GetLockedAmountInput, + __Marshaller_token_GetLockedAmountOutput); + + static readonly aelf::Method __Method_GetCrossChainTransferTokenContractAddress = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetCrossChainTransferTokenContractAddress", + __Marshaller_token_GetCrossChainTransferTokenContractAddressInput, + __Marshaller_aelf_Address); + + static readonly aelf::Method __Method_GetPrimaryTokenSymbol = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetPrimaryTokenSymbol", + __Marshaller_google_protobuf_Empty, + __Marshaller_google_protobuf_StringValue); + + static readonly aelf::Method __Method_GetCalculateFeeCoefficientsForContract = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetCalculateFeeCoefficientsForContract", + __Marshaller_google_protobuf_Int32Value, + __Marshaller_token_CalculateFeeCoefficients); + + static readonly aelf::Method __Method_GetCalculateFeeCoefficientsForSender = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetCalculateFeeCoefficientsForSender", + __Marshaller_google_protobuf_Empty, + __Marshaller_token_CalculateFeeCoefficients); + + static readonly aelf::Method __Method_GetSymbolsToPayTxSizeFee = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetSymbolsToPayTxSizeFee", + __Marshaller_google_protobuf_Empty, + __Marshaller_token_SymbolListToPayTxSizeFee); + + static readonly aelf::Method __Method_GetLatestTotalTransactionFeesMapHash = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetLatestTotalTransactionFeesMapHash", + __Marshaller_google_protobuf_Empty, + __Marshaller_aelf_Hash); + + static readonly aelf::Method __Method_GetLatestTotalResourceTokensMapsHash = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetLatestTotalResourceTokensMapsHash", + __Marshaller_google_protobuf_Empty, + __Marshaller_aelf_Hash); + + static readonly aelf::Method __Method_IsTokenAvailableForMethodFee = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "IsTokenAvailableForMethodFee", + __Marshaller_google_protobuf_StringValue, + __Marshaller_google_protobuf_BoolValue); + + static readonly aelf::Method __Method_GetReservedExternalInfoKeyList = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetReservedExternalInfoKeyList", + __Marshaller_google_protobuf_Empty, + __Marshaller_token_StringList); + + static readonly aelf::Method __Method_GetTransactionFeeDelegationsOfADelegatee = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetTransactionFeeDelegationsOfADelegatee", + __Marshaller_token_GetTransactionFeeDelegationsOfADelegateeInput, + __Marshaller_token_TransactionFeeDelegations); + + static readonly aelf::Method __Method_GetTokenAlias = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetTokenAlias", + __Marshaller_google_protobuf_StringValue, + __Marshaller_google_protobuf_StringValue); + + static readonly aelf::Method __Method_GetSymbolByAlias = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetSymbolByAlias", + __Marshaller_google_protobuf_StringValue, + __Marshaller_google_protobuf_StringValue); + + static readonly aelf::Method __Method_AdvanceResourceToken = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "AdvanceResourceToken", + __Marshaller_tokenimpl_AdvanceResourceTokenInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_TakeResourceTokenBack = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "TakeResourceTokenBack", + __Marshaller_tokenimpl_TakeResourceTokenBackInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_RegisterCrossChainTokenContractAddress = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "RegisterCrossChainTokenContractAddress", + __Marshaller_tokenimpl_RegisterCrossChainTokenContractAddressInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetFeeReceiver = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetFeeReceiver", + __Marshaller_aelf_Address, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ValidateTokenInfoExists = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ValidateTokenInfoExists", + __Marshaller_tokenimpl_ValidateTokenInfoExistsInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_UpdateRental = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "UpdateRental", + __Marshaller_tokenimpl_UpdateRentalInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_UpdateRentedResources = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "UpdateRentedResources", + __Marshaller_tokenimpl_UpdateRentedResourcesInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_TransferToContract = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "TransferToContract", + __Marshaller_tokenimpl_TransferToContractInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChangeSideChainRentalController = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChangeSideChainRentalController", + __Marshaller_AuthorityInfo, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChangeSymbolsToPayTXSizeFeeController = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChangeSymbolsToPayTXSizeFeeController", + __Marshaller_AuthorityInfo, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChangeCrossChainTokenContractRegistrationController = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChangeCrossChainTokenContractRegistrationController", + __Marshaller_AuthorityInfo, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChangeUserFeeController = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChangeUserFeeController", + __Marshaller_AuthorityInfo, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ChangeDeveloperController = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ChangeDeveloperController", + __Marshaller_AuthorityInfo, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_ConfigTransactionFeeFreeAllowances = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ConfigTransactionFeeFreeAllowances", + __Marshaller_tokenimpl_ConfigTransactionFeeFreeAllowancesInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_RemoveTransactionFeeFreeAllowancesConfig = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "RemoveTransactionFeeFreeAllowancesConfig", + __Marshaller_tokenimpl_RemoveTransactionFeeFreeAllowancesConfigInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetMaxBatchApproveCount = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetMaxBatchApproveCount", + __Marshaller_google_protobuf_Int32Value, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetTransactionFeeDelegateInfos = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetTransactionFeeDelegateInfos", + __Marshaller_tokenimpl_SetTransactionFeeDelegateInfosInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_RemoveTransactionFeeDelegatorInfos = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "RemoveTransactionFeeDelegatorInfos", + __Marshaller_tokenimpl_RemoveTransactionFeeDelegatorInfosInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_RemoveTransactionFeeDelegateeInfos = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "RemoveTransactionFeeDelegateeInfos", + __Marshaller_tokenimpl_RemoveTransactionFeeDelegateeInfosInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_GetFeeReceiver = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetFeeReceiver", + __Marshaller_google_protobuf_Empty, + __Marshaller_aelf_Address); + + static readonly aelf::Method __Method_GetResourceUsage = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetResourceUsage", + __Marshaller_google_protobuf_Empty, + __Marshaller_tokenimpl_ResourceUsage); + + static readonly aelf::Method __Method_GetSymbolsToPayTXSizeFeeController = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetSymbolsToPayTXSizeFeeController", + __Marshaller_google_protobuf_Empty, + __Marshaller_AuthorityInfo); + + static readonly aelf::Method __Method_GetCrossChainTokenContractRegistrationController = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetCrossChainTokenContractRegistrationController", + __Marshaller_google_protobuf_Empty, + __Marshaller_AuthorityInfo); + + static readonly aelf::Method __Method_GetUserFeeController = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetUserFeeController", + __Marshaller_google_protobuf_Empty, + __Marshaller_tokenimpl_UserFeeController); + + static readonly aelf::Method __Method_GetDeveloperFeeController = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetDeveloperFeeController", + __Marshaller_google_protobuf_Empty, + __Marshaller_tokenimpl_DeveloperFeeController); + + static readonly aelf::Method __Method_GetSideChainRentalControllerCreateInfo = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetSideChainRentalControllerCreateInfo", + __Marshaller_google_protobuf_Empty, + __Marshaller_AuthorityInfo); + + static readonly aelf::Method __Method_GetVirtualAddressForLocking = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetVirtualAddressForLocking", + __Marshaller_tokenimpl_GetVirtualAddressForLockingInput, + __Marshaller_aelf_Address); + + static readonly aelf::Method __Method_GetOwningRental = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetOwningRental", + __Marshaller_google_protobuf_Empty, + __Marshaller_tokenimpl_OwningRental); + + static readonly aelf::Method __Method_GetOwningRentalUnitValue = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetOwningRentalUnitValue", + __Marshaller_google_protobuf_Empty, + __Marshaller_tokenimpl_OwningRentalUnitValue); + + static readonly aelf::Method __Method_GetTransactionFeeFreeAllowances = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetTransactionFeeFreeAllowances", + __Marshaller_aelf_Address, + __Marshaller_tokenimpl_TransactionFeeFreeAllowancesMap); + + static readonly aelf::Method __Method_GetTransactionFeeFreeAllowancesConfig = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetTransactionFeeFreeAllowancesConfig", + __Marshaller_google_protobuf_Empty, + __Marshaller_tokenimpl_GetTransactionFeeFreeAllowancesConfigOutput); + + static readonly aelf::Method __Method_GetTransactionFeeDelegateeList = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetTransactionFeeDelegateeList", + __Marshaller_tokenimpl_GetTransactionFeeDelegateeListInput, + __Marshaller_tokenimpl_GetTransactionFeeDelegateeListOutput); + + static readonly aelf::Method __Method_GetTransactionFeeDelegateInfo = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetTransactionFeeDelegateInfo", + __Marshaller_tokenimpl_GetTransactionFeeDelegateInfoInput, + __Marshaller_token_TransactionFeeDelegations); + + static readonly aelf::Method __Method_ModifyTokenIssuerAndOwner = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "ModifyTokenIssuerAndOwner", + __Marshaller_tokenimpl_ModifyTokenIssuerAndOwnerInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_SetTokenIssuerAndOwnerModificationEnabled = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "SetTokenIssuerAndOwnerModificationEnabled", + __Marshaller_tokenimpl_SetTokenIssuerAndOwnerModificationEnabledInput, + __Marshaller_google_protobuf_Empty); + + static readonly aelf::Method __Method_GetTokenIssuerAndOwnerModificationEnabled = new aelf::Method( + aelf::MethodType.View, + __ServiceName, + "GetTokenIssuerAndOwnerModificationEnabled", + __Marshaller_google_protobuf_Empty, + __Marshaller_google_protobuf_BoolValue); + + static readonly aelf::Method __Method_GetMaxBatchApproveCount = new aelf::Method( + aelf::MethodType.Action, + __ServiceName, + "GetMaxBatchApproveCount", + __Marshaller_google_protobuf_Empty, + __Marshaller_google_protobuf_Int32Value); + + #endregion + + #region Descriptors + public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor + { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.Services[0]; } + } + + public static global::System.Collections.Generic.IReadOnlyList Descriptors + { + get + { + return new global::System.Collections.Generic.List() + { + global::AElf.Standards.ACS1.Acs1Reflection.Descriptor.Services[0], + global::AElf.Standards.ACS2.Acs2Reflection.Descriptor.Services[0], + global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor.Services[0], + global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.Services[0], + }; + } + } + #endregion + + + } } #endregion diff --git a/src/CAServer.Application.Contracts/Contracts/TokenContractImpl.g.cs b/src/CAServer.Application.Contracts/Contracts/TokenContractImpl.g.cs index 412524619..e5a029cd3 100644 --- a/src/CAServer.Application.Contracts/Contracts/TokenContractImpl.g.cs +++ b/src/CAServer.Application.Contracts/Contracts/TokenContractImpl.g.cs @@ -2,7 +2,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: token_contract_impl.proto // -#pragma warning disable 1591, 0612, 3021 +#pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; @@ -37,95 +37,210 @@ static TokenContractImplReflection() { "KAUSGwoTcGFyZW50X2NoYWluX2hlaWdodBgCIAEoAxIZChF0cmFuc2FjdGlv", "bl9ieXRlcxgDIAEoDBIlCgttZXJrbGVfcGF0aBgEIAEoCzIQLmFlbGYuTWVy", "a2xlUGF0aBItChZ0b2tlbl9jb250cmFjdF9hZGRyZXNzGAUgASgLMg0uYWVs", - "Zi5BZGRyZXNzIr0CChxWYWxpZGF0ZVRva2VuSW5mb0V4aXN0c0lucHV0Eg4K", + "Zi5BZGRyZXNzItsCChxWYWxpZGF0ZVRva2VuSW5mb0V4aXN0c0lucHV0Eg4K", "BnN5bWJvbBgBIAEoCRISCgp0b2tlbl9uYW1lGAIgASgJEhQKDHRvdGFsX3N1", "cHBseRgDIAEoAxIQCghkZWNpbWFscxgEIAEoBRIdCgZpc3N1ZXIYBSABKAsy", "DS5hZWxmLkFkZHJlc3MSEwoLaXNfYnVybmFibGUYBiABKAgSFgoOaXNzdWVf", "Y2hhaW5faWQYByABKAUSUAoNZXh0ZXJuYWxfaW5mbxgIIAMoCzI5LnRva2Vu", "aW1wbC5WYWxpZGF0ZVRva2VuSW5mb0V4aXN0c0lucHV0LkV4dGVybmFsSW5m", - "b0VudHJ5GjMKEUV4dGVybmFsSW5mb0VudHJ5EgsKA2tleRgBIAEoCRINCgV2", - "YWx1ZRgCIAEoCToCOAEifAoRVXBkYXRlUmVudGFsSW5wdXQSOAoGcmVudGFs", - "GAEgAygLMigudG9rZW5pbXBsLlVwZGF0ZVJlbnRhbElucHV0LlJlbnRhbEVu", - "dHJ5Gi0KC1JlbnRhbEVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEo", - "AzoCOAEipwEKGlVwZGF0ZVJlbnRlZFJlc291cmNlc0lucHV0ElIKD3Jlc291", - "cmNlX2Ftb3VudBgBIAMoCzI5LnRva2VuaW1wbC5VcGRhdGVSZW50ZWRSZXNv", - "dXJjZXNJbnB1dC5SZXNvdXJjZUFtb3VudEVudHJ5GjUKE1Jlc291cmNlQW1v", - "dW50RW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgFOgI4ASJxCg1S", - "ZXNvdXJjZVVzYWdlEjIKBXZhbHVlGAEgAygLMiMudG9rZW5pbXBsLlJlc291", - "cmNlVXNhZ2UuVmFsdWVFbnRyeRosCgpWYWx1ZUVudHJ5EgsKA2tleRgBIAEo", - "CRINCgV2YWx1ZRgCIAEoBToCOAEiXwogR2V0VmlydHVhbEFkZHJlc3NGb3JM", - "b2NraW5nSW5wdXQSHgoHYWRkcmVzcxgBIAEoCzINLmFlbGYuQWRkcmVzcxIb", - "Cgdsb2NrX2lkGAIgASgLMgouYWVsZi5IYXNoIosBCgxPd25pbmdSZW50YWwS", - "RAoPcmVzb3VyY2VfYW1vdW50GAEgAygLMisudG9rZW5pbXBsLk93bmluZ1Jl", - "bnRhbC5SZXNvdXJjZUFtb3VudEVudHJ5GjUKE1Jlc291cmNlQW1vdW50RW50", - "cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgDOgI4ASKnAQoVT3duaW5n", - "UmVudGFsVW5pdFZhbHVlElQKE3Jlc291cmNlX3VuaXRfdmFsdWUYASADKAsy", - "Ny50b2tlbmltcGwuT3duaW5nUmVudGFsVW5pdFZhbHVlLlJlc291cmNlVW5p", - "dFZhbHVlRW50cnkaOAoWUmVzb3VyY2VVbml0VmFsdWVFbnRyeRILCgNrZXkY", - "ASABKAkSDQoFdmFsdWUYAiABKAM6AjgBIkcKF1RyYW5zZmVyVG9Db250cmFj", - "dElucHV0Eg4KBnN5bWJvbBgBIAEoCRIOCgZhbW91bnQYAiABKAMSDAoEbWVt", - "bxgDIAEoCSKaAQoRVXNlckZlZUNvbnRyb2xsZXISJwoPcm9vdF9jb250cm9s", - "bGVyGAEgASgLMg4uQXV0aG9yaXR5SW5mbxItChVwYXJsaWFtZW50X2NvbnRy", - "b2xsZXIYAiABKAsyDi5BdXRob3JpdHlJbmZvEi0KFXJlZmVyZW5kdW1fY29u", - "dHJvbGxlchgDIAEoCzIOLkF1dGhvcml0eUluZm8ingEKFkRldmVsb3BlckZl", - "ZUNvbnRyb2xsZXISJwoPcm9vdF9jb250cm9sbGVyGAEgASgLMg4uQXV0aG9y", - "aXR5SW5mbxItChVwYXJsaWFtZW50X2NvbnRyb2xsZXIYAiABKAsyDi5BdXRo", - "b3JpdHlJbmZvEiwKFGRldmVsb3Blcl9jb250cm9sbGVyGAMgASgLMg4uQXV0", - "aG9yaXR5SW5mbzKjEAoRVG9rZW5Db250cmFjdEltcGwSVgoUQWR2YW5jZVJl", - "c291cmNlVG9rZW4SJC50b2tlbmltcGwuQWR2YW5jZVJlc291cmNlVG9rZW5J", - "bnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElgKFVRha2VSZXNvdXJj", - "ZVRva2VuQmFjaxIlLnRva2VuaW1wbC5UYWtlUmVzb3VyY2VUb2tlbkJhY2tJ", - "bnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEnoKJlJlZ2lzdGVyQ3Jv", - "c3NDaGFpblRva2VuQ29udHJhY3RBZGRyZXNzEjYudG9rZW5pbXBsLlJlZ2lz", - "dGVyQ3Jvc3NDaGFpblRva2VuQ29udHJhY3RBZGRyZXNzSW5wdXQaFi5nb29n", - "bGUucHJvdG9idWYuRW1wdHkiABI5Cg5TZXRGZWVSZWNlaXZlchINLmFlbGYu", - "QWRkcmVzcxoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElwKF1ZhbGlkYXRl", - "VG9rZW5JbmZvRXhpc3RzEicudG9rZW5pbXBsLlZhbGlkYXRlVG9rZW5JbmZv", - "RXhpc3RzSW5wdXQaFi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJGCgxVcGRh", - "dGVSZW50YWwSHC50b2tlbmltcGwuVXBkYXRlUmVudGFsSW5wdXQaFi5nb29n", - "bGUucHJvdG9idWYuRW1wdHkiABJYChVVcGRhdGVSZW50ZWRSZXNvdXJjZXMS", - "JS50b2tlbmltcGwuVXBkYXRlUmVudGVkUmVzb3VyY2VzSW5wdXQaFi5nb29n", - "bGUucHJvdG9idWYuRW1wdHkiABJSChJUcmFuc2ZlclRvQ29udHJhY3QSIi50", - "b2tlbmltcGwuVHJhbnNmZXJUb0NvbnRyYWN0SW5wdXQaFi5nb29nbGUucHJv", - "dG9idWYuRW1wdHkiABJLCh9DaGFuZ2VTaWRlQ2hhaW5SZW50YWxDb250cm9s", - "bGVyEg4uQXV0aG9yaXR5SW5mbxoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIA", - "ElEKJUNoYW5nZVN5bWJvbHNUb1BheVRYU2l6ZUZlZUNvbnRyb2xsZXISDi5B", - "dXRob3JpdHlJbmZvGhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgASXwozQ2hh", - "bmdlQ3Jvc3NDaGFpblRva2VuQ29udHJhY3RSZWdpc3RyYXRpb25Db250cm9s", - "bGVyEg4uQXV0aG9yaXR5SW5mbxoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIA", - "EkMKF0NoYW5nZVVzZXJGZWVDb250cm9sbGVyEg4uQXV0aG9yaXR5SW5mbxoW", - "Lmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEkUKGUNoYW5nZURldmVsb3BlckNv", - "bnRyb2xsZXISDi5BdXRob3JpdHlJbmZvGhYuZ29vZ2xlLnByb3RvYnVmLkVt", - "cHR5IgASPgoOR2V0RmVlUmVjZWl2ZXISFi5nb29nbGUucHJvdG9idWYuRW1w", - "dHkaDS5hZWxmLkFkZHJlc3MiBYiJ9wEBEksKEEdldFJlc291cmNlVXNhZ2US", - "Fi5nb29nbGUucHJvdG9idWYuRW1wdHkaGC50b2tlbmltcGwuUmVzb3VyY2VV", - "c2FnZSIFiIn3AQESUwoiR2V0U3ltYm9sc1RvUGF5VFhTaXplRmVlQ29udHJv", - "bGxlchIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoOLkF1dGhvcml0eUluZm8i", - "BYiJ9wEBEmEKMEdldENyb3NzQ2hhaW5Ub2tlbkNvbnRyYWN0UmVnaXN0cmF0", - "aW9uQ29udHJvbGxlchIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoOLkF1dGhv", - "cml0eUluZm8iBYiJ9wEBElMKFEdldFVzZXJGZWVDb250cm9sbGVyEhYuZ29v", - "Z2xlLnByb3RvYnVmLkVtcHR5GhwudG9rZW5pbXBsLlVzZXJGZWVDb250cm9s", - "bGVyIgWIifcBARJdChlHZXREZXZlbG9wZXJGZWVDb250cm9sbGVyEhYuZ29v", - "Z2xlLnByb3RvYnVmLkVtcHR5GiEudG9rZW5pbXBsLkRldmVsb3BlckZlZUNv", - "bnRyb2xsZXIiBYiJ9wEBElcKJkdldFNpZGVDaGFpblJlbnRhbENvbnRyb2xs", - "ZXJDcmVhdGVJbmZvEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Gg4uQXV0aG9y", - "aXR5SW5mbyIFiIn3AQESYAobR2V0VmlydHVhbEFkZHJlc3NGb3JMb2NraW5n", - "EisudG9rZW5pbXBsLkdldFZpcnR1YWxBZGRyZXNzRm9yTG9ja2luZ0lucHV0", - "Gg0uYWVsZi5BZGRyZXNzIgWIifcBARJJCg9HZXRPd25pbmdSZW50YWwSFi5n", - "b29nbGUucHJvdG9idWYuRW1wdHkaFy50b2tlbmltcGwuT3duaW5nUmVudGFs", - "IgWIifcBARJbChhHZXRPd25pbmdSZW50YWxVbml0VmFsdWUSFi5nb29nbGUu", - "cHJvdG9idWYuRW1wdHkaIC50b2tlbmltcGwuT3duaW5nUmVudGFsVW5pdFZh", - "bHVlIgWIifcBARpossz2ASxBRWxmLkNvbnRyYWN0cy5NdWx0aVRva2VuLlRv", - "a2VuQ29udHJhY3RTdGF0ZcrK9gEKYWNzMS5wcm90b8rK9gEKYWNzMi5wcm90", - "b8rK9gEUdG9rZW5fY29udHJhY3QucHJvdG9CHKoCGUFFbGYuQ29udHJhY3Rz", - "Lk11bHRpVG9rZW5iBnByb3RvMw==")); + "b0VudHJ5EhwKBW93bmVyGAkgASgLMg0uYWVsZi5BZGRyZXNzGjMKEUV4dGVy", + "bmFsSW5mb0VudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEi", + "fAoRVXBkYXRlUmVudGFsSW5wdXQSOAoGcmVudGFsGAEgAygLMigudG9rZW5p", + "bXBsLlVwZGF0ZVJlbnRhbElucHV0LlJlbnRhbEVudHJ5Gi0KC1JlbnRhbEVu", + "dHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoAzoCOAEipwEKGlVwZGF0", + "ZVJlbnRlZFJlc291cmNlc0lucHV0ElIKD3Jlc291cmNlX2Ftb3VudBgBIAMo", + "CzI5LnRva2VuaW1wbC5VcGRhdGVSZW50ZWRSZXNvdXJjZXNJbnB1dC5SZXNv", + "dXJjZUFtb3VudEVudHJ5GjUKE1Jlc291cmNlQW1vdW50RW50cnkSCwoDa2V5", + "GAEgASgJEg0KBXZhbHVlGAIgASgFOgI4ASJxCg1SZXNvdXJjZVVzYWdlEjIK", + "BXZhbHVlGAEgAygLMiMudG9rZW5pbXBsLlJlc291cmNlVXNhZ2UuVmFsdWVF", + "bnRyeRosCgpWYWx1ZUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEo", + "BToCOAEiXwogR2V0VmlydHVhbEFkZHJlc3NGb3JMb2NraW5nSW5wdXQSHgoH", + "YWRkcmVzcxgBIAEoCzINLmFlbGYuQWRkcmVzcxIbCgdsb2NrX2lkGAIgASgL", + "MgouYWVsZi5IYXNoIosBCgxPd25pbmdSZW50YWwSRAoPcmVzb3VyY2VfYW1v", + "dW50GAEgAygLMisudG9rZW5pbXBsLk93bmluZ1JlbnRhbC5SZXNvdXJjZUFt", + "b3VudEVudHJ5GjUKE1Jlc291cmNlQW1vdW50RW50cnkSCwoDa2V5GAEgASgJ", + "Eg0KBXZhbHVlGAIgASgDOgI4ASKnAQoVT3duaW5nUmVudGFsVW5pdFZhbHVl", + "ElQKE3Jlc291cmNlX3VuaXRfdmFsdWUYASADKAsyNy50b2tlbmltcGwuT3du", + "aW5nUmVudGFsVW5pdFZhbHVlLlJlc291cmNlVW5pdFZhbHVlRW50cnkaOAoW", + "UmVzb3VyY2VVbml0VmFsdWVFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUY", + "AiABKAM6AjgBIkcKF1RyYW5zZmVyVG9Db250cmFjdElucHV0Eg4KBnN5bWJv", + "bBgBIAEoCRIOCgZhbW91bnQYAiABKAMSDAoEbWVtbxgDIAEoCSKaAQoRVXNl", + "ckZlZUNvbnRyb2xsZXISJwoPcm9vdF9jb250cm9sbGVyGAEgASgLMg4uQXV0", + "aG9yaXR5SW5mbxItChVwYXJsaWFtZW50X2NvbnRyb2xsZXIYAiABKAsyDi5B", + "dXRob3JpdHlJbmZvEi0KFXJlZmVyZW5kdW1fY29udHJvbGxlchgDIAEoCzIO", + "LkF1dGhvcml0eUluZm8ingEKFkRldmVsb3BlckZlZUNvbnRyb2xsZXISJwoP", + "cm9vdF9jb250cm9sbGVyGAEgASgLMg4uQXV0aG9yaXR5SW5mbxItChVwYXJs", + "aWFtZW50X2NvbnRyb2xsZXIYAiABKAsyDi5BdXRob3JpdHlJbmZvEiwKFGRl", + "dmVsb3Blcl9jb250cm9sbGVyGAMgASgLMg4uQXV0aG9yaXR5SW5mbyKIAQod", + "TWV0aG9kRmVlRnJlZUFsbG93YW5jZXNDb25maWcSOwoPZnJlZV9hbGxvd2Fu", + "Y2VzGAEgASgLMiIudG9rZW5pbXBsLk1ldGhvZEZlZUZyZWVBbGxvd2FuY2Vz", + "EhcKD3JlZnJlc2hfc2Vjb25kcxgCIAEoAxIRCgl0aHJlc2hvbGQYAyABKAMi", + "SwoXTWV0aG9kRmVlRnJlZUFsbG93YW5jZXMSMAoFdmFsdWUYASADKAsyIS50", + "b2tlbmltcGwuTWV0aG9kRmVlRnJlZUFsbG93YW5jZSI4ChZNZXRob2RGZWVG", + "cmVlQWxsb3dhbmNlEg4KBnN5bWJvbBgBIAEoCRIOCgZhbW91bnQYAiABKAMi", + "VQocVHJhbnNhY3Rpb25GZWVGcmVlQWxsb3dhbmNlcxI1CgV2YWx1ZRgBIAMo", + "CzImLnRva2VuaW1wbC5UcmFuc2FjdGlvbkZlZUZyZWVBbGxvd2FuY2UiPQob", + "VHJhbnNhY3Rpb25GZWVGcmVlQWxsb3dhbmNlEg4KBnN5bWJvbBgBIAEoCRIO", + "CgZhbW91bnQYAiABKAMiOQomVHJhbnNhY3Rpb25GZWVGcmVlQWxsb3dhbmNl", + "c1N5bWJvbExpc3QSDwoHc3ltYm9scxgBIAMoCSJmCidDb25maWdUcmFuc2Fj", + "dGlvbkZlZUZyZWVBbGxvd2FuY2VzSW5wdXQSOwoFdmFsdWUYASADKAsyLC50", + "b2tlbmltcGwuQ29uZmlnVHJhbnNhY3Rpb25GZWVGcmVlQWxsb3dhbmNlIrEB", + "CiFDb25maWdUcmFuc2FjdGlvbkZlZUZyZWVBbGxvd2FuY2USDgoGc3ltYm9s", + "GAEgASgJElAKH3RyYW5zYWN0aW9uX2ZlZV9mcmVlX2FsbG93YW5jZXMYAiAB", + "KAsyJy50b2tlbmltcGwuVHJhbnNhY3Rpb25GZWVGcmVlQWxsb3dhbmNlcxIX", + "Cg9yZWZyZXNoX3NlY29uZHMYAyABKAMSEQoJdGhyZXNob2xkGAQgASgDIkAK", + "LVJlbW92ZVRyYW5zYWN0aW9uRmVlRnJlZUFsbG93YW5jZXNDb25maWdJbnB1", + "dBIPCgdzeW1ib2xzGAEgAygJImoKK0dldFRyYW5zYWN0aW9uRmVlRnJlZUFs", + "bG93YW5jZXNDb25maWdPdXRwdXQSOwoFdmFsdWUYASADKAsyLC50b2tlbmlt", + "cGwuVHJhbnNhY3Rpb25GZWVGcmVlQWxsb3dhbmNlQ29uZmlnIqMBCiFUcmFu", + "c2FjdGlvbkZlZUZyZWVBbGxvd2FuY2VDb25maWcSDgoGc3ltYm9sGAEgASgJ", + "EkIKD2ZyZWVfYWxsb3dhbmNlcxgCIAEoCzIpLnRva2VuaW1wbC5UcmFuc2Fj", + "dGlvbkZlZUZyZWVBbGxvd2FuY2VNYXASFwoPcmVmcmVzaF9zZWNvbmRzGAMg", + "ASgDEhEKCXRocmVzaG9sZBgEIAEoAyK1AQoeVHJhbnNhY3Rpb25GZWVGcmVl", + "QWxsb3dhbmNlTWFwEj8KA21hcBgBIAMoCzIyLnRva2VuaW1wbC5UcmFuc2Fj", + "dGlvbkZlZUZyZWVBbGxvd2FuY2VNYXAuTWFwRW50cnkaUgoITWFwRW50cnkS", + "CwoDa2V5GAEgASgJEjUKBXZhbHVlGAIgASgLMiYudG9rZW5pbXBsLlRyYW5z", + "YWN0aW9uRmVlRnJlZUFsbG93YW5jZToCOAEiugEKH1RyYW5zYWN0aW9uRmVl", + "RnJlZUFsbG93YW5jZXNNYXASQAoDbWFwGAEgAygLMjMudG9rZW5pbXBsLlRy", + "YW5zYWN0aW9uRmVlRnJlZUFsbG93YW5jZXNNYXAuTWFwRW50cnkaVQoITWFw", + "RW50cnkSCwoDa2V5GAEgASgJEjgKBXZhbHVlGAIgASgLMikudG9rZW5pbXBs", + "LlRyYW5zYWN0aW9uRmVlRnJlZUFsbG93YW5jZU1hcDoCOAEihAEKI1NldFRy", + "YW5zYWN0aW9uRmVlRGVsZWdhdGVJbmZvc0lucHV0EigKEWRlbGVnYXRvcl9h", + "ZGRyZXNzGAEgASgLMg0uYWVsZi5BZGRyZXNzEjMKEmRlbGVnYXRlX2luZm9f", + "bGlzdBgCIAMoCzIXLnRva2VuaW1wbC5EZWxlZ2F0ZUluZm8i3AEKDERlbGVn", + "YXRlSW5mbxI9CgtkZWxlZ2F0aW9ucxgBIAMoCzIoLnRva2VuaW1wbC5EZWxl", + "Z2F0ZUluZm8uRGVsZWdhdGlvbnNFbnRyeRInChBjb250cmFjdF9hZGRyZXNz", + "GAIgASgLMg0uYWVsZi5BZGRyZXNzEhMKC21ldGhvZF9uYW1lGAMgASgJEhsK", + "E2lzVW5saW1pdGVkRGVsZWdhdGUYBCABKAgaMgoQRGVsZWdhdGlvbnNFbnRy", + "eRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAM6AjgBIpYBCidSZW1vdmVU", + "cmFuc2FjdGlvbkZlZURlbGVnYXRvckluZm9zSW5wdXQSKAoRZGVsZWdhdG9y", + "X2FkZHJlc3MYASABKAsyDS5hZWxmLkFkZHJlc3MSQQoZZGVsZWdhdGVfdHJh", + "bnNhY3Rpb25fbGlzdBgCIAMoCzIeLnRva2VuaW1wbC5EZWxlZ2F0ZVRyYW5z", + "YWN0aW9uIlMKE0RlbGVnYXRlVHJhbnNhY3Rpb24SJwoQY29udHJhY3RfYWRk", + "cmVzcxgBIAEoCzINLmFlbGYuQWRkcmVzcxITCgttZXRob2RfbmFtZRgCIAEo", + "CSJIChdEZWxlZ2F0ZVRyYW5zYWN0aW9uTGlzdBItCgV2YWx1ZRgBIAMoCzIe", + "LnRva2VuaW1wbC5EZWxlZ2F0ZVRyYW5zYWN0aW9uIpYBCidSZW1vdmVUcmFu", + "c2FjdGlvbkZlZURlbGVnYXRlZUluZm9zSW5wdXQSKAoRZGVsZWdhdGVlX2Fk", + "ZHJlc3MYASABKAsyDS5hZWxmLkFkZHJlc3MSQQoZZGVsZWdhdGVfdHJhbnNh", + "Y3Rpb25fbGlzdBgCIAMoCzIeLnRva2VuaW1wbC5EZWxlZ2F0ZVRyYW5zYWN0", + "aW9uIrYBCiJHZXRUcmFuc2FjdGlvbkZlZURlbGVnYXRlSW5mb0lucHV0EigK", + "EWRlbGVnYXRvcl9hZGRyZXNzGAEgASgLMg0uYWVsZi5BZGRyZXNzEigKEWRl", + "bGVnYXRlZV9hZGRyZXNzGAIgASgLMg0uYWVsZi5BZGRyZXNzEicKEGNvbnRy", + "YWN0X2FkZHJlc3MYAyABKAsyDS5hZWxmLkFkZHJlc3MSEwoLbWV0aG9kX25h", + "bWUYBCABKAkijQEKI0dldFRyYW5zYWN0aW9uRmVlRGVsZWdhdGVlTGlzdElu", + "cHV0EigKEWRlbGVnYXRvcl9hZGRyZXNzGAEgASgLMg0uYWVsZi5BZGRyZXNz", + "EicKEGNvbnRyYWN0X2FkZHJlc3MYAiABKAsyDS5hZWxmLkFkZHJlc3MSEwoL", + "bWV0aG9kX25hbWUYAyABKAkiUgokR2V0VHJhbnNhY3Rpb25GZWVEZWxlZ2F0", + "ZWVMaXN0T3V0cHV0EioKE2RlbGVnYXRlZV9hZGRyZXNzZXMYASADKAsyDS5h", + "ZWxmLkFkZHJlc3Mi0QEKH1RyYW5zYWN0aW9uRmVlRGVsZWdhdGVJbmZvQWRk", + "ZWQSIAoJZGVsZWdhdG9yGAEgASgLMg0uYWVsZi5BZGRyZXNzEiAKCWRlbGVn", + "YXRlZRgCIAEoCzINLmFlbGYuQWRkcmVzcxIdCgZjYWxsZXIYAyABKAsyDS5h", + "ZWxmLkFkZHJlc3MSRQoZZGVsZWdhdGVfdHJhbnNhY3Rpb25fbGlzdBgEIAEo", + "CzIiLnRva2VuaW1wbC5EZWxlZ2F0ZVRyYW5zYWN0aW9uTGlzdDoEoLsYASLT", + "AQohVHJhbnNhY3Rpb25GZWVEZWxlZ2F0ZUluZm9VcGRhdGVkEiAKCWRlbGVn", + "YXRvchgBIAEoCzINLmFlbGYuQWRkcmVzcxIgCglkZWxlZ2F0ZWUYAiABKAsy", + "DS5hZWxmLkFkZHJlc3MSHQoGY2FsbGVyGAMgASgLMg0uYWVsZi5BZGRyZXNz", + "EkUKGWRlbGVnYXRlX3RyYW5zYWN0aW9uX2xpc3QYBCABKAsyIi50b2tlbmlt", + "cGwuRGVsZWdhdGVUcmFuc2FjdGlvbkxpc3Q6BKC7GAEi1QEKI1RyYW5zYWN0", + "aW9uRmVlRGVsZWdhdGVJbmZvQ2FuY2VsbGVkEiAKCWRlbGVnYXRvchgBIAEo", + "CzINLmFlbGYuQWRkcmVzcxIgCglkZWxlZ2F0ZWUYAiABKAsyDS5hZWxmLkFk", + "ZHJlc3MSHQoGY2FsbGVyGAMgASgLMg0uYWVsZi5BZGRyZXNzEkUKGWRlbGVn", + "YXRlX3RyYW5zYWN0aW9uX2xpc3QYBCABKAsyIi50b2tlbmltcGwuRGVsZWdh", + "dGVUcmFuc2FjdGlvbkxpc3Q6BKC7GAEibQoeTW9kaWZ5VG9rZW5Jc3N1ZXJB", + "bmRPd25lcklucHV0Eg4KBnN5bWJvbBgBIAEoCRIdCgZpc3N1ZXIYAiABKAsy", + "DS5hZWxmLkFkZHJlc3MSHAoFb3duZXIYAyABKAsyDS5hZWxmLkFkZHJlc3Mi", + "QQouU2V0VG9rZW5Jc3N1ZXJBbmRPd25lck1vZGlmaWNhdGlvbkVuYWJsZWRJ", + "bnB1dBIPCgdlbmFibGVkGAEgASgIKjQKClN5bWJvbFR5cGUSCQoFVE9LRU4Q", + "ABIHCgNORlQQARISCg5ORlRfQ09MTEVDVElPThACMsUcChFUb2tlbkNvbnRy", + "YWN0SW1wbBJWChRBZHZhbmNlUmVzb3VyY2VUb2tlbhIkLnRva2VuaW1wbC5B", + "ZHZhbmNlUmVzb3VyY2VUb2tlbklucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVt", + "cHR5IgASWAoVVGFrZVJlc291cmNlVG9rZW5CYWNrEiUudG9rZW5pbXBsLlRh", + "a2VSZXNvdXJjZVRva2VuQmFja0lucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVt", + "cHR5IgASegomUmVnaXN0ZXJDcm9zc0NoYWluVG9rZW5Db250cmFjdEFkZHJl", + "c3MSNi50b2tlbmltcGwuUmVnaXN0ZXJDcm9zc0NoYWluVG9rZW5Db250cmFj", + "dEFkZHJlc3NJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEjkKDlNl", + "dEZlZVJlY2VpdmVyEg0uYWVsZi5BZGRyZXNzGhYuZ29vZ2xlLnByb3RvYnVm", + "LkVtcHR5IgASXAoXVmFsaWRhdGVUb2tlbkluZm9FeGlzdHMSJy50b2tlbmlt", + "cGwuVmFsaWRhdGVUb2tlbkluZm9FeGlzdHNJbnB1dBoWLmdvb2dsZS5wcm90", + "b2J1Zi5FbXB0eSIAEkYKDFVwZGF0ZVJlbnRhbBIcLnRva2VuaW1wbC5VcGRh", + "dGVSZW50YWxJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElgKFVVw", + "ZGF0ZVJlbnRlZFJlc291cmNlcxIlLnRva2VuaW1wbC5VcGRhdGVSZW50ZWRS", + "ZXNvdXJjZXNJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAElIKElRy", + "YW5zZmVyVG9Db250cmFjdBIiLnRva2VuaW1wbC5UcmFuc2ZlclRvQ29udHJh", + "Y3RJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEksKH0NoYW5nZVNp", + "ZGVDaGFpblJlbnRhbENvbnRyb2xsZXISDi5BdXRob3JpdHlJbmZvGhYuZ29v", + "Z2xlLnByb3RvYnVmLkVtcHR5IgASUQolQ2hhbmdlU3ltYm9sc1RvUGF5VFhT", + "aXplRmVlQ29udHJvbGxlchIOLkF1dGhvcml0eUluZm8aFi5nb29nbGUucHJv", + "dG9idWYuRW1wdHkiABJfCjNDaGFuZ2VDcm9zc0NoYWluVG9rZW5Db250cmFj", + "dFJlZ2lzdHJhdGlvbkNvbnRyb2xsZXISDi5BdXRob3JpdHlJbmZvGhYuZ29v", + "Z2xlLnByb3RvYnVmLkVtcHR5IgASQwoXQ2hhbmdlVXNlckZlZUNvbnRyb2xs", + "ZXISDi5BdXRob3JpdHlJbmZvGhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgAS", + "RQoZQ2hhbmdlRGV2ZWxvcGVyQ29udHJvbGxlchIOLkF1dGhvcml0eUluZm8a", + "Fi5nb29nbGUucHJvdG9idWYuRW1wdHkiABJyCiJDb25maWdUcmFuc2FjdGlv", + "bkZlZUZyZWVBbGxvd2FuY2VzEjIudG9rZW5pbXBsLkNvbmZpZ1RyYW5zYWN0", + "aW9uRmVlRnJlZUFsbG93YW5jZXNJbnB1dBoWLmdvb2dsZS5wcm90b2J1Zi5F", + "bXB0eSIAEn4KKFJlbW92ZVRyYW5zYWN0aW9uRmVlRnJlZUFsbG93YW5jZXND", + "b25maWcSOC50b2tlbmltcGwuUmVtb3ZlVHJhbnNhY3Rpb25GZWVGcmVlQWxs", + "b3dhbmNlc0NvbmZpZ0lucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgAS", + "UAoXU2V0TWF4QmF0Y2hBcHByb3ZlQ291bnQSGy5nb29nbGUucHJvdG9idWYu", + "SW50MzJWYWx1ZRoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eSIAEmoKHlNldFRy", + "YW5zYWN0aW9uRmVlRGVsZWdhdGVJbmZvcxIuLnRva2VuaW1wbC5TZXRUcmFu", + "c2FjdGlvbkZlZURlbGVnYXRlSW5mb3NJbnB1dBoWLmdvb2dsZS5wcm90b2J1", + "Zi5FbXB0eSIAEnIKIlJlbW92ZVRyYW5zYWN0aW9uRmVlRGVsZWdhdG9ySW5m", + "b3MSMi50b2tlbmltcGwuUmVtb3ZlVHJhbnNhY3Rpb25GZWVEZWxlZ2F0b3JJ", + "bmZvc0lucHV0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5IgAScgoiUmVtb3Zl", + "VHJhbnNhY3Rpb25GZWVEZWxlZ2F0ZWVJbmZvcxIyLnRva2VuaW1wbC5SZW1v", + "dmVUcmFuc2FjdGlvbkZlZURlbGVnYXRlZUluZm9zSW5wdXQaFi5nb29nbGUu", + "cHJvdG9idWYuRW1wdHkiABI+Cg5HZXRGZWVSZWNlaXZlchIWLmdvb2dsZS5w", + "cm90b2J1Zi5FbXB0eRoNLmFlbGYuQWRkcmVzcyIFiIn3AQESSwoQR2V0UmVz", + "b3VyY2VVc2FnZRIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoYLnRva2VuaW1w", + "bC5SZXNvdXJjZVVzYWdlIgWIifcBARJTCiJHZXRTeW1ib2xzVG9QYXlUWFNp", + "emVGZWVDb250cm9sbGVyEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Gg4uQXV0", + "aG9yaXR5SW5mbyIFiIn3AQESYQowR2V0Q3Jvc3NDaGFpblRva2VuQ29udHJh", + "Y3RSZWdpc3RyYXRpb25Db250cm9sbGVyEhYuZ29vZ2xlLnByb3RvYnVmLkVt", + "cHR5Gg4uQXV0aG9yaXR5SW5mbyIFiIn3AQESUwoUR2V0VXNlckZlZUNvbnRy", + "b2xsZXISFi5nb29nbGUucHJvdG9idWYuRW1wdHkaHC50b2tlbmltcGwuVXNl", + "ckZlZUNvbnRyb2xsZXIiBYiJ9wEBEl0KGUdldERldmVsb3BlckZlZUNvbnRy", + "b2xsZXISFi5nb29nbGUucHJvdG9idWYuRW1wdHkaIS50b2tlbmltcGwuRGV2", + "ZWxvcGVyRmVlQ29udHJvbGxlciIFiIn3AQESVwomR2V0U2lkZUNoYWluUmVu", + "dGFsQ29udHJvbGxlckNyZWF0ZUluZm8SFi5nb29nbGUucHJvdG9idWYuRW1w", + "dHkaDi5BdXRob3JpdHlJbmZvIgWIifcBARJgChtHZXRWaXJ0dWFsQWRkcmVz", + "c0ZvckxvY2tpbmcSKy50b2tlbmltcGwuR2V0VmlydHVhbEFkZHJlc3NGb3JM", + "b2NraW5nSW5wdXQaDS5hZWxmLkFkZHJlc3MiBYiJ9wEBEkkKD0dldE93bmlu", + "Z1JlbnRhbBIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoXLnRva2VuaW1wbC5P", + "d25pbmdSZW50YWwiBYiJ9wEBElsKGEdldE93bmluZ1JlbnRhbFVuaXRWYWx1", + "ZRIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRogLnRva2VuaW1wbC5Pd25pbmdS", + "ZW50YWxVbml0VmFsdWUiBYiJ9wEBEmMKH0dldFRyYW5zYWN0aW9uRmVlRnJl", + "ZUFsbG93YW5jZXMSDS5hZWxmLkFkZHJlc3MaKi50b2tlbmltcGwuVHJhbnNh", + "Y3Rpb25GZWVGcmVlQWxsb3dhbmNlc01hcCIFiIn3AQESfgolR2V0VHJhbnNh", + "Y3Rpb25GZWVGcmVlQWxsb3dhbmNlc0NvbmZpZxIWLmdvb2dsZS5wcm90b2J1", + "Zi5FbXB0eRo2LnRva2VuaW1wbC5HZXRUcmFuc2FjdGlvbkZlZUZyZWVBbGxv", + "d2FuY2VzQ29uZmlnT3V0cHV0IgWIifcBARKIAQoeR2V0VHJhbnNhY3Rpb25G", + "ZWVEZWxlZ2F0ZWVMaXN0Ei4udG9rZW5pbXBsLkdldFRyYW5zYWN0aW9uRmVl", + "RGVsZWdhdGVlTGlzdElucHV0Gi8udG9rZW5pbXBsLkdldFRyYW5zYWN0aW9u", + "RmVlRGVsZWdhdGVlTGlzdE91dHB1dCIFiIn3AQESdwodR2V0VHJhbnNhY3Rp", + "b25GZWVEZWxlZ2F0ZUluZm8SLS50b2tlbmltcGwuR2V0VHJhbnNhY3Rpb25G", + "ZWVEZWxlZ2F0ZUluZm9JbnB1dBogLnRva2VuLlRyYW5zYWN0aW9uRmVlRGVs", + "ZWdhdGlvbnMiBYiJ9wEBEmAKGU1vZGlmeVRva2VuSXNzdWVyQW5kT3duZXIS", + "KS50b2tlbmltcGwuTW9kaWZ5VG9rZW5Jc3N1ZXJBbmRPd25lcklucHV0GhYu", + "Z29vZ2xlLnByb3RvYnVmLkVtcHR5IgASgAEKKVNldFRva2VuSXNzdWVyQW5k", + "T3duZXJNb2RpZmljYXRpb25FbmFibGVkEjkudG9rZW5pbXBsLlNldFRva2Vu", + "SXNzdWVyQW5kT3duZXJNb2RpZmljYXRpb25FbmFibGVkSW5wdXQaFi5nb29n", + "bGUucHJvdG9idWYuRW1wdHkiABJmCilHZXRUb2tlbklzc3VlckFuZE93bmVy", + "TW9kaWZpY2F0aW9uRW5hYmxlZBIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eRoa", + "Lmdvb2dsZS5wcm90b2J1Zi5Cb29sVmFsdWUiBYiJ9wEBElAKF0dldE1heEJh", + "dGNoQXBwcm92ZUNvdW50EhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GhsuZ29v", + "Z2xlLnByb3RvYnVmLkludDMyVmFsdWUiABpossz2ASxBRWxmLkNvbnRyYWN0", + "cy5NdWx0aVRva2VuLlRva2VuQ29udHJhY3RTdGF0ZcrK9gEKYWNzMS5wcm90", + "b8rK9gEKYWNzMi5wcm90b8rK9gEUdG9rZW5fY29udHJhY3QucHJvdG9CHKoC", + "GUFFbGYuQ29udHJhY3RzLk11bHRpVG9rZW5iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::FileDescriptor[] { global::AElf.Types.CoreReflection.Descriptor, global::AElf.Standards.ACS1.Acs1Reflection.Descriptor, global::AElf.Standards.ACS2.Acs2Reflection.Descriptor, global::AElf.Contracts.MultiToken.TokenContractReflection.Descriptor, global::AuthorityInfoReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::AElf.Contracts.MultiToken.SymbolType), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.AdvanceResourceTokenInput), global::AElf.Contracts.MultiToken.AdvanceResourceTokenInput.Parser, new[]{ "ContractAddress", "ResourceTokenSymbol", "Amount" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TakeResourceTokenBackInput), global::AElf.Contracts.MultiToken.TakeResourceTokenBackInput.Parser, new[]{ "ContractAddress", "ResourceTokenSymbol", "Amount" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RegisterCrossChainTokenContractAddressInput), global::AElf.Contracts.MultiToken.RegisterCrossChainTokenContractAddressInput.Parser, new[]{ "FromChainId", "ParentChainHeight", "TransactionBytes", "MerklePath", "TokenContractAddress" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ValidateTokenInfoExistsInput), global::AElf.Contracts.MultiToken.ValidateTokenInfoExistsInput.Parser, new[]{ "Symbol", "TokenName", "TotalSupply", "Decimals", "Issuer", "IsBurnable", "IssueChainId", "ExternalInfo" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ValidateTokenInfoExistsInput), global::AElf.Contracts.MultiToken.ValidateTokenInfoExistsInput.Parser, new[]{ "Symbol", "TokenName", "TotalSupply", "Decimals", "Issuer", "IsBurnable", "IssueChainId", "ExternalInfo", "Owner" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.UpdateRentalInput), global::AElf.Contracts.MultiToken.UpdateRentalInput.Parser, new[]{ "Rental" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.UpdateRentedResourcesInput), global::AElf.Contracts.MultiToken.UpdateRentedResourcesInput.Parser, new[]{ "ResourceAmount" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ResourceUsage), global::AElf.Contracts.MultiToken.ResourceUsage.Parser, new[]{ "Value" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), @@ -133,29 +248,75 @@ static TokenContractImplReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.OwningRental), global::AElf.Contracts.MultiToken.OwningRental.Parser, new[]{ "ResourceAmount" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.OwningRentalUnitValue), global::AElf.Contracts.MultiToken.OwningRentalUnitValue.Parser, new[]{ "ResourceUnitValue" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransferToContractInput), global::AElf.Contracts.MultiToken.TransferToContractInput.Parser, new[]{ "Symbol", "Amount", "Memo" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.UserFeeController), global::AElf.Contracts.MultiToken.UserFeeController.Parser, new[]{ "RootController", "ParliamentController", "ReferendumController" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.DeveloperFeeController), global::AElf.Contracts.MultiToken.DeveloperFeeController.Parser, new[]{ "RootController", "ParliamentController", "DeveloperController" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.MethodFeeFreeAllowancesConfig), global::AElf.Contracts.MultiToken.MethodFeeFreeAllowancesConfig.Parser, new[]{ "FreeAllowances", "RefreshSeconds", "Threshold" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.MethodFeeFreeAllowances), global::AElf.Contracts.MultiToken.MethodFeeFreeAllowances.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.MethodFeeFreeAllowance), global::AElf.Contracts.MultiToken.MethodFeeFreeAllowance.Parser, new[]{ "Symbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowances), global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowances.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowance), global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowance.Parser, new[]{ "Symbol", "Amount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowancesSymbolList), global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowancesSymbolList.Parser, new[]{ "Symbols" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ConfigTransactionFeeFreeAllowancesInput), global::AElf.Contracts.MultiToken.ConfigTransactionFeeFreeAllowancesInput.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ConfigTransactionFeeFreeAllowance), global::AElf.Contracts.MultiToken.ConfigTransactionFeeFreeAllowance.Parser, new[]{ "Symbol", "TransactionFeeFreeAllowances", "RefreshSeconds", "Threshold" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RemoveTransactionFeeFreeAllowancesConfigInput), global::AElf.Contracts.MultiToken.RemoveTransactionFeeFreeAllowancesConfigInput.Parser, new[]{ "Symbols" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetTransactionFeeFreeAllowancesConfigOutput), global::AElf.Contracts.MultiToken.GetTransactionFeeFreeAllowancesConfigOutput.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowanceConfig), global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowanceConfig.Parser, new[]{ "Symbol", "FreeAllowances", "RefreshSeconds", "Threshold" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowanceMap), global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowanceMap.Parser, new[]{ "Map" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowancesMap), global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowancesMap.Parser, new[]{ "Map" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.SetTransactionFeeDelegateInfosInput), global::AElf.Contracts.MultiToken.SetTransactionFeeDelegateInfosInput.Parser, new[]{ "DelegatorAddress", "DelegateInfoList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.DelegateInfo), global::AElf.Contracts.MultiToken.DelegateInfo.Parser, new[]{ "Delegations", "ContractAddress", "MethodName", "IsUnlimitedDelegate" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegatorInfosInput), global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegatorInfosInput.Parser, new[]{ "DelegatorAddress", "DelegateTransactionList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.DelegateTransaction), global::AElf.Contracts.MultiToken.DelegateTransaction.Parser, new[]{ "ContractAddress", "MethodName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.DelegateTransactionList), global::AElf.Contracts.MultiToken.DelegateTransactionList.Parser, new[]{ "Value" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegateeInfosInput), global::AElf.Contracts.MultiToken.RemoveTransactionFeeDelegateeInfosInput.Parser, new[]{ "DelegateeAddress", "DelegateTransactionList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateInfoInput), global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateInfoInput.Parser, new[]{ "DelegatorAddress", "DelegateeAddress", "ContractAddress", "MethodName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateeListInput), global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateeListInput.Parser, new[]{ "DelegatorAddress", "ContractAddress", "MethodName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateeListOutput), global::AElf.Contracts.MultiToken.GetTransactionFeeDelegateeListOutput.Parser, new[]{ "DelegateeAddresses" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeDelegateInfoAdded), global::AElf.Contracts.MultiToken.TransactionFeeDelegateInfoAdded.Parser, new[]{ "Delegator", "Delegatee", "Caller", "DelegateTransactionList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeDelegateInfoUpdated), global::AElf.Contracts.MultiToken.TransactionFeeDelegateInfoUpdated.Parser, new[]{ "Delegator", "Delegatee", "Caller", "DelegateTransactionList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.TransactionFeeDelegateInfoCancelled), global::AElf.Contracts.MultiToken.TransactionFeeDelegateInfoCancelled.Parser, new[]{ "Delegator", "Delegatee", "Caller", "DelegateTransactionList" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.ModifyTokenIssuerAndOwnerInput), global::AElf.Contracts.MultiToken.ModifyTokenIssuerAndOwnerInput.Parser, new[]{ "Symbol", "Issuer", "Owner" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.MultiToken.SetTokenIssuerAndOwnerModificationEnabledInput), global::AElf.Contracts.MultiToken.SetTokenIssuerAndOwnerModificationEnabledInput.Parser, new[]{ "Enabled" }, null, null, null, null) })); } #endregion } + #region Enums + public enum SymbolType { + [pbr::OriginalName("TOKEN")] Token = 0, + [pbr::OriginalName("NFT")] Nft = 1, + [pbr::OriginalName("NFT_COLLECTION")] NftCollection = 2, + } + + #endregion + #region Messages - public sealed partial class AdvanceResourceTokenInput : pb::IMessage { + public sealed partial class AdvanceResourceTokenInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdvanceResourceTokenInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AdvanceResourceTokenInput() { OnConstruction(); } @@ -163,6 +324,7 @@ public AdvanceResourceTokenInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AdvanceResourceTokenInput(AdvanceResourceTokenInput other) : this() { contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; resourceTokenSymbol_ = other.resourceTokenSymbol_; @@ -171,6 +333,7 @@ public AdvanceResourceTokenInput(AdvanceResourceTokenInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AdvanceResourceTokenInput Clone() { return new AdvanceResourceTokenInput(this); } @@ -182,6 +345,7 @@ public AdvanceResourceTokenInput Clone() { /// The contract address to transfer. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address ContractAddress { get { return contractAddress_; } set { @@ -196,6 +360,7 @@ public AdvanceResourceTokenInput Clone() { /// The resource token symbol to transfer. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ResourceTokenSymbol { get { return resourceTokenSymbol_; } set { @@ -210,6 +375,7 @@ public string ResourceTokenSymbol { /// The amount of resource token to transfer. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Amount { get { return amount_; } set { @@ -218,11 +384,13 @@ public long Amount { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AdvanceResourceTokenInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AdvanceResourceTokenInput other) { if (ReferenceEquals(other, null)) { return false; @@ -237,6 +405,7 @@ public bool Equals(AdvanceResourceTokenInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (contractAddress_ != null) hash ^= ContractAddress.GetHashCode(); @@ -249,12 +418,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (contractAddress_ != null) { output.WriteRawTag(10); output.WriteMessage(ContractAddress); @@ -270,9 +444,33 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (contractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ContractAddress); + } + if (ResourceTokenSymbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceTokenSymbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (contractAddress_ != null) { @@ -291,6 +489,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AdvanceResourceTokenInput other) { if (other == null) { return; @@ -311,7 +510,11 @@ public void MergeFrom(AdvanceResourceTokenInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -335,27 +538,66 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 18: { + ResourceTokenSymbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } } + #endif } - public sealed partial class TakeResourceTokenBackInput : pb::IMessage { + public sealed partial class TakeResourceTokenBackInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TakeResourceTokenBackInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TakeResourceTokenBackInput() { OnConstruction(); } @@ -363,6 +605,7 @@ public TakeResourceTokenBackInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TakeResourceTokenBackInput(TakeResourceTokenBackInput other) : this() { contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; resourceTokenSymbol_ = other.resourceTokenSymbol_; @@ -371,6 +614,7 @@ public TakeResourceTokenBackInput(TakeResourceTokenBackInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TakeResourceTokenBackInput Clone() { return new TakeResourceTokenBackInput(this); } @@ -382,6 +626,7 @@ public TakeResourceTokenBackInput Clone() { /// The contract address to take back. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address ContractAddress { get { return contractAddress_; } set { @@ -396,6 +641,7 @@ public TakeResourceTokenBackInput Clone() { /// The resource token symbol to take back. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ResourceTokenSymbol { get { return resourceTokenSymbol_; } set { @@ -410,6 +656,7 @@ public string ResourceTokenSymbol { /// The amount of resource token to take back. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Amount { get { return amount_; } set { @@ -418,11 +665,13 @@ public long Amount { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TakeResourceTokenBackInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TakeResourceTokenBackInput other) { if (ReferenceEquals(other, null)) { return false; @@ -437,6 +686,7 @@ public bool Equals(TakeResourceTokenBackInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (contractAddress_ != null) hash ^= ContractAddress.GetHashCode(); @@ -449,12 +699,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (contractAddress_ != null) { output.WriteRawTag(10); output.WriteMessage(ContractAddress); @@ -470,9 +725,33 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (contractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ContractAddress); + } + if (ResourceTokenSymbol.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceTokenSymbol); + } + if (Amount != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (contractAddress_ != null) { @@ -491,6 +770,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TakeResourceTokenBackInput other) { if (other == null) { return; @@ -511,7 +791,11 @@ public void MergeFrom(TakeResourceTokenBackInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -535,27 +819,66 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 18: { + ResourceTokenSymbol = input.ReadString(); + break; + } + case 24: { + Amount = input.ReadInt64(); + break; + } + } + } } + #endif } - public sealed partial class RegisterCrossChainTokenContractAddressInput : pb::IMessage { + public sealed partial class RegisterCrossChainTokenContractAddressInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegisterCrossChainTokenContractAddressInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RegisterCrossChainTokenContractAddressInput() { OnConstruction(); } @@ -563,6 +886,7 @@ public RegisterCrossChainTokenContractAddressInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RegisterCrossChainTokenContractAddressInput(RegisterCrossChainTokenContractAddressInput other) : this() { fromChainId_ = other.fromChainId_; parentChainHeight_ = other.parentChainHeight_; @@ -573,6 +897,7 @@ public RegisterCrossChainTokenContractAddressInput(RegisterCrossChainTokenContra } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RegisterCrossChainTokenContractAddressInput Clone() { return new RegisterCrossChainTokenContractAddressInput(this); } @@ -584,6 +909,7 @@ public RegisterCrossChainTokenContractAddressInput Clone() { /// The source chain id. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int FromChainId { get { return fromChainId_; } set { @@ -598,6 +924,7 @@ public int FromChainId { /// The parent chain height of the transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long ParentChainHeight { get { return parentChainHeight_; } set { @@ -612,6 +939,7 @@ public long ParentChainHeight { /// The raw bytes of the transfer transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pb::ByteString TransactionBytes { get { return transactionBytes_; } set { @@ -626,6 +954,7 @@ public long ParentChainHeight { /// The merkle path created from the transaction. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.MerklePath MerklePath { get { return merklePath_; } set { @@ -640,6 +969,7 @@ public long ParentChainHeight { /// The token contract address. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address TokenContractAddress { get { return tokenContractAddress_; } set { @@ -648,11 +978,13 @@ public long ParentChainHeight { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as RegisterCrossChainTokenContractAddressInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RegisterCrossChainTokenContractAddressInput other) { if (ReferenceEquals(other, null)) { return false; @@ -669,6 +1001,7 @@ public bool Equals(RegisterCrossChainTokenContractAddressInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (FromChainId != 0) hash ^= FromChainId.GetHashCode(); @@ -683,12 +1016,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (FromChainId != 0) { output.WriteRawTag(8); output.WriteInt32(FromChainId); @@ -712,9 +1050,41 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (FromChainId != 0) { + output.WriteRawTag(8); + output.WriteInt32(FromChainId); + } + if (ParentChainHeight != 0L) { + output.WriteRawTag(16); + output.WriteInt64(ParentChainHeight); + } + if (TransactionBytes.Length != 0) { + output.WriteRawTag(26); + output.WriteBytes(TransactionBytes); + } + if (merklePath_ != null) { + output.WriteRawTag(34); + output.WriteMessage(MerklePath); + } + if (tokenContractAddress_ != null) { + output.WriteRawTag(42); + output.WriteMessage(TokenContractAddress); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (FromChainId != 0) { @@ -739,6 +1109,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RegisterCrossChainTokenContractAddressInput other) { if (other == null) { return; @@ -768,7 +1139,11 @@ public void MergeFrom(RegisterCrossChainTokenContractAddressInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -803,27 +1178,77 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + FromChainId = input.ReadInt32(); + break; + } + case 16: { + ParentChainHeight = input.ReadInt64(); + break; + } + case 26: { + TransactionBytes = input.ReadBytes(); + break; + } + case 34: { + if (merklePath_ == null) { + MerklePath = new global::AElf.Types.MerklePath(); + } + input.ReadMessage(MerklePath); + break; + } + case 42: { + if (tokenContractAddress_ == null) { + TokenContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(TokenContractAddress); + break; + } + } + } } + #endif } - public sealed partial class ValidateTokenInfoExistsInput : pb::IMessage { + public sealed partial class ValidateTokenInfoExistsInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidateTokenInfoExistsInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidateTokenInfoExistsInput() { OnConstruction(); } @@ -831,6 +1256,7 @@ public ValidateTokenInfoExistsInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidateTokenInfoExistsInput(ValidateTokenInfoExistsInput other) : this() { symbol_ = other.symbol_; tokenName_ = other.tokenName_; @@ -840,10 +1266,12 @@ public ValidateTokenInfoExistsInput(ValidateTokenInfoExistsInput other) : this() isBurnable_ = other.isBurnable_; issueChainId_ = other.issueChainId_; externalInfo_ = other.externalInfo_.Clone(); + owner_ = other.owner_ != null ? other.owner_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidateTokenInfoExistsInput Clone() { return new ValidateTokenInfoExistsInput(this); } @@ -855,6 +1283,7 @@ public ValidateTokenInfoExistsInput Clone() { /// The symbol of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -869,6 +1298,7 @@ public string Symbol { /// The full name of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TokenName { get { return tokenName_; } set { @@ -883,6 +1313,7 @@ public string TokenName { /// The total supply of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long TotalSupply { get { return totalSupply_; } set { @@ -897,6 +1328,7 @@ public long TotalSupply { /// The precision of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Decimals { get { return decimals_; } set { @@ -908,9 +1340,10 @@ public int Decimals { public const int IssuerFieldNumber = 5; private global::AElf.Types.Address issuer_; /// - /// The address that created the token. + /// The address that has permission to issue the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Issuer { get { return issuer_; } set { @@ -925,6 +1358,7 @@ public int Decimals { /// A flag indicating if this token is burnable. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsBurnable { get { return isBurnable_; } set { @@ -939,6 +1373,7 @@ public bool IsBurnable { /// The chain id of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int IssueChainId { get { return issueChainId_; } set { @@ -955,16 +1390,34 @@ public int IssueChainId { /// The external information of the token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField ExternalInfo { get { return externalInfo_; } } + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 9; + private global::AElf.Types.Address owner_; + /// + /// The address that owns the token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Owner { + get { return owner_; } + set { + owner_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ValidateTokenInfoExistsInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ValidateTokenInfoExistsInput other) { if (ReferenceEquals(other, null)) { return false; @@ -980,10 +1433,12 @@ public bool Equals(ValidateTokenInfoExistsInput other) { if (IsBurnable != other.IsBurnable) return false; if (IssueChainId != other.IssueChainId) return false; if (!ExternalInfo.Equals(other.ExternalInfo)) return false; + if (!object.Equals(Owner, other.Owner)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); @@ -994,6 +1449,7 @@ public override int GetHashCode() { if (IsBurnable != false) hash ^= IsBurnable.GetHashCode(); if (IssueChainId != 0) hash ^= IssueChainId.GetHashCode(); hash ^= ExternalInfo.GetHashCode(); + if (owner_ != null) hash ^= Owner.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1001,12 +1457,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Symbol.Length != 0) { output.WriteRawTag(10); output.WriteString(Symbol); @@ -1036,12 +1497,61 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteInt32(IssueChainId); } externalInfo_.WriteTo(output, _map_externalInfo_codec); + if (owner_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Owner); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (TokenName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(TokenName); + } + if (TotalSupply != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TotalSupply); + } + if (Decimals != 0) { + output.WriteRawTag(32); + output.WriteInt32(Decimals); + } + if (issuer_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Issuer); + } + if (IsBurnable != false) { + output.WriteRawTag(48); + output.WriteBool(IsBurnable); + } + if (IssueChainId != 0) { + output.WriteRawTag(56); + output.WriteInt32(IssueChainId); + } + externalInfo_.WriteTo(ref output, _map_externalInfo_codec); + if (owner_ != null) { + output.WriteRawTag(74); + output.WriteMessage(Owner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Symbol.Length != 0) { @@ -1066,6 +1576,9 @@ public int CalculateSize() { size += 1 + pb::CodedOutputStream.ComputeInt32Size(IssueChainId); } size += externalInfo_.CalculateSize(_map_externalInfo_codec); + if (owner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1073,6 +1586,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ValidateTokenInfoExistsInput other) { if (other == null) { return; @@ -1102,11 +1616,21 @@ public void MergeFrom(ValidateTokenInfoExistsInput other) { IssueChainId = other.IssueChainId; } externalInfo_.Add(other.externalInfo_); + if (other.owner_ != null) { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + Owner.MergeFrom(other.Owner); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1148,29 +1672,102 @@ public void MergeFrom(pb::CodedInputStream input) { externalInfo_.AddEntriesFrom(input, _map_externalInfo_codec); break; } + case 74: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + TokenName = input.ReadString(); + break; + } + case 24: { + TotalSupply = input.ReadInt64(); + break; + } + case 32: { + Decimals = input.ReadInt32(); + break; + } + case 42: { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + input.ReadMessage(Issuer); + break; + } + case 48: { + IsBurnable = input.ReadBool(); + break; + } + case 56: { + IssueChainId = input.ReadInt32(); + break; + } + case 66: { + externalInfo_.AddEntriesFrom(ref input, _map_externalInfo_codec); + break; + } + case 74: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } } } } + #endif } - public sealed partial class UpdateRentalInput : pb::IMessage { + public sealed partial class UpdateRentalInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateRentalInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UpdateRentalInput() { OnConstruction(); } @@ -1178,12 +1775,14 @@ public UpdateRentalInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UpdateRentalInput(UpdateRentalInput other) : this() { rental_ = other.rental_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UpdateRentalInput Clone() { return new UpdateRentalInput(this); } @@ -1197,16 +1796,19 @@ public UpdateRentalInput Clone() { /// The unit price of resource tokens, symbol -> unit price. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField Rental { get { return rental_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as UpdateRentalInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(UpdateRentalInput other) { if (ReferenceEquals(other, null)) { return false; @@ -1219,6 +1821,7 @@ public bool Equals(UpdateRentalInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= Rental.GetHashCode(); @@ -1229,19 +1832,37 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else rental_.WriteTo(output, _map_rental_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + rental_.WriteTo(ref output, _map_rental_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += rental_.CalculateSize(_map_rental_codec); @@ -1252,6 +1873,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(UpdateRentalInput other) { if (other == null) { return; @@ -1261,7 +1883,11 @@ public void MergeFrom(UpdateRentalInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1274,27 +1900,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif } - } - - public sealed partial class UpdateRentedResourcesInput : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateRentedResourcesInput()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + rental_.AddEntriesFrom(ref input, _map_rental_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateRentedResourcesInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateRentedResourcesInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UpdateRentedResourcesInput() { OnConstruction(); } @@ -1302,12 +1956,14 @@ public UpdateRentedResourcesInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UpdateRentedResourcesInput(UpdateRentedResourcesInput other) : this() { resourceAmount_ = other.resourceAmount_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UpdateRentedResourcesInput Clone() { return new UpdateRentedResourcesInput(this); } @@ -1321,16 +1977,19 @@ public UpdateRentedResourcesInput Clone() { /// Amount of resource tokens consumed per minute, symbol -> resource consumption. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField ResourceAmount { get { return resourceAmount_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as UpdateRentedResourcesInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(UpdateRentedResourcesInput other) { if (ReferenceEquals(other, null)) { return false; @@ -1343,6 +2002,7 @@ public bool Equals(UpdateRentedResourcesInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= ResourceAmount.GetHashCode(); @@ -1353,19 +2013,37 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else resourceAmount_.WriteTo(output, _map_resourceAmount_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + resourceAmount_.WriteTo(ref output, _map_resourceAmount_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += resourceAmount_.CalculateSize(_map_resourceAmount_codec); @@ -1376,6 +2054,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(UpdateRentedResourcesInput other) { if (other == null) { return; @@ -1385,7 +2064,11 @@ public void MergeFrom(UpdateRentedResourcesInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1398,27 +2081,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + resourceAmount_.AddEntriesFrom(ref input, _map_resourceAmount_codec); + break; + } + } + } } + #endif } - public sealed partial class ResourceUsage : pb::IMessage { + public sealed partial class ResourceUsage : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceUsage()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ResourceUsage() { OnConstruction(); } @@ -1426,12 +2137,14 @@ public ResourceUsage() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ResourceUsage(ResourceUsage other) : this() { value_ = other.value_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ResourceUsage Clone() { return new ResourceUsage(this); } @@ -1445,16 +2158,19 @@ public ResourceUsage Clone() { /// The amount of resource tokens usage, symbol -> amount. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField Value { get { return value_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ResourceUsage); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ResourceUsage other) { if (ReferenceEquals(other, null)) { return false; @@ -1467,6 +2183,7 @@ public bool Equals(ResourceUsage other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= Value.GetHashCode(); @@ -1477,19 +2194,37 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else value_.WriteTo(output, _map_value_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _map_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += value_.CalculateSize(_map_value_codec); @@ -1500,6 +2235,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ResourceUsage other) { if (other == null) { return; @@ -1509,7 +2245,11 @@ public void MergeFrom(ResourceUsage other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1522,27 +2262,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _map_value_codec); + break; + } + } + } } + #endif } - public sealed partial class GetVirtualAddressForLockingInput : pb::IMessage { + public sealed partial class GetVirtualAddressForLockingInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetVirtualAddressForLockingInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetVirtualAddressForLockingInput() { OnConstruction(); } @@ -1550,6 +2318,7 @@ public GetVirtualAddressForLockingInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetVirtualAddressForLockingInput(GetVirtualAddressForLockingInput other) : this() { address_ = other.address_ != null ? other.address_.Clone() : null; lockId_ = other.lockId_ != null ? other.lockId_.Clone() : null; @@ -1557,6 +2326,7 @@ public GetVirtualAddressForLockingInput(GetVirtualAddressForLockingInput other) } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetVirtualAddressForLockingInput Clone() { return new GetVirtualAddressForLockingInput(this); } @@ -1568,6 +2338,7 @@ public GetVirtualAddressForLockingInput Clone() { /// The address of the lock. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Address Address { get { return address_; } set { @@ -1582,6 +2353,7 @@ public GetVirtualAddressForLockingInput Clone() { /// The id of the lock. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::AElf.Types.Hash LockId { get { return lockId_; } set { @@ -1590,11 +2362,13 @@ public GetVirtualAddressForLockingInput Clone() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetVirtualAddressForLockingInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetVirtualAddressForLockingInput other) { if (ReferenceEquals(other, null)) { return false; @@ -1608,6 +2382,7 @@ public bool Equals(GetVirtualAddressForLockingInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (address_ != null) hash ^= Address.GetHashCode(); @@ -1619,12 +2394,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (address_ != null) { output.WriteRawTag(10); output.WriteMessage(Address); @@ -1636,9 +2416,29 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (address_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Address); + } + if (lockId_ != null) { + output.WriteRawTag(18); + output.WriteMessage(LockId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (address_ != null) { @@ -1654,6 +2454,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetVirtualAddressForLockingInput other) { if (other == null) { return; @@ -1674,7 +2475,11 @@ public void MergeFrom(GetVirtualAddressForLockingInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1697,27 +2502,65 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (address_ == null) { + Address = new global::AElf.Types.Address(); + } + input.ReadMessage(Address); + break; + } + case 18: { + if (lockId_ == null) { + LockId = new global::AElf.Types.Hash(); + } + input.ReadMessage(LockId); + break; + } + } + } } + #endif } - public sealed partial class OwningRental : pb::IMessage { + public sealed partial class OwningRental : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwningRental()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OwningRental() { OnConstruction(); } @@ -1725,12 +2568,14 @@ public OwningRental() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OwningRental(OwningRental other) : this() { resourceAmount_ = other.resourceAmount_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OwningRental Clone() { return new OwningRental(this); } @@ -1744,16 +2589,19 @@ public OwningRental Clone() { /// The amount of resource tokens owed, symbol -> amount. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField ResourceAmount { get { return resourceAmount_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as OwningRental); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(OwningRental other) { if (ReferenceEquals(other, null)) { return false; @@ -1766,6 +2614,7 @@ public bool Equals(OwningRental other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= ResourceAmount.GetHashCode(); @@ -1776,19 +2625,37 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else resourceAmount_.WriteTo(output, _map_resourceAmount_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + resourceAmount_.WriteTo(ref output, _map_resourceAmount_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += resourceAmount_.CalculateSize(_map_resourceAmount_codec); @@ -1799,6 +2666,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(OwningRental other) { if (other == null) { return; @@ -1808,7 +2676,11 @@ public void MergeFrom(OwningRental other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1821,27 +2693,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + resourceAmount_.AddEntriesFrom(ref input, _map_resourceAmount_codec); + break; + } + } + } } + #endif } - public sealed partial class OwningRentalUnitValue : pb::IMessage { + public sealed partial class OwningRentalUnitValue : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwningRentalUnitValue()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OwningRentalUnitValue() { OnConstruction(); } @@ -1849,12 +2749,14 @@ public OwningRentalUnitValue() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OwningRentalUnitValue(OwningRentalUnitValue other) : this() { resourceUnitValue_ = other.resourceUnitValue_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OwningRentalUnitValue Clone() { return new OwningRentalUnitValue(this); } @@ -1868,16 +2770,19 @@ public OwningRentalUnitValue Clone() { /// Resource unit price, symbol -> unit price. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField ResourceUnitValue { get { return resourceUnitValue_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as OwningRentalUnitValue); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(OwningRentalUnitValue other) { if (ReferenceEquals(other, null)) { return false; @@ -1890,6 +2795,7 @@ public bool Equals(OwningRentalUnitValue other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= ResourceUnitValue.GetHashCode(); @@ -1900,19 +2806,37 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else resourceUnitValue_.WriteTo(output, _map_resourceUnitValue_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + resourceUnitValue_.WriteTo(ref output, _map_resourceUnitValue_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += resourceUnitValue_.CalculateSize(_map_resourceUnitValue_codec); @@ -1923,6 +2847,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(OwningRentalUnitValue other) { if (other == null) { return; @@ -1932,7 +2857,11 @@ public void MergeFrom(OwningRentalUnitValue other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1945,27 +2874,55 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + resourceUnitValue_.AddEntriesFrom(ref input, _map_resourceUnitValue_codec); + break; + } + } + } } + #endif } - public sealed partial class TransferToContractInput : pb::IMessage { + public sealed partial class TransferToContractInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransferToContractInput()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[10]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TransferToContractInput() { OnConstruction(); } @@ -1973,6 +2930,7 @@ public TransferToContractInput() { partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TransferToContractInput(TransferToContractInput other) : this() { symbol_ = other.symbol_; amount_ = other.amount_; @@ -1981,6 +2939,7 @@ public TransferToContractInput(TransferToContractInput other) : this() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TransferToContractInput Clone() { return new TransferToContractInput(this); } @@ -1992,6 +2951,7 @@ public TransferToContractInput Clone() { /// The symbol of token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Symbol { get { return symbol_; } set { @@ -2006,6 +2966,7 @@ public string Symbol { /// The amount of token. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Amount { get { return amount_; } set { @@ -2020,6 +2981,7 @@ public long Amount { /// The memo. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Memo { get { return memo_; } set { @@ -2028,11 +2990,13 @@ public string Memo { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TransferToContractInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TransferToContractInput other) { if (ReferenceEquals(other, null)) { return false; @@ -2047,6 +3011,7 @@ public bool Equals(TransferToContractInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); @@ -2059,12 +3024,17 @@ public override int GetHashCode() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (Symbol.Length != 0) { output.WriteRawTag(10); output.WriteString(Symbol); @@ -2080,9 +3050,33 @@ public void WriteTo(pb::CodedOutputStream output) { if (_unknownFields != null) { _unknownFields.WriteTo(output); } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (Memo.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Memo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } } + #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Symbol.Length != 0) { @@ -2101,6 +3095,7 @@ public int CalculateSize() { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TransferToContractInput other) { if (other == null) { return; @@ -2118,7 +3113,11 @@ public void MergeFrom(TransferToContractInput other) { } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -2139,10 +3138,7072 @@ public void MergeFrom(pb::CodedInputStream input) { } } } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + case 26: { + Memo = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UserFeeController : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserFeeController()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[11]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserFeeController() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserFeeController(UserFeeController other) : this() { + rootController_ = other.rootController_ != null ? other.rootController_.Clone() : null; + parliamentController_ = other.parliamentController_ != null ? other.parliamentController_.Clone() : null; + referendumController_ = other.referendumController_ != null ? other.referendumController_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserFeeController Clone() { + return new UserFeeController(this); + } + + /// Field number for the "root_controller" field. + public const int RootControllerFieldNumber = 1; + private global::AuthorityInfo rootController_; + /// + /// The association that governs the organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AuthorityInfo RootController { + get { return rootController_; } + set { + rootController_ = value; + } + } + + /// Field number for the "parliament_controller" field. + public const int ParliamentControllerFieldNumber = 2; + private global::AuthorityInfo parliamentController_; + /// + /// The parliament organization of members. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AuthorityInfo ParliamentController { + get { return parliamentController_; } + set { + parliamentController_ = value; + } + } + + /// Field number for the "referendum_controller" field. + public const int ReferendumControllerFieldNumber = 3; + private global::AuthorityInfo referendumController_; + /// + /// The referendum organization of members. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AuthorityInfo ReferendumController { + get { return referendumController_; } + set { + referendumController_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UserFeeController); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserFeeController other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RootController, other.RootController)) return false; + if (!object.Equals(ParliamentController, other.ParliamentController)) return false; + if (!object.Equals(ReferendumController, other.ReferendumController)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rootController_ != null) hash ^= RootController.GetHashCode(); + if (parliamentController_ != null) hash ^= ParliamentController.GetHashCode(); + if (referendumController_ != null) hash ^= ReferendumController.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rootController_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RootController); + } + if (parliamentController_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ParliamentController); + } + if (referendumController_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ReferendumController); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rootController_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RootController); + } + if (parliamentController_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ParliamentController); + } + if (referendumController_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ReferendumController); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rootController_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RootController); + } + if (parliamentController_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParliamentController); + } + if (referendumController_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReferendumController); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UserFeeController other) { + if (other == null) { + return; + } + if (other.rootController_ != null) { + if (rootController_ == null) { + RootController = new global::AuthorityInfo(); + } + RootController.MergeFrom(other.RootController); + } + if (other.parliamentController_ != null) { + if (parliamentController_ == null) { + ParliamentController = new global::AuthorityInfo(); + } + ParliamentController.MergeFrom(other.ParliamentController); + } + if (other.referendumController_ != null) { + if (referendumController_ == null) { + ReferendumController = new global::AuthorityInfo(); + } + ReferendumController.MergeFrom(other.ReferendumController); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (rootController_ == null) { + RootController = new global::AuthorityInfo(); + } + input.ReadMessage(RootController); + break; + } + case 18: { + if (parliamentController_ == null) { + ParliamentController = new global::AuthorityInfo(); + } + input.ReadMessage(ParliamentController); + break; + } + case 26: { + if (referendumController_ == null) { + ReferendumController = new global::AuthorityInfo(); + } + input.ReadMessage(ReferendumController); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (rootController_ == null) { + RootController = new global::AuthorityInfo(); + } + input.ReadMessage(RootController); + break; + } + case 18: { + if (parliamentController_ == null) { + ParliamentController = new global::AuthorityInfo(); + } + input.ReadMessage(ParliamentController); + break; + } + case 26: { + if (referendumController_ == null) { + ReferendumController = new global::AuthorityInfo(); + } + input.ReadMessage(ReferendumController); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeveloperFeeController : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeveloperFeeController()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[12]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeveloperFeeController() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeveloperFeeController(DeveloperFeeController other) : this() { + rootController_ = other.rootController_ != null ? other.rootController_.Clone() : null; + parliamentController_ = other.parliamentController_ != null ? other.parliamentController_.Clone() : null; + developerController_ = other.developerController_ != null ? other.developerController_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeveloperFeeController Clone() { + return new DeveloperFeeController(this); + } + + /// Field number for the "root_controller" field. + public const int RootControllerFieldNumber = 1; + private global::AuthorityInfo rootController_; + /// + /// The association that governs the organization. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AuthorityInfo RootController { + get { return rootController_; } + set { + rootController_ = value; + } + } + + /// Field number for the "parliament_controller" field. + public const int ParliamentControllerFieldNumber = 2; + private global::AuthorityInfo parliamentController_; + /// + /// The parliament organization of members. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AuthorityInfo ParliamentController { + get { return parliamentController_; } + set { + parliamentController_ = value; + } + } + + /// Field number for the "developer_controller" field. + public const int DeveloperControllerFieldNumber = 3; + private global::AuthorityInfo developerController_; + /// + /// The developer organization of members. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AuthorityInfo DeveloperController { + get { return developerController_; } + set { + developerController_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeveloperFeeController); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeveloperFeeController other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(RootController, other.RootController)) return false; + if (!object.Equals(ParliamentController, other.ParliamentController)) return false; + if (!object.Equals(DeveloperController, other.DeveloperController)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (rootController_ != null) hash ^= RootController.GetHashCode(); + if (parliamentController_ != null) hash ^= ParliamentController.GetHashCode(); + if (developerController_ != null) hash ^= DeveloperController.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (rootController_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RootController); + } + if (parliamentController_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ParliamentController); + } + if (developerController_ != null) { + output.WriteRawTag(26); + output.WriteMessage(DeveloperController); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (rootController_ != null) { + output.WriteRawTag(10); + output.WriteMessage(RootController); + } + if (parliamentController_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ParliamentController); + } + if (developerController_ != null) { + output.WriteRawTag(26); + output.WriteMessage(DeveloperController); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (rootController_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(RootController); + } + if (parliamentController_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParliamentController); + } + if (developerController_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeveloperController); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeveloperFeeController other) { + if (other == null) { + return; + } + if (other.rootController_ != null) { + if (rootController_ == null) { + RootController = new global::AuthorityInfo(); + } + RootController.MergeFrom(other.RootController); + } + if (other.parliamentController_ != null) { + if (parliamentController_ == null) { + ParliamentController = new global::AuthorityInfo(); + } + ParliamentController.MergeFrom(other.ParliamentController); + } + if (other.developerController_ != null) { + if (developerController_ == null) { + DeveloperController = new global::AuthorityInfo(); + } + DeveloperController.MergeFrom(other.DeveloperController); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (rootController_ == null) { + RootController = new global::AuthorityInfo(); + } + input.ReadMessage(RootController); + break; + } + case 18: { + if (parliamentController_ == null) { + ParliamentController = new global::AuthorityInfo(); + } + input.ReadMessage(ParliamentController); + break; + } + case 26: { + if (developerController_ == null) { + DeveloperController = new global::AuthorityInfo(); + } + input.ReadMessage(DeveloperController); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (rootController_ == null) { + RootController = new global::AuthorityInfo(); + } + input.ReadMessage(RootController); + break; + } + case 18: { + if (parliamentController_ == null) { + ParliamentController = new global::AuthorityInfo(); + } + input.ReadMessage(ParliamentController); + break; + } + case 26: { + if (developerController_ == null) { + DeveloperController = new global::AuthorityInfo(); + } + input.ReadMessage(DeveloperController); + break; + } + } + } + } + #endif + + } + + public sealed partial class MethodFeeFreeAllowancesConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MethodFeeFreeAllowancesConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[13]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MethodFeeFreeAllowancesConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MethodFeeFreeAllowancesConfig(MethodFeeFreeAllowancesConfig other) : this() { + freeAllowances_ = other.freeAllowances_ != null ? other.freeAllowances_.Clone() : null; + refreshSeconds_ = other.refreshSeconds_; + threshold_ = other.threshold_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MethodFeeFreeAllowancesConfig Clone() { + return new MethodFeeFreeAllowancesConfig(this); + } + + /// Field number for the "free_allowances" field. + public const int FreeAllowancesFieldNumber = 1; + private global::AElf.Contracts.MultiToken.MethodFeeFreeAllowances freeAllowances_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.MethodFeeFreeAllowances FreeAllowances { + get { return freeAllowances_; } + set { + freeAllowances_ = value; + } + } + + /// Field number for the "refresh_seconds" field. + public const int RefreshSecondsFieldNumber = 2; + private long refreshSeconds_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long RefreshSeconds { + get { return refreshSeconds_; } + set { + refreshSeconds_ = value; + } + } + + /// Field number for the "threshold" field. + public const int ThresholdFieldNumber = 3; + private long threshold_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Threshold { + get { return threshold_; } + set { + threshold_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MethodFeeFreeAllowancesConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MethodFeeFreeAllowancesConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(FreeAllowances, other.FreeAllowances)) return false; + if (RefreshSeconds != other.RefreshSeconds) return false; + if (Threshold != other.Threshold) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (freeAllowances_ != null) hash ^= FreeAllowances.GetHashCode(); + if (RefreshSeconds != 0L) hash ^= RefreshSeconds.GetHashCode(); + if (Threshold != 0L) hash ^= Threshold.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (freeAllowances_ != null) { + output.WriteRawTag(10); + output.WriteMessage(FreeAllowances); + } + if (RefreshSeconds != 0L) { + output.WriteRawTag(16); + output.WriteInt64(RefreshSeconds); + } + if (Threshold != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Threshold); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (freeAllowances_ != null) { + output.WriteRawTag(10); + output.WriteMessage(FreeAllowances); + } + if (RefreshSeconds != 0L) { + output.WriteRawTag(16); + output.WriteInt64(RefreshSeconds); + } + if (Threshold != 0L) { + output.WriteRawTag(24); + output.WriteInt64(Threshold); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (freeAllowances_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FreeAllowances); + } + if (RefreshSeconds != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(RefreshSeconds); + } + if (Threshold != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Threshold); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MethodFeeFreeAllowancesConfig other) { + if (other == null) { + return; + } + if (other.freeAllowances_ != null) { + if (freeAllowances_ == null) { + FreeAllowances = new global::AElf.Contracts.MultiToken.MethodFeeFreeAllowances(); + } + FreeAllowances.MergeFrom(other.FreeAllowances); + } + if (other.RefreshSeconds != 0L) { + RefreshSeconds = other.RefreshSeconds; + } + if (other.Threshold != 0L) { + Threshold = other.Threshold; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (freeAllowances_ == null) { + FreeAllowances = new global::AElf.Contracts.MultiToken.MethodFeeFreeAllowances(); + } + input.ReadMessage(FreeAllowances); + break; + } + case 16: { + RefreshSeconds = input.ReadInt64(); + break; + } + case 24: { + Threshold = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (freeAllowances_ == null) { + FreeAllowances = new global::AElf.Contracts.MultiToken.MethodFeeFreeAllowances(); + } + input.ReadMessage(FreeAllowances); + break; + } + case 16: { + RefreshSeconds = input.ReadInt64(); + break; + } + case 24: { + Threshold = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class MethodFeeFreeAllowances : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MethodFeeFreeAllowances()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[14]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MethodFeeFreeAllowances() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MethodFeeFreeAllowances(MethodFeeFreeAllowances other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MethodFeeFreeAllowances Clone() { + return new MethodFeeFreeAllowances(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_value_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Contracts.MultiToken.MethodFeeFreeAllowance.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MethodFeeFreeAllowances); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MethodFeeFreeAllowances other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!value_.Equals(other.value_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= value_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + value_.WriteTo(output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_repeated_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MethodFeeFreeAllowances other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + value_.AddEntriesFrom(input, _repeated_value_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class MethodFeeFreeAllowance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MethodFeeFreeAllowance()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[15]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MethodFeeFreeAllowance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MethodFeeFreeAllowance(MethodFeeFreeAllowance other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MethodFeeFreeAllowance Clone() { + return new MethodFeeFreeAllowance(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MethodFeeFreeAllowance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MethodFeeFreeAllowance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MethodFeeFreeAllowance other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeFreeAllowances : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeFreeAllowances()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowances() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowances(TransactionFeeFreeAllowances other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowances Clone() { + return new TransactionFeeFreeAllowances(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_value_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowance.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeFreeAllowances); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeFreeAllowances other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!value_.Equals(other.value_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= value_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + value_.WriteTo(output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_repeated_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeFreeAllowances other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + value_.AddEntriesFrom(input, _repeated_value_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeFreeAllowance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeFreeAllowance()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[17]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowance(TransactionFeeFreeAllowance other) : this() { + symbol_ = other.symbol_; + amount_ = other.amount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowance Clone() { + return new TransactionFeeFreeAllowance(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "amount" field. + public const int AmountFieldNumber = 2; + private long amount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Amount { + get { return amount_; } + set { + amount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeFreeAllowance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeFreeAllowance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (Amount != other.Amount) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (Amount != 0L) hash ^= Amount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (Amount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Amount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (Amount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Amount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeFreeAllowance other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.Amount != 0L) { + Amount = other.Amount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 16: { + Amount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeFreeAllowancesSymbolList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeFreeAllowancesSymbolList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowancesSymbolList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowancesSymbolList(TransactionFeeFreeAllowancesSymbolList other) : this() { + symbols_ = other.symbols_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowancesSymbolList Clone() { + return new TransactionFeeFreeAllowancesSymbolList(this); + } + + /// Field number for the "symbols" field. + public const int SymbolsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_symbols_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField symbols_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Symbols { + get { return symbols_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeFreeAllowancesSymbolList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeFreeAllowancesSymbolList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!symbols_.Equals(other.symbols_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= symbols_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + symbols_.WriteTo(output, _repeated_symbols_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + symbols_.WriteTo(ref output, _repeated_symbols_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += symbols_.CalculateSize(_repeated_symbols_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeFreeAllowancesSymbolList other) { + if (other == null) { + return; + } + symbols_.Add(other.symbols_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + symbols_.AddEntriesFrom(input, _repeated_symbols_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + symbols_.AddEntriesFrom(ref input, _repeated_symbols_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConfigTransactionFeeFreeAllowancesInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConfigTransactionFeeFreeAllowancesInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[19]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigTransactionFeeFreeAllowancesInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigTransactionFeeFreeAllowancesInput(ConfigTransactionFeeFreeAllowancesInput other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigTransactionFeeFreeAllowancesInput Clone() { + return new ConfigTransactionFeeFreeAllowancesInput(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_value_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Contracts.MultiToken.ConfigTransactionFeeFreeAllowance.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConfigTransactionFeeFreeAllowancesInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConfigTransactionFeeFreeAllowancesInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!value_.Equals(other.value_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= value_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + value_.WriteTo(output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_repeated_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConfigTransactionFeeFreeAllowancesInput other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + value_.AddEntriesFrom(input, _repeated_value_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ConfigTransactionFeeFreeAllowance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConfigTransactionFeeFreeAllowance()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[20]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigTransactionFeeFreeAllowance() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigTransactionFeeFreeAllowance(ConfigTransactionFeeFreeAllowance other) : this() { + symbol_ = other.symbol_; + transactionFeeFreeAllowances_ = other.transactionFeeFreeAllowances_ != null ? other.transactionFeeFreeAllowances_.Clone() : null; + refreshSeconds_ = other.refreshSeconds_; + threshold_ = other.threshold_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ConfigTransactionFeeFreeAllowance Clone() { + return new ConfigTransactionFeeFreeAllowance(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "transaction_fee_free_allowances" field. + public const int TransactionFeeFreeAllowancesFieldNumber = 2; + private global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowances transactionFeeFreeAllowances_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowances TransactionFeeFreeAllowances { + get { return transactionFeeFreeAllowances_; } + set { + transactionFeeFreeAllowances_ = value; + } + } + + /// Field number for the "refresh_seconds" field. + public const int RefreshSecondsFieldNumber = 3; + private long refreshSeconds_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long RefreshSeconds { + get { return refreshSeconds_; } + set { + refreshSeconds_ = value; + } + } + + /// Field number for the "threshold" field. + public const int ThresholdFieldNumber = 4; + private long threshold_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Threshold { + get { return threshold_; } + set { + threshold_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ConfigTransactionFeeFreeAllowance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ConfigTransactionFeeFreeAllowance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (!object.Equals(TransactionFeeFreeAllowances, other.TransactionFeeFreeAllowances)) return false; + if (RefreshSeconds != other.RefreshSeconds) return false; + if (Threshold != other.Threshold) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (transactionFeeFreeAllowances_ != null) hash ^= TransactionFeeFreeAllowances.GetHashCode(); + if (RefreshSeconds != 0L) hash ^= RefreshSeconds.GetHashCode(); + if (Threshold != 0L) hash ^= Threshold.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (transactionFeeFreeAllowances_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TransactionFeeFreeAllowances); + } + if (RefreshSeconds != 0L) { + output.WriteRawTag(24); + output.WriteInt64(RefreshSeconds); + } + if (Threshold != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Threshold); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (transactionFeeFreeAllowances_ != null) { + output.WriteRawTag(18); + output.WriteMessage(TransactionFeeFreeAllowances); + } + if (RefreshSeconds != 0L) { + output.WriteRawTag(24); + output.WriteInt64(RefreshSeconds); + } + if (Threshold != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Threshold); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (transactionFeeFreeAllowances_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(TransactionFeeFreeAllowances); + } + if (RefreshSeconds != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(RefreshSeconds); + } + if (Threshold != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Threshold); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ConfigTransactionFeeFreeAllowance other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.transactionFeeFreeAllowances_ != null) { + if (transactionFeeFreeAllowances_ == null) { + TransactionFeeFreeAllowances = new global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowances(); + } + TransactionFeeFreeAllowances.MergeFrom(other.TransactionFeeFreeAllowances); + } + if (other.RefreshSeconds != 0L) { + RefreshSeconds = other.RefreshSeconds; + } + if (other.Threshold != 0L) { + Threshold = other.Threshold; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (transactionFeeFreeAllowances_ == null) { + TransactionFeeFreeAllowances = new global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowances(); + } + input.ReadMessage(TransactionFeeFreeAllowances); + break; + } + case 24: { + RefreshSeconds = input.ReadInt64(); + break; + } + case 32: { + Threshold = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (transactionFeeFreeAllowances_ == null) { + TransactionFeeFreeAllowances = new global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowances(); + } + input.ReadMessage(TransactionFeeFreeAllowances); + break; + } + case 24: { + RefreshSeconds = input.ReadInt64(); + break; + } + case 32: { + Threshold = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class RemoveTransactionFeeFreeAllowancesConfigInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveTransactionFeeFreeAllowancesConfigInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[21]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeFreeAllowancesConfigInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeFreeAllowancesConfigInput(RemoveTransactionFeeFreeAllowancesConfigInput other) : this() { + symbols_ = other.symbols_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeFreeAllowancesConfigInput Clone() { + return new RemoveTransactionFeeFreeAllowancesConfigInput(this); + } + + /// Field number for the "symbols" field. + public const int SymbolsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_symbols_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField symbols_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Symbols { + get { return symbols_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoveTransactionFeeFreeAllowancesConfigInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoveTransactionFeeFreeAllowancesConfigInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!symbols_.Equals(other.symbols_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= symbols_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + symbols_.WriteTo(output, _repeated_symbols_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + symbols_.WriteTo(ref output, _repeated_symbols_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += symbols_.CalculateSize(_repeated_symbols_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoveTransactionFeeFreeAllowancesConfigInput other) { + if (other == null) { + return; + } + symbols_.Add(other.symbols_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + symbols_.AddEntriesFrom(input, _repeated_symbols_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + symbols_.AddEntriesFrom(ref input, _repeated_symbols_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetTransactionFeeFreeAllowancesConfigOutput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTransactionFeeFreeAllowancesConfigOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[22]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeFreeAllowancesConfigOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeFreeAllowancesConfigOutput(GetTransactionFeeFreeAllowancesConfigOutput other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeFreeAllowancesConfigOutput Clone() { + return new GetTransactionFeeFreeAllowancesConfigOutput(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_value_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowanceConfig.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTransactionFeeFreeAllowancesConfigOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTransactionFeeFreeAllowancesConfigOutput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!value_.Equals(other.value_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= value_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + value_.WriteTo(output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_repeated_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTransactionFeeFreeAllowancesConfigOutput other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + value_.AddEntriesFrom(input, _repeated_value_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeFreeAllowanceConfig : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeFreeAllowanceConfig()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[23]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowanceConfig() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowanceConfig(TransactionFeeFreeAllowanceConfig other) : this() { + symbol_ = other.symbol_; + freeAllowances_ = other.freeAllowances_ != null ? other.freeAllowances_.Clone() : null; + refreshSeconds_ = other.refreshSeconds_; + threshold_ = other.threshold_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowanceConfig Clone() { + return new TransactionFeeFreeAllowanceConfig(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "free_allowances" field. + public const int FreeAllowancesFieldNumber = 2; + private global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowanceMap freeAllowances_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowanceMap FreeAllowances { + get { return freeAllowances_; } + set { + freeAllowances_ = value; + } + } + + /// Field number for the "refresh_seconds" field. + public const int RefreshSecondsFieldNumber = 3; + private long refreshSeconds_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long RefreshSeconds { + get { return refreshSeconds_; } + set { + refreshSeconds_ = value; + } + } + + /// Field number for the "threshold" field. + public const int ThresholdFieldNumber = 4; + private long threshold_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Threshold { + get { return threshold_; } + set { + threshold_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeFreeAllowanceConfig); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeFreeAllowanceConfig other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (!object.Equals(FreeAllowances, other.FreeAllowances)) return false; + if (RefreshSeconds != other.RefreshSeconds) return false; + if (Threshold != other.Threshold) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (freeAllowances_ != null) hash ^= FreeAllowances.GetHashCode(); + if (RefreshSeconds != 0L) hash ^= RefreshSeconds.GetHashCode(); + if (Threshold != 0L) hash ^= Threshold.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (freeAllowances_ != null) { + output.WriteRawTag(18); + output.WriteMessage(FreeAllowances); + } + if (RefreshSeconds != 0L) { + output.WriteRawTag(24); + output.WriteInt64(RefreshSeconds); + } + if (Threshold != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Threshold); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (freeAllowances_ != null) { + output.WriteRawTag(18); + output.WriteMessage(FreeAllowances); + } + if (RefreshSeconds != 0L) { + output.WriteRawTag(24); + output.WriteInt64(RefreshSeconds); + } + if (Threshold != 0L) { + output.WriteRawTag(32); + output.WriteInt64(Threshold); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (freeAllowances_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FreeAllowances); + } + if (RefreshSeconds != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(RefreshSeconds); + } + if (Threshold != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Threshold); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeFreeAllowanceConfig other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.freeAllowances_ != null) { + if (freeAllowances_ == null) { + FreeAllowances = new global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowanceMap(); + } + FreeAllowances.MergeFrom(other.FreeAllowances); + } + if (other.RefreshSeconds != 0L) { + RefreshSeconds = other.RefreshSeconds; + } + if (other.Threshold != 0L) { + Threshold = other.Threshold; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (freeAllowances_ == null) { + FreeAllowances = new global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowanceMap(); + } + input.ReadMessage(FreeAllowances); + break; + } + case 24: { + RefreshSeconds = input.ReadInt64(); + break; + } + case 32: { + Threshold = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (freeAllowances_ == null) { + FreeAllowances = new global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowanceMap(); + } + input.ReadMessage(FreeAllowances); + break; + } + case 24: { + RefreshSeconds = input.ReadInt64(); + break; + } + case 32: { + Threshold = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeFreeAllowanceMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeFreeAllowanceMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[24]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowanceMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowanceMap(TransactionFeeFreeAllowanceMap other) : this() { + map_ = other.map_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowanceMap Clone() { + return new TransactionFeeFreeAllowanceMap(this); + } + + /// Field number for the "map" field. + public const int MapFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_map_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowance.Parser), 10); + private readonly pbc::MapField map_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Map { + get { return map_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeFreeAllowanceMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeFreeAllowanceMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Map.Equals(other.Map)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= Map.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + map_.WriteTo(output, _map_map_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + map_.WriteTo(ref output, _map_map_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += map_.CalculateSize(_map_map_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeFreeAllowanceMap other) { + if (other == null) { + return; + } + map_.Add(other.map_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + map_.AddEntriesFrom(input, _map_map_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + map_.AddEntriesFrom(ref input, _map_map_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeFreeAllowancesMap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeFreeAllowancesMap()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[25]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowancesMap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowancesMap(TransactionFeeFreeAllowancesMap other) : this() { + map_ = other.map_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeFreeAllowancesMap Clone() { + return new TransactionFeeFreeAllowancesMap(this); + } + + /// Field number for the "map" field. + public const int MapFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_map_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::AElf.Contracts.MultiToken.TransactionFeeFreeAllowanceMap.Parser), 10); + private readonly pbc::MapField map_ = new pbc::MapField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Map { + get { return map_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeFreeAllowancesMap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeFreeAllowancesMap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Map.Equals(other.Map)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= Map.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + map_.WriteTo(output, _map_map_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + map_.WriteTo(ref output, _map_map_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += map_.CalculateSize(_map_map_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeFreeAllowancesMap other) { + if (other == null) { + return; + } + map_.Add(other.map_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + map_.AddEntriesFrom(input, _map_map_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + map_.AddEntriesFrom(ref input, _map_map_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetTransactionFeeDelegateInfosInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetTransactionFeeDelegateInfosInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[26]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegateInfosInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegateInfosInput(SetTransactionFeeDelegateInfosInput other) : this() { + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; + delegateInfoList_ = other.delegateInfoList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTransactionFeeDelegateInfosInput Clone() { + return new SetTransactionFeeDelegateInfosInput(this); + } + + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 1; + private global::AElf.Types.Address delegatorAddress_; + /// + /// the delegator address + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } + set { + delegatorAddress_ = value; + } + } + + /// Field number for the "delegate_info_list" field. + public const int DelegateInfoListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_delegateInfoList_codec + = pb::FieldCodec.ForMessage(18, global::AElf.Contracts.MultiToken.DelegateInfo.Parser); + private readonly pbc::RepeatedField delegateInfoList_ = new pbc::RepeatedField(); + /// + ///delegate info list (support batch) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DelegateInfoList { + get { return delegateInfoList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetTransactionFeeDelegateInfosInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetTransactionFeeDelegateInfosInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; + if(!delegateInfoList_.Equals(other.delegateInfoList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); + hash ^= delegateInfoList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + delegateInfoList_.WriteTo(output, _repeated_delegateInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + delegateInfoList_.WriteTo(ref output, _repeated_delegateInfoList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); + } + size += delegateInfoList_.CalculateSize(_repeated_delegateInfoList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetTransactionFeeDelegateInfosInput other) { + if (other == null) { + return; + } + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + DelegatorAddress.MergeFrom(other.DelegatorAddress); + } + delegateInfoList_.Add(other.delegateInfoList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + case 18: { + delegateInfoList_.AddEntriesFrom(input, _repeated_delegateInfoList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + case 18: { + delegateInfoList_.AddEntriesFrom(ref input, _repeated_delegateInfoList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class DelegateInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DelegateInfo()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[27]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelegateInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelegateInfo(DelegateInfo other) : this() { + delegations_ = other.delegations_.Clone(); + contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; + methodName_ = other.methodName_; + isUnlimitedDelegate_ = other.isUnlimitedDelegate_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelegateInfo Clone() { + return new DelegateInfo(this); + } + + /// Field number for the "delegations" field. + public const int DelegationsFieldNumber = 1; + private static readonly pbc::MapField.Codec _map_delegations_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForInt64(16, 0L), 10); + private readonly pbc::MapField delegations_ = new pbc::MapField(); + /// + ///symbol->amount + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField Delegations { + get { return delegations_; } + } + + /// Field number for the "contract_address" field. + public const int ContractAddressFieldNumber = 2; + private global::AElf.Types.Address contractAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address ContractAddress { + get { return contractAddress_; } + set { + contractAddress_ = value; + } + } + + /// Field number for the "method_name" field. + public const int MethodNameFieldNumber = 3; + private string methodName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MethodName { + get { return methodName_; } + set { + methodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "isUnlimitedDelegate" field. + public const int IsUnlimitedDelegateFieldNumber = 4; + private bool isUnlimitedDelegate_; + /// + ///Whether to pay transaction fee continuously + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IsUnlimitedDelegate { + get { return isUnlimitedDelegate_; } + set { + isUnlimitedDelegate_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DelegateInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DelegateInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!Delegations.Equals(other.Delegations)) return false; + if (!object.Equals(ContractAddress, other.ContractAddress)) return false; + if (MethodName != other.MethodName) return false; + if (IsUnlimitedDelegate != other.IsUnlimitedDelegate) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= Delegations.GetHashCode(); + if (contractAddress_ != null) hash ^= ContractAddress.GetHashCode(); + if (MethodName.Length != 0) hash ^= MethodName.GetHashCode(); + if (IsUnlimitedDelegate != false) hash ^= IsUnlimitedDelegate.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + delegations_.WriteTo(output, _map_delegations_codec); + if (contractAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ContractAddress); + } + if (MethodName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(MethodName); + } + if (IsUnlimitedDelegate != false) { + output.WriteRawTag(32); + output.WriteBool(IsUnlimitedDelegate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + delegations_.WriteTo(ref output, _map_delegations_codec); + if (contractAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ContractAddress); + } + if (MethodName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(MethodName); + } + if (IsUnlimitedDelegate != false) { + output.WriteRawTag(32); + output.WriteBool(IsUnlimitedDelegate); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += delegations_.CalculateSize(_map_delegations_codec); + if (contractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress); + } + if (MethodName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MethodName); + } + if (IsUnlimitedDelegate != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DelegateInfo other) { + if (other == null) { + return; + } + delegations_.Add(other.delegations_); + if (other.contractAddress_ != null) { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + ContractAddress.MergeFrom(other.ContractAddress); + } + if (other.MethodName.Length != 0) { + MethodName = other.MethodName; + } + if (other.IsUnlimitedDelegate != false) { + IsUnlimitedDelegate = other.IsUnlimitedDelegate; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + delegations_.AddEntriesFrom(input, _map_delegations_codec); + break; + } + case 18: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 26: { + MethodName = input.ReadString(); + break; + } + case 32: { + IsUnlimitedDelegate = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + delegations_.AddEntriesFrom(ref input, _map_delegations_codec); + break; + } + case 18: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 26: { + MethodName = input.ReadString(); + break; + } + case 32: { + IsUnlimitedDelegate = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class RemoveTransactionFeeDelegatorInfosInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveTransactionFeeDelegatorInfosInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[28]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegatorInfosInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegatorInfosInput(RemoveTransactionFeeDelegatorInfosInput other) : this() { + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; + delegateTransactionList_ = other.delegateTransactionList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegatorInfosInput Clone() { + return new RemoveTransactionFeeDelegatorInfosInput(this); + } + + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 1; + private global::AElf.Types.Address delegatorAddress_; + /// + /// the delegator address + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } + set { + delegatorAddress_ = value; + } + } + + /// Field number for the "delegate_transaction_list" field. + public const int DelegateTransactionListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_delegateTransactionList_codec + = pb::FieldCodec.ForMessage(18, global::AElf.Contracts.MultiToken.DelegateTransaction.Parser); + private readonly pbc::RepeatedField delegateTransactionList_ = new pbc::RepeatedField(); + /// + /// delegate transaction info (support batch) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DelegateTransactionList { + get { return delegateTransactionList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoveTransactionFeeDelegatorInfosInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoveTransactionFeeDelegatorInfosInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; + if(!delegateTransactionList_.Equals(other.delegateTransactionList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); + hash ^= delegateTransactionList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + delegateTransactionList_.WriteTo(output, _repeated_delegateTransactionList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + delegateTransactionList_.WriteTo(ref output, _repeated_delegateTransactionList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); + } + size += delegateTransactionList_.CalculateSize(_repeated_delegateTransactionList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoveTransactionFeeDelegatorInfosInput other) { + if (other == null) { + return; + } + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + DelegatorAddress.MergeFrom(other.DelegatorAddress); + } + delegateTransactionList_.Add(other.delegateTransactionList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + case 18: { + delegateTransactionList_.AddEntriesFrom(input, _repeated_delegateTransactionList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + case 18: { + delegateTransactionList_.AddEntriesFrom(ref input, _repeated_delegateTransactionList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class DelegateTransaction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DelegateTransaction()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[29]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelegateTransaction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelegateTransaction(DelegateTransaction other) : this() { + contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; + methodName_ = other.methodName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelegateTransaction Clone() { + return new DelegateTransaction(this); + } + + /// Field number for the "contract_address" field. + public const int ContractAddressFieldNumber = 1; + private global::AElf.Types.Address contractAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address ContractAddress { + get { return contractAddress_; } + set { + contractAddress_ = value; + } + } + + /// Field number for the "method_name" field. + public const int MethodNameFieldNumber = 2; + private string methodName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MethodName { + get { return methodName_; } + set { + methodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DelegateTransaction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DelegateTransaction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ContractAddress, other.ContractAddress)) return false; + if (MethodName != other.MethodName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (contractAddress_ != null) hash ^= ContractAddress.GetHashCode(); + if (MethodName.Length != 0) hash ^= MethodName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (contractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ContractAddress); + } + if (MethodName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MethodName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (contractAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ContractAddress); + } + if (MethodName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MethodName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (contractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress); + } + if (MethodName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MethodName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DelegateTransaction other) { + if (other == null) { + return; + } + if (other.contractAddress_ != null) { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + ContractAddress.MergeFrom(other.ContractAddress); + } + if (other.MethodName.Length != 0) { + MethodName = other.MethodName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 18: { + MethodName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 18: { + MethodName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DelegateTransactionList : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DelegateTransactionList()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[30]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelegateTransactionList() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelegateTransactionList(DelegateTransactionList other) : this() { + value_ = other.value_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DelegateTransactionList Clone() { + return new DelegateTransactionList(this); + } + + /// Field number for the "value" field. + public const int ValueFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_value_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Contracts.MultiToken.DelegateTransaction.Parser); + private readonly pbc::RepeatedField value_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Value { + get { return value_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DelegateTransactionList); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DelegateTransactionList other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!value_.Equals(other.value_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= value_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + value_.WriteTo(output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + value_.WriteTo(ref output, _repeated_value_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += value_.CalculateSize(_repeated_value_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DelegateTransactionList other) { + if (other == null) { + return; + } + value_.Add(other.value_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + value_.AddEntriesFrom(input, _repeated_value_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + value_.AddEntriesFrom(ref input, _repeated_value_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class RemoveTransactionFeeDelegateeInfosInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveTransactionFeeDelegateeInfosInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[31]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegateeInfosInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegateeInfosInput(RemoveTransactionFeeDelegateeInfosInput other) : this() { + delegateeAddress_ = other.delegateeAddress_ != null ? other.delegateeAddress_.Clone() : null; + delegateTransactionList_ = other.delegateTransactionList_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RemoveTransactionFeeDelegateeInfosInput Clone() { + return new RemoveTransactionFeeDelegateeInfosInput(this); + } + + /// Field number for the "delegatee_address" field. + public const int DelegateeAddressFieldNumber = 1; + private global::AElf.Types.Address delegateeAddress_; + /// + /// the delegatee address + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegateeAddress { + get { return delegateeAddress_; } + set { + delegateeAddress_ = value; + } + } + + /// Field number for the "delegate_transaction_list" field. + public const int DelegateTransactionListFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_delegateTransactionList_codec + = pb::FieldCodec.ForMessage(18, global::AElf.Contracts.MultiToken.DelegateTransaction.Parser); + private readonly pbc::RepeatedField delegateTransactionList_ = new pbc::RepeatedField(); + /// + /// delegate transaction info (support batch) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DelegateTransactionList { + get { return delegateTransactionList_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RemoveTransactionFeeDelegateeInfosInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RemoveTransactionFeeDelegateeInfosInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DelegateeAddress, other.DelegateeAddress)) return false; + if(!delegateTransactionList_.Equals(other.delegateTransactionList_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegateeAddress_ != null) hash ^= DelegateeAddress.GetHashCode(); + hash ^= delegateTransactionList_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegateeAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegateeAddress); + } + delegateTransactionList_.WriteTo(output, _repeated_delegateTransactionList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegateeAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegateeAddress); + } + delegateTransactionList_.WriteTo(ref output, _repeated_delegateTransactionList_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegateeAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegateeAddress); + } + size += delegateTransactionList_.CalculateSize(_repeated_delegateTransactionList_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RemoveTransactionFeeDelegateeInfosInput other) { + if (other == null) { + return; + } + if (other.delegateeAddress_ != null) { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + DelegateeAddress.MergeFrom(other.DelegateeAddress); + } + delegateTransactionList_.Add(other.delegateTransactionList_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegateeAddress); + break; + } + case 18: { + delegateTransactionList_.AddEntriesFrom(input, _repeated_delegateTransactionList_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegateeAddress); + break; + } + case 18: { + delegateTransactionList_.AddEntriesFrom(ref input, _repeated_delegateTransactionList_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetTransactionFeeDelegateInfoInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTransactionFeeDelegateInfoInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[32]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateInfoInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateInfoInput(GetTransactionFeeDelegateInfoInput other) : this() { + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; + delegateeAddress_ = other.delegateeAddress_ != null ? other.delegateeAddress_.Clone() : null; + contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; + methodName_ = other.methodName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateInfoInput Clone() { + return new GetTransactionFeeDelegateInfoInput(this); + } + + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 1; + private global::AElf.Types.Address delegatorAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } + set { + delegatorAddress_ = value; + } + } + + /// Field number for the "delegatee_address" field. + public const int DelegateeAddressFieldNumber = 2; + private global::AElf.Types.Address delegateeAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegateeAddress { + get { return delegateeAddress_; } + set { + delegateeAddress_ = value; + } + } + + /// Field number for the "contract_address" field. + public const int ContractAddressFieldNumber = 3; + private global::AElf.Types.Address contractAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address ContractAddress { + get { return contractAddress_; } + set { + contractAddress_ = value; + } + } + + /// Field number for the "method_name" field. + public const int MethodNameFieldNumber = 4; + private string methodName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MethodName { + get { return methodName_; } + set { + methodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTransactionFeeDelegateInfoInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTransactionFeeDelegateInfoInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; + if (!object.Equals(DelegateeAddress, other.DelegateeAddress)) return false; + if (!object.Equals(ContractAddress, other.ContractAddress)) return false; + if (MethodName != other.MethodName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); + if (delegateeAddress_ != null) hash ^= DelegateeAddress.GetHashCode(); + if (contractAddress_ != null) hash ^= ContractAddress.GetHashCode(); + if (MethodName.Length != 0) hash ^= MethodName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + if (delegateeAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(DelegateeAddress); + } + if (contractAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ContractAddress); + } + if (MethodName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MethodName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + if (delegateeAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(DelegateeAddress); + } + if (contractAddress_ != null) { + output.WriteRawTag(26); + output.WriteMessage(ContractAddress); + } + if (MethodName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MethodName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); + } + if (delegateeAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegateeAddress); + } + if (contractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress); + } + if (MethodName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MethodName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTransactionFeeDelegateInfoInput other) { + if (other == null) { + return; + } + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + DelegatorAddress.MergeFrom(other.DelegatorAddress); + } + if (other.delegateeAddress_ != null) { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + DelegateeAddress.MergeFrom(other.DelegateeAddress); + } + if (other.contractAddress_ != null) { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + ContractAddress.MergeFrom(other.ContractAddress); + } + if (other.MethodName.Length != 0) { + MethodName = other.MethodName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + case 18: { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegateeAddress); + break; + } + case 26: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 34: { + MethodName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + case 18: { + if (delegateeAddress_ == null) { + DelegateeAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegateeAddress); + break; + } + case 26: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 34: { + MethodName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetTransactionFeeDelegateeListInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTransactionFeeDelegateeListInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[33]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateeListInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateeListInput(GetTransactionFeeDelegateeListInput other) : this() { + delegatorAddress_ = other.delegatorAddress_ != null ? other.delegatorAddress_.Clone() : null; + contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null; + methodName_ = other.methodName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateeListInput Clone() { + return new GetTransactionFeeDelegateeListInput(this); + } + + /// Field number for the "delegator_address" field. + public const int DelegatorAddressFieldNumber = 1; + private global::AElf.Types.Address delegatorAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address DelegatorAddress { + get { return delegatorAddress_; } + set { + delegatorAddress_ = value; + } + } + + /// Field number for the "contract_address" field. + public const int ContractAddressFieldNumber = 2; + private global::AElf.Types.Address contractAddress_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address ContractAddress { + get { return contractAddress_; } + set { + contractAddress_ = value; + } + } + + /// Field number for the "method_name" field. + public const int MethodNameFieldNumber = 3; + private string methodName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MethodName { + get { return methodName_; } + set { + methodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTransactionFeeDelegateeListInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTransactionFeeDelegateeListInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(DelegatorAddress, other.DelegatorAddress)) return false; + if (!object.Equals(ContractAddress, other.ContractAddress)) return false; + if (MethodName != other.MethodName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegatorAddress_ != null) hash ^= DelegatorAddress.GetHashCode(); + if (contractAddress_ != null) hash ^= ContractAddress.GetHashCode(); + if (MethodName.Length != 0) hash ^= MethodName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + if (contractAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ContractAddress); + } + if (MethodName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(MethodName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegatorAddress_ != null) { + output.WriteRawTag(10); + output.WriteMessage(DelegatorAddress); + } + if (contractAddress_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ContractAddress); + } + if (MethodName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(MethodName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegatorAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegatorAddress); + } + if (contractAddress_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContractAddress); + } + if (MethodName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MethodName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTransactionFeeDelegateeListInput other) { + if (other == null) { + return; + } + if (other.delegatorAddress_ != null) { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + DelegatorAddress.MergeFrom(other.DelegatorAddress); + } + if (other.contractAddress_ != null) { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + ContractAddress.MergeFrom(other.ContractAddress); + } + if (other.MethodName.Length != 0) { + MethodName = other.MethodName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + case 18: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 26: { + MethodName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegatorAddress_ == null) { + DelegatorAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(DelegatorAddress); + break; + } + case 18: { + if (contractAddress_ == null) { + ContractAddress = new global::AElf.Types.Address(); + } + input.ReadMessage(ContractAddress); + break; + } + case 26: { + MethodName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetTransactionFeeDelegateeListOutput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTransactionFeeDelegateeListOutput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[34]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateeListOutput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateeListOutput(GetTransactionFeeDelegateeListOutput other) : this() { + delegateeAddresses_ = other.delegateeAddresses_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetTransactionFeeDelegateeListOutput Clone() { + return new GetTransactionFeeDelegateeListOutput(this); + } + + /// Field number for the "delegatee_addresses" field. + public const int DelegateeAddressesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_delegateeAddresses_codec + = pb::FieldCodec.ForMessage(10, global::AElf.Types.Address.Parser); + private readonly pbc::RepeatedField delegateeAddresses_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField DelegateeAddresses { + get { return delegateeAddresses_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetTransactionFeeDelegateeListOutput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetTransactionFeeDelegateeListOutput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!delegateeAddresses_.Equals(other.delegateeAddresses_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= delegateeAddresses_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + delegateeAddresses_.WriteTo(output, _repeated_delegateeAddresses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + delegateeAddresses_.WriteTo(ref output, _repeated_delegateeAddresses_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += delegateeAddresses_.CalculateSize(_repeated_delegateeAddresses_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetTransactionFeeDelegateeListOutput other) { + if (other == null) { + return; + } + delegateeAddresses_.Add(other.delegateeAddresses_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + delegateeAddresses_.AddEntriesFrom(input, _repeated_delegateeAddresses_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + delegateeAddresses_.AddEntriesFrom(ref input, _repeated_delegateeAddresses_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeDelegateInfoAdded : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeDelegateInfoAdded()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[35]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegateInfoAdded() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegateInfoAdded(TransactionFeeDelegateInfoAdded other) : this() { + delegator_ = other.delegator_ != null ? other.delegator_.Clone() : null; + delegatee_ = other.delegatee_ != null ? other.delegatee_.Clone() : null; + caller_ = other.caller_ != null ? other.caller_.Clone() : null; + delegateTransactionList_ = other.delegateTransactionList_ != null ? other.delegateTransactionList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegateInfoAdded Clone() { + return new TransactionFeeDelegateInfoAdded(this); + } + + /// Field number for the "delegator" field. + public const int DelegatorFieldNumber = 1; + private global::AElf.Types.Address delegator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegator { + get { return delegator_; } + set { + delegator_ = value; + } + } + + /// Field number for the "delegatee" field. + public const int DelegateeFieldNumber = 2; + private global::AElf.Types.Address delegatee_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegatee { + get { return delegatee_; } + set { + delegatee_ = value; + } + } + + /// Field number for the "caller" field. + public const int CallerFieldNumber = 3; + private global::AElf.Types.Address caller_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Caller { + get { return caller_; } + set { + caller_ = value; + } + } + + /// Field number for the "delegate_transaction_list" field. + public const int DelegateTransactionListFieldNumber = 4; + private global::AElf.Contracts.MultiToken.DelegateTransactionList delegateTransactionList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.DelegateTransactionList DelegateTransactionList { + get { return delegateTransactionList_; } + set { + delegateTransactionList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeDelegateInfoAdded); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeDelegateInfoAdded other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Delegator, other.Delegator)) return false; + if (!object.Equals(Delegatee, other.Delegatee)) return false; + if (!object.Equals(Caller, other.Caller)) return false; + if (!object.Equals(DelegateTransactionList, other.DelegateTransactionList)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegator_ != null) hash ^= Delegator.GetHashCode(); + if (delegatee_ != null) hash ^= Delegatee.GetHashCode(); + if (caller_ != null) hash ^= Caller.GetHashCode(); + if (delegateTransactionList_ != null) hash ^= DelegateTransactionList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (delegateTransactionList_ != null) { + output.WriteRawTag(34); + output.WriteMessage(DelegateTransactionList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (delegateTransactionList_ != null) { + output.WriteRawTag(34); + output.WriteMessage(DelegateTransactionList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegator_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegator); + } + if (delegatee_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegatee); + } + if (caller_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Caller); + } + if (delegateTransactionList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegateTransactionList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeDelegateInfoAdded other) { + if (other == null) { + return; + } + if (other.delegator_ != null) { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + Delegator.MergeFrom(other.Delegator); + } + if (other.delegatee_ != null) { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + Delegatee.MergeFrom(other.Delegatee); + } + if (other.caller_ != null) { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + Caller.MergeFrom(other.Caller); + } + if (other.delegateTransactionList_ != null) { + if (delegateTransactionList_ == null) { + DelegateTransactionList = new global::AElf.Contracts.MultiToken.DelegateTransactionList(); + } + DelegateTransactionList.MergeFrom(other.DelegateTransactionList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + case 34: { + if (delegateTransactionList_ == null) { + DelegateTransactionList = new global::AElf.Contracts.MultiToken.DelegateTransactionList(); + } + input.ReadMessage(DelegateTransactionList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + case 34: { + if (delegateTransactionList_ == null) { + DelegateTransactionList = new global::AElf.Contracts.MultiToken.DelegateTransactionList(); + } + input.ReadMessage(DelegateTransactionList); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeDelegateInfoUpdated : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeDelegateInfoUpdated()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[36]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegateInfoUpdated() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegateInfoUpdated(TransactionFeeDelegateInfoUpdated other) : this() { + delegator_ = other.delegator_ != null ? other.delegator_.Clone() : null; + delegatee_ = other.delegatee_ != null ? other.delegatee_.Clone() : null; + caller_ = other.caller_ != null ? other.caller_.Clone() : null; + delegateTransactionList_ = other.delegateTransactionList_ != null ? other.delegateTransactionList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegateInfoUpdated Clone() { + return new TransactionFeeDelegateInfoUpdated(this); + } + + /// Field number for the "delegator" field. + public const int DelegatorFieldNumber = 1; + private global::AElf.Types.Address delegator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegator { + get { return delegator_; } + set { + delegator_ = value; + } + } + + /// Field number for the "delegatee" field. + public const int DelegateeFieldNumber = 2; + private global::AElf.Types.Address delegatee_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegatee { + get { return delegatee_; } + set { + delegatee_ = value; + } + } + + /// Field number for the "caller" field. + public const int CallerFieldNumber = 3; + private global::AElf.Types.Address caller_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Caller { + get { return caller_; } + set { + caller_ = value; + } + } + + /// Field number for the "delegate_transaction_list" field. + public const int DelegateTransactionListFieldNumber = 4; + private global::AElf.Contracts.MultiToken.DelegateTransactionList delegateTransactionList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.DelegateTransactionList DelegateTransactionList { + get { return delegateTransactionList_; } + set { + delegateTransactionList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeDelegateInfoUpdated); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeDelegateInfoUpdated other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Delegator, other.Delegator)) return false; + if (!object.Equals(Delegatee, other.Delegatee)) return false; + if (!object.Equals(Caller, other.Caller)) return false; + if (!object.Equals(DelegateTransactionList, other.DelegateTransactionList)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegator_ != null) hash ^= Delegator.GetHashCode(); + if (delegatee_ != null) hash ^= Delegatee.GetHashCode(); + if (caller_ != null) hash ^= Caller.GetHashCode(); + if (delegateTransactionList_ != null) hash ^= DelegateTransactionList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (delegateTransactionList_ != null) { + output.WriteRawTag(34); + output.WriteMessage(DelegateTransactionList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (delegateTransactionList_ != null) { + output.WriteRawTag(34); + output.WriteMessage(DelegateTransactionList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegator_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegator); + } + if (delegatee_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegatee); + } + if (caller_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Caller); + } + if (delegateTransactionList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegateTransactionList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeDelegateInfoUpdated other) { + if (other == null) { + return; + } + if (other.delegator_ != null) { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + Delegator.MergeFrom(other.Delegator); + } + if (other.delegatee_ != null) { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + Delegatee.MergeFrom(other.Delegatee); + } + if (other.caller_ != null) { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + Caller.MergeFrom(other.Caller); + } + if (other.delegateTransactionList_ != null) { + if (delegateTransactionList_ == null) { + DelegateTransactionList = new global::AElf.Contracts.MultiToken.DelegateTransactionList(); + } + DelegateTransactionList.MergeFrom(other.DelegateTransactionList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + case 34: { + if (delegateTransactionList_ == null) { + DelegateTransactionList = new global::AElf.Contracts.MultiToken.DelegateTransactionList(); + } + input.ReadMessage(DelegateTransactionList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + case 34: { + if (delegateTransactionList_ == null) { + DelegateTransactionList = new global::AElf.Contracts.MultiToken.DelegateTransactionList(); + } + input.ReadMessage(DelegateTransactionList); + break; + } + } + } + } + #endif + + } + + public sealed partial class TransactionFeeDelegateInfoCancelled : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransactionFeeDelegateInfoCancelled()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[37]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegateInfoCancelled() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegateInfoCancelled(TransactionFeeDelegateInfoCancelled other) : this() { + delegator_ = other.delegator_ != null ? other.delegator_.Clone() : null; + delegatee_ = other.delegatee_ != null ? other.delegatee_.Clone() : null; + caller_ = other.caller_ != null ? other.caller_.Clone() : null; + delegateTransactionList_ = other.delegateTransactionList_ != null ? other.delegateTransactionList_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TransactionFeeDelegateInfoCancelled Clone() { + return new TransactionFeeDelegateInfoCancelled(this); + } + + /// Field number for the "delegator" field. + public const int DelegatorFieldNumber = 1; + private global::AElf.Types.Address delegator_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegator { + get { return delegator_; } + set { + delegator_ = value; + } + } + + /// Field number for the "delegatee" field. + public const int DelegateeFieldNumber = 2; + private global::AElf.Types.Address delegatee_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Delegatee { + get { return delegatee_; } + set { + delegatee_ = value; + } + } + + /// Field number for the "caller" field. + public const int CallerFieldNumber = 3; + private global::AElf.Types.Address caller_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Caller { + get { return caller_; } + set { + caller_ = value; + } + } + + /// Field number for the "delegate_transaction_list" field. + public const int DelegateTransactionListFieldNumber = 4; + private global::AElf.Contracts.MultiToken.DelegateTransactionList delegateTransactionList_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Contracts.MultiToken.DelegateTransactionList DelegateTransactionList { + get { return delegateTransactionList_; } + set { + delegateTransactionList_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TransactionFeeDelegateInfoCancelled); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TransactionFeeDelegateInfoCancelled other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Delegator, other.Delegator)) return false; + if (!object.Equals(Delegatee, other.Delegatee)) return false; + if (!object.Equals(Caller, other.Caller)) return false; + if (!object.Equals(DelegateTransactionList, other.DelegateTransactionList)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (delegator_ != null) hash ^= Delegator.GetHashCode(); + if (delegatee_ != null) hash ^= Delegatee.GetHashCode(); + if (caller_ != null) hash ^= Caller.GetHashCode(); + if (delegateTransactionList_ != null) hash ^= DelegateTransactionList.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (delegateTransactionList_ != null) { + output.WriteRawTag(34); + output.WriteMessage(DelegateTransactionList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (delegator_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Delegator); + } + if (delegatee_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Delegatee); + } + if (caller_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Caller); + } + if (delegateTransactionList_ != null) { + output.WriteRawTag(34); + output.WriteMessage(DelegateTransactionList); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (delegator_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegator); + } + if (delegatee_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Delegatee); + } + if (caller_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Caller); + } + if (delegateTransactionList_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DelegateTransactionList); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TransactionFeeDelegateInfoCancelled other) { + if (other == null) { + return; + } + if (other.delegator_ != null) { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + Delegator.MergeFrom(other.Delegator); + } + if (other.delegatee_ != null) { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + Delegatee.MergeFrom(other.Delegatee); + } + if (other.caller_ != null) { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + Caller.MergeFrom(other.Caller); + } + if (other.delegateTransactionList_ != null) { + if (delegateTransactionList_ == null) { + DelegateTransactionList = new global::AElf.Contracts.MultiToken.DelegateTransactionList(); + } + DelegateTransactionList.MergeFrom(other.DelegateTransactionList); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + case 34: { + if (delegateTransactionList_ == null) { + DelegateTransactionList = new global::AElf.Contracts.MultiToken.DelegateTransactionList(); + } + input.ReadMessage(DelegateTransactionList); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (delegator_ == null) { + Delegator = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegator); + break; + } + case 18: { + if (delegatee_ == null) { + Delegatee = new global::AElf.Types.Address(); + } + input.ReadMessage(Delegatee); + break; + } + case 26: { + if (caller_ == null) { + Caller = new global::AElf.Types.Address(); + } + input.ReadMessage(Caller); + break; + } + case 34: { + if (delegateTransactionList_ == null) { + DelegateTransactionList = new global::AElf.Contracts.MultiToken.DelegateTransactionList(); + } + input.ReadMessage(DelegateTransactionList); + break; + } + } + } + } + #endif + + } + + public sealed partial class ModifyTokenIssuerAndOwnerInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ModifyTokenIssuerAndOwnerInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModifyTokenIssuerAndOwnerInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModifyTokenIssuerAndOwnerInput(ModifyTokenIssuerAndOwnerInput other) : this() { + symbol_ = other.symbol_; + issuer_ = other.issuer_ != null ? other.issuer_.Clone() : null; + owner_ = other.owner_ != null ? other.owner_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModifyTokenIssuerAndOwnerInput Clone() { + return new ModifyTokenIssuerAndOwnerInput(this); + } + + /// Field number for the "symbol" field. + public const int SymbolFieldNumber = 1; + private string symbol_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Symbol { + get { return symbol_; } + set { + symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "issuer" field. + public const int IssuerFieldNumber = 2; + private global::AElf.Types.Address issuer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Issuer { + get { return issuer_; } + set { + issuer_ = value; + } + } + + /// Field number for the "owner" field. + public const int OwnerFieldNumber = 3; + private global::AElf.Types.Address owner_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::AElf.Types.Address Owner { + get { return owner_; } + set { + owner_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ModifyTokenIssuerAndOwnerInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ModifyTokenIssuerAndOwnerInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Symbol != other.Symbol) return false; + if (!object.Equals(Issuer, other.Issuer)) return false; + if (!object.Equals(Owner, other.Owner)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Symbol.Length != 0) hash ^= Symbol.GetHashCode(); + if (issuer_ != null) hash ^= Issuer.GetHashCode(); + if (owner_ != null) hash ^= Owner.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (issuer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Issuer); + } + if (owner_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Owner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Symbol.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Symbol); + } + if (issuer_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Issuer); + } + if (owner_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Owner); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Symbol.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); + } + if (issuer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Issuer); + } + if (owner_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Owner); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ModifyTokenIssuerAndOwnerInput other) { + if (other == null) { + return; + } + if (other.Symbol.Length != 0) { + Symbol = other.Symbol; + } + if (other.issuer_ != null) { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + Issuer.MergeFrom(other.Issuer); + } + if (other.owner_ != null) { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + Owner.MergeFrom(other.Owner); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + input.ReadMessage(Issuer); + break; + } + case 26: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Symbol = input.ReadString(); + break; + } + case 18: { + if (issuer_ == null) { + Issuer = new global::AElf.Types.Address(); + } + input.ReadMessage(Issuer); + break; + } + case 26: { + if (owner_ == null) { + Owner = new global::AElf.Types.Address(); + } + input.ReadMessage(Owner); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetTokenIssuerAndOwnerModificationEnabledInput : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetTokenIssuerAndOwnerModificationEnabledInput()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::AElf.Contracts.MultiToken.TokenContractImplReflection.Descriptor.MessageTypes[39]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTokenIssuerAndOwnerModificationEnabledInput() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTokenIssuerAndOwnerModificationEnabledInput(SetTokenIssuerAndOwnerModificationEnabledInput other) : this() { + enabled_ = other.enabled_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetTokenIssuerAndOwnerModificationEnabledInput Clone() { + return new SetTokenIssuerAndOwnerModificationEnabledInput(this); + } + + /// Field number for the "enabled" field. + public const int EnabledFieldNumber = 1; + private bool enabled_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Enabled { + get { return enabled_; } + set { + enabled_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetTokenIssuerAndOwnerModificationEnabledInput); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetTokenIssuerAndOwnerModificationEnabledInput other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Enabled != other.Enabled) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Enabled != false) hash ^= Enabled.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Enabled != false) { + output.WriteRawTag(8); + output.WriteBool(Enabled); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Enabled != false) { + output.WriteRawTag(8); + output.WriteBool(Enabled); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Enabled != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetTokenIssuerAndOwnerModificationEnabledInput other) { + if (other == null) { + return; + } + if (other.Enabled != false) { + Enabled = other.Enabled; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Enabled = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Enabled = input.ReadBool(); + break; + } + } + } } + #endif } - #endregion diff --git a/src/CAServer.Application.Contracts/FreeMint/Dtos/ConfirmDto.cs b/src/CAServer.Application.Contracts/FreeMint/Dtos/ConfirmDto.cs new file mode 100644 index 000000000..a4f948662 --- /dev/null +++ b/src/CAServer.Application.Contracts/FreeMint/Dtos/ConfirmDto.cs @@ -0,0 +1,9 @@ +namespace CAServer.FreeMint.Dtos; + +public class ConfirmDto +{ + public string ItemId { get; set; } + public string Name { get; set; } + public string TokenId { get; set; } + public string Symbol { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/FreeMint/Dtos/ConfirmRequestDto.cs b/src/CAServer.Application.Contracts/FreeMint/Dtos/ConfirmRequestDto.cs new file mode 100644 index 000000000..334af646c --- /dev/null +++ b/src/CAServer.Application.Contracts/FreeMint/Dtos/ConfirmRequestDto.cs @@ -0,0 +1,10 @@ +using System.ComponentModel.DataAnnotations; + +namespace CAServer.FreeMint.Dtos; + +public class ConfirmRequestDto +{ + [Required] public string ImageUrl { get; set; } + [Required] public string Name { get; set; } + public string Description { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/FreeMint/Dtos/FreeMintCollectionInfo.cs b/src/CAServer.Application.Contracts/FreeMint/Dtos/FreeMintCollectionInfo.cs new file mode 100644 index 000000000..e513bc1db --- /dev/null +++ b/src/CAServer.Application.Contracts/FreeMint/Dtos/FreeMintCollectionInfo.cs @@ -0,0 +1,9 @@ +namespace CAServer.FreeMint.Dtos; + +public class FreeMintCollectionInfo +{ + public string CollectionName { get; set; } + public string ImageUrl { get; set; } + public string ChainId { get; set; } + public string Symbol { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/FreeMint/Dtos/GetItemInfoDto.cs b/src/CAServer.Application.Contracts/FreeMint/Dtos/GetItemInfoDto.cs new file mode 100644 index 000000000..ec1a5300d --- /dev/null +++ b/src/CAServer.Application.Contracts/FreeMint/Dtos/GetItemInfoDto.cs @@ -0,0 +1,11 @@ +namespace CAServer.FreeMint.Dtos; + +public class GetItemInfoDto +{ + public string ImageUrl { get; set; } + public string Name { get; set; } + public string Symbol { get; set; } + public string TokenId { get; set; } + public string Description { get; set; } + public string Status { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/FreeMint/Dtos/GetMintInfoDto.cs b/src/CAServer.Application.Contracts/FreeMint/Dtos/GetMintInfoDto.cs new file mode 100644 index 000000000..e5c2a3a17 --- /dev/null +++ b/src/CAServer.Application.Contracts/FreeMint/Dtos/GetMintInfoDto.cs @@ -0,0 +1,9 @@ +namespace CAServer.FreeMint.Dtos; + +public class GetMintInfoDto +{ + public FreeMintCollectionInfo CollectionInfo { get; set; } + public int LimitCount { get; set; } + public bool IsLimitExceed { get; set; } + public decimal TransactionFee { get; set; } = 0; +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/FreeMint/Dtos/GetNftItemDetailDto.cs b/src/CAServer.Application.Contracts/FreeMint/Dtos/GetNftItemDetailDto.cs new file mode 100644 index 000000000..3435c3241 --- /dev/null +++ b/src/CAServer.Application.Contracts/FreeMint/Dtos/GetNftItemDetailDto.cs @@ -0,0 +1,22 @@ +using CAServer.EnumType; +using CAServer.UserAssets.Dtos; + +namespace CAServer.FreeMint.Dtos; + +public class GetNftItemDetailDto +{ + public string Symbol { get; set; } + public string ChainId { get; set; } + public string TokenId { get; set; } + public string Alias { get; set; } + public string Balance { get; set; } + public long TotalSupply { get; set; } + public long CirculatingSupply { get; set; } + public string ImageUrl { get; set; } + public string TokenContractAddress { get; set; } + public string ImageLargeUrl { get; set; } + public string Decimals { get; set; } + public string CollectionSymbol { get; set; } + public string TokenName { get; set; } + public FreeMintStatus Status { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/FreeMint/Dtos/GetRecentStatusDto.cs b/src/CAServer.Application.Contracts/FreeMint/Dtos/GetRecentStatusDto.cs new file mode 100644 index 000000000..66a1a9dbb --- /dev/null +++ b/src/CAServer.Application.Contracts/FreeMint/Dtos/GetRecentStatusDto.cs @@ -0,0 +1,9 @@ +using CAServer.EnumType; + +namespace CAServer.FreeMint.Dtos; + +public class GetRecentStatusDto +{ + public string Status { get; set; } + public string ItemId { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/FreeMint/Dtos/GetStatusDto.cs b/src/CAServer.Application.Contracts/FreeMint/Dtos/GetStatusDto.cs new file mode 100644 index 000000000..1b1236ecb --- /dev/null +++ b/src/CAServer.Application.Contracts/FreeMint/Dtos/GetStatusDto.cs @@ -0,0 +1,8 @@ +using CAServer.EnumType; + +namespace CAServer.FreeMint.Dtos; + +public class GetStatusDto +{ + public string Status { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/FreeMint/Dtos/ItemMintInfo.cs b/src/CAServer.Application.Contracts/FreeMint/Dtos/ItemMintInfo.cs new file mode 100644 index 000000000..143b9d8ec --- /dev/null +++ b/src/CAServer.Application.Contracts/FreeMint/Dtos/ItemMintInfo.cs @@ -0,0 +1,13 @@ +using CAServer.EnumType; + +namespace CAServer.FreeMint.Dtos; + +public class ItemMintInfo +{ + public string ItemId { get; set; } + public string ImageUrl { get; set; } + public string Name { get; set; } + public string TokenId { get; set; } + public string Description { get; set; } + public FreeMintStatus Status { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/FreeMint/Dtos/MintAgainRequestDto.cs b/src/CAServer.Application.Contracts/FreeMint/Dtos/MintAgainRequestDto.cs new file mode 100644 index 000000000..c5ae9fb21 --- /dev/null +++ b/src/CAServer.Application.Contracts/FreeMint/Dtos/MintAgainRequestDto.cs @@ -0,0 +1,6 @@ +namespace CAServer.FreeMint.Dtos; + +public class MintAgainRequestDto +{ + public string ItemId { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/FreeMint/Etos/FreeMintEto.cs b/src/CAServer.Application.Contracts/FreeMint/Etos/FreeMintEto.cs new file mode 100644 index 000000000..34e9c3ab2 --- /dev/null +++ b/src/CAServer.Application.Contracts/FreeMint/Etos/FreeMintEto.cs @@ -0,0 +1,13 @@ +using System; +using CAServer.FreeMint.Dtos; +using Volo.Abp.EventBus; + +namespace CAServer.FreeMint.Etos; + +[EventName("FreeMintEto")] +public class FreeMintEto +{ + public Guid UserId { get; set; } + public FreeMintCollectionInfo CollectionInfo { get; set; } + public ItemMintInfo ConfirmInfo { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/FreeMint/IFreeMintAppService.cs b/src/CAServer.Application.Contracts/FreeMint/IFreeMintAppService.cs new file mode 100644 index 000000000..ecc812c32 --- /dev/null +++ b/src/CAServer.Application.Contracts/FreeMint/IFreeMintAppService.cs @@ -0,0 +1,13 @@ +using System.Threading.Tasks; +using CAServer.FreeMint.Dtos; + +namespace CAServer.FreeMint; + +public interface IFreeMintAppService +{ + Task GetRecentStatusAsync(); + Task GetMintInfoAsync(); + Task ConfirmAsync(ConfirmRequestDto requestDto); + Task GetStatusAsync(string itemId); + Task GetItemInfoAsync(string itemId); +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Growth/Dtos/ActivityBaseInfoDto.cs b/src/CAServer.Application.Contracts/Growth/Dtos/ActivityBaseInfoDto.cs new file mode 100644 index 000000000..0c55838e0 --- /dev/null +++ b/src/CAServer.Application.Contracts/Growth/Dtos/ActivityBaseInfoDto.cs @@ -0,0 +1,27 @@ +using System.Collections.Generic; + +namespace CAServer.Growth.Dtos; + +public class ActivityBaseInfoDto +{ + + public List Data { get; set; } + +} + +public class ActivityBaseInfo +{ + + public string ActivityName { get; set; } + + public int ActivityValue { get; set; } + + public bool IsDefault { get; set; } + + public string StartDate { get; set; } + + public string EndDate { get; set; } + + public string DateRange { get; set; } + +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Growth/Dtos/ActivityDateRangeResponseDto.cs b/src/CAServer.Application.Contracts/Growth/Dtos/ActivityDateRangeResponseDto.cs deleted file mode 100644 index 6fc2dfccc..000000000 --- a/src/CAServer.Application.Contracts/Growth/Dtos/ActivityDateRangeResponseDto.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace CAServer.Growth.Dtos; - -public class ActivityDateRangeResponseDto -{ - public string StartDate { get; set; } - - public string EndDate { get; set; } - -} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Growth/Dtos/ActivityDetailsDto.cs b/src/CAServer.Application.Contracts/Growth/Dtos/ActivityDetailsDto.cs new file mode 100644 index 000000000..d78de3e14 --- /dev/null +++ b/src/CAServer.Application.Contracts/Growth/Dtos/ActivityDetailsDto.cs @@ -0,0 +1,45 @@ +namespace CAServer.Growth.Dtos; + +public class ActivityDetailsResponseDto +{ + public string ActivityName { get; set; } + + public ActivityConfigDto ActivityConfig { get; set; } + + public RulesConfigDto RulesConfig { get; set; } + + public bool IsDefault { get; set; } +} + +public class RulesConfigDto +{ + public bool IsRulesShow { get; set; } + + public string RulesDesc { get; set; } + + public string RulesUrl { get; set; } +} + +public class ActivityConfigDto +{ + public string ActivityTitle { get; set; } + + public string CopyWriting { get; set; } + + public bool IsShow { get; set; } + + public string ImageUrl { get; set; } + + public string StartDate { get; set; } + public string StartDateFormat { get; set; } + + + public string EndDate { get; set; } + public string EndDateFormat { get; set; } + + public string TaskImageUrl { get; set; } + + public string PCTaskImageUrl { get; set; } + + +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Growth/Dtos/BeInvitedConfigDto.cs b/src/CAServer.Application.Contracts/Growth/Dtos/BeInvitedConfigDto.cs new file mode 100644 index 000000000..a252f2698 --- /dev/null +++ b/src/CAServer.Application.Contracts/Growth/Dtos/BeInvitedConfigDto.cs @@ -0,0 +1,51 @@ +using System.Collections.Generic; + +namespace CAServer.Growth.Dtos; + +public class BeInvitedConfigResponseDto +{ + public Dictionary Data { get; set; } +} + +public class BeInvitedConfigDto +{ + public string MobileTitleCopyWriting { get; set; } + + public string PCTitleCopyWriting { get; set; } + + public string Logo { get; set; } + + public string CopyWriting { get; set; } + public List TaskConfigs { get; set; } + public Notice Notice { get; set; } +} + +public class TaskConfig +{ + public string TaskNo { get; set; } + + public string TaskName { get; set; } + + public string Topic { get; set; } + + public string TaskCopyWriting { get; set; } + + public string ButtonName { get; set; } + + public bool ButtonAbled { get; set; } + + public string ButtonLink { get; set; } +} + +public class Notice +{ + public string CopyWriting { get; set; } + + public string ButtonName { get; set; } + + public bool ButtonAbled { get; set; } + + public string ButtonLink { get; set; } + + public string NoticeName { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Growth/Dtos/HamsterRewardProgressDto.cs b/src/CAServer.Application.Contracts/Growth/Dtos/HamsterRewardProgressDto.cs new file mode 100644 index 000000000..1a5c44f37 --- /dev/null +++ b/src/CAServer.Application.Contracts/Growth/Dtos/HamsterRewardProgressDto.cs @@ -0,0 +1,7 @@ +namespace CAServer.Growth.Dtos; + +public class HamsterRewardProgressDto +{ + public int SignUpCount { get; set; } + public int HamsterCount { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Growth/Dtos/HamsterScoreDto.cs b/src/CAServer.Application.Contracts/Growth/Dtos/HamsterScoreDto.cs new file mode 100644 index 000000000..5faacdb33 --- /dev/null +++ b/src/CAServer.Application.Contracts/Growth/Dtos/HamsterScoreDto.cs @@ -0,0 +1,21 @@ +using System.Collections.Generic; + +namespace CAServer.Growth.Dtos; + +public class ScoreInfos +{ + public List GetScoreInfos { get; set; } + +} + +public class HamsterScoreDto +{ + public string CaAddress { get; set; } + + public long SumScore { get; set; } + + public string Symbol { get; set; } + + public int Decimals { get; set; } + +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Growth/Dtos/InvitationRewardProgressDto.cs b/src/CAServer.Application.Contracts/Growth/Dtos/InvitationRewardProgressDto.cs new file mode 100644 index 000000000..16fdd4702 --- /dev/null +++ b/src/CAServer.Application.Contracts/Growth/Dtos/InvitationRewardProgressDto.cs @@ -0,0 +1,8 @@ +namespace CAServer.Growth.Dtos; + +public class InvitationRewardProgressDto +{ + + public int SignUpCount { get; set; } + +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordRankRequestDto.cs b/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordRankRequestDto.cs index 0d0b1d1f9..7a6882a4a 100644 --- a/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordRankRequestDto.cs +++ b/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordRankRequestDto.cs @@ -5,7 +5,7 @@ namespace CAServer.Growth.Dtos; public class ReferralRecordRankRequestDto { - public ActivityEnums Activity { get; set; } + public ActivityEnums ActivityEnums { get; set; } public ActivityCycleEnums ActivityCycle { get; set; } @@ -14,6 +14,8 @@ public class ReferralRecordRankRequestDto public int Skip { get; set; } public int Limit { get; set; } + + public string TargetClientId { get; set; } } diff --git a/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordRequestDto.cs b/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordRequestDto.cs index 472e75850..f38ec34ee 100644 --- a/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordRequestDto.cs +++ b/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordRequestDto.cs @@ -1,3 +1,5 @@ +using CAServer.EnumType; + namespace CAServer.Growth.Dtos; public class ReferralRecordRequestDto @@ -7,4 +9,8 @@ public class ReferralRecordRequestDto public int Skip { get; set; } public int Limit { get; set; } + + public ActivityEnums ActivityEnums { get; set; } + + public string TargetClientId { get; set; } } \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordResponseDto.cs b/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordResponseDto.cs index e08f9a85b..8ab13582d 100644 --- a/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordResponseDto.cs +++ b/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordResponseDto.cs @@ -8,6 +8,8 @@ public class ReferralRecordResponseDto public bool HasNextPage { get; set; } = true; public List ReferralRecords { get; set; } + + } @@ -21,6 +23,10 @@ public class ReferralRecordDetailDto public string Avatar { get; set; } + public string RecordDesc { get; set; } + + + } \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordsRankResponseDto.cs b/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordsRankResponseDto.cs index 9135017c9..e4d898f3f 100644 --- a/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordsRankResponseDto.cs +++ b/src/CAServer.Application.Contracts/Growth/Dtos/ReferralRecordsRankResponseDto.cs @@ -9,6 +9,8 @@ public class ReferralRecordsRankResponseDto public ReferralRecordsRankDetail CurrentUserReferralRecordsRankDetail { get; set; } public bool HasNext { get; set; } + + public string Invitations { get; set; } } public class ReferralRecordsRankDetail diff --git a/src/CAServer.Application.Contracts/Growth/Dtos/ReferralTotalCountResponseDto.cs b/src/CAServer.Application.Contracts/Growth/Dtos/ReferralTotalCountResponseDto.cs new file mode 100644 index 000000000..7dda51d58 --- /dev/null +++ b/src/CAServer.Application.Contracts/Growth/Dtos/ReferralTotalCountResponseDto.cs @@ -0,0 +1,8 @@ +namespace CAServer.Growth.Dtos; + +public class ReferralTotalCountResponseDto +{ + public int ReferralRegisterCount { get; set; } + + public int HamsterCompleteCount { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Growth/Dtos/RewardProgressDto.cs b/src/CAServer.Application.Contracts/Growth/Dtos/RewardProgressDto.cs new file mode 100644 index 000000000..cd617df49 --- /dev/null +++ b/src/CAServer.Application.Contracts/Growth/Dtos/RewardProgressDto.cs @@ -0,0 +1,10 @@ +using CAServer.EnumType; + +namespace CAServer.Growth.Dtos; + +public class RewardProgressDto +{ + public string TargetClientId { get; set; } + + public ActivityEnums ActivityEnums { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Growth/Dtos/RewardProgressResponseDto.cs b/src/CAServer.Application.Contracts/Growth/Dtos/RewardProgressResponseDto.cs new file mode 100644 index 000000000..90cd262c0 --- /dev/null +++ b/src/CAServer.Application.Contracts/Growth/Dtos/RewardProgressResponseDto.cs @@ -0,0 +1,21 @@ +using System.Collections.Generic; + +namespace CAServer.Growth.Dtos; + +public class RewardProgressResponseDto +{ + + public List Data { get; set; } + + public string RewardProcessCount { get; set; } + +} + +public class ReferralCountDto +{ + public string ActivityName { get; set; } + + public string ReferralCount{get; set; } +} + + diff --git a/src/CAServer.Application.Contracts/Growth/IGrowthAppService.cs b/src/CAServer.Application.Contracts/Growth/IGrowthAppService.cs index 00f7628c8..d48056b6d 100644 --- a/src/CAServer.Application.Contracts/Growth/IGrowthAppService.cs +++ b/src/CAServer.Application.Contracts/Growth/IGrowthAppService.cs @@ -12,5 +12,5 @@ public interface IGrowthAppService Task GetShortLinkAsync(string projectCode); Task CreateGrowthInfoAsync(string caHash, ReferralInfo referralInfo); Task GetRedirectUrlAsync(string shortLinkCode); - Task GetActivityDateRangeAsync(ActivityEnums activityEnum); + Task GetActivityDetailsAsync(ActivityEnums activityEnum); } \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Growth/IGrowthStatisticAppService.cs b/src/CAServer.Application.Contracts/Growth/IGrowthStatisticAppService.cs index 2e60d789b..d7e1904da 100644 --- a/src/CAServer.Application.Contracts/Growth/IGrowthStatisticAppService.cs +++ b/src/CAServer.Application.Contracts/Growth/IGrowthStatisticAppService.cs @@ -1,4 +1,5 @@ using System.Threading.Tasks; +using CAServer.EnumType; using CAServer.Growth.Dtos; namespace CAServer.Growth; @@ -6,9 +7,11 @@ namespace CAServer.Growth; public interface IGrowthStatisticAppService { Task GetReferralInfoAsync(ReferralRequestDto input); - Task GetReferralTotalCountAsync(ReferralRecordRequestDto input); Task CalculateReferralRankAsync(); Task GetReferralRecordList(ReferralRecordRequestDto input); - Task InitReferralRankAsync(); Task GetReferralRecordRankAsync(ReferralRecordRankRequestDto input); + Task CalculateHamsterDataAsync(); + Task GetRewardProgressAsync(ActivityEnums activityEnum); + Task GetBeInvitedConfigAsync(); + Task ActivityBaseInfoAsync(); } \ No newline at end of file diff --git a/src/CAServer.Application.Contracts/Hubs/IHubService.cs b/src/CAServer.Application.Contracts/Hubs/IHubService.cs index 88f99a9a5..59435c0fb 100644 --- a/src/CAServer.Application.Contracts/Hubs/IHubService.cs +++ b/src/CAServer.Application.Contracts/Hubs/IHubService.cs @@ -1,4 +1,7 @@ +using System.Collections.Generic; using System.Threading.Tasks; +using CAServer.EnumType; +using CAServer.Growth.Dtos; using Volo.Abp.Application.Services; namespace CAServer.Hubs; @@ -17,4 +20,8 @@ public interface IHubService : IApplicationService Task RequestAchTxAddressAsync(string targetClientId, string orderId); Task RequestNFTOrderStatusAsync(string clientId, string orderId); Task RequestRampOrderStatus(string clientId, string orderId); + Task ReferralRecordListAsync(ReferralRecordRequestDto input); + //Task GetReferralRecordRankAsync(ReferralRecordRankRequestDto input); + + Task RewardProgressAsync(ActivityEnums activityEnums, string targetClientId); } \ No newline at end of file diff --git a/src/CAServer.Application/CAAccount/CAAccountAppService.cs b/src/CAServer.Application/CAAccount/CAAccountAppService.cs index 126907100..bc209a1cf 100644 --- a/src/CAServer.Application/CAAccount/CAAccountAppService.cs +++ b/src/CAServer.Application/CAAccount/CAAccountAppService.cs @@ -469,6 +469,11 @@ public async Task VerifyCaHolderExistByAddressAsync(s throw new UserFriendlyException("Invalidate address"); } + if (address.Contains('_')) + { + address = address.Split("_")[1]; + } + var result = new CAHolderExistsResponseDto(); var caAddresses = new List { diff --git a/src/CAServer.Application/CAActivity/UserActivityAppService.cs b/src/CAServer.Application/CAActivity/UserActivityAppService.cs index 5b37b6873..632c71410 100644 --- a/src/CAServer.Application/CAActivity/UserActivityAppService.cs +++ b/src/CAServer.Application/CAActivity/UserActivityAppService.cs @@ -239,7 +239,8 @@ private async Task InsertNotSuccessAsync(GetActivitiesRequestDto request, return (transactions.CaHolderTransaction.Data, transactions.CaHolderTransaction.TotalRecordCount, hasNextPage); } - private void SetDAppInfo(string toContractAddress, GetActivityDto activityDto, string fromAddress) + private void SetDAppInfo(string toContractAddress, GetActivityDto activityDto, string fromAddress, + string methodName) { if (activityDto.TransactionType == ActivityConstants.SwapExactTokensForTokensName && _activityOptions.ETransferConfigs.SelectMany(t => t.Accounts).Contains(fromAddress)) @@ -254,6 +255,11 @@ private void SetDAppInfo(string toContractAddress, GetActivityDto activityDto, s toContractAddress = eTransferConfig?.ContractAddress; } + if (methodName == ActivityConstants.FreeMintNftName) + { + activityDto.FromAddress = toContractAddress; + } + if (toContractAddress.IsNullOrEmpty()) { return; @@ -553,10 +559,10 @@ private void TryUpdateImageUrlForActivityDto(GetActivityDto activityDto) } if (activityDto.Operations.IsNullOrEmpty()) return; - + foreach (var itemInfo in activityDto.Operations.Where(itemInfo => itemInfo.NftInfo != null)) { - itemInfo.NftInfo.ImageUrl= + itemInfo.NftInfo.ImageUrl = IpfsImageUrlHelper.TryGetIpfsImageUrl(itemInfo.NftInfo.ImageUrl, _ipfsOptions?.ReplacedIpfsPrefix); } } @@ -823,7 +829,7 @@ private async Task IndexerTransaction2Dto(List caAddre await MapMethodNameAsync(caAddresses, dto, guardian); } - SetDAppInfo(ht.ToContractAddress, dto, ht.FromAddress); + SetDAppInfo(ht.ToContractAddress, dto, ht.FromAddress, ht.MethodName); await SetOperationsAsync(ht, dto, caAddresses, chainId, weidth, height); getActivitiesDto.Add(dto); } @@ -832,7 +838,7 @@ private async Task IndexerTransaction2Dto(List caAddre return result; } - + private async Task CheckCryptoGiftByTransactionId(GetActivityDto dto) { try @@ -841,11 +847,11 @@ private async Task CheckCryptoGiftByTransactionId(GetActivityDto dto) { await ReplaceSentRedPackageActivity(dto); } - else if(_activityTypeOptions.TypeMap[CryptoGiftConstants.TransferCryptoBoxes].Equals(dto.TransactionName)) + else if (_activityTypeOptions.TypeMap[CryptoGiftConstants.TransferCryptoBoxes].Equals(dto.TransactionName)) { await ReplacePayedRedPackageActivity(dto); } - else if(_activityTypeOptions.TypeMap[CryptoGiftConstants.RefundCryptoBox].Equals(dto.TransactionName)) + else if (_activityTypeOptions.TypeMap[CryptoGiftConstants.RefundCryptoBox].Equals(dto.TransactionName)) { await ReplaceRefundedRedPackageActivity(dto); } @@ -861,26 +867,27 @@ private async Task ReplaceSentRedPackageActivity(GetActivityDto dto) var mustQuery = new List, QueryContainer>>(); mustQuery.Add(q => q.Term(i => i.Field(f => f.TransactionId).Value(dto.TransactionId))); - mustQuery.Add(q => + mustQuery.Add(q => q.Term(i => i.Field(f => f.RedPackageDisplayType).Value((int)RedPackageDisplayType.CryptoGift))); QueryContainer Filter(QueryContainerDescriptor f) => f.Bool(b => b.Must(mustQuery)); var (totalCount, cryptoGiftIndices) = await _redPackageIndexRepository.GetListAsync(Filter); var redPackageIndex = cryptoGiftIndices.FirstOrDefault(); - if (redPackageIndex == null ) + if (redPackageIndex == null) { _logger.LogWarning("TransactionId:{0} cann't get redPackageIndex from es", dto.TransactionId); return false; } + dto.TransactionName = CryptoGiftConstants.SendTransactionName; return true; } - + private async Task ReplacePayedRedPackageActivity(GetActivityDto dto) { var mustQuery = new List, QueryContainer>>(); // mustQuery.Add(q => // q.Term(i => i.Field(f => f.PayedTransactionIds).Value($"*{dto.TransactionId}*"))); - mustQuery.Add(q => + mustQuery.Add(q => q.Term(i => i.Field(f => f.RedPackageDisplayType).Value((int)RedPackageDisplayType.CryptoGift))); QueryContainer Filter(QueryContainerDescriptor f) => f.Bool(b => b.Must(mustQuery)); var (totalCount, cryptoGiftIndices) = await _redPackageIndexRepository.GetListAsync(Filter); @@ -890,39 +897,47 @@ private async Task ReplacePayedRedPackageActivity(GetActivityDto dto) return false; } - var redPackageIndex = cryptoGiftIndices.FirstOrDefault(cp => !cp.PayedTransactionIds.IsNullOrEmpty() && cp.PayedTransactionIds.Contains(dto.TransactionId)); + var redPackageIndex = cryptoGiftIndices.FirstOrDefault(cp => + !cp.PayedTransactionIds.IsNullOrEmpty() && cp.PayedTransactionIds.Contains(dto.TransactionId)); if (redPackageIndex == null || redPackageIndex.PayedTransactionDtoList.IsNullOrEmpty()) { - _logger.LogWarning("TransactionId:{0} cann't get redPackageIndex from es because of redPackageIndex null", dto.TransactionId); + _logger.LogWarning("TransactionId:{0} cann't get redPackageIndex from es because of redPackageIndex null", + dto.TransactionId); return false; } + bool payedTransactionSucceed = redPackageIndex.PayedTransactionDtoList - .Any(payed => payed.PayedTransactionId.Equals(dto.TransactionId) + .Any(payed => payed.PayedTransactionId.Equals(dto.TransactionId) && RedPackageTransactionStatus.Success.Equals(payed.PayedTransactionStatus)); if (!payedTransactionSucceed) { - _logger.LogWarning("TransactionId:{0} cann't get redPackageIndex from es because of payedTransactionSucceed", dto.TransactionId); + _logger.LogWarning( + "TransactionId:{0} cann't get redPackageIndex from es because of payedTransactionSucceed", + dto.TransactionId); return false; } + dto.TransactionName = CryptoGiftConstants.ClaimTransactionName; return true; } - + private async Task ReplaceRefundedRedPackageActivity(GetActivityDto dto) { var mustQuery = new List, QueryContainer>>(); mustQuery.Add(q => q.Term(i => i.Field(f => f.RefundedTransactionId).Value(dto.TransactionId))); - mustQuery.Add(q => + mustQuery.Add(q => q.Term(i => i.Field(f => f.RedPackageDisplayType).Value((int)RedPackageDisplayType.CryptoGift))); QueryContainer Filter(QueryContainerDescriptor f) => f.Bool(b => b.Must(mustQuery)); var (totalCount, cryptoGiftIndices) = await _redPackageIndexRepository.GetListAsync(Filter); - var redPackageIndex = cryptoGiftIndices.FirstOrDefault(crypto => RedPackageTransactionStatus.Success.Equals(crypto.RefundedTransactionStatus)); - if (redPackageIndex == null ) + var redPackageIndex = cryptoGiftIndices.FirstOrDefault(crypto => + RedPackageTransactionStatus.Success.Equals(crypto.RefundedTransactionStatus)); + if (redPackageIndex == null) { _logger.LogWarning("TransactionId:{0} cann't get redPackageIndex from es", dto.TransactionId); return false; } + dto.TransactionName = CryptoGiftConstants.RefundTransactionName; return true; } @@ -935,11 +950,12 @@ private async Task MapMethodNameAsync(List caAddresses, GetActivityDto a _activityTypeOptions.TypeMap.GetValueOrDefault(transactionType, transactionType); activityDto.TransactionName = typeName; if (_activityTypeOptions.TypeMap[CryptoGiftConstants.CreateCryptoBox].Equals(activityDto.TransactionName) - || _activityTypeOptions.TypeMap[CryptoGiftConstants.TransferCryptoBoxes].Equals(activityDto.TransactionName) - || _activityTypeOptions.TypeMap[CryptoGiftConstants.RefundCryptoBox].Equals(activityDto.TransactionName)) + || _activityTypeOptions.TypeMap[CryptoGiftConstants.TransferCryptoBoxes].Equals(activityDto.TransactionName) + || _activityTypeOptions.TypeMap[CryptoGiftConstants.RefundCryptoBox].Equals(activityDto.TransactionName)) { await CheckCryptoGiftByTransactionId(activityDto); } + if (transactionType == ActivityConstants.AddGuardianName || transactionType == ActivityConstants.AddManagerInfo) { @@ -958,6 +974,7 @@ private async Task MapMethodNameAsync(List caAddresses, GetActivityDto a activityDto.TransactionName = activityDto.IsReceived ? ActivityConstants.ReceiveName : ActivityConstants.SendName; } + if (IsETransfer(transactionType, activityDto.FromChainId, activityDto.FromAddress)) { activityDto.TransactionName = ActivityConstants.DepositName; @@ -967,7 +984,8 @@ private async Task MapMethodNameAsync(List caAddresses, GetActivityDto a if (activityDto.NftInfo != null && !string.IsNullOrWhiteSpace(activityDto.NftInfo.NftId)) { var nftTransactionName = - (transactionType is ActivityConstants.TransferName or ActivityConstants.CrossChainTransferName or CryptoGiftConstants.CreateCryptoBox + (transactionType is ActivityConstants.TransferName or ActivityConstants.CrossChainTransferName + or CryptoGiftConstants.CreateCryptoBox or CryptoGiftConstants.TransferCryptoBoxes or CryptoGiftConstants.RefundCryptoBox) ? activityDto.TransactionName : typeName; diff --git a/src/CAServer.Application/CAServerApplicationAutoMapperProfile.cs b/src/CAServer.Application/CAServerApplicationAutoMapperProfile.cs index 946c40102..837ab85c7 100644 --- a/src/CAServer.Application/CAServerApplicationAutoMapperProfile.cs +++ b/src/CAServer.Application/CAServerApplicationAutoMapperProfile.cs @@ -14,7 +14,6 @@ using CAServer.Commons; using CAServer.Contacts; using CAServer.ContractEventHandler; -using CAServer.CryptoGift.Dtos; using CAServer.DataReporting.Dtos; using CAServer.DataReporting.Etos; using CAServer.Dtos; @@ -22,11 +21,13 @@ using CAServer.EnumType; using CAServer.Etos; using CAServer.Etos.Chain; +using CAServer.FreeMint.Dtos; using CAServer.Grains.Grain.Account; using CAServer.Grains.Grain.ApplicationHandler; using CAServer.Grains.Grain.Bookmark.Dtos; using CAServer.Grains.Grain.Contacts; using CAServer.Grains.Grain.CryptoGift; +using CAServer.Grains.Grain.FreeMint; using CAServer.Grains.Grain.Growth; using CAServer.Grains.Grain.Guardian; using CAServer.Grains.Grain.ImTransfer; @@ -39,6 +40,7 @@ using CAServer.Grains.State; using CAServer.Grains.State.UserGuide; using CAServer.Grains.State.ValidateOriginChainId; +using CAServer.Growth.Dtos; using CAServer.Growth.Etos; using CAServer.Guardian; using CAServer.Hubs; @@ -82,6 +84,7 @@ using CAServer.Verifier.Dtos; using CAServer.Verifier.Etos; using CoinGecko.Entities.Response.Coins; +using Google.Protobuf; using Portkey.Contracts.CA; using Volo.Abp.Application.Dtos; using Volo.Abp.AutoMapper; @@ -93,7 +96,10 @@ using Token = CAServer.UserAssets.Dtos.Token; using VerificationInfo = CAServer.Account.VerificationInfo; using Google.Protobuf.Collections; -using static Google.Protobuf.WellKnownTypes.TimeExtensions; +using Google.Protobuf.WellKnownTypes; +using Microsoft.IdentityModel.Tokens; +using Enum = System.Enum; +using ManagerInfoDto = CAServer.Guardian.ManagerInfoDto; namespace CAServer; @@ -101,6 +107,7 @@ public class CAServerApplicationAutoMapperProfile : Profile { public CAServerApplicationAutoMapperProfile() { + CreateMap(); CreateMap(); CreateMap(); CreateMap(); @@ -801,5 +808,14 @@ public CAServerApplicationAutoMapperProfile() : m.MarketCap.ToString())); CreateMap(); CreateMap(); + CreateMap(); + CreateMap(); + CreateMap(); + CreateMap(); + CreateMap(); + + + CreateMap(); + CreateMap(); } } \ No newline at end of file diff --git a/src/CAServer.Application/CAServerApplicationModule.cs b/src/CAServer.Application/CAServerApplicationModule.cs index b1dfb96ed..e401e6836 100644 --- a/src/CAServer.Application/CAServerApplicationModule.cs +++ b/src/CAServer.Application/CAServerApplicationModule.cs @@ -89,6 +89,12 @@ public override void ConfigureServices(ServiceConfigurationContext context) Configure(configuration.GetSection("Deposit")); Configure(configuration.GetSection("NftToFt")); Configure(configuration.GetSection("ChatBot")); + Configure(configuration.GetSection("FreeMint")); + Configure(configuration.GetSection("ActivityConfigs")); + Configure(configuration.GetSection("BeInvitedConfig")); + Configure(configuration.GetSection("Hamster")); + + context.Services.AddMemoryCache(); diff --git a/src/CAServer.Application/FreeMint/FreeMintAppService.cs b/src/CAServer.Application/FreeMint/FreeMintAppService.cs new file mode 100644 index 000000000..8ddcaeeea --- /dev/null +++ b/src/CAServer.Application/FreeMint/FreeMintAppService.cs @@ -0,0 +1,115 @@ +using System.ComponentModel.DataAnnotations; +using System.Threading.Tasks; +using CAServer.Entities.Es; +using CAServer.FreeMint.Dtos; +using CAServer.FreeMint.Etos; +using CAServer.FreeMint.Provider; +using CAServer.Grains.Grain.FreeMint; +using CAServer.Options; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; +using Orleans; +using Volo.Abp; +using Volo.Abp.Auditing; +using Volo.Abp.EventBus.Distributed; +using Volo.Abp.Users; + +namespace CAServer.FreeMint; + +[RemoteService(false), DisableAuditing] +public class FreeMintAppService : CAServerAppService, IFreeMintAppService +{ + private readonly IClusterClient _clusterClient; + private readonly ILogger _logger; + private readonly FreeMintOptions _freeMintOptions; + private readonly IFreeMintProvider _freeMintProvider; + private readonly IDistributedEventBus _distributedEventBus; + + public FreeMintAppService(ILogger logger, IClusterClient clusterClient, + IOptionsSnapshot freeMintOptions, IFreeMintProvider freeMintProvider, + IDistributedEventBus distributedEventBus) + { + _logger = logger; + _clusterClient = clusterClient; + _freeMintProvider = freeMintProvider; + _distributedEventBus = distributedEventBus; + _freeMintOptions = freeMintOptions.Value; + } + + public async Task GetRecentStatusAsync() + { + var grain = _clusterClient.GetGrain(CurrentUser.GetId()); + return (await grain.GetRecentStatus()).Data; + } + + public async Task GetMintInfoAsync() + { + var grain = _clusterClient.GetGrain(CurrentUser.GetId()); + var mintInfoDto = new GetMintInfoDto() + { + CollectionInfo = _freeMintOptions.CollectionInfo, + IsLimitExceed = grain.CheckLimitExceed().Result, + LimitCount = _freeMintOptions.LimitCount + }; + return mintInfoDto; + } + + public async Task ConfirmAsync(ConfirmRequestDto requestDto) + { + var collectionInfo = _freeMintOptions.CollectionInfo; + var grain = _clusterClient.GetGrain(CurrentUser.GetId()); + + var confirmInfo = ObjectMapper.Map(requestDto); + var saveResult = await grain.SaveMintInfo(new MintNftDto() + { + CollectionInfo = collectionInfo, + ConfirmInfo = confirmInfo + }); + + if (!saveResult.Success) + { + throw new UserFriendlyException(saveResult.Message); + } + + var mintNftInfo = saveResult.Data; + var eto = new FreeMintEto + { + UserId = CurrentUser.GetId(), + CollectionInfo = collectionInfo, + ConfirmInfo = mintNftInfo + }; + + await _distributedEventBus.PublishAsync(eto, false, false); + _logger.LogInformation("publish free mint eto, userId:{userId}, itemId:{itemId}, tokenId:{tokenId}", eto.UserId, + eto.ConfirmInfo.ItemId, eto.ConfirmInfo.TokenId); + + return new ConfirmDto + { + ItemId = mintNftInfo.ItemId, + Name = mintNftInfo.Name, + TokenId = mintNftInfo.TokenId, + Symbol = $"{_freeMintOptions.CollectionInfo.CollectionName.ToUpper()}-{mintNftInfo.TokenId}" + }; + } + + public async Task GetStatusAsync(string itemId) + { + var grain = _clusterClient.GetGrain(CurrentUser.GetId()); + var statusResult = await grain.GetMintStatus(itemId); + if (!statusResult.Success) + { + throw new UserFriendlyException(statusResult.Message); + } + + return new GetStatusDto + { + Status = statusResult.Data.Status + }; + } + + public async Task GetItemInfoAsync([Required] string itemId) + { + var index = await _freeMintProvider.GetFreeMintItemAsync(itemId); + return ObjectMapper.Map(index); + } +} \ No newline at end of file diff --git a/src/CAServer.Application/FreeMint/Provider/IFreeMintProvider.cs b/src/CAServer.Application/FreeMint/Provider/IFreeMintProvider.cs new file mode 100644 index 000000000..2050f72ff --- /dev/null +++ b/src/CAServer.Application/FreeMint/Provider/IFreeMintProvider.cs @@ -0,0 +1,26 @@ +using System.Threading.Tasks; +using AElf.Indexing.Elasticsearch; +using CAServer.Entities.Es; +using Volo.Abp.DependencyInjection; + +namespace CAServer.FreeMint.Provider; + +public interface IFreeMintProvider +{ + Task GetFreeMintItemAsync(string itemId); +} + +public class FreeMintProvider : IFreeMintProvider, ISingletonDependency +{ + private readonly INESTRepository _freeMintRepository; + + public FreeMintProvider(INESTRepository freeMintRepository) + { + _freeMintRepository = freeMintRepository; + } + + public async Task GetFreeMintItemAsync(string itemId) + { + return await _freeMintRepository.GetAsync(itemId); + } +} \ No newline at end of file diff --git a/src/CAServer.Application/Growth/GrowthAppService.cs b/src/CAServer.Application/Growth/GrowthAppService.cs index e3daea73f..2b00e2f53 100644 --- a/src/CAServer.Application/Growth/GrowthAppService.cs +++ b/src/CAServer.Application/Growth/GrowthAppService.cs @@ -1,4 +1,6 @@ using System; +using System.Collections.Generic; +using System.Diagnostics; using System.Threading.Tasks; using CAServer.CAAccount; using CAServer.CAAccount.Dtos; @@ -30,18 +32,21 @@ public class GrowthAppService : CAServerAppService, IGrowthAppService private readonly INickNameAppService _nickNameAppService; private readonly IGrowthProvider _growthProvider; private readonly GrowthOptions _growthOptions; - private readonly ActivityDateRangeOptions _activityDateRangeOptions; + private readonly ActivityConfigOptions _activityConfigOptions; + private readonly HamsterOptions _hamsterOptions; public GrowthAppService(IClusterClient clusterClient, IDistributedEventBus distributedEventBus, IRedDotAppService redDotAppService, INickNameAppService nickNameAppService, - IOptionsSnapshot growthOptions, IGrowthProvider growthProvider, IOptionsSnapshot activityDataRangeOptions) + IOptionsSnapshot growthOptions, IGrowthProvider growthProvider, + IOptionsSnapshot activityConfigOptions, IOptionsSnapshot hamsterOptions) { _clusterClient = clusterClient; _distributedEventBus = distributedEventBus; _redDotAppService = redDotAppService; _nickNameAppService = nickNameAppService; _growthProvider = growthProvider; - _activityDateRangeOptions = activityDataRangeOptions.Value; + _hamsterOptions = hamsterOptions.Value; + _activityConfigOptions = activityConfigOptions.Value; _growthOptions = growthOptions.Value; } @@ -151,21 +156,23 @@ public async Task GetRedirectUrlAsync(string shortLinkCode) $"{_growthOptions.RedirectUrl}?referral_code={growthInfo.InviteCode}&project_code={growthInfo.ProjectCode ?? string.Empty}&networkType={_growthOptions.NetworkType ?? string.Empty}"; } - public async Task GetActivityDateRangeAsync(ActivityEnums activityEnum) + public async Task GetActivityDetailsAsync(ActivityEnums activityEnum) { - - _activityDateRangeOptions.ActivityDateRanges.TryGetValue(activityEnum.ToString(),out var dateRange); - if (dateRange != null) + _activityConfigOptions.ActivityConfigMap.TryGetValue(activityEnum.ToString(), out var config); + if (config != null) { - return new ActivityDateRangeResponseDto + return new ActivityDetailsResponseDto { - StartDate = dateRange.StartDate, - EndDate = dateRange.EndDate + ActivityConfig = ObjectMapper.Map(config.ActivityConfig), + RulesConfig = ObjectMapper.Map(config.RulesConfig), }; } - return new ActivityDateRangeResponseDto(); + + return new ActivityDetailsResponseDto(); } - + + + private async Task GetCaHashAsync() { diff --git a/src/CAServer.Application/Growth/GrowthStatisticAppService.cs b/src/CAServer.Application/Growth/GrowthStatisticAppService.cs index e454228d3..fd988fbfd 100644 --- a/src/CAServer.Application/Growth/GrowthStatisticAppService.cs +++ b/src/CAServer.Application/Growth/GrowthStatisticAppService.cs @@ -1,17 +1,21 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Reflection; using System.Threading.Tasks; using AElf.Indexing.Elasticsearch; using CAServer.CAActivity.Provider; using CAServer.Cache; using CAServer.Commons; using CAServer.Entities.Es; +using CAServer.EnumType; using CAServer.Grains.Grain.ApplicationHandler; using CAServer.Growth.Dtos; using CAServer.Growth.Provider; +using CAServer.Options; using CAServer.UserAssets.Provider; using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; using Nest; using Newtonsoft.Json; using Volo.Abp; @@ -31,16 +35,21 @@ public class GrowthStatisticAppService : CAServerAppService, IGrowthStatisticApp private readonly ILogger _logger; private readonly IUserAssetsProvider _userAssetsProvider; private const int RankLimit = 50; - private const string InitReferralTimesCache = "InitReferralTimesCacheKey"; private const string ReferralCalculateTimesCache = "Portkey:ReferralCalculateTimesCache"; private const int ExpireTime = 360; + private readonly ActivityConfigOptions _activityConfigOptions; + private readonly HamsterOptions _hamsterOptions; + private readonly BeInvitedConfigOptions _beInvitedConfigOptions; + private const string OverHamsterScoreLimitKey = "Portkey:OverHamsterScoreLimitKey"; public GrowthStatisticAppService(IGrowthProvider growthProvider, INESTRepository caHolderRepository, ICacheProvider cacheProvider, IActivityProvider activityProvider, ILogger logger, - IUserAssetsProvider userAssetsProvider) + IUserAssetsProvider userAssetsProvider, IOptionsSnapshot activityConfigOptions, + IOptionsSnapshot hamsterOptions, + IOptionsSnapshot beInvitedConfigOptions) { _growthProvider = growthProvider; _caHolderRepository = caHolderRepository; @@ -48,6 +57,9 @@ public GrowthStatisticAppService(IGrowthProvider growthProvider, _activityProvider = activityProvider; _logger = logger; _userAssetsProvider = userAssetsProvider; + _beInvitedConfigOptions = beInvitedConfigOptions.Value; + _hamsterOptions = hamsterOptions.Value; + _activityConfigOptions = activityConfigOptions.Value; } public async Task GetReferralInfoAsync(ReferralRequestDto input) @@ -70,8 +82,8 @@ public async Task GetReferralTotalCountAsync(ReferralRecordRequestDto input } var caHolder = await _userAssetsProvider.GetCaHolderIndexAsync(CurrentUser.GetId()); - var growthInfo = await _growthProvider.GetReferralRecordListAsync(null, caHolder.CaHash , 0 , - Int16.MaxValue); + var growthInfo = await _growthProvider.GetReferralRecordListAsync(null, caHolder.CaHash, 0, + Int16.MaxValue, null, null, new List { 0 }); return growthInfo?.Count ?? 0; } @@ -83,10 +95,18 @@ public async Task GetReferralRecordList(ReferralRecor } var caHolder = await _userAssetsProvider.GetCaHolderIndexAsync(CurrentUser.GetId()); - var hasNextPage = true; - var referralRecordList = - await _growthProvider.GetReferralRecordListAsync(null, caHolder.CaHash, input.Skip, input.Limit); + var details = GetActivityDetails(input.ActivityEnums); + + var referralRecordList = input.ActivityEnums switch + { + ActivityEnums.Invitation => await _growthProvider.GetReferralRecordListAsync(null, caHolder.CaHash, + input.Skip, input.Limit, null, null, new List { 0 }), + ActivityEnums.Hamster => await _growthProvider.GetReferralRecordListAsync(null, caHolder.CaHash, input.Skip, + input.Limit, Convert.ToDateTime(details.StartDate), Convert.ToDateTime(details.EndDate), + new List { 0, 1 }), + _ => throw new UserFriendlyException("Invalidate Activity.") + }; if (referralRecordList.Count < input.Limit) { hasNextPage = false; @@ -94,13 +114,36 @@ public async Task GetReferralRecordList(ReferralRecor var caHashes = referralRecordList.Select(t => t.CaHash).Distinct().ToList(); var nickNameByCaHashes = await GetNickNameByCaHashes(caHashes); - var records = referralRecordList.Select(index => new ReferralRecordDetailDto + var hamsterDesc = String.Format(CommonConstant.HamsterScore, _hamsterOptions.MinAcornsScore); + + var records = new List(); + foreach (var index in referralRecordList) { - WalletName = nickNameByCaHashes.TryGetValue(index.CaHash, out var indexInfo) ? indexInfo.NickName : "", - IsDirectlyInvite = index.IsDirectlyInvite == 0, - ReferralDate = index.ReferralDate.ToString("yyyy-MM-dd"), - Avatar = nickNameByCaHashes.TryGetValue(index.CaHash, out var caHolderIndex) ? caHolderIndex.Avatar : "", - }).ToList(); + var record = new ReferralRecordDetailDto(); + var walletName = nickNameByCaHashes.TryGetValue(index.CaHash, out var indexInfo) + ? indexInfo.NickName + : ""; + var recordDesc = walletName; + if (index.ReferralType == 0) + { + recordDesc += CommonConstant.SingUp; + } + else + { + recordDesc += hamsterDesc; + } + + record.WalletName = walletName; + record.RecordDesc = recordDesc; + record.Avatar = nickNameByCaHashes.TryGetValue(index.CaHash, out var caHolderIndex) + ? caHolderIndex.Avatar + : ""; + ; + record.IsDirectlyInvite = index.IsDirectlyInvite == 0; + record.ReferralDate = index.ReferralDate.ToString("yyyy-MM-dd"); + records.Add(record); + } + return new ReferralRecordResponseDto { HasNextPage = hasNextPage, @@ -111,19 +154,18 @@ public async Task GetReferralRecordList(ReferralRecor public async Task CalculateReferralRankAsync() { var startTime = 0L; - var referralTimes = await _cacheProvider.Get(ReferralCalculateTimesCache); + var referralTimes = await _cacheProvider.Get(ReferralCalculateTimesCache); if (!referralTimes.HasValue) { - //_activityDateRangeOptions.ActivityDateRanges.TryGetValue(ActivityEnums.Invition.ToString(),out var dateRange); startTime = StringToTimeStamp(CommonConstant.DefaultReferralActivityStartTime); } else { startTime = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds() - 30000; } - + var endTime = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds(); - + var indexerReferralInfo = await _growthProvider.GetReferralInfoAsync(new List(), new List(), new List { MethodName.CreateCAHolder }, startTime, endTime); @@ -161,7 +203,8 @@ await _activityProvider.GetCaHolderInfoAsync(new List(), ? referralCaHash : "", ReferralDate = UnixTimeStampToDateTime(indexer.Timestamp), - ReferralAddress = caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress + ReferralAddress = caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress, + ReferralType = 0 }; var success = await _growthProvider.AddReferralRecordAsync(referralRecord); if (!success) @@ -175,80 +218,132 @@ await _cacheProvider.AddScoreAsync(CommonConstant.ReferralKey, caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress, score + 1); } + var expire = TimeSpan.FromDays(ExpireTime); await _cacheProvider.Set(ReferralCalculateTimesCache, "Init", expire); } - public async Task InitReferralRankAsync() + public async Task GetReferralRecordRankAsync(ReferralRecordRankRequestDto input) { - var expire = TimeSpan.FromHours(ExpireTime); - var initTimes = await _cacheProvider.Get(InitReferralTimesCache); - if (initTimes.HasValue) + var referralRecordRank = new ReferralRecordsRankResponseDto(); + referralRecordRank = input.ActivityEnums switch { - return; - } + ActivityEnums.Invitation => await BuildInvitationRankAsync(input, referralRecordRank), + ActivityEnums.Hamster => await BuildHamsterRankAsync(input, referralRecordRank), + _ => throw new UserFriendlyException("Invalidate Activity.") + }; - var skip = 0; - var limit = 100; - var count = 0; - while (true) + var currentUserReferralInfo = new ReferralRecordsRankDetail(); + if (CurrentUser.Id.HasValue) { - var growthInfos = await _growthProvider.GetAllGrowthInfosAsync(skip, limit); - if (growthInfos.IsNullOrEmpty()) + var caHolder = await _userAssetsProvider.GetCaHolderIndexAsync(CurrentUser.GetId()); + var caHolderInfo = + await _activityProvider.GetCaHolderInfoAsync(new List(), caHolder.CaHash); + var currentCaHolder = await _activityProvider.GetCaHolderAsync(caHolder.CaHash); + _logger.LogDebug("CurrentUser holder info is {info}", JsonConvert.SerializeObject(currentCaHolder)); + var currentRank = await _cacheProvider.GetRankAsync(CommonConstant.ReferralKey, + caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress); + if (currentRank == -1) { - break; + currentUserReferralInfo.Rank = 0; + currentUserReferralInfo.ReferralTotalCount = 0; + currentUserReferralInfo.CaAddress = caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress; + currentUserReferralInfo.Avatar = currentCaHolder != null ? currentCaHolder.Avatar : ""; + currentUserReferralInfo.WalletName = currentCaHolder != null ? currentCaHolder.NickName : ""; } - - foreach (var growthInfo in growthInfos) + else { - var indexerReferralInfo = - await _growthProvider.GetReferralInfoAsync(new List(), - new List { growthInfo.InviteCode }, - new List { MethodName.CreateCAHolder }, 0, 0); - if (indexerReferralInfo.ReferralInfo.IsNullOrEmpty() || indexerReferralInfo.ReferralInfo.Count == 0) + List scoreList; + var currentReferralCount = 0d; + switch (input.ActivityEnums) { - _logger.LogDebug("Current CaHash is {caHash} have no invite user.", growthInfo.CaHash); - continue; + case ActivityEnums.Invitation: + var sortedEntries = + await _cacheProvider.GetTopAsync(CommonConstant.ReferralKey, 0, currentRank + 1); + scoreList = sortedEntries.Select(t => t.Score).ToList(); + currentReferralCount = await _cacheProvider.GetScoreAsync(CommonConstant.ReferralKey, + caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress); + break; + case ActivityEnums.Hamster: + var hamsterSortedEntries = + await _cacheProvider.GetTopAsync(CommonConstant.HamsterRankKey, 0, currentRank + 1); + scoreList = hamsterSortedEntries.Select(t => t.Score).ToList(); + currentReferralCount = await _cacheProvider.GetScoreAsync(CommonConstant.HamsterRankKey, + caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress); + break; + default: + throw new UserFriendlyException("Invalidate Activity."); } - var caHolderInfo = - await _activityProvider.GetCaHolderInfoAsync(new List(), growthInfo.CaHash); - foreach (var referralRecordIndex in indexerReferralInfo.ReferralInfo.Select(referralInfo => - new ReferralRecordIndex - { - CaHash = referralInfo.CaHash, - ReferralCode = growthInfo.InviteCode, - IsDirectlyInvite = 0, - ReferralDate = UnixTimeStampToDateTime(referralInfo.Timestamp), - ReferralCaHash = growthInfo.CaHash, - ReferralAddress = caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress - })) - { - _logger.LogDebug("Insert Referral detail is {detail}", - JsonConvert.SerializeObject(referralRecordIndex)); - var success = await _growthProvider.AddReferralRecordAsync(referralRecordIndex); - if (success) - { - _logger.LogDebug("Begin Redis add score,key is {address}", - caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress); - await _cacheProvider.AddScoreAsync(CommonConstant.ReferralKey, - caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress, - indexerReferralInfo.ReferralInfo.Count); - } + scoreList.Sort(); + scoreList.Reverse(); + currentUserReferralInfo.Rank = scoreList.IndexOf(currentReferralCount) + 1; + currentUserReferralInfo.ReferralTotalCount = Convert.ToInt16(currentReferralCount); + currentUserReferralInfo.CaAddress = caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress; + currentUserReferralInfo.Avatar = currentCaHolder != null ? currentCaHolder.Avatar : ""; + currentUserReferralInfo.WalletName = currentCaHolder != null ? currentCaHolder.NickName : ""; + } + } - skip += limit; - count += growthInfos.Count; - } + referralRecordRank.CurrentUserReferralRecordsRankDetail = currentUserReferralInfo; + referralRecordRank.Invitations = _hamsterOptions.Invitations; + return referralRecordRank; + } + + private async Task BuildHamsterRankAsync(ReferralRecordRankRequestDto input, + ReferralRecordsRankResponseDto response) + { + var hasNext = true; + var list = new List(); + var length = await _cacheProvider.GetSortedSetLengthAsync(CommonConstant.HamsterRankKey); + var entries = await _cacheProvider.GetTopAsync(CommonConstant.HamsterRankKey, 0, input.Skip + input.Limit - 1); + if (length <= input.Skip + input.Limit) + { + hasNext = false; + } + + var scores = entries.Select(t => t.Score).ToList(); + scores.Sort(); + scores.Reverse(); + var skipList = entries.Skip(input.Skip).Take(input.Limit).ToArray(); + foreach (var entry in skipList) + { + var caAddress = entry.Element; + var holderInfo = + await _activityProvider.GetCaHolderInfoAsync(new List { caAddress }, null); + var caHash = holderInfo.CaHolderInfo.FirstOrDefault()?.CaHash; + var caHolder = await _activityProvider.GetCaHolderAsync(caHash); + _logger.LogDebug("Get caHolder is {caHolder},caAddress is {address},caHash is {caHash}", + JsonConvert.SerializeObject(caHolder), caAddress, caHash); + var score = await _cacheProvider.GetScoreAsync(CommonConstant.HamsterRankKey, entry.Element); + if (scores.IndexOf(score) + 1 > RankLimit) + { + hasNext = false; + break; } + + var referralRecordsRankDetail = new ReferralRecordsRankDetail + { + Rank = scores.IndexOf(score) + 1, + CaAddress = entry.Element, + ReferralTotalCount = Convert.ToInt16(entry.Score), + Avatar = caHolder != null ? caHolder.Avatar : "", + WalletName = caHolder != null ? caHolder.NickName : "" + }; + list.Add(referralRecordsRankDetail); } - await _cacheProvider.Increase(InitReferralTimesCache, 1, expire); + response.HasNext = hasNext; + response.ReferralRecordsRank = list; + return response; } - public async Task GetReferralRecordRankAsync(ReferralRecordRankRequestDto input) + private async Task BuildInvitationRankAsync(ReferralRecordRankRequestDto input, + ReferralRecordsRankResponseDto response) { var hasNext = true; + var list = new List(); var length = await _cacheProvider.GetSortedSetLengthAsync(CommonConstant.ReferralKey); var entries = await _cacheProvider.GetTopAsync(CommonConstant.ReferralKey, 0, input.Skip + input.Limit - 1); if (length <= input.Skip + input.Limit) @@ -260,8 +355,6 @@ public async Task GetReferralRecordRankAsync(Ref scores.Sort(); scores.Reverse(); var skipList = entries.Skip(input.Skip).Take(input.Limit).ToArray(); - var list = new List(); - foreach (var entry in skipList) { var caAddress = entry.Element; @@ -289,50 +382,287 @@ public async Task GetReferralRecordRankAsync(Ref list.Add(referralRecordsRankDetail); } - var currentUserReferralInfo = new ReferralRecordsRankDetail(); - if (CurrentUser.Id.HasValue) + response.HasNext = hasNext; + response.ReferralRecordsRank = list; + return response; + } + + public async Task CalculateHamsterDataAsync() + { + var details = GetActivityConfig(ActivityEnums.Hamster); + var startTime = Convert.ToDateTime(details.StartDate); + var endTime = DateTime.UtcNow; + if (new DateTimeOffset(endTime).ToUnixTimeSeconds() > + new DateTimeOffset(Convert.ToDateTime(details.EndDate)).ToUnixTimeSeconds()) { - var caHolder = await _userAssetsProvider.GetCaHolderIndexAsync(CurrentUser.GetId()); - var caHolderInfo = - await _activityProvider.GetCaHolderInfoAsync(new List(), caHolder.CaHash); - var currentCaHolder = await _activityProvider.GetCaHolderAsync(caHolder.CaHash); - _logger.LogDebug("CurrentUser holder info is {info}", JsonConvert.SerializeObject(currentCaHolder)); - var currentRank = await _cacheProvider.GetRankAsync(CommonConstant.ReferralKey, - caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress); - if (currentRank == -1) + _logger.LogDebug("Current activity has been ended."); + return; + } + + var referralRecordList = + await _growthProvider.GetReferralRecordListAsync(null, null, 0, Int16.MaxValue, startTime, endTime, + new List { 0 }); + var list = referralRecordList.Where(t => t.ReferralType == 0).ToList(); + if (list.IsNullOrEmpty() || list.Count == 0) + { + _logger.LogDebug("Hamster Referral data from ES is null."); + return; + } + + var recordGroup = + list.GroupBy(t => t.ReferralCaHash); + foreach (var group in recordGroup) + { + var hamsterReferralInfo = new Dictionary(); + var referralRecords = group.ToList(); + var hamsterReferralDic = referralRecords.ToDictionary(t => t.CaHash, k => k); + var caHash = group.Key; + var addresses = await GetHamsterReferralAddressAsync(referralRecords, hamsterReferralInfo); + + var result = new List(); + + if (addresses.Count >= 100) { - currentUserReferralInfo.Rank = 0; - currentUserReferralInfo.ReferralTotalCount = 0; - currentUserReferralInfo.CaAddress = caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress; - currentUserReferralInfo.Avatar = currentCaHolder != null ? currentCaHolder.Avatar : ""; - currentUserReferralInfo.WalletName = currentCaHolder != null ? currentCaHolder.NickName : ""; + for (var i = 0; i < addresses.Count; i += 50) + { + var queryList = addresses.GetRange(i, Math.Min(50, list.Count - i)); + var hamsterScoreList = + await _growthProvider.GetHamsterScoreListAsync(queryList, startTime, endTime); + var scoreResult = hamsterScoreList.GetScoreInfos + .Where(t => t.SumScore / 100000000 >= _hamsterOptions.MinAcornsScore).ToList(); + if (!scoreResult.IsNullOrEmpty()) + { + result.AddRange(scoreResult); + } + } } else { - var sortedEntries = await _cacheProvider.GetTopAsync(CommonConstant.ReferralKey, 0, currentRank + 1); - var scoreList = sortedEntries.Select(t => t.Score).ToList(); - scoreList.Sort(); - scoreList.Reverse(); - var currentReferralCount = await _cacheProvider.GetScoreAsync(CommonConstant.ReferralKey, - caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress); - currentUserReferralInfo.Rank = scoreList.IndexOf(currentReferralCount) + 1; - currentUserReferralInfo.ReferralTotalCount = Convert.ToInt16(currentReferralCount); - currentUserReferralInfo.CaAddress = caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress; - currentUserReferralInfo.Avatar = currentCaHolder != null ? currentCaHolder.Avatar : ""; - currentUserReferralInfo.WalletName = currentCaHolder != null ? currentCaHolder.NickName : ""; + var hamsterScoreList = await _growthProvider.GetHamsterScoreListAsync(addresses, startTime, endTime); + result = hamsterScoreList.GetScoreInfos + .Where(t => t.SumScore / 100000000 >= _hamsterOptions.MinAcornsScore).ToList(); + } + + if (result.IsNullOrEmpty()) + { + _logger.LogDebug("No scores over limit."); + continue; + } + + var caHolderInfo = + await _activityProvider.GetCaHolderInfoAsync(new List(), + caHash); + await _cacheProvider.AddScoreAsync(CommonConstant.HamsterRankKey, + caHolderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress, result.Count); + + foreach (var hamster in result) + { + var address = hamster.CaAddress.Split("_")[1]; + var record = + await _growthProvider.GetReferralRecordListAsync( + hamsterReferralInfo[address], caHash, 0, + 1, + null, null, new List { 1 }); + if (!record.IsNullOrEmpty()) + { + continue; + } + + var referralCaHash = hamsterReferralInfo[address]; + var index = new ReferralRecordIndex + { + CaHash = referralCaHash, + ReferralCode = hamsterReferralDic[referralCaHash].ReferralCode, + IsDirectlyInvite = 0, + ReferralCaHash = caHash, + ReferralDate = DateTime.UtcNow, + ReferralAddress = hamsterReferralDic[referralCaHash].ReferralAddress, + ReferralType = 1 + }; + var addResult = await _growthProvider.AddReferralRecordAsync(index); + if (!addResult) + { + continue; + } + + var expired = TimeSpan.FromDays(_hamsterOptions.HamsterExpired); + await _cacheProvider.SetAddAsync(OverHamsterScoreLimitKey, hamster.CaAddress, expired); } } + } - var referralRecordRank = new ReferralRecordsRankResponseDto + private async Task> GetHamsterReferralAddressAsync(List referralRecords, + Dictionary userInfoDic) + { + var addresses = new List(); + foreach (var index in referralRecords) { - HasNext = hasNext, - ReferralRecordsRank = list, - CurrentUserReferralRecordsRankDetail = currentUserReferralInfo + var holderInfo = + await _activityProvider.GetCaHolderInfoAsync(new List { }, index.CaHash); + var address = holderInfo.CaHolderInfo.FirstOrDefault()?.CaAddress; + if (string.IsNullOrEmpty(address)) + { + continue; + } + + var formatAddress = _hamsterOptions.AddressPrefix + address + _hamsterOptions.AddressSuffix; + var overLimitAddress = await _cacheProvider.SetMembersAsync(OverHamsterScoreLimitKey); + if (overLimitAddress.Contains(formatAddress)) + { + continue; + } + + addresses.Add(formatAddress); + userInfoDic.Add(address, holderInfo.CaHolderInfo.FirstOrDefault()?.CaHash); + } + + return addresses; + } + + public async Task GetRewardProgressAsync(ActivityEnums activityEnum) + { + if (!CurrentUser.Id.HasValue) + { + throw new AbpAuthorizationException("Unauthorized."); + } + + var caHolder = await _userAssetsProvider.GetCaHolderIndexAsync(CurrentUser.GetId()); + var details = GetActivityDetails(activityEnum); + var data = new RewardProgressResponseDto(); + switch (activityEnum) + { + case ActivityEnums.Invitation: + var invitationCount = await GetReferralTotalCountAsync(new ReferralRecordRequestDto()); + var invitationDto = new InvitationRewardProgressDto + { + SignUpCount = invitationCount + }; + var progressList = ModelToDictionary(invitationDto); + data.Data = progressList; + data.RewardProcessCount = ""; + return data; + case ActivityEnums.Hamster: + { + HamsterRewardProgressDto hamsterProgress; + var referralList = + await _growthProvider.GetReferralRecordListAsync(caHolder.CaHash, null, 0, Int16.MaxValue, + Convert.ToDateTime(details.StartDate), Convert.ToDateTime(details.EndDate), + new List { 1 }); + var reward = ""; + var indexes = await GetHamsterSignUpCount(caHolder.CaHash, details.StartDate, details.EndDate); + if (indexes.Count == 0) + { + hamsterProgress = new HamsterRewardProgressDto + { + SignUpCount = 0, + HamsterCount = 0, + }; + if (referralList == null || referralList.Count == 0) + { + reward = 0 + " ELF"; + } + else + { + reward = _hamsterOptions.ReferralReward + " ELF"; + } + } + else + { + var referralRecordList = + await _growthProvider.GetReferralRecordListAsync(null, caHolder.CaHash, 0, Int16.MaxValue, + Convert.ToDateTime(details.StartDate), Convert.ToDateTime(details.EndDate), + new List { 1 }); + hamsterProgress = new HamsterRewardProgressDto + { + SignUpCount = indexes.Count, + HamsterCount = referralRecordList.Count, + }; + + if (referralList == null || referralList.Count == 0) + { + reward = referralRecordList.Count * _hamsterOptions.HamsterReward + " ELF"; + } + else + { + reward = referralRecordList.Count * _hamsterOptions.HamsterReward + + _hamsterOptions.ReferralReward + " ELF"; + } + } + + var list = ModelToDictionary(hamsterProgress); + data.Data = list; + data.RewardProcessCount = reward; + return data; + } + default: + throw new UserFriendlyException("Invalidate Activity"); + } + } + + public async Task GetBeInvitedConfigAsync() + { + var result = new BeInvitedConfigResponseDto(); + var data = new Dictionary(); + var config = _beInvitedConfigOptions.BeInvitedConfig; + foreach (var key in config.Keys) + { + var response = ObjectMapper.Map(config[key]); + response.TaskConfigs = + ObjectMapper.Map, List>(config[key].TaskConfigInfos); + response.Notice = ObjectMapper.Map(config[key].NoticeInfo); + data.Add(key, response); + } + + result.Data = data; + return result; + } + + public async Task ActivityBaseInfoAsync() + { + var data = new List(); + var configs = _activityConfigOptions.ActivityConfigMap; + foreach (var key in configs.Keys) + { + var baseInfo = new ActivityBaseInfo(); + var config = configs[key]; + baseInfo.ActivityName = key; + baseInfo.StartDate = config.ActivityConfig.StartDate; + baseInfo.EndDate = config.ActivityConfig.EndDate; + baseInfo.IsDefault = config.IsDefault; + var activityValue = (int)Enum.Parse(typeof(ActivityEnums), key); + baseInfo.ActivityValue = activityValue; + var sDate = DateTime.Parse(config.ActivityConfig.StartDate).ToString("MM.dd"); + var eDate = DateTime.Parse(config.ActivityConfig.EndDate).ToString("MM.dd"); + baseInfo.DateRange = sDate + "-" + eDate; + data.Add(baseInfo); + } + + return new ActivityBaseInfoDto + { + Data = data }; - return referralRecordRank; - //return new ReferralRecordsRankResponseDto(); } + private ActivityConfig GetActivityDetails(ActivityEnums activityEnum) + { + _activityConfigOptions.ActivityConfigMap.TryGetValue(activityEnum.ToString(), out var config); + return config != null ? config.ActivityConfig : new ActivityConfig(); + } + + private async Task> GetHamsterSignUpCount(string caHash, string startDate, string endDate) + { + var growthInfo = await _growthProvider.GetReferralRecordListAsync(null, caHash, 0, + Int16.MaxValue, Convert.ToDateTime(startDate), Convert.ToDateTime(endDate), new List { 0 }); + return growthInfo; + } + + private ActivityConfig GetActivityConfig(ActivityEnums activityEnum) + { + _activityConfigOptions.ActivityConfigMap.TryGetValue(activityEnum.ToString(), out var config); + return config != null ? config.ActivityConfig : new ActivityConfig(); + } + + private async Task> GetNickNameByCaHashes(List caHashes) { var caHolderList = await GetCaHolderByCaHashAsync(caHashes); @@ -504,4 +834,26 @@ private long StringToTimeStamp(string dateString) var dateTime = DateTime.Parse(dateString); return ((DateTimeOffset)dateTime).ToUnixTimeSeconds(); } + + private List ModelToDictionary(object obj) + { + if (obj == null) + { + throw new ArgumentNullException(nameof(obj)); + } + + var modelToDic = obj.GetType() + .GetProperties(BindingFlags.Public | BindingFlags.Instance) + .ToDictionary( + prop => prop.Name, + prop => prop.GetValue(obj, null) + ); + + + return modelToDic.Keys.Select(model => new ReferralCountDto() + { + ActivityName = _hamsterOptions.HamsterCopyWriting[model], ReferralCount = modelToDic[model].ToString() + }) + .ToList(); + } } \ No newline at end of file diff --git a/src/CAServer.Application/Growth/Provider/GrowthProvider.cs b/src/CAServer.Application/Growth/Provider/GrowthProvider.cs index bee128a90..066ad53ed 100644 --- a/src/CAServer.Application/Growth/Provider/GrowthProvider.cs +++ b/src/CAServer.Application/Growth/Provider/GrowthProvider.cs @@ -1,11 +1,18 @@ using System; using System.Collections.Generic; +using System.Linq; +using System.Net.Http; +using System.Runtime.InteropServices.JavaScript; using System.Threading.Tasks; using AElf.Indexing.Elasticsearch; using CAServer.Common; using CAServer.Entities.Es; using CAServer.Growth.Dtos; +using CAServer.Options; using GraphQL; +using GraphQL.Client.Http; +using GraphQL.Client.Serializer.Newtonsoft; +using Microsoft.Extensions.Options; using Nest; using Volo.Abp.DependencyInjection; @@ -23,9 +30,10 @@ Task GetReferralInfoAsync(List caHashes, List r Task> GetAllGrowthInfosAsync(int skip, int limit); Task> GetReferralRecordListAsync(string caHash, string referralCaHash, int skip, - int limit); + int limit, DateTime? startDate, DateTime? endDate, List referralTypes); Task AddReferralRecordAsync(ReferralRecordIndex referralRecordIndex); + Task GetHamsterScoreListAsync(List addresses, DateTime startTime, DateTime endTime); } public class GrowthProvider : IGrowthProvider, ISingletonDependency @@ -34,13 +42,16 @@ public class GrowthProvider : IGrowthProvider, ISingletonDependency private readonly INESTRepository _referralRecordRepository; private readonly IGraphQLHelper _graphQlHelper; + private readonly HamsterOptions _hamsterOptions; public GrowthProvider(INESTRepository growthRepository, IGraphQLHelper graphQlHelper, - INESTRepository referralRecordRepository) + INESTRepository referralRecordRepository, + IOptionsSnapshot hamsterOptions) { _growthRepository = growthRepository; _graphQlHelper = graphQlHelper; _referralRecordRepository = referralRecordRepository; + _hamsterOptions = hamsterOptions.Value; } public async Task GetGrowthInfoByLinkCodeAsync(string shortLinkCode) @@ -111,7 +122,7 @@ public async Task> GetAllGrowthInfosAsync(int skip, int limit) } public async Task> GetReferralRecordListAsync(string caHash, string referralCaHash, - int skip, int limit) + int skip, int limit, DateTime? startDate, DateTime? endDate, List referralTypes) { var mustQuery = new List, QueryContainer>>(); @@ -125,6 +136,23 @@ public async Task> GetReferralRecordListAsync(string c mustQuery.Add(q => q.Terms(i => i.Field(f => f.ReferralCaHash).Terms(referralCaHash))); } + if (!referralTypes.IsNullOrEmpty()) + { + mustQuery.Add(q => q.Terms(i => i.Field(f => f.ReferralType).Terms(referralTypes))); + } + + if (startDate != null) + { + mustQuery.Add(q => + q.DateRange(i => i.Field(f => f.ReferralDate).TimeZone("GMT+8").GreaterThanOrEquals(startDate))); + } + + if (endDate != null) + { + mustQuery.Add(q => + q.DateRange(i => i.Field(f => f.ReferralDate).TimeZone("GMT+8").LessThanOrEquals(endDate))); + } + QueryContainer Filter(QueryContainerDescriptor f) => f.Bool(b => b.Must(mustQuery)); var (total, data) = await _referralRecordRepository.GetListAsync(Filter, sortExp: k => k.ReferralDate, sortType: SortOrder.Descending, skip: skip, limit: limit); @@ -133,14 +161,36 @@ public async Task> GetReferralRecordListAsync(string c public async Task AddReferralRecordAsync(ReferralRecordIndex referralRecordIndex) { - var record= - await GetReferralRecordListAsync(referralRecordIndex.CaHash, referralRecordIndex.ReferralCaHash, 0, 1); + var record = + await GetReferralRecordListAsync(referralRecordIndex.CaHash, referralRecordIndex.ReferralCaHash, 0, 1, + null, null, new List { referralRecordIndex.ReferralType}); if (!record.IsNullOrEmpty()) { return false; } + await _referralRecordRepository.AddAsync(referralRecordIndex); return true; + } + + public async Task GetHamsterScoreListAsync(List caAddressList, DateTime beginTime, + DateTime endTime) + { + var graphQlClient = new GraphQLHttpClient(_hamsterOptions.HamsterEndPoints, + new NewtonsoftJsonSerializer()); + var sendQueryAsync = await graphQlClient.SendQueryAsync(new GraphQLRequest + { + Query = @" + query($caAddressList:[String!]!,$beginTime:DateTime,$endTime:DateTime) { + getScoreInfos(getScoreInfosDto: {caAddressList:$caAddressList,beginTime:$beginTime,endTime:$endTime}){ + caAddress,sumScore,symbol,decimals} + }", + Variables = new + { + caAddressList, beginTime, endTime + } + }); + return sendQueryAsync.Data; } } \ No newline at end of file diff --git a/src/CAServer.Application/Hubs/HubService.cs b/src/CAServer.Application/Hubs/HubService.cs index 43d865168..35110cd45 100755 --- a/src/CAServer.Application/Hubs/HubService.cs +++ b/src/CAServer.Application/Hubs/HubService.cs @@ -3,13 +3,14 @@ using System.Threading; using System.Threading.Tasks; using CAServer.Entities.Es; -using CAServer.Grains.Grain.ThirdPart; +using CAServer.EnumType; +using CAServer.Growth; +using CAServer.Growth.Dtos; using CAServer.Hub; using CAServer.Options; using CAServer.ThirdPart; using CAServer.ThirdPart.Dtos; using CAServer.ThirdPart.Dtos.Order; -using CAServer.ThirdPart.Provider; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Newtonsoft.Json; @@ -37,11 +38,14 @@ public class HubService : CAServerAppService, IHubService private readonly Dictionary _clientOrderListener = new(); private readonly Dictionary> _orderNotifyListeners = new(); + private readonly IGrowthStatisticAppService _statisticAppService; + public HubService(IHubProvider hubProvider, IHubCacheProvider hubCacheProvider, IHubProvider caHubProvider, IThirdPartOrderProvider thirdPartOrderProvider, IObjectMapper objectMapper, IConnectionProvider connectionProvider, IOptionsMonitor thirdPartOptions, - ILogger logger, IOrderWsNotifyProvider orderWsNotifyProvider) + ILogger logger, IOrderWsNotifyProvider orderWsNotifyProvider, + IGrowthStatisticAppService statisticAppService) { _hubProvider = hubProvider; _hubCacheProvider = hubCacheProvider; @@ -52,9 +56,10 @@ public HubService(IHubProvider hubProvider, IHubCacheProvider hubCacheProvider, _thirdPartOptions = thirdPartOptions; _logger = logger; _orderWsNotifyProvider = orderWsNotifyProvider; + _statisticAppService = statisticAppService; } - public async Task Ping(HubRequestContext context, string content) + public async Task Ping(HubRequestContext context, string content) { const string PingMethodName = "Ping"; _hubProvider.ResponseAsync(new HubResponse() { RequestId = context.RequestId, Body = content }, @@ -122,17 +127,96 @@ public async Task Ack(string clientId, string requestId) { await _hubCacheProvider.RemoveResponseByClientId(clientId, requestId); } - + public async Task RequestRampOrderStatus(string clientId, string orderId) { await RequestOrderStatusAsync(clientId, orderId); } - + + public async Task ReferralRecordListAsync(ReferralRecordRequestDto input) + { + while (true) + { + try + { + // stop while disconnected + if (_connectionProvider.GetConnectionByClientId(input.TargetClientId) != null) + { + await GetReferralRecordListAsync(input); + } + _logger.LogWarning("Get ReferralRecords STOP"); + break; + } + catch (Exception e) + { + _logger.LogError(e, ""); + break; + } + } + } + + public async Task RewardProgressAsync(ActivityEnums activityEnums, string targetClientId) + { + while (true) + { + try + { + // stop while disconnected + if (_connectionProvider.GetConnectionByClientId(targetClientId) != null) + { + await RewardProgressChangedAsync(activityEnums, targetClientId); + } + _logger.LogWarning("Get RewardProgressChanged STOP"); + break; + } + catch (Exception e) + { + _logger.LogError(e, ""); + break; + } + } + } + + private async Task RewardProgressChangedAsync(ActivityEnums activityEnums, string targetClientId) + { + var rewardProgressResponseDto = await _statisticAppService.GetRewardProgressAsync(activityEnums); + try + { + var methodName = "RewardProgressChanged"; + await _caHubProvider.ResponseAsync( + new HubResponseBase(rewardProgressResponseDto), targetClientId, + methodName); + } + catch (Exception e) + { + _logger.LogError(e, "RewardProgressChanged error, clientId={ClientId}, enums={enums}", targetClientId, + activityEnums.ToString()); + } + } + + private async Task GetReferralRecordListAsync(ReferralRecordRequestDto dto) + { + var referralRecordResponseDto = await _statisticAppService.GetReferralRecordList(dto); + try + { + var methodName = "ReferralRecordListChanged"; + await _caHubProvider.ResponseAsync( + new HubResponseBase(referralRecordResponseDto), dto.TargetClientId, + methodName); + } + catch (Exception e) + { + _logger.LogError(e, "Get ReferralRecordList error, clientId={ClientId}, dto={dto}", dto.TargetClientId, + JsonConvert.SerializeObject(dto)); + } + } + + public async Task RequestNFTOrderStatusAsync(string clientId, string orderId) { await RequestOrderStatusAsync(clientId, orderId); } - + public async Task RequestOrderStatusAsync(string clientId, string orderId) { await _orderWsNotifyProvider.RegisterOrderListenerAsync(clientId, orderId, async notifyOrderDto => @@ -140,14 +224,16 @@ await _orderWsNotifyProvider.RegisterOrderListenerAsync(clientId, orderId, async try { var methodName = notifyOrderDto.IsNftOrder() ? "OnNFTOrderChanged" : "OnRampOrderChanged"; - await _caHubProvider.ResponseAsync(new HubResponseBase(notifyOrderDto), clientId, methodName); + await _caHubProvider.ResponseAsync(new HubResponseBase(notifyOrderDto), clientId, + methodName); } catch (Exception e) { - _logger.LogError(e, "notify orderStatus error, clientId={ClientId}, orderId={OrderId}", clientId, orderId); + _logger.LogError(e, "notify orderStatus error, clientId={ClientId}, orderId={OrderId}", clientId, + orderId); } }); - + // notify current order immediately var currentOrder = await _thirdPartOrderProvider.GetThirdPartOrderIndexAsync(orderId); var notifyOrderDto = _objectMapper.Map(currentOrder); @@ -156,8 +242,8 @@ await _orderWsNotifyProvider.RegisterOrderListenerAsync(clientId, orderId, async public async Task RequestOrderTransferredAsync(string targetClientId, string orderId) { - await RequestConditionOrderAsync(targetClientId, orderId, - esOrderData => esOrderData.Status == OrderStatusType.Transferred.ToString() + await RequestConditionOrderAsync(targetClientId, orderId, + esOrderData => esOrderData.Status == OrderStatusType.Transferred.ToString() || esOrderData.Status == OrderStatusType.TransferFailed.ToString() || esOrderData.Status == OrderStatusType.Invalid.ToString(), "onOrderTransferredReceived"); @@ -165,13 +251,14 @@ await RequestConditionOrderAsync(targetClientId, orderId, public async Task RequestAchTxAddressAsync(string targetClientId, string orderId) { - await RequestConditionOrderAsync(targetClientId, orderId, + await RequestConditionOrderAsync(targetClientId, orderId, esOrderData => !string.IsNullOrWhiteSpace(esOrderData.Address), "onAchTxAddressReceived"); } - - private async Task RequestConditionOrderAsync(string targetClientId, string orderId, Func matchCondition, string callbackMethod) + + private async Task RequestConditionOrderAsync(string targetClientId, string orderId, + Func matchCondition, string callbackMethod) { var cts = new CancellationTokenSource(_thirdPartOptions.CurrentValue.Timer.TimeoutMillis); while (!cts.IsCancellationRequested) @@ -181,7 +268,8 @@ private async Task RequestConditionOrderAsync(string targetClientId, string orde // stop while disconnected if (_connectionProvider.GetConnectionByClientId(targetClientId) == null) { - _logger.LogWarning("Get third-part order {OrderId} {CallbackMethod} STOP, connection disconnected", + _logger.LogWarning( + "Get third-part order {OrderId} {CallbackMethod} STOP, connection disconnected", orderId, callbackMethod); break; } @@ -190,36 +278,39 @@ private async Task RequestConditionOrderAsync(string targetClientId, string orde var esOrderData = await _thirdPartOrderProvider.GetThirdPartOrderAsync(grainId.ToString()); if (esOrderData == null || esOrderData.Id == new Guid()) { - _logger.LogError("This order {OrderId} {CallbackMethod} not exists in the es", orderId, callbackMethod); + _logger.LogError("This order {OrderId} {CallbackMethod} not exists in the es", orderId, + callbackMethod); break; } // condition mot match if (!matchCondition(esOrderData)) { - _logger.LogWarning("Get third-part order {OrderId} {CallbackMethod} condition not match, wait for next time", + _logger.LogWarning( + "Get third-part order {OrderId} {CallbackMethod} condition not match, wait for next time", orderId, callbackMethod); await Task.Delay(TimeSpan.FromSeconds(_thirdPartOptions.CurrentValue.Timer.DelaySeconds)); continue; } // push address to client via ws - var bodyDict = JsonConvert.DeserializeObject>(JsonConvert.SerializeObject( - new NotifyOrderDto() - { - OrderId = esOrderData.Id, - MerchantName = esOrderData.MerchantName, - Address = esOrderData.Address, - Network = esOrderData.Network, - Crypto = esOrderData.Crypto, - CryptoAmount = esOrderData.CryptoAmount, - Status = esOrderData.Status - }, - Formatting.None, - new JsonSerializerSettings - { - ContractResolver = new CamelCasePropertyNamesContractResolver() - })); + var bodyDict = JsonConvert.DeserializeObject>( + JsonConvert.SerializeObject( + new NotifyOrderDto() + { + OrderId = esOrderData.Id, + MerchantName = esOrderData.MerchantName, + Address = esOrderData.Address, + Network = esOrderData.Network, + Crypto = esOrderData.Crypto, + CryptoAmount = esOrderData.CryptoAmount, + Status = esOrderData.Status + }, + Formatting.None, + new JsonSerializerSettings + { + ContractResolver = new CamelCasePropertyNamesContractResolver() + })); await _caHubProvider.ResponseAsync( new HubResponseBase> { @@ -233,11 +324,14 @@ await _caHubProvider.ResponseAsync( } catch (OperationCanceledException oce) { - _logger.LogError(oce, "Timed out waiting for third-part order { {OrderId} {CallbackMethod} update status", orderId, callbackMethod); + _logger.LogError(oce, + "Timed out waiting for third-part order { {OrderId} {CallbackMethod} update status", orderId, + callbackMethod); } catch (Exception e) { - _logger.LogError(e, "An exception occurred during the query third-part order {OrderId} {CallbackMethod} ", + _logger.LogError(e, + "An exception occurred during the query third-part order {OrderId} {CallbackMethod} ", orderId, callbackMethod); break; } diff --git a/src/CAServer.Application/Options/ActivityConfigOptions.cs b/src/CAServer.Application/Options/ActivityConfigOptions.cs new file mode 100644 index 000000000..dee09ece3 --- /dev/null +++ b/src/CAServer.Application/Options/ActivityConfigOptions.cs @@ -0,0 +1,54 @@ +using System.Collections.Generic; + +namespace CAServer.Options; + + + +public class ActivityConfigOptions +{ + public Dictionary ActivityConfigMap { get; set; } + +} + +public class ActivityConfigs +{ + public string ActivityName { get; set; } + + public ActivityConfig ActivityConfig { get; set; } + + public RulesConfig RulesConfig { get; set; } + + public bool IsDefault { get; set; } +} + +public class RulesConfig +{ + public bool IsRulesShow { get; set; } + + public string RulesDesc { get; set; } + + public string RulesUrl { get; set; } +} + +public class ActivityConfig +{ + public string ActivityTitle { get; set; } + + public string CopyWriting { get; set; } + + public bool IsShow { get; set; } + + public string ImageUrl { get; set; } + + public string StartDate { get; set; } + public string StartDateFormat { get; set; } + + public string EndDate { get; set; } + public string EndDateFormat { get; set; } + + public string TaskImageUrl { get; set; } + + public string PCTaskImageUrl { get; set; } + + +} \ No newline at end of file diff --git a/src/CAServer.Application/Options/BeInvitedConfigOptions.cs b/src/CAServer.Application/Options/BeInvitedConfigOptions.cs new file mode 100644 index 000000000..1fb66cddb --- /dev/null +++ b/src/CAServer.Application/Options/BeInvitedConfigOptions.cs @@ -0,0 +1,53 @@ +using System.Collections.Generic; + +namespace CAServer.Options; + +public class BeInvitedConfigOptions +{ + public Dictionary BeInvitedConfig { get; set; } +} + +public class BeInvitedConfig +{ + public string MobileTitleCopyWriting { get; set; } + + public string PCTitleCopyWriting { get; set; } + + public string Logo { get; set; } + + public string CopyWriting { get; set; } + + public List TaskConfigInfos { get; set; } + + public NoticeInfo NoticeInfo { get; set; } +} + +public class TaskConfigInfo +{ + public string TaskNo { get; set; } + public string Topic { get; set; } + public string TaskName { get; set; } + + public string TaskCopyWriting { get; set; } + + public string ButtonName { get; set; } + + public bool ButtonAbled { get; set; } + + public string ButtonLink { get; set; } + +} + +public class NoticeInfo +{ + public string CopyWriting { get; set; } + + public string ButtonName { get; set; } + + public bool ButtonAbled { get; set; } + + public string ButtonLink { get; set; } + + public string NoticeName { get; set; } + +} \ No newline at end of file diff --git a/src/CAServer.Application/Options/FreeMintOptions.cs b/src/CAServer.Application/Options/FreeMintOptions.cs new file mode 100644 index 000000000..2e9e54acf --- /dev/null +++ b/src/CAServer.Application/Options/FreeMintOptions.cs @@ -0,0 +1,10 @@ +using CAServer.FreeMint.Dtos; + +namespace CAServer.Options; + +public class FreeMintOptions +{ + public FreeMintCollectionInfo CollectionInfo { get; set; } + public string ContractAddress { get; set; } + public int LimitCount { get; set; } = 5; +} \ No newline at end of file diff --git a/src/CAServer.Application/Options/HamsterOptions.cs b/src/CAServer.Application/Options/HamsterOptions.cs new file mode 100644 index 000000000..045fac094 --- /dev/null +++ b/src/CAServer.Application/Options/HamsterOptions.cs @@ -0,0 +1,24 @@ +using System.Collections.Generic; + +namespace CAServer.Options; + +public class HamsterOptions +{ + public int MinAcornsScore { get; set; } + + public double HamsterReward { get; set; } + + public string Invitations { get; set; } + + public string HamsterEndPoints { get; set; } + + public string AddressPrefix { get; set; } + + public string AddressSuffix { get; set; } + + public Dictionary HamsterCopyWriting { get; set; } + + public int HamsterExpired { get; set; } + + public double ReferralReward { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Application/Tokens/TokenDisplayAppService.cs b/src/CAServer.Application/Tokens/TokenDisplayAppService.cs index 01c7de840..de35a54a3 100644 --- a/src/CAServer.Application/Tokens/TokenDisplayAppService.cs +++ b/src/CAServer.Application/Tokens/TokenDisplayAppService.cs @@ -35,6 +35,7 @@ namespace CAServer.Tokens; [DisableAuditing] public class TokenDisplayAppService : CAServerAppService, ITokenDisplayAppService { + private const string DefaultSymbolBalance = "0"; private readonly ILogger _logger; private readonly ITokenAppService _tokenAppService; private readonly IUserAssetsProvider _userAssetsProvider; @@ -229,7 +230,7 @@ await _distributedEventBus.PublishAsync(new UserLoginEto() var balanceInUsd = CalculationHelper.GetBalanceInUsd(priceDict[token.Symbol], long.Parse(token.Balance), token.Decimals); token.Price = priceDict[token.Symbol]; - token.BalanceInUsd = token.Price == 0 ? string.Empty : balanceInUsd.ToString(); + token.BalanceInUsd = token.Price == 0 ? DefaultSymbolBalance : balanceInUsd.ToString(); } dto.TotalBalanceInUsd = CalculateTotalBalanceInUsd(dto.Data); diff --git a/src/CAServer.Application/UserAssets/Provider/ImageProcessProvider.cs b/src/CAServer.Application/UserAssets/Provider/ImageProcessProvider.cs index ac8f9b874..e10b1b308 100644 --- a/src/CAServer.Application/UserAssets/Provider/ImageProcessProvider.cs +++ b/src/CAServer.Application/UserAssets/Provider/ImageProcessProvider.cs @@ -70,7 +70,7 @@ public async Task GetResizeImageAsync(string imageUrl, int width, int he return imageUrl; } - return await GetResizeImageUrlAsync(imageUrl, width, height, type); + return await GetResizeImageUrlAsync(imageUrl, width, height); } catch (Exception ex) { @@ -88,7 +88,7 @@ public async Task GetImResizeImageAsync(string imageUrl, i return new ThumbnailResponseDto(); } - var resImage = await GetResizeImageUrlAsync(imageUrl, width, height, ImageResizeType.Im); + var resImage = await GetResizeImageUrlAsync(imageUrl, width, height); return new ThumbnailResponseDto { ThumbnailUrl = resImage @@ -169,8 +169,9 @@ private async Task SendUrlAsync(string url, string? version = null) await Client.GetAsync(url); } - private async Task GetResizeImageUrlAsync(string imageUrl, int width, int height, ImageResizeType type) + private async Task GetResizeImageUrlAsync(string imageUrl, int width, int height) { + var type = GetS3Type(imageUrl); var produceImage = GetResizeUrl(imageUrl, width, height, true, type); await SendUrlAsync(produceImage); @@ -178,6 +179,24 @@ private async Task GetResizeImageUrlAsync(string imageUrl, int width, in return resImage; } + private ImageResizeType GetS3Type(string imageUrl) + { + var urlSplit = imageUrl.Split(new string[] { UserAssetsServiceConstant.AwsDomain }, + StringSplitOptions.RemoveEmptyEntries); + + if (urlSplit[0].ToLower().Contains(CommonConstant.ImS3Mark)) + { + return ImageResizeType.Im; + } + + if (urlSplit[0].ToLower().Contains(CommonConstant.PortkeyS3Mark)) + { + return ImageResizeType.PortKey; + } + + return ImageResizeType.Forest; + } + private string GetImageUrlSuffix(string imageUrl) { if (string.IsNullOrWhiteSpace(imageUrl)) diff --git a/src/CAServer.Application/UserAssets/UserAssetsAppService.cs b/src/CAServer.Application/UserAssets/UserAssetsAppService.cs index 56dab2dbc..69f011fbc 100644 --- a/src/CAServer.Application/UserAssets/UserAssetsAppService.cs +++ b/src/CAServer.Application/UserAssets/UserAssetsAppService.cs @@ -340,6 +340,7 @@ public async Task GetNFTCollectionsAsync(GetNftCollections if (res?.CaHolderNFTCollectionBalanceInfo?.Data == null || res.CaHolderNFTCollectionBalanceInfo.Data.Count == 0) { + _logger.LogInformation("[GetNFTCollectionsAsync] data from indexer is empty."); return dto; } @@ -1382,7 +1383,7 @@ await _userNftTraitsCountCache.SetAsync(TraitsCachePrefix + traits, traitTypeCou foreach (var traitsValues in traitTypeValueCounts.Keys) { await _userNftTraitsCountCache.SetAsync(TraitsCachePrefix + traitsValues, - traitTypeValueCounts[traitsValues].ToString(),new DistributedCacheEntryOptions() + traitTypeValueCounts[traitsValues].ToString(), new DistributedCacheEntryOptions() { AbsoluteExpiration = DateTimeOffset.Now.AddHours(1) }); @@ -1477,8 +1478,8 @@ await _userTokenBalanceCache.SetAsync(cacheKey, output.Balance.ToString(), return -1; } } - - + + private bool IsValidJson(string strInput) { try @@ -1491,6 +1492,4 @@ private bool IsValidJson(string strInput) return false; } } - - } \ No newline at end of file diff --git a/src/CAServer.ContractEventHandler.Core/Application/IChainHeightService.cs b/src/CAServer.ContractEventHandler.Core/Application/IChainHeightService.cs new file mode 100644 index 000000000..dfa42a199 --- /dev/null +++ b/src/CAServer.ContractEventHandler.Core/Application/IChainHeightService.cs @@ -0,0 +1,116 @@ +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using AElf; +using AElf.Client.Dto; +using AElf.Client.Service; +using CAServer.Common; +using CAServer.Commons; +using CAServer.Grains.Grain.ApplicationHandler; +using CAServer.Options; +using Google.Protobuf; +using Google.Protobuf.WellKnownTypes; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; +using Newtonsoft.Json; +using Volo.Abp.Caching; +using Volo.Abp.DependencyInjection; + +namespace CAServer.ContractEventHandler.Core.Application; + +public interface IChainHeightService +{ + Task SetChainHeightAsync(); +} + +public class ChainHeightService : IChainHeightService, ISingletonDependency +{ + private readonly ILogger _logger; + private readonly IDistributedCache _distributedCache; + private readonly ChainOptions _chainOptions; + private readonly ContractOptions _contractOptions; + + public ChainHeightService(ILogger logger, IDistributedCache distributedCache, + IOptions chainOptions, + IOptions contractOptions) + { + _logger = logger; + _distributedCache = distributedCache; + _chainOptions = chainOptions.Value; + _contractOptions = contractOptions.Value; + } + + public async Task SetChainHeightAsync() + { + _logger.LogInformation("[ChainHeight] Begin get chain height."); + var sideChainId = _chainOptions.ChainInfos.Keys.First(t => t != CommonConstant.MainChainId); + var chainHeight = new ChainHeightCache + { + MainChainBlockHeight = await GetBlockHeightAsync(CommonConstant.MainChainId), + SideChainIndexHeight = + await GetIndexHeightFromMainChainAsync(ChainHelper.ConvertBase58ToChainId(sideChainId)), + ParentChainHeight = await GetParentChainHeightAsync(sideChainId) + }; + + _logger.LogInformation("[ChainHeight] set chain height success, {data}", + JsonConvert.SerializeObject(chainHeight)); + + await _distributedCache.SetAsync(nameof(ChainHeightCache), chainHeight); + } + + private async Task GetBlockHeightAsync(string chainId) + { + var client = new AElfClient(_chainOptions.ChainInfos[chainId].BaseUrl); + await client.IsConnectedAsync(); + return await client.GetBlockHeightAsync(); + } + + private async Task GetIndexHeightFromMainChainAsync(int sideChainId) + { + var param = new Int32Value + { + Value = sideChainId + }; + var value = await CallTransactionAsync(MethodName.GetSideChainHeight, param, + _chainOptions.ChainInfos.GetOrDefault(CommonConstant.MainChainId).CrossChainContractAddress, + CommonConstant.MainChainId); + + return value.Value; + } + + private async Task GetParentChainHeightAsync(string sideChainId) + { + var result = + await CallTransactionAsync(MethodName.GetParentChainHeight, new Empty(), + _chainOptions.ChainInfos.GetOrDefault(sideChainId).CrossChainContractAddress, sideChainId); + + return result.Value; + } + + private async Task CallTransactionAsync(string methodName, IMessage param, string contractAddress, + string chainId) where T : class, IMessage, new() + { + if (!_chainOptions.ChainInfos.TryGetValue(chainId, out var chainInfo)) + { + return null; + } + + var client = new AElfClient(chainInfo.BaseUrl); + await client.IsConnectedAsync(); + + var addressFromPrivateKey = client.GetAddressFromPrivateKey(_contractOptions.CommonPrivateKeyForCallTx); + var transaction = + await client.GenerateTransactionAsync(addressFromPrivateKey, contractAddress, methodName, param); + + var txWithSign = client.SignTransaction(_contractOptions.CommonPrivateKeyForCallTx, transaction); + var result = await client.ExecuteTransactionAsync(new ExecuteTransactionDto + { + RawTransaction = txWithSign.ToByteArray().ToHex() + }); + + var value = new T(); + value.MergeFrom(ByteArrayHelper.HexStringToByteArray(result)); + + return value; + } +} \ No newline at end of file diff --git a/src/CAServer.ContractEventHandler.Core/Application/IFreeMintNftProvider.cs b/src/CAServer.ContractEventHandler.Core/Application/IFreeMintNftProvider.cs new file mode 100644 index 000000000..c547681c9 --- /dev/null +++ b/src/CAServer.ContractEventHandler.Core/Application/IFreeMintNftProvider.cs @@ -0,0 +1,212 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using AElf; +using AElf.Client.Dto; +using AElf.Client.Service; +using AElf.Indexing.Elasticsearch; +using AElf.Types; +using CAServer.Common; +using CAServer.Commons; +using CAServer.Entities.Es; +using CAServer.FreeMint.Etos; +using CAServer.Grains.Grain.ApplicationHandler; +using CAServer.Guardian.Provider; +using CAServer.Options; +using CAServer.Signature.Provider; +using Google.Protobuf; +using GraphQL; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; +using Nest; +using Newtonsoft.Json; +using Portkey.FreeMint; +using Volo.Abp.DependencyInjection; + +namespace CAServer.ContractEventHandler.Core.Application; + +public interface IFreeMintNftProvider +{ + Task SendMintNftTransactionAsync(FreeMintEto eventData); +} + +public class FreeMintNftProvider : IFreeMintNftProvider, ISingletonDependency +{ + private readonly ISignatureProvider _signatureProvider; + private readonly ChainOptions _chainOptions; + private readonly ContractServiceOptions _contractServiceOptions; + private readonly PayRedPackageAccount _packageAccount; + private readonly ILogger _logger; + private readonly IGraphQLHelper _graphQlHelper; + private readonly INESTRepository _holderRepository; + private readonly FreeMintOptions _freeMintOptions; + + public FreeMintNftProvider(ISignatureProvider signatureProvider, + IOptionsSnapshot chainOptions, + IOptionsSnapshot contractGrainOptions, + IOptionsSnapshot freeMintOptions, + IOptionsSnapshot packageAccount, ILogger logger, + IGraphQLHelper graphQlHelper, INESTRepository holderRepository) + { + _signatureProvider = signatureProvider; + _logger = logger; + _graphQlHelper = graphQlHelper; + _holderRepository = holderRepository; + _chainOptions = chainOptions.Value; + _contractServiceOptions = contractGrainOptions.Value; + _packageAccount = packageAccount.Value; + _freeMintOptions = freeMintOptions.Value; + } + + public async Task SendMintNftTransactionAsync(FreeMintEto eventData) + { + try + { + var from = _packageAccount.getOneAccountRandom(); + _logger.LogInformation("[FreeMint] get free mint account, from is {from} ", from); + var holder = await GetCaHolderAsync(eventData.UserId); + if (holder == null) + { + _logger.LogWarning("[FreeMint] holder is null, userId:{userId}", eventData.UserId); + return null; + } + + var guardiansDto = await GetCaHolderInfoAsync(holder.CaHash); + var toAddress = guardiansDto.CaHolderInfo.FirstOrDefault()?.CaAddress; + if (toAddress.IsNullOrEmpty()) + { + _logger.LogWarning("[FreeMint] guardian info is empty, userId:{userId}, caHash:{caHash}", + eventData.UserId, + holder.CaHash); + return null; + } + + var chainId = _chainOptions.ChainInfos.Keys.First(t => t != CommonConstant.MainChainId); + var mintNftInput = new MintNftInput() + { + Symbol = $"{eventData.CollectionInfo.CollectionName.ToUpper()}-{eventData.ConfirmInfo.TokenId}", + TokenName = eventData.ConfirmInfo.Name, + TotalSupply = CommonConstant.FreeMintTotalSupply, + Decimals = CommonConstant.FreeMintDecimals, + IsBurnable = true, + IssueChainId = ChainHelper.ConvertBase58ToChainId(chainId), + ExternalInfo = new ExternalInfo() + { + Value = + { + { + "__nft_image_url", eventData.ConfirmInfo.ImageUrl + } + } + }, + To = Address.FromBase58(toAddress) + }; + + _logger.LogInformation("FreeMint SendMintNftTransactionAsync param: {param}", + JsonConvert.SerializeObject(mintNftInput)); + return await SendFreeMintAsync(chainId, mintNftInput, from, + _freeMintOptions.ContractAddress, "MintNft"); + } + catch (Exception e) + { + _logger.LogError(e, "FreeMint SendMintNftTransactionAsync error: {param}", + JsonConvert.SerializeObject(eventData)); + return null; + } + } + + public async Task SendFreeMintAsync(string chainId, IMessage param, + string from, string freeMintAddress, string methodName) + { + try + { + if (!_chainOptions.ChainInfos.TryGetValue(chainId, out var chainInfo)) + { + return null; + } + + var client = new AElfClient(chainInfo.BaseUrl); + await client.IsConnectedAsync(); + var ownAddress = client.GetAddressFromPubKey(from); //select public key + _logger.LogInformation( + "[FreeMint] Get Address From PubKey, ownAddress:{ownAddress}, ContractAddress: {ContractAddress} ,methodName:{methodName}", + ownAddress, freeMintAddress, methodName); + + var transaction = + await client.GenerateTransactionAsync(ownAddress, freeMintAddress, methodName, + param); + + var txWithSign = await _signatureProvider.SignTxMsg(from, transaction.GetHash().ToHex()); + transaction.Signature = ByteStringHelper.FromHexString(txWithSign); + + var result = await client.SendTransactionAsync(new SendTransactionInput + { + RawTransaction = transaction.ToByteArray().ToHex() + }); + _logger.LogInformation("[FreeMint] Send transaction, transactionId: {transactionId}", result.TransactionId); + + await Task.Delay(_contractServiceOptions.Delay); + + var transactionResult = await client.GetTransactionResultAsync(result.TransactionId); + _logger.LogInformation( + "[FreeMint] query transactionResult, transactionId:{transactionId}, transaction status:{status}", + transactionResult.TransactionId, transactionResult.Status); + + var times = 0; + while ((transactionResult.Status == TransactionState.Pending || + transactionResult.Status == TransactionState.NotExisted) && + times < _contractServiceOptions.RetryTimes) + { + times++; + await Task.Delay(_contractServiceOptions.RetryDelay); + transactionResult = await client.GetTransactionResultAsync(result.TransactionId); + _logger.LogInformation( + "[FreeMint] query transactionResult, transactionId:{transactionId}, transaction status:{status}, times:{times}", + transactionResult.TransactionId, transactionResult.Status, times); + } + + return new TransactionInfoDto + { + Transaction = transaction, + TransactionResultDto = transactionResult + }; + } + catch (Exception e) + { + _logger.LogError(e, "FreeMint transaction error: {param}", JsonConvert.SerializeObject(param)); + return null; + } + } + + public async Task GetCaHolderAsync(Guid userId) + { + var mustQuery = new List, QueryContainer>> + { + q => q.Term(i => i.Field(f => f.UserId).Value(userId)) + }; + + //mustQuery.Add(q => q.Terms(i => i.Field(f => f.IsDeleted).Terms(false))); + QueryContainer Filter(QueryContainerDescriptor f) => f.Bool(b => b.Must(mustQuery)); + + var holder = await _holderRepository.GetAsync(Filter); + return holder; + } + + public async Task GetCaHolderInfoAsync(string caHash, int skipCount = 0, + int maxResultCount = 10) + { + return await _graphQlHelper.QueryAsync(new GraphQLRequest + { + Query = @" + query($caHash:String,$skipCount:Int!,$maxResultCount:Int!) { + caHolderInfo(dto: {caHash:$caHash,skipCount:$skipCount,maxResultCount:$maxResultCount}){ + id,chainId,caHash,caAddress,originChainId,managerInfos{address,extraData},guardianList{guardians{verifierId,identifierHash,salt,isLoginGuardian,type}}} + }", + Variables = new + { + caHash, skipCount, maxResultCount + } + }); + } +} \ No newline at end of file diff --git a/src/CAServer.ContractEventHandler.Core/Application/IMintNftItemService.cs b/src/CAServer.ContractEventHandler.Core/Application/IMintNftItemService.cs new file mode 100644 index 000000000..bfa8322ff --- /dev/null +++ b/src/CAServer.ContractEventHandler.Core/Application/IMintNftItemService.cs @@ -0,0 +1,122 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using AElf.Indexing.Elasticsearch; +using CAServer.Commons; +using CAServer.Entities.Es; +using CAServer.EnumType; +using CAServer.FreeMint.Dtos; +using CAServer.FreeMint.Etos; +using CAServer.Grains.Grain.ApplicationHandler; +using CAServer.Grains.Grain.FreeMint; +using Hangfire; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; +using Newtonsoft.Json; +using Orleans; +using Volo.Abp.DependencyInjection; +using IObjectMapper = Volo.Abp.ObjectMapping.IObjectMapper; + +namespace CAServer.ContractEventHandler.Core.Application; + +public interface IMintNftItemService +{ + Task MintAsync(FreeMintEto eventData); +} + +public class MintNftItemService : IMintNftItemService, ISingletonDependency +{ + private readonly INESTRepository _freeMintRepository; + private readonly ILogger _logger; + private readonly IObjectMapper _objectMapper; + private readonly IClusterClient _clusterClient; + private readonly ISyncTokenService _syncTokenService; + + private readonly IFreeMintNftProvider _freeMintNftProvider; + private readonly ChainOptions _chainOptions; + + public MintNftItemService(INESTRepository freeMintRepository, + ILogger logger, IObjectMapper objectMapper, IClusterClient clusterClient, + IFreeMintNftProvider freeMintNftProvider, ISyncTokenService syncTokenService, + IOptions chainOptions) + { + _freeMintRepository = freeMintRepository; + _logger = logger; + _objectMapper = objectMapper; + _clusterClient = clusterClient; + _freeMintNftProvider = freeMintNftProvider; + _syncTokenService = syncTokenService; + _chainOptions = chainOptions.Value; + } + + public async Task MintAsync(FreeMintEto eventData) + { + try + { + _logger.LogInformation("[FreeMint] begin handle mint event."); + var index = await _freeMintRepository.GetAsync(eventData.ConfirmInfo.ItemId); + if (index == null) + { + index = new FreeMintIndex + { + CreateTime = DateTime.UtcNow, + UpdateTime = DateTime.UtcNow, + Id = eventData.ConfirmInfo.ItemId, + Symbol = $"{eventData.CollectionInfo.CollectionName.ToUpper()}-{eventData.ConfirmInfo.TokenId}" + }; + _objectMapper.Map(eventData.ConfirmInfo, index); + index.CollectionInfo = + _objectMapper.Map(eventData.CollectionInfo); + await _freeMintRepository.AddOrUpdateAsync(index); + } + else + { + _objectMapper.Map(eventData.ConfirmInfo, index); + index.UpdateTime = DateTime.UtcNow; + } + + await _freeMintRepository.AddOrUpdateAsync(index); + var transactionInfo = await _freeMintNftProvider.SendMintNftTransactionAsync(eventData); + + index.TransactionInfos.Add(new MintTransactionInfo() + { + BeginTime = DateTime.UtcNow, + EndTime = DateTime.UtcNow, + BlockTime = transactionInfo.TransactionResultDto.BlockNumber, + TransactionId = transactionInfo.TransactionResultDto.TransactionId, + TransactionResult = transactionInfo.TransactionResultDto.Status, + ErrorMessage = transactionInfo.TransactionResultDto.Error + }); + + var status = transactionInfo.TransactionResultDto.Status == TransactionState.Mined + ? FreeMintStatus.SUCCESS + : FreeMintStatus.FAIL; + var grain = _clusterClient.GetGrain(eventData.UserId); + await grain.ChangeMintStatus(index.Id, status); + index.Status = status.ToString(); + index.UpdateTime = DateTime.UtcNow; + await _freeMintRepository.AddOrUpdateAsync(index); + + _logger.LogInformation("[FreeMint] end handle mint event, status:{status}", index.Status); + if (index.Status == FreeMintStatus.SUCCESS.ToString()) + { + var chainId = _chainOptions.ChainInfos.Keys.First(t => t != CommonConstant.MainChainId); + BackgroundJob.Enqueue(() => _syncTokenService.SyncTokenToOtherChainAsync(chainId, index.Symbol)); + } + } + catch (Exception e) + { + var grain = _clusterClient.GetGrain(eventData.UserId); + await grain.ChangeMintStatus(eventData.ConfirmInfo.ItemId, FreeMintStatus.FAIL); + var index = await _freeMintRepository.GetAsync(eventData.ConfirmInfo.ItemId); + if (index != null) + { + index.Status = FreeMintStatus.FAIL.ToString(); + index.UpdateTime = DateTime.UtcNow; + await _freeMintRepository.AddOrUpdateAsync(index); + } + + _logger.LogError(e, "[FreeMint] error, data:{data}", JsonConvert.SerializeObject(eventData)); + } + } +} \ No newline at end of file diff --git a/src/CAServer.ContractEventHandler.Core/Application/ISyncTokenService.cs b/src/CAServer.ContractEventHandler.Core/Application/ISyncTokenService.cs new file mode 100644 index 000000000..f25f32bc8 --- /dev/null +++ b/src/CAServer.ContractEventHandler.Core/Application/ISyncTokenService.cs @@ -0,0 +1,367 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using AElf; +using AElf.Client.Dto; +using AElf.Client.Service; +using AElf.Contracts.MultiToken; +using AElf.Indexing.Elasticsearch; +using CAServer.Common; +using CAServer.Commons; +using CAServer.Entities.Es; +using CAServer.Grains.Grain.ApplicationHandler; +using CAServer.Options; +using CAServer.Signature.Provider; +using Google.Protobuf; +using Google.Protobuf.WellKnownTypes; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; +using Volo.Abp.Caching; +using Volo.Abp.DependencyInjection; +using Hash = AElf.Types.Hash; +using MerklePath = AElf.Types.MerklePath; +using MerklePathNode = AElf.Types.MerklePathNode; +using TokenInfo = AElf.Contracts.MultiToken.TokenInfo; + +namespace CAServer.ContractEventHandler.Core.Application; + +public interface ISyncTokenService +{ + Task SyncTokenToOtherChainAsync(string chainId, string symbol); +} + +public class SyncTokenService : ISyncTokenService, ISingletonDependency +{ + private readonly ISignatureProvider _signatureProvider; + private readonly ChainOptions _chainOptions; + private readonly ContractServiceOptions _contractServiceOptions; + private readonly PayRedPackageAccount _packageAccount; + private readonly ILogger _logger; + private readonly ContractOptions _contractOptions; + private readonly INESTRepository _freeMintNftSyncRepository; + private readonly IDistributedCache _distributedCache; + private readonly IndexOptions _indexOptions; + + public SyncTokenService(ISignatureProvider signatureProvider, + IOptionsSnapshot chainOptions, + IOptionsSnapshot contractGrainOptions, + IOptionsSnapshot contractOptions, + IOptionsSnapshot indexOptions, + IOptionsSnapshot packageAccount, ILogger logger, + INESTRepository freeMintNftSyncRepository, + IDistributedCache distributedCache) + { + _signatureProvider = signatureProvider; + _logger = logger; + _freeMintNftSyncRepository = freeMintNftSyncRepository; + _distributedCache = distributedCache; + _chainOptions = chainOptions.Value; + _contractServiceOptions = contractGrainOptions.Value; + _packageAccount = packageAccount.Value; + _contractOptions = contractOptions.Value; + _indexOptions = indexOptions.Value; + } + + public async Task SyncTokenToOtherChainAsync(string chainId, string symbol) + { + _logger.LogInformation( + "[SyncToken] Begin to sync token, fromChainId:{chainId}, toChainId:{toChainId}, symbol:{symbol}", chainId, + CommonConstant.MainChainId, symbol); + var nftSyncIndex = await SaveSyncRecordAsync(chainId, symbol); + try + { + var from = _packageAccount.getOneAccountRandom(); + var crossChainCreateTokenInput = await GetCrossChainCreateTokenInput(chainId, symbol, from); + + // sync token info to main chain + var toChainInfo = _chainOptions.ChainInfos.GetOrDefault(CommonConstant.MainChainId); + var transactionInfo = await SendTransactionAsync(CommonConstant.MainChainId, crossChainCreateTokenInput, + from, + toChainInfo.TokenContractAddress, "CrossChainCreateToken"); + + if (transactionInfo == null || transactionInfo.TransactionResultDto == null) + { + await SaveSyncRecordResultAsync(nftSyncIndex, null); + _logger.LogInformation("[SyncToken] sync token fail, toChainId:{chainId}, symbol:{symbol}", + CommonConstant.MainChainId, + symbol); + } + + _logger.LogInformation( + "[SyncToken] End to sync token, toChainId:{chainId}, symbol:{symbol}, transactionId:{transactionId}, transactionResult:{transactionResult}, errorMessage:{message}", + CommonConstant.MainChainId, + symbol, transactionInfo.TransactionResultDto.TransactionId, transactionInfo.TransactionResultDto.Status, + transactionInfo.TransactionResultDto.Error ?? "-"); + await SaveSyncRecordResultAsync(nftSyncIndex, transactionInfo.TransactionResultDto); + } + catch (Exception e) + { + _logger.LogError(e, + "[SyncToken] sync token error, fromChainId:{chainId}, toChainId:{toChainId}, symbol:{symbol}", chainId, + CommonConstant.MainChainId, symbol); + await SaveSyncRecordResultAsync(nftSyncIndex, null, e.Message); + } + } + + private async Task GetCrossChainCreateTokenInput(string chainId, string symbol, + string from) + { + var client = new AElfClient(_chainOptions.ChainInfos.GetOrDefault(chainId).BaseUrl); + await client.IsConnectedAsync(); + + var tokenInfo = await GetTokenInfo(chainId, symbol); + _logger.LogInformation("[SyncToken] symbol:{symbol}", tokenInfo.Symbol); + var tokenValidationTransaction = await CreateTokenInfoValidationTransaction(chainId, from, tokenInfo); + + var merklePathDto = + await client.GetMerklePathByTransactionIdAsync( + tokenValidationTransaction.TransactionResultDto.TransactionId); + + var merklePath = new MerklePath(); + foreach (var node in merklePathDto.MerklePathNodes) + { + merklePath.MerklePathNodes.Add(new MerklePathNode + { + Hash = new Hash { Value = Hash.LoadFromHex(node.Hash).Value }, + IsLeftChildNode = node.IsLeftChildNode + }); + } + + var otherChainId = _chainOptions.ChainInfos.Keys.FirstOrDefault(t => t != chainId); + await MainChainCheckMainChainBlockIndexAsync(chainId, otherChainId, + tokenValidationTransaction.TransactionResultDto.BlockNumber); + + var crossChainCreateTokenInput = new CrossChainCreateTokenInput + { + FromChainId = ChainHelper.ConvertBase58ToChainId(chainId), + TransactionBytes = tokenValidationTransaction.Transaction.ToByteString(), + MerklePath = merklePath + }; + + var getCrossChainMerkleProofContextInput = new Int64Value + { + Value = tokenValidationTransaction.TransactionResultDto.BlockNumber + }; + + var crossChainMerkleProofContext = await CallTransactionAsync( + "GetBoundParentChainHeightAndMerklePathByHeight", getCrossChainMerkleProofContextInput, + _chainOptions.ChainInfos[chainId].CrossChainContractAddress, chainId); + + crossChainCreateTokenInput.MerklePath.MerklePathNodes.AddRange(crossChainMerkleProofContext + .MerklePathFromParentChain.MerklePathNodes); + crossChainCreateTokenInput.ParentChainHeight = crossChainMerkleProofContext.BoundParentChainHeight; + + _logger.LogInformation( + "[SyncToken] crossChainMerkleProofContext, chainId:{chainId}, crossChainContractAddress:{crossChainContractAddress}, parentChainHeight:{parentChainHeight}", + chainId, _chainOptions.ChainInfos[chainId].CrossChainContractAddress, + crossChainCreateTokenInput.ParentChainHeight); + return crossChainCreateTokenInput; + } + + private async Task GetTokenInfo(string chainId, string symbol) + { + var getTokenInput = new GetTokenInfoInput + { + Symbol = symbol + }; + + if (!_chainOptions.ChainInfos.TryGetValue(chainId, out var chainInfo)) + { + return null; + } + + return await CallTransactionAsync("GetTokenInfo", getTokenInput, chainInfo.TokenContractAddress, + chainId); + } + + private async Task MainChainCheckMainChainBlockIndexAsync(string chainId, string otherChainId, long txHeight) + { + var checkResult = false; + var mainHeight = long.MaxValue; + var time = 0; + + while (!checkResult && time < _indexOptions.IndexTimes) + { + var cache = await _distributedCache.GetAsync(nameof(ChainHeightCache)); + _logger.LogInformation( + "txHeight:{txHeight}, indexMainChainBlock:{indexMainChainBlock}, mainHeight:{mainHeight}, indexMainChainHeight:{indexMainChainHeight}", + txHeight, cache.SideChainIndexHeight, cache.MainChainBlockHeight, cache.ParentChainHeight); + + var sideChainIndexHeight = cache.SideChainIndexHeight; + if (sideChainIndexHeight < txHeight) + { + await Task.Delay(_indexOptions.IndexDelay); + time++; + _logger.LogInformation( + "[SyncToken] valid txHeight:{txHeight}, sideChainIndexHeight: {sideChainIndexHeight}, time:{time}", + txHeight, + sideChainIndexHeight, time); + continue; + } + + mainHeight = mainHeight == long.MaxValue + ? cache.MainChainBlockHeight + : mainHeight; + + var indexMainChainHeight = cache.ParentChainHeight; + _logger.LogInformation( + "[SyncToken] valid indexMainChainHeight:{indexMainChainHeight}, mainHeight: {mainHeight}", + indexMainChainHeight, mainHeight); + + checkResult = indexMainChainHeight > mainHeight; + await Task.Delay(_indexOptions.IndexDelay); + } + + CheckIndexBlockHeightResult(checkResult, time); + } + + private void CheckIndexBlockHeightResult(bool result, int time) + { + if (!result && time == _indexOptions.IndexTimes) + { + throw new Exception(LoggerMsg.IndexTimeoutError); + } + } + + private async Task CreateTokenInfoValidationTransaction(string chainId, string from, + TokenInfo createdTokenInfo) + { + var input = new ValidateTokenInfoExistsInput + { + TokenName = createdTokenInfo.TokenName, + Symbol = createdTokenInfo.Symbol, + Decimals = createdTokenInfo.Decimals, + Issuer = createdTokenInfo.Issuer, + Owner = createdTokenInfo.Owner, + IsBurnable = createdTokenInfo.IsBurnable, + TotalSupply = createdTokenInfo.TotalSupply, + IssueChainId = createdTokenInfo.IssueChainId + }; + if (createdTokenInfo.ExternalInfo != null) + { + input.ExternalInfo.Add(createdTokenInfo.ExternalInfo.Value); + } + + return await SendTransactionAsync(chainId, input, from, + _chainOptions.ChainInfos.GetOrDefault(chainId).TokenContractAddress, "ValidateTokenInfoExists"); + } + + private async Task CallTransactionAsync(string methodName, IMessage param, string contractAddress, + string chainId) where T : class, IMessage, new() + { + if (!_chainOptions.ChainInfos.TryGetValue(chainId, out var chainInfo)) + { + return null; + } + + var client = new AElfClient(chainInfo.BaseUrl); + await client.IsConnectedAsync(); + + string addressFromPrivateKey = client.GetAddressFromPrivateKey(_contractOptions.CommonPrivateKeyForCallTx); + + var transaction = + await client.GenerateTransactionAsync(addressFromPrivateKey, contractAddress, methodName, param); + _logger.LogDebug("[SyncToken] Call tx methodName is: {methodName} param is: {transaction}", methodName, + transaction); + + var txWithSign = client.SignTransaction(_contractOptions.CommonPrivateKeyForCallTx, transaction); + + var result = await client.ExecuteTransactionAsync(new ExecuteTransactionDto + { + RawTransaction = txWithSign.ToByteArray().ToHex() + }); + + var value = new T(); + value.MergeFrom(ByteArrayHelper.HexStringToByteArray(result)); + + return value; + } + + private async Task SendTransactionAsync(string chainId, IMessage param, + string from, string contractAddress, string methodName) + { + if (!_chainOptions.ChainInfos.TryGetValue(chainId, out var chainInfo)) + { + return null; + } + + var client = new AElfClient(chainInfo.BaseUrl); + await client.IsConnectedAsync(); + var ownAddress = client.GetAddressFromPubKey(from); //select public key + _logger.LogInformation( + "[SyncToken] Get Address From PubKey, ownAddress:{ownAddress}, ContractAddress: {ContractAddress} ,methodName:{methodName}", + ownAddress, contractAddress, methodName); + + var transaction = + await client.GenerateTransactionAsync(ownAddress, contractAddress, methodName, + param); + + var txWithSign = await _signatureProvider.SignTxMsg(from, transaction.GetHash().ToHex()); + transaction.Signature = ByteStringHelper.FromHexString(txWithSign); + + var result = await client.SendTransactionAsync(new SendTransactionInput + { + RawTransaction = transaction.ToByteArray().ToHex() + }); + _logger.LogInformation("[SyncToken] Send transaction, transactionId: {transactionId}", + result.TransactionId); + + await Task.Delay(_contractServiceOptions.Delay); + + var transactionResult = await client.GetTransactionResultAsync(result.TransactionId); + _logger.LogInformation( + "[SyncToken] query transactionResult, transactionId:{transactionId}, transaction status:{status}", + transactionResult.TransactionId, transactionResult.Status); + + var times = 0; + while ((transactionResult.Status == TransactionState.Pending || + transactionResult.Status == TransactionState.NotExisted) && + times < _contractServiceOptions.RetryTimes) + { + times++; + await Task.Delay(_contractServiceOptions.RetryDelay); + transactionResult = await client.GetTransactionResultAsync(result.TransactionId); + _logger.LogInformation( + "[FreeMint] query transactionResult, transactionId:{transactionId}, transaction status:{status}, times:{times}", + transactionResult.TransactionId, transactionResult.Status, times); + } + + return new TransactionInfoDto + { + Transaction = transaction, + TransactionResultDto = transactionResult + }; + } + + private async Task SaveSyncRecordAsync(string chainId, string symbol) + { + var nftSyncIndex = new FreeMintNftSyncIndex() + { + Id = Guid.NewGuid().ToString(), + BeginTime = DateTime.UtcNow, + Symbol = symbol, + ChainId = chainId + }; + await _freeMintNftSyncRepository.AddOrUpdateAsync(nftSyncIndex); + return nftSyncIndex; + } + + private async Task SaveSyncRecordResultAsync(FreeMintNftSyncIndex nftSyncIndex, + TransactionResultDto resultDto, string errorMessage = "") + { + if (resultDto == null) + { + nftSyncIndex.ErrorMessage = errorMessage; + nftSyncIndex.EndTime = DateTime.UtcNow; + await _freeMintNftSyncRepository.AddOrUpdateAsync(nftSyncIndex); + } + + nftSyncIndex.TransactionId = resultDto.TransactionId; + nftSyncIndex.BlockNumber = resultDto.BlockNumber; + nftSyncIndex.TransactionResult = resultDto.Status; + nftSyncIndex.ErrorMessage = resultDto.Error; + nftSyncIndex.EndTime = DateTime.UtcNow; + await _freeMintNftSyncRepository.AddOrUpdateAsync(nftSyncIndex); + } +} \ No newline at end of file diff --git a/src/CAServer.ContractEventHandler.Core/Application/Options.cs b/src/CAServer.ContractEventHandler.Core/Application/Options.cs index 50f8cd0ce..2dee0574c 100644 --- a/src/CAServer.ContractEventHandler.Core/Application/Options.cs +++ b/src/CAServer.ContractEventHandler.Core/Application/Options.cs @@ -50,4 +50,9 @@ public class ContractSyncOptions public class NFTTraitsSyncOptions { public int Sync { get; set; } +} + +public class SyncChainHeightOptions +{ + public int Period { get; set; } = 5; } \ No newline at end of file diff --git a/src/CAServer.ContractEventHandler.Core/CAServerContractEventHandlerAutoMapperProfile.cs b/src/CAServer.ContractEventHandler.Core/CAServerContractEventHandlerAutoMapperProfile.cs index 204eeb1fc..03aae48a8 100644 --- a/src/CAServer.ContractEventHandler.Core/CAServerContractEventHandlerAutoMapperProfile.cs +++ b/src/CAServer.ContractEventHandler.Core/CAServerContractEventHandlerAutoMapperProfile.cs @@ -7,6 +7,7 @@ using CAServer.DataReporting.Etos; using CAServer.Entities.Es; using CAServer.Etos; +using CAServer.FreeMint.Dtos; using CAServer.Grains.Grain.ApplicationHandler; using Portkey.Contracts.CA; @@ -56,5 +57,7 @@ public CAServerContractEventHandlerAutoMapperProfile() opt => opt.MapFrom(g => Hash.LoadFromHex(g.LoginGuardianIdentifierHash))); CreateMap(); + CreateMap(); + CreateMap(); } } \ No newline at end of file diff --git a/src/CAServer.ContractEventHandler.Core/FreeMintEventHandler.cs b/src/CAServer.ContractEventHandler.Core/FreeMintEventHandler.cs new file mode 100644 index 000000000..805007af7 --- /dev/null +++ b/src/CAServer.ContractEventHandler.Core/FreeMintEventHandler.cs @@ -0,0 +1,27 @@ +using System.Threading.Tasks; +using CAServer.ContractEventHandler.Core.Application; +using CAServer.FreeMint.Etos; +using Microsoft.Extensions.Logging; +using Volo.Abp.DependencyInjection; +using Volo.Abp.EventBus.Distributed; + +namespace CAServer.ContractEventHandler.Core; + +public class FreeMintEventHandler : IDistributedEventHandler, ITransientDependency +{ + private readonly IMintNftItemService _mintNftItemService; + private readonly ILogger _logger; + + public FreeMintEventHandler(IMintNftItemService mintNftItemService, ILogger logger) + { + _mintNftItemService = mintNftItemService; + _logger = logger; + } + + public async Task HandleEventAsync(FreeMintEto eventData) + { + _logger.LogInformation("Begin Handle FreeMint: userId:{userId}, itemId:{itemId}", eventData.UserId, + eventData.ConfirmInfo.ItemId); + _ = _mintNftItemService.MintAsync(eventData); + } +} \ No newline at end of file diff --git a/src/CAServer.ContractEventHandler.Core/Worker/ChainHeightWorker.cs b/src/CAServer.ContractEventHandler.Core/Worker/ChainHeightWorker.cs new file mode 100644 index 000000000..7b1801a92 --- /dev/null +++ b/src/CAServer.ContractEventHandler.Core/Worker/ChainHeightWorker.cs @@ -0,0 +1,27 @@ +using System.Threading.Tasks; +using CAServer.ContractEventHandler.Core.Application; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Options; +using Volo.Abp.BackgroundWorkers; +using Volo.Abp.Threading; + +namespace CAServer.ContractEventHandler.Core.Worker; + +public class ChainHeightWorker : AsyncPeriodicBackgroundWorkerBase +{ + private readonly IChainHeightService _chainHeightService; + + public ChainHeightWorker(AbpAsyncTimer timer, IServiceScopeFactory serviceScopeFactory, + IChainHeightService chainHeightService, IOptionsSnapshot options) : base(timer, + serviceScopeFactory) + { + _chainHeightService = chainHeightService; + Timer.Period = 1000 * options.Value.Period; + Timer.RunOnStart = true; + } + + protected override async Task DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + { + await _chainHeightService.SetChainHeightAsync(); + } +} \ No newline at end of file diff --git a/src/CAServer.ContractEventHandler/CAServerContractEventHandlerModule.cs b/src/CAServer.ContractEventHandler/CAServerContractEventHandlerModule.cs index bc200bb4e..e9d717604 100644 --- a/src/CAServer.ContractEventHandler/CAServerContractEventHandlerModule.cs +++ b/src/CAServer.ContractEventHandler/CAServerContractEventHandlerModule.cs @@ -79,6 +79,7 @@ public override void ConfigureServices(ServiceConfigurationContext context) Configure(configuration.GetSection("GrabRedPackage")); Configure(configuration.GetSection("NFTTraitsSync")); Configure(configuration.GetSection("TransactionReport")); + Configure(configuration.GetSection("SyncChainHeight")); context.Services.AddHostedService(); ConfigureOrleans(context, configuration); ConfigureTokenCleanupService(); @@ -138,6 +139,7 @@ public override void OnApplicationInitialization(ApplicationInitializationContex context.AddBackgroundWorkerAsync(); context.AddBackgroundWorkerAsync(); context.AddBackgroundWorkerAsync(); + context.AddBackgroundWorkerAsync(); ConfigurationProvidersHelper.DisplayConfigurationProviders(context); } diff --git a/src/CAServer.Domain.Shared/Common/ChainHeightCache.cs b/src/CAServer.Domain.Shared/Common/ChainHeightCache.cs new file mode 100644 index 000000000..18bba0e9c --- /dev/null +++ b/src/CAServer.Domain.Shared/Common/ChainHeightCache.cs @@ -0,0 +1,8 @@ +namespace CAServer.Common; + +public class ChainHeightCache +{ + public long SideChainIndexHeight { get; set; } + public long ParentChainHeight { get; set; } + public long MainChainBlockHeight { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Domain.Shared/EnumType/ActivityEnums.cs b/src/CAServer.Domain.Shared/EnumType/ActivityEnums.cs index 245b38fcf..60749d474 100644 --- a/src/CAServer.Domain.Shared/EnumType/ActivityEnums.cs +++ b/src/CAServer.Domain.Shared/EnumType/ActivityEnums.cs @@ -2,5 +2,6 @@ namespace CAServer.EnumType; public enum ActivityEnums { - Invition + Invitation = 1, + Hamster = 2 } \ No newline at end of file diff --git a/src/CAServer.Domain.Shared/EnumType/FreeMintStatus.cs b/src/CAServer.Domain.Shared/EnumType/FreeMintStatus.cs new file mode 100644 index 000000000..789934e74 --- /dev/null +++ b/src/CAServer.Domain.Shared/EnumType/FreeMintStatus.cs @@ -0,0 +1,10 @@ +namespace CAServer.EnumType; + +public enum FreeMintStatus +{ + NONE, + PENDING, + SUCCESS, + FAIL, + LimitExceed +} \ No newline at end of file diff --git a/src/CAServer.Domain.Shared/EnumType/ReferralTaskStatus.cs b/src/CAServer.Domain.Shared/EnumType/ReferralTaskStatus.cs new file mode 100644 index 000000000..a6b8533a3 --- /dev/null +++ b/src/CAServer.Domain.Shared/EnumType/ReferralTaskStatus.cs @@ -0,0 +1,10 @@ +namespace CAServer.EnumType; + +public enum ReferralTaskStatus +{ + UnLogin = 0, + TaskOneCompleted = 1, + TaskTowCompleted = 2, + SocialRecovery = 3 + +} \ No newline at end of file diff --git a/src/CAServer.Domain.Shared/EnumType/TaskEnums.cs b/src/CAServer.Domain.Shared/EnumType/TaskEnums.cs new file mode 100644 index 000000000..f7556b143 --- /dev/null +++ b/src/CAServer.Domain.Shared/EnumType/TaskEnums.cs @@ -0,0 +1,7 @@ +namespace CAServer.EnumType; + +public enum TaskEnums +{ + Register = 1, + Hamster = 2 +} \ No newline at end of file diff --git a/src/CAServer.Domain/Entities/Es/FreeMintIndex.cs b/src/CAServer.Domain/Entities/Es/FreeMintIndex.cs new file mode 100644 index 000000000..7d0b3f9f7 --- /dev/null +++ b/src/CAServer.Domain/Entities/Es/FreeMintIndex.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using AElf.Indexing.Elasticsearch; +using Nest; + +namespace CAServer.Entities.Es; + +public class FreeMintIndex: CAServerEsEntity, IIndexBuild +{ + [Keyword] public override string Id { get; set; } + [Keyword] public Guid UserId { get; set; } + [Keyword] public string CaHash { get; set; } + [Keyword] public string CaAddress { get; set; } + public string ImageUrl { get; set; } + [Keyword] public string Name { get; set; } + [Keyword] public string TokenId { get; set; } + public string Description { get; set; } + [Keyword] public string Status { get; set; } + [Keyword] public string Symbol { get; set; } + public CollectionInfo CollectionInfo { get; set; } + public List TransactionInfos { get; set; } = new(); + public DateTime CreateTime { get; set; } + public DateTime UpdateTime { get; set; } +} + +public class CollectionInfo +{ + [Keyword] public string CollectionName { get; set; } + [Keyword] public string ImageUrl { get; set; } + [Keyword] public string ChainId { get; set; } + [Keyword] public string Symbol { get; set; } +} + +public class MintTransactionInfo +{ + [Keyword] public string TransactionId { get; set; } + public long BlockTime { get; set; } + public DateTime BeginTime { get; set; } + public DateTime EndTime { get; set; } + [Keyword] public string TransactionResult { get; set; } + public string ErrorMessage { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Domain/Entities/Es/FreeMintNftSyncIndex.cs b/src/CAServer.Domain/Entities/Es/FreeMintNftSyncIndex.cs new file mode 100644 index 000000000..6148d71b4 --- /dev/null +++ b/src/CAServer.Domain/Entities/Es/FreeMintNftSyncIndex.cs @@ -0,0 +1,18 @@ +using System; +using AElf.Indexing.Elasticsearch; +using Nest; + +namespace CAServer.Entities.Es; + +public class FreeMintNftSyncIndex: CAServerEsEntity, IIndexBuild +{ + [Keyword] public override string Id { get; set; } + [Keyword] public string Symbol { get; set; } + [Keyword] public string ChainId { get; set; } + [Keyword] public string TransactionId { get; set; } + public long BlockNumber { get; set; } + public DateTime BeginTime { get; set; } + public DateTime EndTime { get; set; } + [Keyword] public string TransactionResult { get; set; } + public string ErrorMessage { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Domain/Entities/Es/ReferralRecordIndex.cs b/src/CAServer.Domain/Entities/Es/ReferralRecordIndex.cs index acb3f484b..289952b14 100644 --- a/src/CAServer.Domain/Entities/Es/ReferralRecordIndex.cs +++ b/src/CAServer.Domain/Entities/Es/ReferralRecordIndex.cs @@ -13,6 +13,6 @@ public class ReferralRecordIndex : CAServerEsEntity, IIndexBuild [Keyword] public string ReferralAddress { get; set; } public int IsDirectlyInvite { get; set; } = 0; public DateTime ReferralDate { get; set; } - - + + public int ReferralType { get; set; } = 0; } \ No newline at end of file diff --git a/src/CAServer.EntityEventHandler.Core/Worker/HamsterActivityWorker.cs b/src/CAServer.EntityEventHandler.Core/Worker/HamsterActivityWorker.cs new file mode 100644 index 000000000..e6f10f024 --- /dev/null +++ b/src/CAServer.EntityEventHandler.Core/Worker/HamsterActivityWorker.cs @@ -0,0 +1,30 @@ +using System.Threading.Tasks; +using CAServer.Growth; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; +using Volo.Abp.BackgroundWorkers; +using Volo.Abp.Threading; + +namespace CAServer.EntityEventHandler.Core.Worker; + +public class HamsterActivityWorker : AsyncPeriodicBackgroundWorkerBase +{ + private readonly ILogger _logger; + private readonly IGrowthStatisticAppService _growthStatisticAppService; + + public HamsterActivityWorker(AbpAsyncTimer timer, IServiceScopeFactory serviceScopeFactory, + ILogger logger, IGrowthStatisticAppService growthStatisticAppService) : base(timer, serviceScopeFactory) + { + _logger = logger; + _growthStatisticAppService = growthStatisticAppService; + Timer.Period = WorkerConst.TimePeriod; + } + + + protected override async Task DoWorkAsync(PeriodicBackgroundWorkerContext workerContext) + { + _logger.LogDebug("Hamster Referral Data Calculate Begin...."); + await _growthStatisticAppService.CalculateHamsterDataAsync(); + + } +} \ No newline at end of file diff --git a/src/CAServer.EntityEventHandler/CAServerEntityEventHandlerModule.cs b/src/CAServer.EntityEventHandler/CAServerEntityEventHandlerModule.cs index 8cb7c6875..9771041a6 100644 --- a/src/CAServer.EntityEventHandler/CAServerEntityEventHandlerModule.cs +++ b/src/CAServer.EntityEventHandler/CAServerEntityEventHandlerModule.cs @@ -67,6 +67,7 @@ public override void ConfigureServices(ServiceConfigurationContext context) Configure(configuration.GetSection("ReferralRefreshTime")); Configure(configuration.GetSection("ActivityDateRange")); Configure(configuration.GetSection("ChatBot")); + Configure(configuration.GetSection("ActivityConfigs")); ConfigureCache(configuration); ConfigureGraphQl(context, configuration); ConfigureDistributedLocking(context, configuration); @@ -193,6 +194,7 @@ public override void OnApplicationInitialization(ApplicationInitializationContex //backgroundWorkerManger.AddAsync(context.ServiceProvider.GetService()); backgroundWorkerManger.AddAsync(context.ServiceProvider.GetService()); backgroundWorkerManger.AddAsync(context.ServiceProvider.GetService()); + backgroundWorkerManger.AddAsync(context.ServiceProvider.GetService()); ConfigurationProvidersHelper.DisplayConfigurationProviders(context); diff --git a/src/CAServer.Grains/Grain/FreeMint/FreeMintGrain.cs b/src/CAServer.Grains/Grain/FreeMint/FreeMintGrain.cs new file mode 100644 index 000000000..4b20dce82 --- /dev/null +++ b/src/CAServer.Grains/Grain/FreeMint/FreeMintGrain.cs @@ -0,0 +1,246 @@ +using CAServer.Commons; +using CAServer.EnumType; +using CAServer.FreeMint.Dtos; +using CAServer.Grains.State.FreeMint; +using Microsoft.Extensions.Options; +using Orleans; +using Volo.Abp.ObjectMapping; + +namespace CAServer.Grains.Grain.FreeMint; + +public class FreeMintGrain : Grain, IFreeMintGrain +{ + private readonly IObjectMapper _objectMapper; + private readonly FreeMintGrainOptions _freeMintOptions; + + public FreeMintGrain(IObjectMapper objectMapper, IOptions freeMintOptions) + { + _objectMapper = objectMapper; + _freeMintOptions = freeMintOptions.Value; + } + + public override async Task OnActivateAsync() + { + await ReadStateAsync(); + await base.OnActivateAsync(); + } + + public override async Task OnDeactivateAsync() + { + await WriteStateAsync(); + await base.OnDeactivateAsync(); + } + + public Task> GetFreeMintInfo() + { + var result = new GrainResultDto(); + if (string.IsNullOrEmpty(State.Id)) + { + result.Message = "Free mint info not exists."; + return Task.FromResult(result); + } + + result.Success = true; + result.Data = _objectMapper.Map(State); + return Task.FromResult(result); + } + + public Task> GetRecentStatus() + { + var result = new GrainResultDto(); + var statusDto = new GetRecentStatusDto + { + Status = FreeMintStatus.NONE.ToString() + }; + + if (IsLimitExceed()) + { + return Task.FromResult(new GrainResultDto(new GetRecentStatusDto + { + Status = FreeMintStatus.LimitExceed.ToString() + })); + } + + if (!string.IsNullOrEmpty(State.Id) && !State.MintInfos.IsNullOrEmpty()) + { + statusDto.Status = State.MintInfos.Last().Status.ToString(); + statusDto.ItemId = State.MintInfos.Last().ItemId; + } + + result.Success = true; + result.Data = statusDto; + return Task.FromResult(result); + } + + public Task> GetMintStatus(string itemId) + { + var result = new GrainResultDto(); + var itemInfo = State.MintInfos.FirstOrDefault(t => t.ItemId == itemId); + + if (string.IsNullOrEmpty(State.Id) || itemInfo == null) + { + result.Message = "Mint Nft Item info not exist."; + return Task.FromResult(result); + } + + result.Success = true; + result.Data = new GetRecentStatusDto() + { + Status = itemInfo.Status.ToString(), + ItemId = itemInfo.ItemId + }; + + return Task.FromResult(result); + } + + public async Task> SaveMintInfo(MintNftDto mintNftDto) + { + var result = new GrainResultDto(); + + State.Id = this.GetPrimaryKey().ToString(); + State.UserId = this.GetPrimaryKey(); + State.CollectionInfo = mintNftDto.CollectionInfo; + + if (IsLimitExceed()) + { + result.Message = "Free mint limit exceed."; + return result; + } + + if (!State.PendingTokenId.IsNullOrEmpty()) + { + result.Message = "Exists pending mint."; + return result; + } + + var mintInfo = State.MintInfos.FirstOrDefault(t => t.ItemId == mintNftDto.ConfirmInfo.ItemId); + // exists and mint failed + if (mintInfo != null && mintInfo.Status != FreeMintStatus.FAIL) + { + result.Message = $"Current item status: {mintInfo.Status.ToString()}."; + return result; + } + + // failed, try again + if (mintInfo != null) + { + mintInfo.Name = mintNftDto.ConfirmInfo.Name; + mintInfo.ImageUrl = mintNftDto.ConfirmInfo.ImageUrl; + mintInfo.Description = mintNftDto.ConfirmInfo.Description; + mintInfo.Status = FreeMintStatus.PENDING; + + SetInfo(mintInfo.TokenId, mintInfo.ItemId); + await WriteStateAsync(); + return new GrainResultDto(mintInfo); + } + + var tokenId = await GetTokenId(); + var nftInfo = new ItemMintInfo() + { + ItemId = Guid.NewGuid().ToString(), + TokenId = tokenId, + Name = mintNftDto.ConfirmInfo.Name, + ImageUrl = mintNftDto.ConfirmInfo.ImageUrl, + Description = mintNftDto.ConfirmInfo.Description, + Status = FreeMintStatus.PENDING + }; + + SetInfo(tokenId, nftInfo.ItemId); + State.MintInfos.Add(nftInfo); + + await WriteStateAsync(); + return new GrainResultDto(nftInfo); + } + + private void SetInfo(string tokenId, string itemId) + { + State.PendingTokenId = tokenId; + var date = GetDateKey(); + if (State.DateMintInfo.ContainsKey(date)) + { + State.DateMintInfo[date].Add(itemId); + } + else + { + State.DateMintInfo.Add(date, new List { itemId }); + } + } + + private async Task GetTokenId() + { + var tokenIdGrain = GetTokenIdGrain(); + var tokenId = await tokenIdGrain.GenerateTokenId(); + State.TokenIds.Add(tokenId); + + await WriteStateAsync(); + return tokenId; + } + + public async Task> ChangeMintStatus(string itemId, FreeMintStatus status) + { + var mintNftInfo = State.MintInfos.FirstOrDefault(t => t.ItemId == itemId); + if (mintNftInfo == null) + { + return new GrainResultDto + { + Message = "Mint Nft Item info not exist." + }; + } + + if (status != FreeMintStatus.SUCCESS && status != FreeMintStatus.FAIL) + { + return new GrainResultDto + { + Message = $"Not allowed to change to {status.ToString()}." + }; + } + + SetDateMintInfo(status, mintNftInfo.ItemId); + mintNftInfo.Status = status; + State.PendingTokenId = string.Empty; + await WriteStateAsync(); + return new GrainResultDto(mintNftInfo); + } + + private void SetDateMintInfo(FreeMintStatus status, string itemId) + { + if (status != FreeMintStatus.FAIL) + { + return; + } + + var date = GetDateKey(); + var items = State.DateMintInfo.GetOrDefault(date); + if (items.IsNullOrEmpty() || !items.Contains(itemId)) + { + return; + } + + items.Remove(itemId); + } + + private ITokenIdGrain GetTokenIdGrain() + { + return GrainFactory.GetGrain(CommonConstant.FreeMintTokenIdGrainId); + } + + public Task CheckLimitExceed() + { + return Task.FromResult(IsLimitExceed()); + } + + private bool IsLimitExceed() + { + var date = GetDateKey(); + var mintInfos = State.DateMintInfo.GetOrDefault(date); + + if (mintInfos.IsNullOrEmpty()) + { + return false; + } + + return mintInfos.Count >= _freeMintOptions.LimitCount; + } + + private string GetDateKey() => DateTime.UtcNow.ToString("yyyyMMdd"); +} \ No newline at end of file diff --git a/src/CAServer.Grains/Grain/FreeMint/FreeMintGrainDto.cs b/src/CAServer.Grains/Grain/FreeMint/FreeMintGrainDto.cs new file mode 100644 index 000000000..ae37b4f90 --- /dev/null +++ b/src/CAServer.Grains/Grain/FreeMint/FreeMintGrainDto.cs @@ -0,0 +1,11 @@ +using CAServer.FreeMint.Dtos; +using CAServer.Grains.State.FreeMint; + +namespace CAServer.Grains.Grain.FreeMint; + +public class FreeMintGrainDto +{ + public Guid UserId { get; set; } + public FreeMintCollectionInfo CollectionInfo { get; set; } + public List MintInfos { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Grains/Grain/FreeMint/FreeMintGrainOptions.cs b/src/CAServer.Grains/Grain/FreeMint/FreeMintGrainOptions.cs new file mode 100644 index 000000000..dc12874b1 --- /dev/null +++ b/src/CAServer.Grains/Grain/FreeMint/FreeMintGrainOptions.cs @@ -0,0 +1,6 @@ +namespace CAServer.Grains.Grain.FreeMint; + +public class FreeMintGrainOptions +{ + public int LimitCount { get; set; } = 5; +} \ No newline at end of file diff --git a/src/CAServer.Grains/Grain/FreeMint/IFreeMintGrain.cs b/src/CAServer.Grains/Grain/FreeMint/IFreeMintGrain.cs new file mode 100644 index 000000000..85d7fa626 --- /dev/null +++ b/src/CAServer.Grains/Grain/FreeMint/IFreeMintGrain.cs @@ -0,0 +1,16 @@ +using CAServer.EnumType; +using CAServer.FreeMint.Dtos; +using Orleans; + +namespace CAServer.Grains.Grain.FreeMint; + +public interface IFreeMintGrain : IGrainWithGuidKey +{ + Task> GetFreeMintInfo(); + Task> GetRecentStatus(); + Task> GetMintStatus(string itemId); + + Task> SaveMintInfo(MintNftDto mintNftDto); + Task> ChangeMintStatus(string itemId, FreeMintStatus status); + Task CheckLimitExceed(); +} \ No newline at end of file diff --git a/src/CAServer.Grains/Grain/FreeMint/ITokenIdGrain.cs b/src/CAServer.Grains/Grain/FreeMint/ITokenIdGrain.cs new file mode 100644 index 000000000..616d35905 --- /dev/null +++ b/src/CAServer.Grains/Grain/FreeMint/ITokenIdGrain.cs @@ -0,0 +1,72 @@ +using CAServer.Commons; +using CAServer.Grains.State.FreeMint; +using Orleans; +using Volo.Abp; + +namespace CAServer.Grains.Grain.FreeMint; + +public interface ITokenIdGrain : IGrainWithStringKey +{ + Task GenerateTokenId(); + Task CheckUseTokenId(string tokenId); + Task UseTokenId(string tokenId); +} + +public class TokenIdGrain : Grain, ITokenIdGrain +{ + public override async Task OnActivateAsync() + { + await ReadStateAsync(); + await base.OnActivateAsync(); + } + + public override async Task OnDeactivateAsync() + { + await WriteStateAsync(); + await base.OnDeactivateAsync(); + } + + public async Task GenerateTokenId() + { + if (this.GetPrimaryKeyString() != CommonConstant.FreeMintTokenIdGrainId) + { + throw new UserFriendlyException("invalid grain id"); + } + + State.CurrentTokenId += 1; + await WriteStateAsync(); + return State.CurrentTokenId.ToString(); + } + + public Task CheckUseTokenId(string tokenId) + { + var result = new GrainResultDto(); + if (!int.TryParse(tokenId, out var tokenNum)) + { + result.Message = "Invalid tokenId."; + } + + if (State.UsedTokenIds.Contains(tokenNum)) + { + result.Message = "TokenId already exists."; + } + + result.Success = true; + return Task.FromResult(result); + } + + public async Task UseTokenId(string tokenId) + { + var result = new GrainResultDto(); + var checkResult = CheckUseTokenId(tokenId).Result; + if (!checkResult.Success) + { + result.Message = checkResult.Message; + } + + State.UsedTokenIds.Add(int.Parse(tokenId)); + await WriteStateAsync(); + result.Success = true; + return result; + } +} \ No newline at end of file diff --git a/src/CAServer.Grains/Grain/FreeMint/MintNftDto.cs b/src/CAServer.Grains/Grain/FreeMint/MintNftDto.cs new file mode 100644 index 000000000..446fddf0d --- /dev/null +++ b/src/CAServer.Grains/Grain/FreeMint/MintNftDto.cs @@ -0,0 +1,18 @@ +using CAServer.FreeMint.Dtos; + +namespace CAServer.Grains.Grain.FreeMint; + +public class MintNftDto +{ + public FreeMintCollectionInfo CollectionInfo { get; set; } + public ConfirmGrainDto ConfirmInfo { get; set; } +} + +public class ConfirmGrainDto +{ + public string ItemId { get; set; } + public string ImageUrl { get; set; } + public string Name { get; set; } + public string TokenId { get; set; } + public string Description { get; set; } +} \ No newline at end of file diff --git a/src/CAServer.Grains/State/FreeMint/FreeMintState.cs b/src/CAServer.Grains/State/FreeMint/FreeMintState.cs new file mode 100644 index 000000000..49f62642c --- /dev/null +++ b/src/CAServer.Grains/State/FreeMint/FreeMintState.cs @@ -0,0 +1,14 @@ +using CAServer.FreeMint.Dtos; + +namespace CAServer.Grains.State.FreeMint; + +public class FreeMintState +{ + public string Id { get; set; } + public Guid UserId { get; set; } + public FreeMintCollectionInfo CollectionInfo { get; set; } + public List MintInfos { get; set; } = new(); + public string PendingTokenId { get; set; } + public List TokenIds { get; set; } = new(); + public Dictionary> DateMintInfo { get; set; } = new(); +} \ No newline at end of file diff --git a/src/CAServer.Grains/State/FreeMint/TokenIdState.cs b/src/CAServer.Grains/State/FreeMint/TokenIdState.cs new file mode 100644 index 000000000..0eb8ac4f5 --- /dev/null +++ b/src/CAServer.Grains/State/FreeMint/TokenIdState.cs @@ -0,0 +1,10 @@ +using CAServer.Commons; + +namespace CAServer.Grains.State.FreeMint; + +public class TokenIdState +{ + public int CurrentTokenId { get; set; } = CommonConstant.InitTokenId; + + public List UsedTokenIds { get; set; } = new List(); +} \ No newline at end of file diff --git a/src/CAServer.HttpApi.Host/appsettings.json b/src/CAServer.HttpApi.Host/appsettings.json index 461431a48..0875e8240 100644 --- a/src/CAServer.HttpApi.Host/appsettings.json +++ b/src/CAServer.HttpApi.Host/appsettings.json @@ -3,7 +3,7 @@ "CorsOrigins": "https://*.CAServer.com,http://localhost:4200,http://*.cn" }, "ConnectionStrings": { - "Default": "mongodb://localhost:27017/CAServer?authSource=admin" + "Default": "mongodb://localhost:27017/CAServer" }, "Redis": { "Configuration": "localhost" @@ -16,7 +16,6 @@ "StringEncryption": { "DefaultPassPhrase": "gaMgs0gtsqpYZUTn" }, - "GuideInfo": { "GuideInfos": [ { @@ -30,7 +29,8 @@ "ExternalMap": { "officialGroupId": "cd54cb160f624449a8f94de60dfb115e" } - },{ + }, + { "GuideType": 4, "ExternalMap": { "RelationId": "cd54cb160f624449a8f94de60dfb115e", @@ -48,13 +48,12 @@ } ] }, - "Orleans": { "ClusterId": "CAServerSiloCluster", "ServiceId": "CAServerOrleansBasicService", - "MongoDBClient": "mongodb://admin:admin123@127.0.0.1:27017/?maxPoolSize=555", + "MongoDBClient": "mongodb://127.0.0.1:27017/?maxPoolSize=555", "DataBase": "CAServerOrleansDB", - "ResponseTimeout":60 + "ResponseTimeout": 60 }, "RabbitMQ": { "Connections": { @@ -86,37 +85,37 @@ "GraphQL": { "Configuration": "http://192.168.66.203:8083/AElfIndexer_DApp/PortKeyIndexerCASchema/graphql" }, - "Serilog":{ - "Using":[ + "Serilog": { + "Using": [ "Serilog.Expressions" ], - "MinimumLevel":{ - "Default":"Debug", - "Override":{ - "Default":"Warning", - "System":"Warning", - "Microsoft":"Warning" + "MinimumLevel": { + "Default": "Debug", + "Override": { + "Default": "Warning", + "System": "Warning", + "Microsoft": "Warning" } }, - "WriteTo":[ + "WriteTo": [ { - "Name":"Logger", - "Args":{ - "ConfigureLogger":{ - "WriteTo":[ + "Name": "Logger", + "Args": { + "ConfigureLogger": { + "WriteTo": [ { - "Name":"RollingFile", - "Args":{ - "pathFormat":"Logs/log-{Date}.log", - "retainedFileCountLimit":100 + "Name": "RollingFile", + "Args": { + "pathFormat": "Logs/log-{Date}.log", + "retainedFileCountLimit": 100 } } ], - "Filter":[ + "Filter": [ { - "Name":"ByExcluding", - "Args":{ - "expression":"StartsWith(SourceContext, 'CAServer.Monitor.Logger.MonitorLogger')" + "Name": "ByExcluding", + "Args": { + "expression": "StartsWith(SourceContext, 'CAServer.Monitor.Logger.MonitorLogger')" } } ] @@ -124,23 +123,23 @@ } }, { - "Name":"Logger", - "Args":{ - "ConfigureLogger":{ - "WriteTo":[ + "Name": "Logger", + "Args": { + "ConfigureLogger": { + "WriteTo": [ { - "Name":"RollingFile", - "Args":{ - "pathFormat":"Logs/monitor-{Date}.log", - "retainedFileCountLimit":100 + "Name": "RollingFile", + "Args": { + "pathFormat": "Logs/monitor-{Date}.log", + "retainedFileCountLimit": 100 } } ], - "Filter":[ + "Filter": [ { - "Name":"ByIncludingOnly", - "Args":{ - "expression":"StartsWith(SourceContext, 'CAServer.Monitor.Logger.MonitorLogger')" + "Name": "ByIncludingOnly", + "Args": { + "expression": "StartsWith(SourceContext, 'CAServer.Monitor.Logger.MonitorLogger')" } } ] @@ -186,38 +185,38 @@ } } }, - "RealIp":{ + "RealIp": { "HeaderKey": "X-Forwarded-For" }, - "RedPackage":{ - "maxCount":1000, - "tokenInfo":[ + "RedPackage": { + "maxCount": 1000, + "tokenInfo": [ { - "chainId":"AELF", - "symbol":"ELF", - "decimal":8, - "minAmount":"1" + "chainId": "AELF", + "symbol": "ELF", + "decimal": 8, + "minAmount": "1" }, { - "chainId":"tDVV", - "symbol":"ELF", - "decimal":8, - "minAmount":"1" + "chainId": "tDVV", + "symbol": "ELF", + "decimal": 8, + "minAmount": "1" }, { - "chainId":"AELF", - "symbol":"USDT", - "decimal":6, - "minAmount":"1" + "chainId": "AELF", + "symbol": "USDT", + "decimal": 6, + "minAmount": "1" }, { - "chainId":"tDVV", - "symbol":"USDT", - "decimal":6, - "minAmount":"1" + "chainId": "tDVV", + "symbol": "USDT", + "decimal": 6, + "minAmount": "1" } ], - "RedPackageContractAddress":[ + "RedPackageContractAddress": [ { "chainId": "AELF", "contractAddress": "2sFCkQs61YKVkHpN3AT7887CLfMvzzXnMkNYYM431RK5tbKQS9" @@ -233,26 +232,26 @@ "ELF": { "ImageUrl": "https://portkey-did.s3.ap-northeast-1.amazonaws.com/img/aelf/Coin_ELF.png" }, - "USDT":{ + "USDT": { "ImageUrl": "https://portkey-did.s3.ap-northeast-1.amazonaws.com/img/aelf/Coin_USDT.png" }, - "USDC":{ + "USDC": { "ImageUrl": "https://portkey-did.s3.ap-northeast-1.amazonaws.com/img/aelf/Coin_USDC.png" }, - "BNB":{ + "BNB": { "ImageUrl": "https://portkey-did.s3.ap-northeast-1.amazonaws.com/img/aelf/Coin_BNB.png" }, - "ETH":{ + "ETH": { "ImageUrl": "https://portkey-did.s3.ap-northeast-1.amazonaws.com/img/aelf/Coin_ETH.png" }, - "DAI":{ + "DAI": { "ImageUrl": "https://portkey-did.s3.ap-northeast-1.amazonaws.com/img/aelf/Coin_DAI.png" } } }, "AdaptableVariableSetting": { "VerifierServerExpireTime": 15, - "HttpConnectTimeOut":8 + "HttpConnectTimeOut": 8 }, "ElasticUris": { "Uris": [ @@ -265,8 +264,8 @@ "IndexPrefix": "CAServer" }, "ActivitiesIcon1": { - "Transfer1":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InRyYW5zZmVyIj4KPHBhdGggaWQ9InNoYXBlIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTAgOEMwIDEyLjQxODMgMy41ODE3MiAxNiA4IDE2QzEyLjQxODMgMTYgMTYgMTIuNDE4MyAxNiA4QzE2IDMuNTgxNzIgMTIuNDE4MyAwIDggMEMzLjU4MTcyIDAgMCAzLjU4MTcyIDAgOFpNMTUuMiA4QzE1LjIgMTEuOTc2NCAxMS45NzY0IDE1LjIgOCAxNS4yQzQuMDIzNTUgMTUuMiAwLjggMTEuOTc2NSAwLjggOEMwLjggNC4wMjM1NSA0LjAyMzU1IDAuOCA4IDAuOEMxMS45NzY0IDAuOCAxNS4yIDQuMDIzNTUgMTUuMiA4Wk0xMS42NDM4IDYuOTUxM0MxMS42NDQ0IDYuOTYxODkgMTEuNjQ0NyA2Ljk3MjU5IDExLjY0NDcgNi45ODMzNkMxMS42NDQ3IDcuMjQwMTMgMTEuNDYzMyA3LjQ0ODUyIDExLjIzOTggNy40NDg1Mkg0Ljc2MDI0QzQuNTM2NyA3LjQ0ODUyIDQuMzU1MjcgNy4yNDAxMyA0LjM1NTI3IDYuOTgzMzZDNC4zNTUyNyA2LjcyNjU5IDQuNTM2NyA2LjUxODIgNC43NjAyNCA2LjUxODJIMTAuMTE3OEw4Ljg3NjggNS4yNzcxNkM4LjY5NTM4IDUuMDk1NzQgOC42OTUzOCA0LjgwMDgzIDguODc2OCA0LjYxOTQyQzkuMDU4MjEgNC40MzgwMSA5LjM1MzEyIDQuNDM4MDEgOS41MzQ1MyA0LjYxOTQyTDExLjUwODcgNi41OTI2M0MxMS42MDY5IDYuNjkwOTEgMTEuNjUyIDYuODIyNDkgMTEuNjQzOCA2Ljk1MTNaTTQuMzU1MjcgOS4wMTY2NEM0LjM1NTI3IDkuMDI3NDEgNC4zNTU1OSA5LjAzODExIDQuMzU2MjIgOS4wNDg3QzQuMzQ4MDIgOS4xNzc1MSA0LjM5MzA1IDkuMzA5MDkgNC40OTEzMyA5LjQwNzM3TDYuNDY1NDcgMTEuMzgwNkM2LjY0Njg4IDExLjU2MiA2Ljk0MTc5IDExLjU2MiA3LjEyMzIgMTEuMzgwNkM3LjMwNDYyIDExLjE5OTIgNy4zMDQ2MiAxMC45MDQzIDcuMTIzMiAxMC43MjI4TDUuODgyMTYgOS40ODE4SDExLjIzOThDMTEuNDYzMyA5LjQ4MTggMTEuNjQ0NyA5LjI3MzQxIDExLjY0NDcgOS4wMTY2NEMxMS42NDQ3IDguNzU5ODcgMTEuNDYzMyA4LjU1MTQ4IDExLjIzOTggOC41NTE0OEg0Ljc2MDI0QzQuNTM2NyA4LjU1MTQ4IDQuMzU1MjcgOC43NTk4NyA0LjM1NTI3IDkuMDE2NjRaIiBmaWxsPSIjNUI4RUY0Ii8+CjwvZz4KPC9zdmc+Cg==", - "Contract1":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNvbnRyYWN0Ij4KPHBhdGggaWQ9InNoYXBlIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTggMTZDMy41ODE3MiAxNiAwIDEyLjQxODMgMCA4QzAgMy41ODE3MiAzLjU4MTcyIDAgOCAwQzEyLjQxODMgMCAxNiAzLjU4MTcyIDE2IDhDMTYgMTIuNDE4MyAxMi40MTgzIDE2IDggMTZaTTggMTUuMkMxMS45NzY0IDE1LjIgMTUuMiAxMS45NzY0IDE1LjIgOEMxNS4yIDQuMDIzNTUgMTEuOTc2NCAwLjggOCAwLjhDNC4wMjM1NSAwLjggMC44IDQuMDIzNTUgMC44IDhDMC44IDExLjk3NjUgNC4wMjM1NSAxNS4yIDggMTUuMlpNNi45NDQ1NiA5LjE5NTU2QzYuOTYyOTQgOS4xNzcxOCA2Ljk2Mjk0IDkuMTQ3MzkgNi45NDQ1NiA5LjEyOTAyTDUuNjM3MTkgNy44MjIzNEM1LjQ0MTA0IDcuNjI2MjkgNS4xMjMxMyA3LjYyNjI2IDQuOTI2OTUgNy44MjIyOUM0LjczMDYyIDguMDE4NDYgNC43MzA1NiA4LjMzNjY2IDQuOTI2ODEgOC41MzI5MUw1LjU1NjE4IDkuMTYyMjhMNC45MjY5NiA5Ljc5MTUxQzQuNzMwNjQgOS45ODc4MyA0LjczMDc0IDEwLjMwNjIgNC45MjcxOCAxMC41MDIzQzUuMTIzNDMgMTAuNjk4MyA1LjQ0MTM2IDEwLjY5ODMgNS42Mzc1MSAxMC41MDIyTDYuOTQ0NTYgOS4xOTU1NlpNMTEuNjgxNCAxMC4zMzQ2QzExLjY4MTQgMTAuMDU3MSAxMS40NTY1IDkuODMyMTkgMTEuMTc5IDkuODMyMTlIOC4yMjQxMUM3Ljk0NjYzIDkuODMyMTkgNy43MjE2OCAxMC4wNTcxIDcuNzIxNjggMTAuMzM0NkM3LjcyMTY4IDEwLjYxMjEgNy45NDY2MyAxMC44MzcgOC4yMjQxMSAxMC44MzdIMTEuMTc5QzExLjQ1NjUgMTAuODM3IDExLjY4MTQgMTAuNjEyMSAxMS42ODE0IDEwLjMzNDZaTTExLjY4MTQgNy45ODk5NUMxMS42ODE0IDcuNzEyNDcgMTEuNDU2NSA3LjQ4NzUyIDExLjE3OSA3LjQ4NzUySDguMjI0MTFDNy45NDY2MyA3LjQ4NzUyIDcuNzIxNjggNy43MTI0NyA3LjcyMTY4IDcuOTg5OTVDNy43MjE2OCA4LjI2NzQ0IDcuOTQ2NjMgOC40OTIzOCA4LjIyNDExIDguNDkyMzhIMTEuMTc5QzExLjQ1NjUgOC40OTIzOCAxMS42ODE0IDguMjY3NDQgMTEuNjgxNCA3Ljk4OTk1Wk0xMS43MTQzIDUuNjQ1MjlDMTEuNzE0MyA1LjM2NzggMTEuNDg5MyA1LjE0Mjg2IDExLjIxMTkgNS4xNDI4Nkg1LjE4MDQxQzQuOTAyOTIgNS4xNDI4NiA0LjY3Nzk4IDUuMzY3OCA0LjY3Nzk4IDUuNjQ1MjlDNC42Nzc5OCA1LjkyMjc3IDQuOTAyOTIgNi4xNDc3MSA1LjE4MDQxIDYuMTQ3NzFIMTEuMjExOUMxMS40ODkzIDYuMTQ3NzEgMTEuNzE0MyA1LjkyMjc3IDExLjcxNDMgNS42NDUyOVoiIGZpbGw9IiM1QjhFRjQiLz4KPC9nPgo8L3N2Zz4K" + "Transfer1": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InRyYW5zZmVyIj4KPHBhdGggaWQ9InNoYXBlIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTAgOEMwIDEyLjQxODMgMy41ODE3MiAxNiA4IDE2QzEyLjQxODMgMTYgMTYgMTIuNDE4MyAxNiA4QzE2IDMuNTgxNzIgMTIuNDE4MyAwIDggMEMzLjU4MTcyIDAgMCAzLjU4MTcyIDAgOFpNMTUuMiA4QzE1LjIgMTEuOTc2NCAxMS45NzY0IDE1LjIgOCAxNS4yQzQuMDIzNTUgMTUuMiAwLjggMTEuOTc2NSAwLjggOEMwLjggNC4wMjM1NSA0LjAyMzU1IDAuOCA4IDAuOEMxMS45NzY0IDAuOCAxNS4yIDQuMDIzNTUgMTUuMiA4Wk0xMS42NDM4IDYuOTUxM0MxMS42NDQ0IDYuOTYxODkgMTEuNjQ0NyA2Ljk3MjU5IDExLjY0NDcgNi45ODMzNkMxMS42NDQ3IDcuMjQwMTMgMTEuNDYzMyA3LjQ0ODUyIDExLjIzOTggNy40NDg1Mkg0Ljc2MDI0QzQuNTM2NyA3LjQ0ODUyIDQuMzU1MjcgNy4yNDAxMyA0LjM1NTI3IDYuOTgzMzZDNC4zNTUyNyA2LjcyNjU5IDQuNTM2NyA2LjUxODIgNC43NjAyNCA2LjUxODJIMTAuMTE3OEw4Ljg3NjggNS4yNzcxNkM4LjY5NTM4IDUuMDk1NzQgOC42OTUzOCA0LjgwMDgzIDguODc2OCA0LjYxOTQyQzkuMDU4MjEgNC40MzgwMSA5LjM1MzEyIDQuNDM4MDEgOS41MzQ1MyA0LjYxOTQyTDExLjUwODcgNi41OTI2M0MxMS42MDY5IDYuNjkwOTEgMTEuNjUyIDYuODIyNDkgMTEuNjQzOCA2Ljk1MTNaTTQuMzU1MjcgOS4wMTY2NEM0LjM1NTI3IDkuMDI3NDEgNC4zNTU1OSA5LjAzODExIDQuMzU2MjIgOS4wNDg3QzQuMzQ4MDIgOS4xNzc1MSA0LjM5MzA1IDkuMzA5MDkgNC40OTEzMyA5LjQwNzM3TDYuNDY1NDcgMTEuMzgwNkM2LjY0Njg4IDExLjU2MiA2Ljk0MTc5IDExLjU2MiA3LjEyMzIgMTEuMzgwNkM3LjMwNDYyIDExLjE5OTIgNy4zMDQ2MiAxMC45MDQzIDcuMTIzMiAxMC43MjI4TDUuODgyMTYgOS40ODE4SDExLjIzOThDMTEuNDYzMyA5LjQ4MTggMTEuNjQ0NyA5LjI3MzQxIDExLjY0NDcgOS4wMTY2NEMxMS42NDQ3IDguNzU5ODcgMTEuNDYzMyA4LjU1MTQ4IDExLjIzOTggOC41NTE0OEg0Ljc2MDI0QzQuNTM2NyA4LjU1MTQ4IDQuMzU1MjcgOC43NTk4NyA0LjM1NTI3IDkuMDE2NjRaIiBmaWxsPSIjNUI4RUY0Ii8+CjwvZz4KPC9zdmc+Cg==", + "Contract1": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNvbnRyYWN0Ij4KPHBhdGggaWQ9InNoYXBlIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTggMTZDMy41ODE3MiAxNiAwIDEyLjQxODMgMCA4QzAgMy41ODE3MiAzLjU4MTcyIDAgOCAwQzEyLjQxODMgMCAxNiAzLjU4MTcyIDE2IDhDMTYgMTIuNDE4MyAxMi40MTgzIDE2IDggMTZaTTggMTUuMkMxMS45NzY0IDE1LjIgMTUuMiAxMS45NzY0IDE1LjIgOEMxNS4yIDQuMDIzNTUgMTEuOTc2NCAwLjggOCAwLjhDNC4wMjM1NSAwLjggMC44IDQuMDIzNTUgMC44IDhDMC44IDExLjk3NjUgNC4wMjM1NSAxNS4yIDggMTUuMlpNNi45NDQ1NiA5LjE5NTU2QzYuOTYyOTQgOS4xNzcxOCA2Ljk2Mjk0IDkuMTQ3MzkgNi45NDQ1NiA5LjEyOTAyTDUuNjM3MTkgNy44MjIzNEM1LjQ0MTA0IDcuNjI2MjkgNS4xMjMxMyA3LjYyNjI2IDQuOTI2OTUgNy44MjIyOUM0LjczMDYyIDguMDE4NDYgNC43MzA1NiA4LjMzNjY2IDQuOTI2ODEgOC41MzI5MUw1LjU1NjE4IDkuMTYyMjhMNC45MjY5NiA5Ljc5MTUxQzQuNzMwNjQgOS45ODc4MyA0LjczMDc0IDEwLjMwNjIgNC45MjcxOCAxMC41MDIzQzUuMTIzNDMgMTAuNjk4MyA1LjQ0MTM2IDEwLjY5ODMgNS42Mzc1MSAxMC41MDIyTDYuOTQ0NTYgOS4xOTU1NlpNMTEuNjgxNCAxMC4zMzQ2QzExLjY4MTQgMTAuMDU3MSAxMS40NTY1IDkuODMyMTkgMTEuMTc5IDkuODMyMTlIOC4yMjQxMUM3Ljk0NjYzIDkuODMyMTkgNy43MjE2OCAxMC4wNTcxIDcuNzIxNjggMTAuMzM0NkM3LjcyMTY4IDEwLjYxMjEgNy45NDY2MyAxMC44MzcgOC4yMjQxMSAxMC44MzdIMTEuMTc5QzExLjQ1NjUgMTAuODM3IDExLjY4MTQgMTAuNjEyMSAxMS42ODE0IDEwLjMzNDZaTTExLjY4MTQgNy45ODk5NUMxMS42ODE0IDcuNzEyNDcgMTEuNDU2NSA3LjQ4NzUyIDExLjE3OSA3LjQ4NzUySDguMjI0MTFDNy45NDY2MyA3LjQ4NzUyIDcuNzIxNjggNy43MTI0NyA3LjcyMTY4IDcuOTg5OTVDNy43MjE2OCA4LjI2NzQ0IDcuOTQ2NjMgOC40OTIzOCA4LjIyNDExIDguNDkyMzhIMTEuMTc5QzExLjQ1NjUgOC40OTIzOCAxMS42ODE0IDguMjY3NDQgMTEuNjgxNCA3Ljk4OTk1Wk0xMS43MTQzIDUuNjQ1MjlDMTEuNzE0MyA1LjM2NzggMTEuNDg5MyA1LjE0Mjg2IDExLjIxMTkgNS4xNDI4Nkg1LjE4MDQxQzQuOTAyOTIgNS4xNDI4NiA0LjY3Nzk4IDUuMzY3OCA0LjY3Nzk4IDUuNjQ1MjlDNC42Nzc5OCA1LjkyMjc3IDQuOTAyOTIgNi4xNDc3MSA1LjE4MDQxIDYuMTQ3NzFIMTEuMjExOUMxMS40ODkzIDYuMTQ3NzEgMTEuNzE0MyA1LjkyMjc3IDExLjcxNDMgNS42NDUyOVoiIGZpbGw9IiM1QjhFRjQiLz4KPC9nPgo8L3N2Zz4K" }, "IpServiceSetting": { "BaseUrl": "http://api.ipapi.com/api", @@ -334,12 +333,12 @@ } }, "Exchange": { - "Binance" : { - "BaseUrl" : "https://data-api.binance.vision", - "Block429Seconds" : 300 + "Binance": { + "BaseUrl": "https://data-api.binance.vision", + "Block429Seconds": 300 }, "Okx": { - "BaseUrl" : "https://aws.okx.com" + "BaseUrl": "https://aws.okx.com" } }, "DefaultIpInfo": { @@ -358,14 +357,14 @@ } }, "AppleCache": { - "Configuration": "192.168.66.109:6379", + "Configuration": "127.0.0.1:6379", "Db": 2 }, "Switch": { "Ramp": false, - "GoogleRecaptcha" : true, - "ContractsSwitch":true, - "CheckSwitch" :false, + "GoogleRecaptcha": true, + "ContractsSwitch": true, + "CheckSwitch": false, "TelegramLogin": false }, "Settings": { @@ -406,8 +405,8 @@ "RedirectUri": "https://localtest-applesign2.portkey.finance" }, "AwsS3": { - "IdentityPoolId":"ap-northeast-1:xxxxxx", - "BucketName":"portkey-im-dev", + "IdentityPoolId": "ap-northeast-1:xxxxxx", + "BucketName": "portkey-im-dev", "S3Key": "SOHO_01" }, "TelegramAuth": { @@ -447,13 +446,12 @@ "TransactionFeeInfo": { "TransactionFees": [ { - "ChainId": "AELF", "TransactionFee": { "Ach": 0.0041, "CrossChain": 0.0041, "Max": 0.0041, - "RedPackage":0.0041 + "RedPackage": 0.0041 } }, { @@ -462,7 +460,7 @@ "Ach": 0.0041, "CrossChain": 0.0041, "Max": 0.0041, - "RedPackage":0.0041 + "RedPackage": 0.0041 } } ] @@ -480,16 +478,15 @@ "AWSThumbnail": { "ImBaseUrl": "http://portkey-im-testnet.s3-website-ap-northeast-1.amazonaws.com", "PortKeyBaseUrl": "http://portkey-did.s3-website-ap-northeast-1.amazonaws.com", - "ForestBaseUrl":"http://forest-dev.s3-website-ap-northeast-1.amazonaws.com", - "ExcludedSuffixes":[ + "ForestBaseUrl": "http://forest-dev.s3-website-ap-northeast-1.amazonaws.com", + "ExcludedSuffixes": [ "png", "jpg" ], - "BucketList":[ + "BucketList": [ "forest-dev.s3.ap-northeast-1.amazonaws.com", "portkey-im-testnet.s3.ap-northeast-1.amazonaws.com", "portkey-did.s3.ap-northeast-1.amazonaws.com" - ] }, "Variables": { @@ -586,10 +583,10 @@ "DAI": 10000000 } }, - "Indicator":{ - "IsEnabled":true, - "Application":"PortKey", - "Module":"CAServer.HttpApi.Host" + "Indicator": { + "IsEnabled": true, + "Application": "PortKey", + "Module": "CAServer.HttpApi.Host" }, "VerifierIdMapping": { "VerifierIdMap": { @@ -598,7 +595,6 @@ "6cfddcc657757528fa8eb1226f40c45019ea7345721487444cf9d0db153e78ab": "f793489110aa3c1eb026b50308af4b6f1c4cf3d94d10300028d9af3ee8fcc0d6", "530844b5c51e8377b4e68fd745dfb52764a282978af272bb7126fb11585a8cff": "ca29e14f096608ee7afcb0506625cbfacb17c33289f91a8bf626d34ce9a70cd5", "22afe1bf2059e5df750ffbd7a4015e5df4b13ac21bbb10fe0fe587857dbe4499": "49f1846852d3c69c68da3781e840ab556d46d5a0a72f45dad120920c9c99dafa", - "b06fb2fb382204673f2e48511f0488444cf8da7929ffbf2e80efdbd1e1aba051": "b06fb2fb382204673f2e48511f0488444cf8da7929ffbf2e80efdbd1e1aba051", "594ebf395cdba58b0e725d71eb3c1a17d57662b0667a92f770f341d4e794b76b": "594ebf395cdba58b0e725d71eb3c1a17d57662b0667a92f770f341d4e794b76b", "f793489110aa3c1eb026b50308af4b6f1c4cf3d94d10300028d9af3ee8fcc0d6": "f793489110aa3c1eb026b50308af4b6f1c4cf3d94d10300028d9af3ee8fcc0d6", @@ -618,11 +614,15 @@ "ETransferConfigs": [ { "ChainId": "AELF", - "Accounts": ["23GxsoW9TRpLqX1Z5tjrmcRMMSn5bhtLAf4HtPj8JX9BerqTqp"] + "Accounts": [ + "23GxsoW9TRpLqX1Z5tjrmcRMMSn5bhtLAf4HtPj8JX9BerqTqp" + ] }, { "ChainId": "tDVV", - "Accounts": ["23GxsoW9TRpLqX1Z5tjrmcRMMSn5bhtLAf4HtPj8JX9BerqTqp"] + "Accounts": [ + "23GxsoW9TRpLqX1Z5tjrmcRMMSn5bhtLAf4HtPj8JX9BerqTqp" + ] } ], "ActivityTransactionFeeFix": [ @@ -641,16 +641,16 @@ "AppId": "PortKey", "IsOpen": true }, - "Hangfire" : { + "Hangfire": { "Redis": { - "ConnectionString": "192.168.66.109:6379" + "ConnectionString": "127.0.0.1:6379" }, - "redpackage":1 + "redpackage": 1 }, "ActivitiesIcon": { "Transfer": "https://portkey-did.s3.ap-northeast-1.amazonaws.com/img/Transfer.png", - "Contract":"https://portkey-did.s3.ap-northeast-1.amazonaws.com/img/Login.png", - "RedPacket":"https://portkey-did.s3.ap-northeast-1.amazonaws.com/img/Crypto+Box.png" + "Contract": "https://portkey-did.s3.ap-northeast-1.amazonaws.com/img/Login.png", + "RedPacket": "https://portkey-did.s3.ap-northeast-1.amazonaws.com/img/Crypto+Box.png" }, "AssetsInfo": { "ImageUrlPrefix": "https://raw.githubusercontent.com/Portkey-Wallet/assets/master/blockchains/", @@ -658,7 +658,10 @@ }, "GetBalanceFromChain": { "IsOpen": true, - "Symbols": ["ELF", "ELEPHANT-1"], + "Symbols": [ + "ELF", + "ELEPHANT-1" + ], "ExpireSeconds": 60 }, "ChatBot": { @@ -667,5 +670,86 @@ "RelationId": "jkhct-2aaaa-aaaaa-aaczq-cai", "PortkeyId": "d81c56bf-38cc-4f77-a864-39f3fda69e46", "UserId": "" + }, + "ActivityConfigs": { + "ActivityConfigMap": { + "Invitation": { + "ActivityConfig": { + "ActivityTitle": "Invitation", + "IsShow": true, + "ImageUrl": "https://mock.com.invitation.png", + "StartDate": "2024-07-12 00:00:00", + "StartDateFormat": "12 July", + "EndDate": "2024-08-01 00:00:00", + "EndDateFormat": "01 August", + "TaskImageUrl": "https://mock.com.invitationTask.png" + }, + "RulesConfig": { + "IsRulesShow": true, + "RulesDesc": "This is Invitation Task Rules", + "RulesUrl" : "https://mock.com.invitation" + + } + }, + "Hamster": { + "ActivityConfig": { + "ActivityTitle": "Portkey × Hamster Woods Referral Program", + "CopyWriting": "Invite Friends to Portkey", + "IsShow": true, + "ImageUrl": "https://mock.com.hamster.png", + "StartDate": "2024-07-12 00:00:00", + "StartDateFormat": "12 July", + "EndDate": "2024-08-12 00:00:00", + "EndDateFormat": "12 August", + "TaskImageUrl": "https://mock.com.hamsterTask.png" + }, + "RulesConfig": { + "IsRulesShow": true, + "RulesDesc": "This is Hamster Rules", + "RulesUrl" : "https://mock.com.hamsterRuls" + } + } + } + }, + "BeInvitedConfig": { + "BeInvitedConfig": { + "UnLogin": { + "TitleCopyWriting": "Unlock Web3", + "Logo": "https://mock.com.hamsterRuls", + "CopyWriting": "UnLogin", + "TaskConfigInfos":[ + { + "TaskNo": 1, + "Topic": "Task", + "TaskCopyWriting": "Referral", + "ButtonName": "Sign Up", + "ButtonShow": true + } + ], + "NoticeInfo": { + "CopyWriting": "AAA", + "ButtonName": "Delete Account", + "ButtonShow": true + } + + }, + "TaskOneCompleted": { + + }, + "TaskTowCompleted": { + + }, + "SocialRecovery": { + + } + + + } + }, + "Hamster": { + "MinAcornsScore": 130, + "HamsterReward": 1.0, + "Invitations": "Only addresses created via referral that have collected at least 130 $ACORNS during the event will be counted here.", + "HamsterEndPoints": "https://test.beangotown.com/AElfIndexer_HamsterWoods/HamsterWoodsIndexerPluginSchema/ui/playground" } } \ No newline at end of file diff --git a/src/CAServer.HttpApi/Controllers/FreeMintController.cs b/src/CAServer.HttpApi/Controllers/FreeMintController.cs new file mode 100644 index 000000000..838ac4858 --- /dev/null +++ b/src/CAServer.HttpApi/Controllers/FreeMintController.cs @@ -0,0 +1,55 @@ +using System.Threading.Tasks; +using CAServer.FreeMint; +using CAServer.FreeMint.Dtos; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; +using Volo.Abp; + +namespace CAServer.Controllers; + +[RemoteService] +[Area("app")] +[ControllerName("FreeMint")] +[Route("api/app/mint/")] +[Authorize] +[IgnoreAntiforgeryToken] +public class FreeMintController : CAServerController +{ + private readonly IFreeMintAppService _freeMintAppService; + + public FreeMintController(IFreeMintAppService freeMintAppService) + { + _freeMintAppService = freeMintAppService; + } + + [HttpGet("recentStatus")] + public async Task GetRecentStatusAsync() + { + return await _freeMintAppService.GetRecentStatusAsync(); + } + + [HttpGet("info")] + public async Task GetMintInfoAsync() + { + return await _freeMintAppService.GetMintInfoAsync(); + } + + [HttpPost("confirm")] + public async Task ConfirmAsync(ConfirmRequestDto requestDto) + { + return await _freeMintAppService.ConfirmAsync(requestDto); + } + + [HttpGet("status")] + public async Task GetStatusAsync(string itemId) + { + return await _freeMintAppService.GetStatusAsync(itemId); + } + + + [HttpGet("itemInfo")] + public async Task GetItemInfoAsync(string itemId) + { + return await _freeMintAppService.GetItemInfoAsync(itemId); + } +} \ No newline at end of file diff --git a/src/CAServer.HttpApi/Controllers/GrowthController.cs b/src/CAServer.HttpApi/Controllers/GrowthController.cs index 5cb08adeb..80033cbfb 100644 --- a/src/CAServer.HttpApi/Controllers/GrowthController.cs +++ b/src/CAServer.HttpApi/Controllers/GrowthController.cs @@ -53,26 +53,39 @@ public async Task GetReferralRecordList(ReferralRecor return await _statisticAppService.GetReferralRecordList(input); } - [HttpGet("referralTotalCount"),Authorize] - public async Task GetReferralTotalCount(ReferralRecordRequestDto input) - { - return await _statisticAppService.GetReferralTotalCountAsync(input); - } - - [HttpGet("referralRecordRank")] public async Task GetReferralRecordRankAsync(ReferralRecordRankRequestDto input) { return await _statisticAppService.GetReferralRecordRankAsync(input); } - [HttpGet("activityDateRange")] - public async Task GetActivityDateRange(ActivityEnums activityEnum) + [HttpGet("activityDetails")] + public async Task GetActivityDetails(ActivityEnums activityEnums) { - return await _growthAppService.GetActivityDateRangeAsync(activityEnum); + return await _growthAppService.GetActivityDetailsAsync(activityEnums); } + [HttpGet("rewardProgress")] + public async Task GetRewardProgress(ActivityEnums activityEnums) + { + return await _statisticAppService.GetRewardProgressAsync(activityEnums); + } + + [HttpGet("be-invited-configs")] + public async Task GetBeInvitedConfig() + { + return await _statisticAppService.GetBeInvitedConfigAsync(); + } + [HttpGet("get-activity-baseInfos")] + public async Task GetActivityBaseInfos() + { + return await _statisticAppService.ActivityBaseInfoAsync(); + } + + + + } \ No newline at end of file diff --git a/src/CAServer.HttpApi/Hubs/HamsterHub.cs b/src/CAServer.HttpApi/Hubs/HamsterHub.cs new file mode 100644 index 000000000..862190a65 --- /dev/null +++ b/src/CAServer.HttpApi/Hubs/HamsterHub.cs @@ -0,0 +1,73 @@ +using System; +using System.Threading.Tasks; +using CAServer.Growth.Dtos; +using Microsoft.AspNetCore.Authorization; +using Microsoft.Extensions.Logging; +using Newtonsoft.Json; +using Volo.Abp.AspNetCore.SignalR; + +namespace CAServer.Hubs; + +[HubRoute("HamsterDataReporting")] +[Authorize] +public class HamsterHub : AbpHub +{ + private readonly IHubService _hubService; + private readonly ILogger _logger; + + public HamsterHub(ILogger logger, IHubService hubService) + { + _logger = logger; + _hubService = hubService; + } + + public override Task OnConnectedAsync() + { + _logger.LogInformation("user connected"); + return base.OnConnectedAsync(); + } + + + public async Task Connect(string clientId) + { + if (string.IsNullOrEmpty(clientId)) + { + return; + } + + await _hubService.RegisterClient(clientId, Context.ConnectionId); + _logger.LogInformation("clientId={ClientId} connect", clientId); + await _hubService.SendAllUnreadRes(clientId); + } + + public async Task RewardProgress(RewardProgressDto rewardProgressDto) + { + if (!CurrentUser.Id.HasValue) + { + throw new UnauthorizedAccessException(); + } + + await _hubService.RewardProgressAsync(rewardProgressDto.ActivityEnums,rewardProgressDto.TargetClientId); + } + + + public async Task ReferralRecordList(ReferralRecordRequestDto input) + { + _logger.LogDebug("Hub param is {param}",JsonConvert.SerializeObject(input)); + if (!CurrentUser.Id.HasValue) + { + throw new UnauthorizedAccessException(); + } + + await _hubService.ReferralRecordListAsync(input); + } + + + + public override Task OnDisconnectedAsync(Exception? exception) + { + var clientId = _hubService.UnRegisterClient(Context.ConnectionId); + _logger.LogInformation("clientId={ClientId} disconnected!!!", clientId); + return base.OnDisconnectedAsync(exception); + } +} \ No newline at end of file diff --git a/src/CAServer.Redis/RedisCacheProvider.cs b/src/CAServer.Redis/RedisCacheProvider.cs index 64d100600..d5c5da22f 100644 --- a/src/CAServer.Redis/RedisCacheProvider.cs +++ b/src/CAServer.Redis/RedisCacheProvider.cs @@ -140,4 +140,18 @@ public async Task GetSortedSetLengthAsync(string leaderboardKey) var length = await _database.SortedSetLengthAsync(leaderboardKey); return length; } + + public async Task SetAddAsync(string key, string value, TimeSpan? expire) + { + await _database.SetAddAsync(key, value); + if (expire != null) + { + _database.KeyExpire(key, expire); + } + } + + public async Task SetMembersAsync(string key) + { + return await _database.SetMembersAsync(key); + } } \ No newline at end of file diff --git a/src/CAServer.Silo/CAServerOrleansSiloModule.cs b/src/CAServer.Silo/CAServerOrleansSiloModule.cs index bb89bb769..0adbb2bd9 100644 --- a/src/CAServer.Silo/CAServerOrleansSiloModule.cs +++ b/src/CAServer.Silo/CAServerOrleansSiloModule.cs @@ -2,6 +2,7 @@ using CAServer.Commons; using CAServer.Grains; using CAServer.Grains.Grain.ApplicationHandler; +using CAServer.Grains.Grain.FreeMint; using Microsoft.Extensions.DependencyInjection; using Volo.Abp; using Volo.Abp.AspNetCore.Serilog; @@ -23,6 +24,7 @@ public override void ConfigureServices(ServiceConfigurationContext context) //ConfigureEsIndexCreation(); Configure(configuration.GetSection("Contract")); Configure(configuration.GetSection("Chains")); + Configure(configuration.GetSection("FreeMint")); context.Services.AddHttpClient(); } diff --git a/test/CAServer.Application.Tests/AppleAuth/AppleAuthTest.cs b/test/CAServer.Application.Tests/AppleAuth/AppleAuthTest.cs index ba18d80ab..dc8a2e5c1 100644 --- a/test/CAServer.Application.Tests/AppleAuth/AppleAuthTest.cs +++ b/test/CAServer.Application.Tests/AppleAuth/AppleAuthTest.cs @@ -14,6 +14,8 @@ using CAServer.AppleAuth.Dtos; using CAServer.AppleVerify; using CAServer.Commons; +using CAServer.Growth.Dtos; +using CAServer.Options; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Microsoft.IdentityModel.Tokens; @@ -52,11 +54,12 @@ protected override void AfterAddApplication(IServiceCollection services) [Fact] public async Task DecodeRawTransactionTest() { + var v1 = new Version("1.30.0"); var v2 = new Version("1.21.0"); var result = v1 > v2; - - + + var publicKey = "04bc680e9f8ea189fb510f3f9758587731a9a64864f9edbc706cea6e8bf85cf6e56f236ba58d8840f3fce34cbf16a97f69dc784183d2eef770b367f6e8a90151af"; var rawTransaction = diff --git a/test/CAServer.Application.Tests/Growth/GrowthServiceMockTests.cs b/test/CAServer.Application.Tests/Growth/GrowthServiceMockTests.cs index 7bad2b57b..c2e766006 100644 --- a/test/CAServer.Application.Tests/Growth/GrowthServiceMockTests.cs +++ b/test/CAServer.Application.Tests/Growth/GrowthServiceMockTests.cs @@ -59,7 +59,8 @@ public IGrowthProvider MockGrowthProvider() { var provider = new Mock(); provider.Setup(t => - t.GetReferralRecordListAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())) + t.GetReferralRecordListAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny(), + It.IsAny(), It.IsAny(), It.IsAny>())) .ReturnsAsync(new List() { new ReferralRecordIndex() diff --git a/test/CAServer.Application.Tests/Hub/MockCacheProvider.cs b/test/CAServer.Application.Tests/Hub/MockCacheProvider.cs index 4f1f3bb0a..5d5ec05ba 100644 --- a/test/CAServer.Application.Tests/Hub/MockCacheProvider.cs +++ b/test/CAServer.Application.Tests/Hub/MockCacheProvider.cs @@ -132,4 +132,14 @@ public Task GetSortedSetLengthAsync(string leaderboardKey) { throw new NotImplementedException(); } + + public Task SetAddAsync(string key, string value, TimeSpan? timeSpan) + { + throw new NotImplementedException(); + } + + public Task SetMembersAsync(string key) + { + throw new NotImplementedException(); + } } \ No newline at end of file