diff --git a/AElf.CrossChainServer.sln b/AElf.CrossChainServer.sln
index 88b3a3a..2047560 100644
--- a/AElf.CrossChainServer.sln
+++ b/AElf.CrossChainServer.sln
@@ -45,6 +45,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AElf.CrossChainServer.Aethe
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AElf.CrossChainServer.AuthServer", "src\AElf.CrossChainServer.AuthServer\AElf.CrossChainServer.AuthServer.csproj", "{81A49BEA-810A-4591-B0FF-FFB765685C75}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AElf.CrossChainServer.EvmIndexer", "src\AElf.CrossChainServer.EvmIndexer\AElf.CrossChainServer.EvmIndexer.csproj", "{CE0B99D2-DBC4-421A-8684-50463B7D2F3E}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -127,6 +129,10 @@ Global
{81A49BEA-810A-4591-B0FF-FFB765685C75}.Debug|Any CPU.Build.0 = Debug|Any CPU
{81A49BEA-810A-4591-B0FF-FFB765685C75}.Release|Any CPU.ActiveCfg = Release|Any CPU
{81A49BEA-810A-4591-B0FF-FFB765685C75}.Release|Any CPU.Build.0 = Release|Any CPU
+ {CE0B99D2-DBC4-421A-8684-50463B7D2F3E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {CE0B99D2-DBC4-421A-8684-50463B7D2F3E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {CE0B99D2-DBC4-421A-8684-50463B7D2F3E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {CE0B99D2-DBC4-421A-8684-50463B7D2F3E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -151,6 +157,7 @@ Global
{07B948AC-AACC-4A84-9C59-E7CF0BD8DB29} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{9311BF41-D5E8-4BD4-8B18-BE3ED24848E9} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
{81A49BEA-810A-4591-B0FF-FFB765685C75} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
+ {CE0B99D2-DBC4-421A-8684-50463B7D2F3E} = {CA9AC87F-097E-4F15-8393-4BC07735A5B0}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {28315BFD-90E7-4E14-A2EA-F3D23AF4126F}
diff --git a/CodeCoverage.runsettings b/CodeCoverage.runsettings
index 0d25f73..290c399 100755
--- a/CodeCoverage.runsettings
+++ b/CodeCoverage.runsettings
@@ -7,7 +7,36 @@
cobertura
[xunit.*]*,[*Tests]*
- **/test/**/*.cs,**/src/AElf.CrossChainServer.IdentityServer/**/*.cs,**/src/AElf.CrossChainServer.DbMigrator/**/*.cs,**/src/AElf.CrossChainServer.EntityHandler/**/*.cs,**/src/AElf.CrossChainServer.ContractEventHandler/**/*.cs,**/src/AElf.CrossChainServer.HttpApi.Host/**/*.cs,**/src/AElf.CrossChainServer.HttpApi.Client/**/*.cs,**/src/AElf.CrossChainServer.Application.Contracts/Contracts/**/*.cs,**/src/AElf.CrossChainServer.Application.Contracts/Permissions/**/*.cs,**/src/AElf.CrossChainServer.EntityFrameworkCore/Migrations/*.cs,**/src/AElf.CrossChainServer.Application/Contracts/**/*.cs,**/src/AElf.CrossChainServer.Application/Chains/AElfClientProvider.cs,**/src/AElf.CrossChainServer.Application/Chains/EvmClientProvider.cs,**/src/AElf.CrossChainServer.Application/Indexer/**/*.cs,**/src/AElf.CrossChainServer.Domain/Data/**/*.cs,**/src/AElf.CrossChainServer.Domain/IdentityServer/**/*.cs,**/src/AElf.CrossChainServer.Domain/Chains/ChainDataSeedContributor.cs,**/src/AElf.CrossChainServer.EntityFrameworkCore/EntityFrameworkCore/CrossChainServerDbContextFactory.cs,**/src/AElf.CrossChainServer.EntityFrameworkCore/EntityFrameworkCore/EntityFrameworkCoreCrossChainServerDbSchemaMigrator.cs,**/src/AElf.CrossChainServer.Application/Contracts/CrossChain/ICheckTransferProvider.cs,**/src/AElf.CrossChainServer.Application/HttpClient/*.cs
+
+ **/test/**/*.cs,
+ **/src/AElf.CrossChainServer.AuthServer/**/*.cs,
+ **/src/AElf.CrossChainServer.AetherlinkApi/**/*.cs,
+ **/src/AElf.CrossChainServer.EvmIndexer/**/*.cs,
+ **/src/AElf.CrossChainServer.Worker/**/*.cs,
+ **/src/AElf.CrossChainServer.DbMigrator/**/*.cs,
+ **/src/AElf.CrossChainServer.EntityHandler/**/*.cs,
+ **/src/AElf.CrossChainServer.HttpApi.Host/**/*.cs,
+ **/src/AElf.CrossChainServer.HttpApi.Client/**/*.cs,
+ **/src/AElf.CrossChainServer.Application.Contracts/**/*.cs,
+ **/src/AElf.CrossChainServer.EntityFrameworkCore/Migrations/*.cs,
+ **/src/AElf.CrossChainServer.Application/Contracts/**/*.cs,
+ **/src/AElf.CrossChainServer.Application/Chains/*.cs,
+ **/src/AElf.CrossChainServer.Application/Chains/Ton/*.cs,
+ **/src/AElf.CrossChainServer.Application/Indexer/**/*.cs,
+ **/src/AElf.CrossChainServer.Application/CrossChain/AetherlinkOptions.cs,
+ **/src/AElf.CrossChainServer.Application/CrossChain/CrossChainTransferAppService.ExceptionHandler.cs,
+ **/src/AElf.CrossChainServer.Application/CrossChain/IAetherLinkProvider.cs,
+ **/src/AElf.CrossChainServer.Application/CrossChain/ICheckTransferProvider.cs,
+ **/src/AElf.CrossChainServer.Application/TokenAccess/**/*.cs,
+ **/src/AElf.CrossChainServer.Application/TokenPool/ITokenLiquidityMonitorProvider.cs,
+ **/src/AElf.CrossChainServer.Domain/Notify/*.cs,
+ **/src/AElf.CrossChainServer.Domain/Data/**/*.cs,
+ **/src/AElf.CrossChainServer.Domain/OpenIddict/*.cs,
+ **/src/AElf.CrossChainServer.Domain/Chains/ChainDataSeedContributor.cs,
+ **/src/AElf.CrossChainServer.Domain.Shared/*.cs,
+ **/src/AElf.CrossChainServer.EntityFrameworkCore/EntityFrameworkCore/CrossChainServerDbContextFactory.cs,
+ **/src/AElf.CrossChainServer.EntityFrameworkCore/EntityFrameworkCore/EntityFrameworkCoreCrossChainServerDbSchemaMigrator.cs,
+ **/src/AElf.CrossChainServer.Application/HttpClient/*.cs
Obsolete,GeneratedCodeAttribute
false
diff --git a/src/AElf.CrossChainServer.Application.Contracts/Contracts/BridgeContractSyncInfoDto.cs b/src/AElf.CrossChainServer.Application.Contracts/Contracts/BridgeContractSyncInfoDto.cs
deleted file mode 100644
index 31d028e..0000000
--- a/src/AElf.CrossChainServer.Application.Contracts/Contracts/BridgeContractSyncInfoDto.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-using AElf.CrossChainServer.BridgeContract;
-
-namespace AElf.CrossChainServer.Contracts;
-
-public class BridgeContractSyncInfoDto
-{
- public string ChainId { get; set; }
- public Guid TokenId { get; set; }
- public TransferType Type { get; set; }
- public long SyncIndex { get; set; }
-}
\ No newline at end of file
diff --git a/src/AElf.CrossChainServer.Application.Contracts/Contracts/IBridgeContractAppService.cs b/src/AElf.CrossChainServer.Application.Contracts/Contracts/IBridgeContractAppService.cs
index 84fddf9..423251c 100644
--- a/src/AElf.CrossChainServer.Application.Contracts/Contracts/IBridgeContractAppService.cs
+++ b/src/AElf.CrossChainServer.Application.Contracts/Contracts/IBridgeContractAppService.cs
@@ -8,20 +8,8 @@ namespace AElf.CrossChainServer.Contracts;
public interface IBridgeContractAppService
{
- Task> GetTransferReceiptInfosAsync(string chainId, string targetChainId, Guid tokenId,
- long fromIndex, long endIndex);
- Task> GetReceivedReceiptInfosAsync(string chainId, string targetChainId, Guid tokenId,
- long fromIndex, long endIndex);
- Task GetSyncInfoAsync(string chainId, TransferType type, string targetChainId, Guid tokenId);
- Task UpdateSyncInfoAsync(string chainId, TransferType type, string targetChainId, Guid tokenId, long syncIndex);
- Task> GetTransferReceiptIndexAsync(string chainId, List tokenIds, List targetChainIds);
- Task> GetReceiveReceiptIndexAsync(string chainId, List tokenIds, List targetChainIds);
- Task CheckTransmitAsync(string chainId, string receiptHash);
- Task GetSwapIdByTokenAsync(string chainId, string fromChainId, string symbol);
- Task SwapTokenAsync(string chainId, string swapId, string receiptId, string originAmount,
- string receiverAddress);
-
Task GetDailyLimitAsync(string chainId, Guid tokenId, string targetChainId);
+ Task GetSwapDailyLimitAsync(string chainId, string swapId);
Task> GetCurrentReceiptTokenBucketStatesAsync(string chainId, List tokenIds, List targetChainIds);
Task> GetCurrentSwapTokenBucketStatesAsync(string chainId, List tokenIds, List fromChainIds);
diff --git a/src/AElf.CrossChainServer.Application.Contracts/Contracts/IReportContractAppService.cs b/src/AElf.CrossChainServer.Application.Contracts/Contracts/IReportContractAppService.cs
deleted file mode 100644
index 816a686..0000000
--- a/src/AElf.CrossChainServer.Application.Contracts/Contracts/IReportContractAppService.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-using System.Threading.Tasks;
-
-namespace AElf.CrossChainServer.Contracts;
-
-public interface IReportContractAppService
-{
- Task QueryOracleAsync(string chainId, string targetChainId, string receiptId, string receiptHash,string receiptInfo);
-}
\ No newline at end of file
diff --git a/src/AElf.CrossChainServer.Application.Contracts/Contracts/OracleContract.c.cs b/src/AElf.CrossChainServer.Application.Contracts/Contracts/OracleContract.c.cs
deleted file mode 100644
index 3eccca8..0000000
--- a/src/AElf.CrossChainServer.Application.Contracts/Contracts/OracleContract.c.cs
+++ /dev/null
@@ -1,231 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: oracle_contract.proto
-//
-#pragma warning disable 0414, 1591
-#region Designer generated code
-
-using System.Collections.Generic;
-using aelf = global::AElf.CSharp.Core;
-
-namespace AElf.Contracts.Oracle {
-
- #region Events
- public partial class QueryCreated : aelf::IEvent
- {
- public global::System.Collections.Generic.IEnumerable GetIndexed()
- {
- return new List
- {
- };
- }
-
- public QueryCreated GetNonIndexed()
- {
- return new QueryCreated
- {
- Payment = Payment,
- CallbackInfo = CallbackInfo,
- AggregatorContractAddress = AggregatorContractAddress,
- DesignatedNodeList = DesignatedNodeList,
- QueryInfo = QueryInfo,
- AggregateThreshold = AggregateThreshold,
- QuerySender = QuerySender,
- QueryId = QueryId,
- Token = Token,
- MaximumPermissibleDeviation = MaximumPermissibleDeviation,
- AggregateOption = AggregateOption,
- TaskId = TaskId,
- };
- }
- }
-
- public partial class QueryTaskCreated : aelf::IEvent
- {
- public global::System.Collections.Generic.IEnumerable GetIndexed()
- {
- return new List
- {
- };
- }
-
- public QueryTaskCreated GetNonIndexed()
- {
- return new QueryTaskCreated
- {
- EachPayment = EachPayment,
- SupposedQueryTimes = SupposedQueryTimes,
- QueryInfo = QueryInfo,
- EndTime = EndTime,
- DesignatedNodeList = DesignatedNodeList,
- AggregatorContractAddress = AggregatorContractAddress,
- CallbackInfo = CallbackInfo,
- Creator = Creator,
- AggregateThreshold = AggregateThreshold,
- AggregateOption = AggregateOption,
- };
- }
- }
-
- public partial class QueryCancelled : aelf::IEvent
- {
- public global::System.Collections.Generic.IEnumerable GetIndexed()
- {
- return new List
- {
- };
- }
-
- public QueryCancelled GetNonIndexed()
- {
- return new QueryCancelled
- {
- QueryId = QueryId,
- };
- }
- }
-
- public partial class SufficientCommitmentsCollected : aelf::IEvent
- {
- public global::System.Collections.Generic.IEnumerable GetIndexed()
- {
- return new List
- {
- };
- }
-
- public SufficientCommitmentsCollected GetNonIndexed()
- {
- return new SufficientCommitmentsCollected
- {
- QueryId = QueryId,
- };
- }
- }
-
- public partial class Committed : aelf::IEvent
- {
- public global::System.Collections.Generic.IEnumerable GetIndexed()
- {
- return new List
- {
- };
- }
-
- public Committed GetNonIndexed()
- {
- return new Committed
- {
- QueryId = QueryId,
- OracleNodeAddress = OracleNodeAddress,
- Commitment = Commitment,
- };
- }
- }
-
- public partial class CommitmentRevealed : aelf::IEvent
- {
- public global::System.Collections.Generic.IEnumerable GetIndexed()
- {
- return new List
- {
- };
- }
-
- public CommitmentRevealed GetNonIndexed()
- {
- return new CommitmentRevealed
- {
- QueryId = QueryId,
- OracleNodeAddress = OracleNodeAddress,
- Commitment = Commitment,
- RevealData = RevealData,
- Salt = Salt,
- };
- }
- }
-
- public partial class CommitmentRevealFailed : aelf::IEvent
- {
- public global::System.Collections.Generic.IEnumerable GetIndexed()
- {
- return new List
- {
- };
- }
-
- public CommitmentRevealFailed GetNonIndexed()
- {
- return new CommitmentRevealFailed
- {
- QueryId = QueryId,
- OracleNodeAddress = OracleNodeAddress,
- Commitment = Commitment,
- RevealData = RevealData,
- Salt = Salt,
- };
- }
- }
-
- public partial class QueryCompletedWithAggregation : aelf::IEvent
- {
- public global::System.Collections.Generic.IEnumerable GetIndexed()
- {
- return new List
- {
- };
- }
-
- public QueryCompletedWithAggregation GetNonIndexed()
- {
- return new QueryCompletedWithAggregation
- {
- QueryId = QueryId,
- Result = Result,
- };
- }
- }
-
- public partial class QueryCompletedWithoutAggregation : aelf::IEvent
- {
- public global::System.Collections.Generic.IEnumerable GetIndexed()
- {
- return new List
- {
- };
- }
-
- public QueryCompletedWithoutAggregation GetNonIndexed()
- {
- return new QueryCompletedWithoutAggregation
- {
- QueryId = QueryId,
- Result = Result,
- };
- }
- }
-
- public partial class TokenLocked : aelf::IEvent
- {
- public global::System.Collections.Generic.IEnumerable GetIndexed()
- {
- return new List
- {
- };
- }
-
- public TokenLocked GetNonIndexed()
- {
- return new TokenLocked
- {
- OracleNodeAddress = OracleNodeAddress,
- FromAddress = FromAddress,
- LockedAmount = LockedAmount,
- };
- }
- }
-
- #endregion
-}
-#endregion
-
diff --git a/src/AElf.CrossChainServer.Application.Contracts/Contracts/OracleContract.g.cs b/src/AElf.CrossChainServer.Application.Contracts/Contracts/OracleContract.g.cs
deleted file mode 100644
index 06e4e2b..0000000
--- a/src/AElf.CrossChainServer.Application.Contracts/Contracts/OracleContract.g.cs
+++ /dev/null
@@ -1,8762 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: oracle_contract.proto
-//
-#pragma warning disable 1591, 0612, 3021
-#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 AElf.Contracts.Oracle {
-
- /// Holder for reflection information generated from oracle_contract.proto
- public static partial class OracleContractReflection {
-
- #region Descriptor
- /// File descriptor for oracle_contract.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static OracleContractReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "ChVvcmFjbGVfY29udHJhY3QucHJvdG8aD2FlbGYvY29yZS5wcm90bxoSYWVs",
- "Zi9vcHRpb25zLnByb3RvGhtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8a",
- "H2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8aHmdvb2dsZS9wcm90",
- "b2J1Zi93cmFwcGVycy5wcm90byLpAQoPSW5pdGlhbGl6ZUlucHV0EiIKGm1p",
- "bmltdW1fb3JhY2xlX25vZGVzX2NvdW50GAEgASgFEiAKGGRlZmF1bHRfcmV2",
- "ZWFsX3RocmVzaG9sZBgCIAEoBRIjChtkZWZhdWx0X2FnZ3JlZ2F0ZV90aHJl",
- "c2hvbGQYAyABKAUSIgoaZGVmYXVsdF9leHBpcmF0aW9uX3NlY29uZHMYBCAB",
- "KAUSFQoNaXNfY2hhcmdlX2ZlZRgFIAEoCBIwChlyZWdpbWVudF9jb250cmFj",
- "dF9hZGRyZXNzGAYgASgLMg0uYWVsZi5BZGRyZXNzIqYCCgpRdWVyeUlucHV0",
- "Eg8KB3BheW1lbnQYASABKAMSJAoNY2FsbGJhY2tfaW5mbxgCIAEoCzINLkNh",
- "bGxiYWNrSW5mbxIyChthZ2dyZWdhdG9yX2NvbnRyYWN0X2FkZHJlc3MYAyAB",
- "KAsyDS5hZWxmLkFkZHJlc3MS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dG9idWYuSW50NjRWYWx1ZSIFiIn3AQESQwoM",
- "R2V0VGhyZXNob2xkEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GhQuT3JhY2xl",
- "Tm9kZVRocmVzaG9sZCIFiIn3AQESWQobR2V0RGVmYXVsdEV4cGlyYXRpb25T",
- "ZWNvbmRzEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GhsuZ29vZ2xlLnByb3Rv",
- "YnVmLkludDMyVmFsdWUiBYiJ9wEBEjUKEkdldEhlbHBmdWxOb2RlTGlzdBIK",
- "LmFlbGYuSGFzaBoMLkFkZHJlc3NMaXN0IgWIifcBARItCgxHZXRRdWVyeVRh",
- "c2sSCi5hZWxmLkhhc2gaCi5RdWVyeVRhc2siBYiJ9wEBEjsKFUdldFJlZ2lt",
- "ZW50TWVtYmVyTGlzdBINLmFlbGYuQWRkcmVzcxoMLkFkZHJlc3NMaXN0IgWI",
- "ifcBARoussz2ASlBRWxmLkNvbnRyYWN0cy5PcmFjbGUuT3JhY2xlQ29udHJh",
- "Y3RTdGF0ZUIYqgIVQUVsZi5Db250cmFjdHMuT3JhY2xlYgZwcm90bzM="));
- 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.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.InitializeInput), global::AElf.Contracts.Oracle.InitializeInput.Parser, new[]{ "MinimumOracleNodesCount", "DefaultRevealThreshold", "DefaultAggregateThreshold", "DefaultExpirationSeconds", "IsChargeFee", "RegimentContractAddress" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.QueryInput), global::AElf.Contracts.Oracle.QueryInput.Parser, new[]{ "Payment", "CallbackInfo", "AggregatorContractAddress", "DesignatedNodeList", "QueryInfo", "AggregateThreshold", "Token", "AggregateOption", "TaskId" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.CreateQueryTaskInput), global::AElf.Contracts.Oracle.CreateQueryTaskInput.Parser, new[]{ "EachPayment", "SupposedQueryTimes", "QueryInfo", "EndTime", "CallbackInfo", "AggregatorContractAddress", "AggregateOption", "AggregateThreshold" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.TaskQueryInput), global::AElf.Contracts.Oracle.TaskQueryInput.Parser, new[]{ "TaskId" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.CompleteQueryTaskInput), global::AElf.Contracts.Oracle.CompleteQueryTaskInput.Parser, new[]{ "TaskId", "DesignatedNodeList", "AggregateThreshold" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.CallbackInfo), global::AElf.Contracts.Oracle.CallbackInfo.Parser, new[]{ "ContractAddress", "MethodName" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.AddressList), global::AElf.Contracts.Oracle.AddressList.Parser, new[]{ "Value" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.QueryRecord), global::AElf.Contracts.Oracle.QueryRecord.Parser, new[]{ "DesignatedNodeList", "AggregatorContractAddress", "ExpirationTimestamp", "IsSufficientCommitmentsCollected", "IsSufficientDataCollected", "FinalResult", "Payment", "CallbackInfo", "QueryId", "AggregateThreshold", "QuerySender", "IsCommitStageFinished", "CommitmentsCount", "IsCancelled", "QueryInfo", "Token", "DataRecords", "AggregateOption", "TaskId", "IsPaidToOracleContract" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.CreateRegimentInput), global::AElf.Contracts.Oracle.CreateRegimentInput.Parser, new[]{ "Manager", "InitialMemberList", "IsApproveToJoin" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.JoinRegimentInput), global::AElf.Contracts.Oracle.JoinRegimentInput.Parser, new[]{ "RegimentAddress", "NewMemberAddress" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.LeaveRegimentInput), global::AElf.Contracts.Oracle.LeaveRegimentInput.Parser, new[]{ "RegimentAddress", "LeaveMemberAddress" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.AddRegimentMemberInput), global::AElf.Contracts.Oracle.AddRegimentMemberInput.Parser, new[]{ "RegimentAddress", "NewMemberAddress" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.DeleteRegimentMemberInput), global::AElf.Contracts.Oracle.DeleteRegimentMemberInput.Parser, new[]{ "RegimentAddress", "DeleteMemberAddress" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.TransferRegimentOwnershipInput), global::AElf.Contracts.Oracle.TransferRegimentOwnershipInput.Parser, new[]{ "RegimentAddress", "NewManagerAddress", "OriginSenderAddress" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.AddAdminsInput), global::AElf.Contracts.Oracle.AddAdminsInput.Parser, new[]{ "RegimentAddress", "NewAdmins", "OriginSenderAddress" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.DeleteAdminsInput), global::AElf.Contracts.Oracle.DeleteAdminsInput.Parser, new[]{ "RegimentAddress", "DeleteAdmins", "OriginSenderAddress" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.QueryTask), global::AElf.Contracts.Oracle.QueryTask.Parser, new[]{ "EachPayment", "SupposedQueryTimes", "QueryInfo", "EndTime", "DesignatedNodeList", "AggregatorContractAddress", "ActualQueriedTimes", "CallbackInfo", "Creator", "AggregateThreshold", "AggregateOption", "OnGoing" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.CommitInput), global::AElf.Contracts.Oracle.CommitInput.Parser, new[]{ "QueryId", "Commitment" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.RevealInput), global::AElf.Contracts.Oracle.RevealInput.Parser, new[]{ "QueryId", "Data", "Salt" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.CommitmentMap), global::AElf.Contracts.Oracle.CommitmentMap.Parser, new[]{ "Value" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.OracleNodeThreshold), global::AElf.Contracts.Oracle.OracleNodeThreshold.Parser, new[]{ "MinimumOracleNodesCount", "DefaultRevealThreshold", "DefaultAggregateThreshold" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.ResultList), global::AElf.Contracts.Oracle.ResultList.Parser, new[]{ "Results", "Frequencies" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.DataRecord), global::AElf.Contracts.Oracle.DataRecord.Parser, new[]{ "Address", "Data" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.DataRecords), global::AElf.Contracts.Oracle.DataRecords.Parser, new[]{ "Value" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.PlainResult), global::AElf.Contracts.Oracle.PlainResult.Parser, new[]{ "DataRecords", "RegimentAddress", "QueryInfo", "Token" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.LockTokensInput), global::AElf.Contracts.Oracle.LockTokensInput.Parser, new[]{ "OracleNodeAddress", "LockAmount" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.UnlockTokensInput), global::AElf.Contracts.Oracle.UnlockTokensInput.Parser, new[]{ "OracleNodeAddress", "WithdrawAmount" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.QueryInfo), global::AElf.Contracts.Oracle.QueryInfo.Parser, new[]{ "Title", "Options" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.QueryCreated), global::AElf.Contracts.Oracle.QueryCreated.Parser, new[]{ "Payment", "CallbackInfo", "AggregatorContractAddress", "DesignatedNodeList", "QueryInfo", "AggregateThreshold", "QuerySender", "QueryId", "Token", "MaximumPermissibleDeviation", "AggregateOption", "TaskId" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.QueryTaskCreated), global::AElf.Contracts.Oracle.QueryTaskCreated.Parser, new[]{ "EachPayment", "SupposedQueryTimes", "QueryInfo", "EndTime", "DesignatedNodeList", "AggregatorContractAddress", "CallbackInfo", "Creator", "AggregateThreshold", "AggregateOption" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.QueryCancelled), global::AElf.Contracts.Oracle.QueryCancelled.Parser, new[]{ "QueryId" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.SufficientCommitmentsCollected), global::AElf.Contracts.Oracle.SufficientCommitmentsCollected.Parser, new[]{ "QueryId" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.Committed), global::AElf.Contracts.Oracle.Committed.Parser, new[]{ "QueryId", "OracleNodeAddress", "Commitment" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.CommitmentRevealed), global::AElf.Contracts.Oracle.CommitmentRevealed.Parser, new[]{ "QueryId", "OracleNodeAddress", "Commitment", "RevealData", "Salt" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.CommitmentRevealFailed), global::AElf.Contracts.Oracle.CommitmentRevealFailed.Parser, new[]{ "QueryId", "OracleNodeAddress", "Commitment", "RevealData", "Salt" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.QueryCompletedWithAggregation), global::AElf.Contracts.Oracle.QueryCompletedWithAggregation.Parser, new[]{ "QueryId", "Result" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.QueryCompletedWithoutAggregation), global::AElf.Contracts.Oracle.QueryCompletedWithoutAggregation.Parser, new[]{ "QueryId", "Result" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Oracle.TokenLocked), global::AElf.Contracts.Oracle.TokenLocked.Parser, new[]{ "OracleNodeAddress", "FromAddress", "LockedAmount" }, null, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- public sealed partial class InitializeInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InitializeInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public InitializeInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public InitializeInput(InitializeInput other) : this() {
- minimumOracleNodesCount_ = other.minimumOracleNodesCount_;
- defaultRevealThreshold_ = other.defaultRevealThreshold_;
- defaultAggregateThreshold_ = other.defaultAggregateThreshold_;
- defaultExpirationSeconds_ = other.defaultExpirationSeconds_;
- isChargeFee_ = other.isChargeFee_;
- regimentContractAddress_ = other.regimentContractAddress_ != null ? other.regimentContractAddress_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public InitializeInput Clone() {
- return new InitializeInput(this);
- }
-
- /// Field number for the "minimum_oracle_nodes_count" field.
- public const int MinimumOracleNodesCountFieldNumber = 1;
- private int minimumOracleNodesCount_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int MinimumOracleNodesCount {
- get { return minimumOracleNodesCount_; }
- set {
- minimumOracleNodesCount_ = value;
- }
- }
-
- /// Field number for the "default_reveal_threshold" field.
- public const int DefaultRevealThresholdFieldNumber = 2;
- private int defaultRevealThreshold_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int DefaultRevealThreshold {
- get { return defaultRevealThreshold_; }
- set {
- defaultRevealThreshold_ = value;
- }
- }
-
- /// Field number for the "default_aggregate_threshold" field.
- public const int DefaultAggregateThresholdFieldNumber = 3;
- private int defaultAggregateThreshold_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int DefaultAggregateThreshold {
- get { return defaultAggregateThreshold_; }
- set {
- defaultAggregateThreshold_ = value;
- }
- }
-
- /// Field number for the "default_expiration_seconds" field.
- public const int DefaultExpirationSecondsFieldNumber = 4;
- private int defaultExpirationSeconds_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int DefaultExpirationSeconds {
- get { return defaultExpirationSeconds_; }
- set {
- defaultExpirationSeconds_ = value;
- }
- }
-
- /// Field number for the "is_charge_fee" field.
- public const int IsChargeFeeFieldNumber = 5;
- private bool isChargeFee_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool IsChargeFee {
- get { return isChargeFee_; }
- set {
- isChargeFee_ = value;
- }
- }
-
- /// Field number for the "regiment_contract_address" field.
- public const int RegimentContractAddressFieldNumber = 6;
- private global::AElf.Types.Address regimentContractAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address RegimentContractAddress {
- get { return regimentContractAddress_; }
- set {
- regimentContractAddress_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as InitializeInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(InitializeInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (MinimumOracleNodesCount != other.MinimumOracleNodesCount) return false;
- if (DefaultRevealThreshold != other.DefaultRevealThreshold) return false;
- if (DefaultAggregateThreshold != other.DefaultAggregateThreshold) return false;
- if (DefaultExpirationSeconds != other.DefaultExpirationSeconds) return false;
- if (IsChargeFee != other.IsChargeFee) return false;
- if (!object.Equals(RegimentContractAddress, other.RegimentContractAddress)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (MinimumOracleNodesCount != 0) hash ^= MinimumOracleNodesCount.GetHashCode();
- if (DefaultRevealThreshold != 0) hash ^= DefaultRevealThreshold.GetHashCode();
- if (DefaultAggregateThreshold != 0) hash ^= DefaultAggregateThreshold.GetHashCode();
- if (DefaultExpirationSeconds != 0) hash ^= DefaultExpirationSeconds.GetHashCode();
- if (IsChargeFee != false) hash ^= IsChargeFee.GetHashCode();
- if (regimentContractAddress_ != null) hash ^= RegimentContractAddress.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (MinimumOracleNodesCount != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(MinimumOracleNodesCount);
- }
- if (DefaultRevealThreshold != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(DefaultRevealThreshold);
- }
- if (DefaultAggregateThreshold != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(DefaultAggregateThreshold);
- }
- if (DefaultExpirationSeconds != 0) {
- output.WriteRawTag(32);
- output.WriteInt32(DefaultExpirationSeconds);
- }
- if (IsChargeFee != false) {
- output.WriteRawTag(40);
- output.WriteBool(IsChargeFee);
- }
- if (regimentContractAddress_ != null) {
- output.WriteRawTag(50);
- output.WriteMessage(RegimentContractAddress);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (MinimumOracleNodesCount != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinimumOracleNodesCount);
- }
- if (DefaultRevealThreshold != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(DefaultRevealThreshold);
- }
- if (DefaultAggregateThreshold != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(DefaultAggregateThreshold);
- }
- if (DefaultExpirationSeconds != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(DefaultExpirationSeconds);
- }
- if (IsChargeFee != false) {
- size += 1 + 1;
- }
- if (regimentContractAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegimentContractAddress);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(InitializeInput other) {
- if (other == null) {
- return;
- }
- if (other.MinimumOracleNodesCount != 0) {
- MinimumOracleNodesCount = other.MinimumOracleNodesCount;
- }
- if (other.DefaultRevealThreshold != 0) {
- DefaultRevealThreshold = other.DefaultRevealThreshold;
- }
- if (other.DefaultAggregateThreshold != 0) {
- DefaultAggregateThreshold = other.DefaultAggregateThreshold;
- }
- if (other.DefaultExpirationSeconds != 0) {
- DefaultExpirationSeconds = other.DefaultExpirationSeconds;
- }
- if (other.IsChargeFee != false) {
- IsChargeFee = other.IsChargeFee;
- }
- if (other.regimentContractAddress_ != null) {
- if (regimentContractAddress_ == null) {
- RegimentContractAddress = new global::AElf.Types.Address();
- }
- RegimentContractAddress.MergeFrom(other.RegimentContractAddress);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- MinimumOracleNodesCount = input.ReadInt32();
- break;
- }
- case 16: {
- DefaultRevealThreshold = input.ReadInt32();
- break;
- }
- case 24: {
- DefaultAggregateThreshold = input.ReadInt32();
- break;
- }
- case 32: {
- DefaultExpirationSeconds = input.ReadInt32();
- break;
- }
- case 40: {
- IsChargeFee = input.ReadBool();
- break;
- }
- case 50: {
- if (regimentContractAddress_ == null) {
- RegimentContractAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(RegimentContractAddress);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class QueryInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QueryInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryInput(QueryInput other) : this() {
- payment_ = other.payment_;
- callbackInfo_ = other.callbackInfo_ != null ? other.callbackInfo_.Clone() : null;
- aggregatorContractAddress_ = other.aggregatorContractAddress_ != null ? other.aggregatorContractAddress_.Clone() : null;
- designatedNodeList_ = other.designatedNodeList_ != null ? other.designatedNodeList_.Clone() : null;
- queryInfo_ = other.queryInfo_ != null ? other.queryInfo_.Clone() : null;
- aggregateThreshold_ = other.aggregateThreshold_;
- token_ = other.token_;
- aggregateOption_ = other.aggregateOption_;
- taskId_ = other.taskId_ != null ? other.taskId_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryInput Clone() {
- return new QueryInput(this);
- }
-
- /// Field number for the "payment" field.
- public const int PaymentFieldNumber = 1;
- private long payment_;
- ///
- /// Maximum for this query option.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Payment {
- get { return payment_; }
- set {
- payment_ = value;
- }
- }
-
- /// Field number for the "callback_info" field.
- public const int CallbackInfoFieldNumber = 2;
- private global::AElf.Contracts.Oracle.CallbackInfo callbackInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.CallbackInfo CallbackInfo {
- get { return callbackInfo_; }
- set {
- callbackInfo_ = value;
- }
- }
-
- /// Field number for the "aggregator_contract_address" field.
- public const int AggregatorContractAddressFieldNumber = 3;
- private global::AElf.Types.Address aggregatorContractAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address AggregatorContractAddress {
- get { return aggregatorContractAddress_; }
- set {
- aggregatorContractAddress_ = value;
- }
- }
-
- /// Field number for the "designated_node_list" field.
- public const int DesignatedNodeListFieldNumber = 4;
- private global::AElf.Contracts.Oracle.AddressList designatedNodeList_;
- ///
- /// Will be regiment address if count is 1.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.AddressList DesignatedNodeList {
- get { return designatedNodeList_; }
- set {
- designatedNodeList_ = value;
- }
- }
-
- /// Field number for the "query_info" field.
- public const int QueryInfoFieldNumber = 5;
- private global::AElf.Contracts.Oracle.QueryInfo queryInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.QueryInfo QueryInfo {
- get { return queryInfo_; }
- set {
- queryInfo_ = value;
- }
- }
-
- /// Field number for the "aggregate_threshold" field.
- public const int AggregateThresholdFieldNumber = 6;
- private int aggregateThreshold_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int AggregateThreshold {
- get { return aggregateThreshold_; }
- set {
- aggregateThreshold_ = value;
- }
- }
-
- /// Field number for the "token" field.
- public const int TokenFieldNumber = 7;
- private string token_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Token {
- get { return token_; }
- set {
- token_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "aggregate_option" field.
- public const int AggregateOptionFieldNumber = 8;
- private int aggregateOption_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int AggregateOption {
- get { return aggregateOption_; }
- set {
- aggregateOption_ = value;
- }
- }
-
- /// Field number for the "task_id" field.
- public const int TaskIdFieldNumber = 9;
- private global::AElf.Types.Hash taskId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash TaskId {
- get { return taskId_; }
- set {
- taskId_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as QueryInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(QueryInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Payment != other.Payment) return false;
- if (!object.Equals(CallbackInfo, other.CallbackInfo)) return false;
- if (!object.Equals(AggregatorContractAddress, other.AggregatorContractAddress)) return false;
- if (!object.Equals(DesignatedNodeList, other.DesignatedNodeList)) return false;
- if (!object.Equals(QueryInfo, other.QueryInfo)) return false;
- if (AggregateThreshold != other.AggregateThreshold) return false;
- if (Token != other.Token) return false;
- if (AggregateOption != other.AggregateOption) return false;
- if (!object.Equals(TaskId, other.TaskId)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Payment != 0L) hash ^= Payment.GetHashCode();
- if (callbackInfo_ != null) hash ^= CallbackInfo.GetHashCode();
- if (aggregatorContractAddress_ != null) hash ^= AggregatorContractAddress.GetHashCode();
- if (designatedNodeList_ != null) hash ^= DesignatedNodeList.GetHashCode();
- if (queryInfo_ != null) hash ^= QueryInfo.GetHashCode();
- if (AggregateThreshold != 0) hash ^= AggregateThreshold.GetHashCode();
- if (Token.Length != 0) hash ^= Token.GetHashCode();
- if (AggregateOption != 0) hash ^= AggregateOption.GetHashCode();
- if (taskId_ != null) hash ^= TaskId.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Payment != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(Payment);
- }
- if (callbackInfo_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(CallbackInfo);
- }
- if (aggregatorContractAddress_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(AggregatorContractAddress);
- }
- if (designatedNodeList_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(DesignatedNodeList);
- }
- if (queryInfo_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(QueryInfo);
- }
- if (AggregateThreshold != 0) {
- output.WriteRawTag(48);
- output.WriteInt32(AggregateThreshold);
- }
- if (Token.Length != 0) {
- output.WriteRawTag(58);
- output.WriteString(Token);
- }
- if (AggregateOption != 0) {
- output.WriteRawTag(64);
- output.WriteInt32(AggregateOption);
- }
- if (taskId_ != null) {
- output.WriteRawTag(74);
- output.WriteMessage(TaskId);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Payment != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Payment);
- }
- if (callbackInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(CallbackInfo);
- }
- if (aggregatorContractAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(AggregatorContractAddress);
- }
- if (designatedNodeList_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(DesignatedNodeList);
- }
- if (queryInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryInfo);
- }
- if (AggregateThreshold != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregateThreshold);
- }
- if (Token.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Token);
- }
- if (AggregateOption != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregateOption);
- }
- if (taskId_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(TaskId);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(QueryInput other) {
- if (other == null) {
- return;
- }
- if (other.Payment != 0L) {
- Payment = other.Payment;
- }
- if (other.callbackInfo_ != null) {
- if (callbackInfo_ == null) {
- CallbackInfo = new global::AElf.Contracts.Oracle.CallbackInfo();
- }
- CallbackInfo.MergeFrom(other.CallbackInfo);
- }
- if (other.aggregatorContractAddress_ != null) {
- if (aggregatorContractAddress_ == null) {
- AggregatorContractAddress = new global::AElf.Types.Address();
- }
- AggregatorContractAddress.MergeFrom(other.AggregatorContractAddress);
- }
- if (other.designatedNodeList_ != null) {
- if (designatedNodeList_ == null) {
- DesignatedNodeList = new global::AElf.Contracts.Oracle.AddressList();
- }
- DesignatedNodeList.MergeFrom(other.DesignatedNodeList);
- }
- if (other.queryInfo_ != null) {
- if (queryInfo_ == null) {
- QueryInfo = new global::AElf.Contracts.Oracle.QueryInfo();
- }
- QueryInfo.MergeFrom(other.QueryInfo);
- }
- if (other.AggregateThreshold != 0) {
- AggregateThreshold = other.AggregateThreshold;
- }
- if (other.Token.Length != 0) {
- Token = other.Token;
- }
- if (other.AggregateOption != 0) {
- AggregateOption = other.AggregateOption;
- }
- if (other.taskId_ != null) {
- if (taskId_ == null) {
- TaskId = new global::AElf.Types.Hash();
- }
- TaskId.MergeFrom(other.TaskId);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Payment = input.ReadInt64();
- break;
- }
- case 18: {
- if (callbackInfo_ == null) {
- CallbackInfo = new global::AElf.Contracts.Oracle.CallbackInfo();
- }
- input.ReadMessage(CallbackInfo);
- break;
- }
- case 26: {
- if (aggregatorContractAddress_ == null) {
- AggregatorContractAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(AggregatorContractAddress);
- break;
- }
- case 34: {
- if (designatedNodeList_ == null) {
- DesignatedNodeList = new global::AElf.Contracts.Oracle.AddressList();
- }
- input.ReadMessage(DesignatedNodeList);
- break;
- }
- case 42: {
- if (queryInfo_ == null) {
- QueryInfo = new global::AElf.Contracts.Oracle.QueryInfo();
- }
- input.ReadMessage(QueryInfo);
- break;
- }
- case 48: {
- AggregateThreshold = input.ReadInt32();
- break;
- }
- case 58: {
- Token = input.ReadString();
- break;
- }
- case 64: {
- AggregateOption = input.ReadInt32();
- break;
- }
- case 74: {
- if (taskId_ == null) {
- TaskId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(TaskId);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class CreateQueryTaskInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateQueryTaskInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[2]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CreateQueryTaskInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CreateQueryTaskInput(CreateQueryTaskInput other) : this() {
- eachPayment_ = other.eachPayment_;
- supposedQueryTimes_ = other.supposedQueryTimes_;
- queryInfo_ = other.queryInfo_ != null ? other.queryInfo_.Clone() : null;
- endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null;
- callbackInfo_ = other.callbackInfo_ != null ? other.callbackInfo_.Clone() : null;
- aggregatorContractAddress_ = other.aggregatorContractAddress_ != null ? other.aggregatorContractAddress_.Clone() : null;
- aggregateOption_ = other.aggregateOption_;
- aggregateThreshold_ = other.aggregateThreshold_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CreateQueryTaskInput Clone() {
- return new CreateQueryTaskInput(this);
- }
-
- /// Field number for the "each_payment" field.
- public const int EachPaymentFieldNumber = 1;
- private long eachPayment_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long EachPayment {
- get { return eachPayment_; }
- set {
- eachPayment_ = value;
- }
- }
-
- /// Field number for the "supposed_query_times" field.
- public const int SupposedQueryTimesFieldNumber = 2;
- private int supposedQueryTimes_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int SupposedQueryTimes {
- get { return supposedQueryTimes_; }
- set {
- supposedQueryTimes_ = value;
- }
- }
-
- /// Field number for the "query_info" field.
- public const int QueryInfoFieldNumber = 3;
- private global::AElf.Contracts.Oracle.QueryInfo queryInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.QueryInfo QueryInfo {
- get { return queryInfo_; }
- set {
- queryInfo_ = value;
- }
- }
-
- /// Field number for the "end_time" field.
- public const int EndTimeFieldNumber = 4;
- private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime {
- get { return endTime_; }
- set {
- endTime_ = value;
- }
- }
-
- /// Field number for the "callback_info" field.
- public const int CallbackInfoFieldNumber = 5;
- private global::AElf.Contracts.Oracle.CallbackInfo callbackInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.CallbackInfo CallbackInfo {
- get { return callbackInfo_; }
- set {
- callbackInfo_ = value;
- }
- }
-
- /// Field number for the "aggregator_contract_address" field.
- public const int AggregatorContractAddressFieldNumber = 6;
- private global::AElf.Types.Address aggregatorContractAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address AggregatorContractAddress {
- get { return aggregatorContractAddress_; }
- set {
- aggregatorContractAddress_ = value;
- }
- }
-
- /// Field number for the "aggregate_option" field.
- public const int AggregateOptionFieldNumber = 7;
- private int aggregateOption_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int AggregateOption {
- get { return aggregateOption_; }
- set {
- aggregateOption_ = value;
- }
- }
-
- /// Field number for the "aggregate_threshold" field.
- public const int AggregateThresholdFieldNumber = 8;
- private int aggregateThreshold_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int AggregateThreshold {
- get { return aggregateThreshold_; }
- set {
- aggregateThreshold_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as CreateQueryTaskInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(CreateQueryTaskInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (EachPayment != other.EachPayment) return false;
- if (SupposedQueryTimes != other.SupposedQueryTimes) return false;
- if (!object.Equals(QueryInfo, other.QueryInfo)) return false;
- if (!object.Equals(EndTime, other.EndTime)) return false;
- if (!object.Equals(CallbackInfo, other.CallbackInfo)) return false;
- if (!object.Equals(AggregatorContractAddress, other.AggregatorContractAddress)) return false;
- if (AggregateOption != other.AggregateOption) return false;
- if (AggregateThreshold != other.AggregateThreshold) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (EachPayment != 0L) hash ^= EachPayment.GetHashCode();
- if (SupposedQueryTimes != 0) hash ^= SupposedQueryTimes.GetHashCode();
- if (queryInfo_ != null) hash ^= QueryInfo.GetHashCode();
- if (endTime_ != null) hash ^= EndTime.GetHashCode();
- if (callbackInfo_ != null) hash ^= CallbackInfo.GetHashCode();
- if (aggregatorContractAddress_ != null) hash ^= AggregatorContractAddress.GetHashCode();
- if (AggregateOption != 0) hash ^= AggregateOption.GetHashCode();
- if (AggregateThreshold != 0) hash ^= AggregateThreshold.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (EachPayment != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(EachPayment);
- }
- if (SupposedQueryTimes != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(SupposedQueryTimes);
- }
- if (queryInfo_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(QueryInfo);
- }
- if (endTime_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(EndTime);
- }
- if (callbackInfo_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(CallbackInfo);
- }
- if (aggregatorContractAddress_ != null) {
- output.WriteRawTag(50);
- output.WriteMessage(AggregatorContractAddress);
- }
- if (AggregateOption != 0) {
- output.WriteRawTag(56);
- output.WriteInt32(AggregateOption);
- }
- if (AggregateThreshold != 0) {
- output.WriteRawTag(64);
- output.WriteInt32(AggregateThreshold);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (EachPayment != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(EachPayment);
- }
- if (SupposedQueryTimes != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(SupposedQueryTimes);
- }
- if (queryInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryInfo);
- }
- if (endTime_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime);
- }
- if (callbackInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(CallbackInfo);
- }
- if (aggregatorContractAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(AggregatorContractAddress);
- }
- if (AggregateOption != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregateOption);
- }
- if (AggregateThreshold != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregateThreshold);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(CreateQueryTaskInput other) {
- if (other == null) {
- return;
- }
- if (other.EachPayment != 0L) {
- EachPayment = other.EachPayment;
- }
- if (other.SupposedQueryTimes != 0) {
- SupposedQueryTimes = other.SupposedQueryTimes;
- }
- if (other.queryInfo_ != null) {
- if (queryInfo_ == null) {
- QueryInfo = new global::AElf.Contracts.Oracle.QueryInfo();
- }
- QueryInfo.MergeFrom(other.QueryInfo);
- }
- if (other.endTime_ != null) {
- if (endTime_ == null) {
- EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
- }
- EndTime.MergeFrom(other.EndTime);
- }
- if (other.callbackInfo_ != null) {
- if (callbackInfo_ == null) {
- CallbackInfo = new global::AElf.Contracts.Oracle.CallbackInfo();
- }
- CallbackInfo.MergeFrom(other.CallbackInfo);
- }
- if (other.aggregatorContractAddress_ != null) {
- if (aggregatorContractAddress_ == null) {
- AggregatorContractAddress = new global::AElf.Types.Address();
- }
- AggregatorContractAddress.MergeFrom(other.AggregatorContractAddress);
- }
- if (other.AggregateOption != 0) {
- AggregateOption = other.AggregateOption;
- }
- if (other.AggregateThreshold != 0) {
- AggregateThreshold = other.AggregateThreshold;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- EachPayment = input.ReadInt64();
- break;
- }
- case 16: {
- SupposedQueryTimes = input.ReadInt32();
- break;
- }
- case 26: {
- if (queryInfo_ == null) {
- QueryInfo = new global::AElf.Contracts.Oracle.QueryInfo();
- }
- input.ReadMessage(QueryInfo);
- break;
- }
- case 34: {
- if (endTime_ == null) {
- EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
- }
- input.ReadMessage(EndTime);
- break;
- }
- case 42: {
- if (callbackInfo_ == null) {
- CallbackInfo = new global::AElf.Contracts.Oracle.CallbackInfo();
- }
- input.ReadMessage(CallbackInfo);
- break;
- }
- case 50: {
- if (aggregatorContractAddress_ == null) {
- AggregatorContractAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(AggregatorContractAddress);
- break;
- }
- case 56: {
- AggregateOption = input.ReadInt32();
- break;
- }
- case 64: {
- AggregateThreshold = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class TaskQueryInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TaskQueryInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[3]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TaskQueryInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TaskQueryInput(TaskQueryInput other) : this() {
- taskId_ = other.taskId_ != null ? other.taskId_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TaskQueryInput Clone() {
- return new TaskQueryInput(this);
- }
-
- /// Field number for the "task_id" field.
- public const int TaskIdFieldNumber = 1;
- private global::AElf.Types.Hash taskId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash TaskId {
- get { return taskId_; }
- set {
- taskId_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TaskQueryInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TaskQueryInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(TaskId, other.TaskId)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (taskId_ != null) hash ^= TaskId.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (taskId_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(TaskId);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (taskId_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(TaskId);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TaskQueryInput other) {
- if (other == null) {
- return;
- }
- if (other.taskId_ != null) {
- if (taskId_ == null) {
- TaskId = new global::AElf.Types.Hash();
- }
- TaskId.MergeFrom(other.TaskId);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (taskId_ == null) {
- TaskId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(TaskId);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class CompleteQueryTaskInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CompleteQueryTaskInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[4]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CompleteQueryTaskInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CompleteQueryTaskInput(CompleteQueryTaskInput other) : this() {
- taskId_ = other.taskId_ != null ? other.taskId_.Clone() : null;
- designatedNodeList_ = other.designatedNodeList_ != null ? other.designatedNodeList_.Clone() : null;
- aggregateThreshold_ = other.aggregateThreshold_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CompleteQueryTaskInput Clone() {
- return new CompleteQueryTaskInput(this);
- }
-
- /// Field number for the "task_id" field.
- public const int TaskIdFieldNumber = 1;
- private global::AElf.Types.Hash taskId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash TaskId {
- get { return taskId_; }
- set {
- taskId_ = value;
- }
- }
-
- /// Field number for the "designated_node_list" field.
- public const int DesignatedNodeListFieldNumber = 2;
- private global::AElf.Contracts.Oracle.AddressList designatedNodeList_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.AddressList DesignatedNodeList {
- get { return designatedNodeList_; }
- set {
- designatedNodeList_ = value;
- }
- }
-
- /// Field number for the "aggregate_threshold" field.
- public const int AggregateThresholdFieldNumber = 3;
- private int aggregateThreshold_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int AggregateThreshold {
- get { return aggregateThreshold_; }
- set {
- aggregateThreshold_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as CompleteQueryTaskInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(CompleteQueryTaskInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(TaskId, other.TaskId)) return false;
- if (!object.Equals(DesignatedNodeList, other.DesignatedNodeList)) return false;
- if (AggregateThreshold != other.AggregateThreshold) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (taskId_ != null) hash ^= TaskId.GetHashCode();
- if (designatedNodeList_ != null) hash ^= DesignatedNodeList.GetHashCode();
- if (AggregateThreshold != 0) hash ^= AggregateThreshold.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (taskId_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(TaskId);
- }
- if (designatedNodeList_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(DesignatedNodeList);
- }
- if (AggregateThreshold != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(AggregateThreshold);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (taskId_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(TaskId);
- }
- if (designatedNodeList_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(DesignatedNodeList);
- }
- if (AggregateThreshold != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregateThreshold);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(CompleteQueryTaskInput other) {
- if (other == null) {
- return;
- }
- if (other.taskId_ != null) {
- if (taskId_ == null) {
- TaskId = new global::AElf.Types.Hash();
- }
- TaskId.MergeFrom(other.TaskId);
- }
- if (other.designatedNodeList_ != null) {
- if (designatedNodeList_ == null) {
- DesignatedNodeList = new global::AElf.Contracts.Oracle.AddressList();
- }
- DesignatedNodeList.MergeFrom(other.DesignatedNodeList);
- }
- if (other.AggregateThreshold != 0) {
- AggregateThreshold = other.AggregateThreshold;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (taskId_ == null) {
- TaskId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(TaskId);
- break;
- }
- case 18: {
- if (designatedNodeList_ == null) {
- DesignatedNodeList = new global::AElf.Contracts.Oracle.AddressList();
- }
- input.ReadMessage(DesignatedNodeList);
- break;
- }
- case 24: {
- AggregateThreshold = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class CallbackInfo : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallbackInfo());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[5]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CallbackInfo() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CallbackInfo(CallbackInfo other) : this() {
- contractAddress_ = other.contractAddress_ != null ? other.contractAddress_.Clone() : null;
- methodName_ = other.methodName_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CallbackInfo Clone() {
- return new CallbackInfo(this);
- }
-
- /// Field number for the "contract_address" field.
- public const int ContractAddressFieldNumber = 1;
- private global::AElf.Types.Address contractAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- 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]
- public string MethodName {
- get { return methodName_; }
- set {
- methodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as CallbackInfo);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(CallbackInfo 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]
- 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]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream 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(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- 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]
- public void MergeFrom(CallbackInfo 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]
- public void MergeFrom(pb::CodedInputStream input) {
- 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;
- }
- }
- }
- }
-
- }
-
- public sealed partial class AddressList : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressList());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[6]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public AddressList() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public AddressList(AddressList other) : this() {
- value_ = other.value_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public AddressList Clone() {
- return new AddressList(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.Types.Address.Parser);
- private readonly pbc::RepeatedField value_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField Value {
- get { return value_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as AddressList);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(AddressList 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]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= value_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- value_.WriteTo(output, _repeated_value_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += value_.CalculateSize(_repeated_value_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(AddressList other) {
- if (other == null) {
- return;
- }
- value_.Add(other.value_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- 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;
- }
- }
- }
- }
-
- }
-
- public sealed partial class QueryRecord : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QueryRecord());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[7]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryRecord() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryRecord(QueryRecord other) : this() {
- designatedNodeList_ = other.designatedNodeList_ != null ? other.designatedNodeList_.Clone() : null;
- aggregatorContractAddress_ = other.aggregatorContractAddress_ != null ? other.aggregatorContractAddress_.Clone() : null;
- expirationTimestamp_ = other.expirationTimestamp_ != null ? other.expirationTimestamp_.Clone() : null;
- isSufficientCommitmentsCollected_ = other.isSufficientCommitmentsCollected_;
- isSufficientDataCollected_ = other.isSufficientDataCollected_;
- finalResult_ = other.finalResult_;
- payment_ = other.payment_;
- callbackInfo_ = other.callbackInfo_ != null ? other.callbackInfo_.Clone() : null;
- queryId_ = other.queryId_ != null ? other.queryId_.Clone() : null;
- aggregateThreshold_ = other.aggregateThreshold_;
- querySender_ = other.querySender_ != null ? other.querySender_.Clone() : null;
- isCommitStageFinished_ = other.isCommitStageFinished_;
- commitmentsCount_ = other.commitmentsCount_;
- isCancelled_ = other.isCancelled_;
- queryInfo_ = other.queryInfo_ != null ? other.queryInfo_.Clone() : null;
- token_ = other.token_;
- dataRecords_ = other.dataRecords_ != null ? other.dataRecords_.Clone() : null;
- aggregateOption_ = other.aggregateOption_;
- taskId_ = other.taskId_ != null ? other.taskId_.Clone() : null;
- isPaidToOracleContract_ = other.isPaidToOracleContract_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryRecord Clone() {
- return new QueryRecord(this);
- }
-
- /// Field number for the "designated_node_list" field.
- public const int DesignatedNodeListFieldNumber = 1;
- private global::AElf.Contracts.Oracle.AddressList designatedNodeList_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.AddressList DesignatedNodeList {
- get { return designatedNodeList_; }
- set {
- designatedNodeList_ = value;
- }
- }
-
- /// Field number for the "aggregator_contract_address" field.
- public const int AggregatorContractAddressFieldNumber = 2;
- private global::AElf.Types.Address aggregatorContractAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address AggregatorContractAddress {
- get { return aggregatorContractAddress_; }
- set {
- aggregatorContractAddress_ = value;
- }
- }
-
- /// Field number for the "expiration_timestamp" field.
- public const int ExpirationTimestampFieldNumber = 3;
- private global::Google.Protobuf.WellKnownTypes.Timestamp expirationTimestamp_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Timestamp ExpirationTimestamp {
- get { return expirationTimestamp_; }
- set {
- expirationTimestamp_ = value;
- }
- }
-
- /// Field number for the "is_sufficient_commitments_collected" field.
- public const int IsSufficientCommitmentsCollectedFieldNumber = 4;
- private bool isSufficientCommitmentsCollected_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool IsSufficientCommitmentsCollected {
- get { return isSufficientCommitmentsCollected_; }
- set {
- isSufficientCommitmentsCollected_ = value;
- }
- }
-
- /// Field number for the "is_sufficient_data_collected" field.
- public const int IsSufficientDataCollectedFieldNumber = 5;
- private bool isSufficientDataCollected_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool IsSufficientDataCollected {
- get { return isSufficientDataCollected_; }
- set {
- isSufficientDataCollected_ = value;
- }
- }
-
- /// Field number for the "final_result" field.
- public const int FinalResultFieldNumber = 6;
- private string finalResult_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string FinalResult {
- get { return finalResult_; }
- set {
- finalResult_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "payment" field.
- public const int PaymentFieldNumber = 7;
- private long payment_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Payment {
- get { return payment_; }
- set {
- payment_ = value;
- }
- }
-
- /// Field number for the "callback_info" field.
- public const int CallbackInfoFieldNumber = 8;
- private global::AElf.Contracts.Oracle.CallbackInfo callbackInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.CallbackInfo CallbackInfo {
- get { return callbackInfo_; }
- set {
- callbackInfo_ = value;
- }
- }
-
- /// Field number for the "query_id" field.
- public const int QueryIdFieldNumber = 9;
- private global::AElf.Types.Hash queryId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash QueryId {
- get { return queryId_; }
- set {
- queryId_ = value;
- }
- }
-
- /// Field number for the "aggregate_threshold" field.
- public const int AggregateThresholdFieldNumber = 10;
- private int aggregateThreshold_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int AggregateThreshold {
- get { return aggregateThreshold_; }
- set {
- aggregateThreshold_ = value;
- }
- }
-
- /// Field number for the "query_sender" field.
- public const int QuerySenderFieldNumber = 11;
- private global::AElf.Types.Address querySender_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address QuerySender {
- get { return querySender_; }
- set {
- querySender_ = value;
- }
- }
-
- /// Field number for the "is_commit_stage_finished" field.
- public const int IsCommitStageFinishedFieldNumber = 12;
- private bool isCommitStageFinished_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool IsCommitStageFinished {
- get { return isCommitStageFinished_; }
- set {
- isCommitStageFinished_ = value;
- }
- }
-
- /// Field number for the "commitments_count" field.
- public const int CommitmentsCountFieldNumber = 13;
- private int commitmentsCount_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CommitmentsCount {
- get { return commitmentsCount_; }
- set {
- commitmentsCount_ = value;
- }
- }
-
- /// Field number for the "is_cancelled" field.
- public const int IsCancelledFieldNumber = 14;
- private bool isCancelled_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool IsCancelled {
- get { return isCancelled_; }
- set {
- isCancelled_ = value;
- }
- }
-
- /// Field number for the "query_info" field.
- public const int QueryInfoFieldNumber = 15;
- private global::AElf.Contracts.Oracle.QueryInfo queryInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.QueryInfo QueryInfo {
- get { return queryInfo_; }
- set {
- queryInfo_ = value;
- }
- }
-
- /// Field number for the "token" field.
- public const int TokenFieldNumber = 16;
- private string token_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Token {
- get { return token_; }
- set {
- token_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "data_records" field.
- public const int DataRecordsFieldNumber = 17;
- private global::AElf.Contracts.Oracle.DataRecords dataRecords_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.DataRecords DataRecords {
- get { return dataRecords_; }
- set {
- dataRecords_ = value;
- }
- }
-
- /// Field number for the "aggregate_option" field.
- public const int AggregateOptionFieldNumber = 18;
- private int aggregateOption_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int AggregateOption {
- get { return aggregateOption_; }
- set {
- aggregateOption_ = value;
- }
- }
-
- /// Field number for the "task_id" field.
- public const int TaskIdFieldNumber = 19;
- private global::AElf.Types.Hash taskId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash TaskId {
- get { return taskId_; }
- set {
- taskId_ = value;
- }
- }
-
- /// Field number for the "is_paid_to_oracle_contract" field.
- public const int IsPaidToOracleContractFieldNumber = 20;
- private bool isPaidToOracleContract_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool IsPaidToOracleContract {
- get { return isPaidToOracleContract_; }
- set {
- isPaidToOracleContract_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as QueryRecord);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(QueryRecord other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(DesignatedNodeList, other.DesignatedNodeList)) return false;
- if (!object.Equals(AggregatorContractAddress, other.AggregatorContractAddress)) return false;
- if (!object.Equals(ExpirationTimestamp, other.ExpirationTimestamp)) return false;
- if (IsSufficientCommitmentsCollected != other.IsSufficientCommitmentsCollected) return false;
- if (IsSufficientDataCollected != other.IsSufficientDataCollected) return false;
- if (FinalResult != other.FinalResult) return false;
- if (Payment != other.Payment) return false;
- if (!object.Equals(CallbackInfo, other.CallbackInfo)) return false;
- if (!object.Equals(QueryId, other.QueryId)) return false;
- if (AggregateThreshold != other.AggregateThreshold) return false;
- if (!object.Equals(QuerySender, other.QuerySender)) return false;
- if (IsCommitStageFinished != other.IsCommitStageFinished) return false;
- if (CommitmentsCount != other.CommitmentsCount) return false;
- if (IsCancelled != other.IsCancelled) return false;
- if (!object.Equals(QueryInfo, other.QueryInfo)) return false;
- if (Token != other.Token) return false;
- if (!object.Equals(DataRecords, other.DataRecords)) return false;
- if (AggregateOption != other.AggregateOption) return false;
- if (!object.Equals(TaskId, other.TaskId)) return false;
- if (IsPaidToOracleContract != other.IsPaidToOracleContract) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (designatedNodeList_ != null) hash ^= DesignatedNodeList.GetHashCode();
- if (aggregatorContractAddress_ != null) hash ^= AggregatorContractAddress.GetHashCode();
- if (expirationTimestamp_ != null) hash ^= ExpirationTimestamp.GetHashCode();
- if (IsSufficientCommitmentsCollected != false) hash ^= IsSufficientCommitmentsCollected.GetHashCode();
- if (IsSufficientDataCollected != false) hash ^= IsSufficientDataCollected.GetHashCode();
- if (FinalResult.Length != 0) hash ^= FinalResult.GetHashCode();
- if (Payment != 0L) hash ^= Payment.GetHashCode();
- if (callbackInfo_ != null) hash ^= CallbackInfo.GetHashCode();
- if (queryId_ != null) hash ^= QueryId.GetHashCode();
- if (AggregateThreshold != 0) hash ^= AggregateThreshold.GetHashCode();
- if (querySender_ != null) hash ^= QuerySender.GetHashCode();
- if (IsCommitStageFinished != false) hash ^= IsCommitStageFinished.GetHashCode();
- if (CommitmentsCount != 0) hash ^= CommitmentsCount.GetHashCode();
- if (IsCancelled != false) hash ^= IsCancelled.GetHashCode();
- if (queryInfo_ != null) hash ^= QueryInfo.GetHashCode();
- if (Token.Length != 0) hash ^= Token.GetHashCode();
- if (dataRecords_ != null) hash ^= DataRecords.GetHashCode();
- if (AggregateOption != 0) hash ^= AggregateOption.GetHashCode();
- if (taskId_ != null) hash ^= TaskId.GetHashCode();
- if (IsPaidToOracleContract != false) hash ^= IsPaidToOracleContract.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (designatedNodeList_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(DesignatedNodeList);
- }
- if (aggregatorContractAddress_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(AggregatorContractAddress);
- }
- if (expirationTimestamp_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(ExpirationTimestamp);
- }
- if (IsSufficientCommitmentsCollected != false) {
- output.WriteRawTag(32);
- output.WriteBool(IsSufficientCommitmentsCollected);
- }
- if (IsSufficientDataCollected != false) {
- output.WriteRawTag(40);
- output.WriteBool(IsSufficientDataCollected);
- }
- if (FinalResult.Length != 0) {
- output.WriteRawTag(50);
- output.WriteString(FinalResult);
- }
- if (Payment != 0L) {
- output.WriteRawTag(56);
- output.WriteInt64(Payment);
- }
- if (callbackInfo_ != null) {
- output.WriteRawTag(66);
- output.WriteMessage(CallbackInfo);
- }
- if (queryId_ != null) {
- output.WriteRawTag(74);
- output.WriteMessage(QueryId);
- }
- if (AggregateThreshold != 0) {
- output.WriteRawTag(80);
- output.WriteInt32(AggregateThreshold);
- }
- if (querySender_ != null) {
- output.WriteRawTag(90);
- output.WriteMessage(QuerySender);
- }
- if (IsCommitStageFinished != false) {
- output.WriteRawTag(96);
- output.WriteBool(IsCommitStageFinished);
- }
- if (CommitmentsCount != 0) {
- output.WriteRawTag(104);
- output.WriteInt32(CommitmentsCount);
- }
- if (IsCancelled != false) {
- output.WriteRawTag(112);
- output.WriteBool(IsCancelled);
- }
- if (queryInfo_ != null) {
- output.WriteRawTag(122);
- output.WriteMessage(QueryInfo);
- }
- if (Token.Length != 0) {
- output.WriteRawTag(130, 1);
- output.WriteString(Token);
- }
- if (dataRecords_ != null) {
- output.WriteRawTag(138, 1);
- output.WriteMessage(DataRecords);
- }
- if (AggregateOption != 0) {
- output.WriteRawTag(144, 1);
- output.WriteInt32(AggregateOption);
- }
- if (taskId_ != null) {
- output.WriteRawTag(154, 1);
- output.WriteMessage(TaskId);
- }
- if (IsPaidToOracleContract != false) {
- output.WriteRawTag(160, 1);
- output.WriteBool(IsPaidToOracleContract);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (designatedNodeList_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(DesignatedNodeList);
- }
- if (aggregatorContractAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(AggregatorContractAddress);
- }
- if (expirationTimestamp_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpirationTimestamp);
- }
- if (IsSufficientCommitmentsCollected != false) {
- size += 1 + 1;
- }
- if (IsSufficientDataCollected != false) {
- size += 1 + 1;
- }
- if (FinalResult.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(FinalResult);
- }
- if (Payment != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Payment);
- }
- if (callbackInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(CallbackInfo);
- }
- if (queryId_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryId);
- }
- if (AggregateThreshold != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregateThreshold);
- }
- if (querySender_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QuerySender);
- }
- if (IsCommitStageFinished != false) {
- size += 1 + 1;
- }
- if (CommitmentsCount != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(CommitmentsCount);
- }
- if (IsCancelled != false) {
- size += 1 + 1;
- }
- if (queryInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryInfo);
- }
- if (Token.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(Token);
- }
- if (dataRecords_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(DataRecords);
- }
- if (AggregateOption != 0) {
- size += 2 + pb::CodedOutputStream.ComputeInt32Size(AggregateOption);
- }
- if (taskId_ != null) {
- size += 2 + pb::CodedOutputStream.ComputeMessageSize(TaskId);
- }
- if (IsPaidToOracleContract != false) {
- size += 2 + 1;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(QueryRecord other) {
- if (other == null) {
- return;
- }
- if (other.designatedNodeList_ != null) {
- if (designatedNodeList_ == null) {
- DesignatedNodeList = new global::AElf.Contracts.Oracle.AddressList();
- }
- DesignatedNodeList.MergeFrom(other.DesignatedNodeList);
- }
- if (other.aggregatorContractAddress_ != null) {
- if (aggregatorContractAddress_ == null) {
- AggregatorContractAddress = new global::AElf.Types.Address();
- }
- AggregatorContractAddress.MergeFrom(other.AggregatorContractAddress);
- }
- if (other.expirationTimestamp_ != null) {
- if (expirationTimestamp_ == null) {
- ExpirationTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp();
- }
- ExpirationTimestamp.MergeFrom(other.ExpirationTimestamp);
- }
- if (other.IsSufficientCommitmentsCollected != false) {
- IsSufficientCommitmentsCollected = other.IsSufficientCommitmentsCollected;
- }
- if (other.IsSufficientDataCollected != false) {
- IsSufficientDataCollected = other.IsSufficientDataCollected;
- }
- if (other.FinalResult.Length != 0) {
- FinalResult = other.FinalResult;
- }
- if (other.Payment != 0L) {
- Payment = other.Payment;
- }
- if (other.callbackInfo_ != null) {
- if (callbackInfo_ == null) {
- CallbackInfo = new global::AElf.Contracts.Oracle.CallbackInfo();
- }
- CallbackInfo.MergeFrom(other.CallbackInfo);
- }
- if (other.queryId_ != null) {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- QueryId.MergeFrom(other.QueryId);
- }
- if (other.AggregateThreshold != 0) {
- AggregateThreshold = other.AggregateThreshold;
- }
- if (other.querySender_ != null) {
- if (querySender_ == null) {
- QuerySender = new global::AElf.Types.Address();
- }
- QuerySender.MergeFrom(other.QuerySender);
- }
- if (other.IsCommitStageFinished != false) {
- IsCommitStageFinished = other.IsCommitStageFinished;
- }
- if (other.CommitmentsCount != 0) {
- CommitmentsCount = other.CommitmentsCount;
- }
- if (other.IsCancelled != false) {
- IsCancelled = other.IsCancelled;
- }
- if (other.queryInfo_ != null) {
- if (queryInfo_ == null) {
- QueryInfo = new global::AElf.Contracts.Oracle.QueryInfo();
- }
- QueryInfo.MergeFrom(other.QueryInfo);
- }
- if (other.Token.Length != 0) {
- Token = other.Token;
- }
- if (other.dataRecords_ != null) {
- if (dataRecords_ == null) {
- DataRecords = new global::AElf.Contracts.Oracle.DataRecords();
- }
- DataRecords.MergeFrom(other.DataRecords);
- }
- if (other.AggregateOption != 0) {
- AggregateOption = other.AggregateOption;
- }
- if (other.taskId_ != null) {
- if (taskId_ == null) {
- TaskId = new global::AElf.Types.Hash();
- }
- TaskId.MergeFrom(other.TaskId);
- }
- if (other.IsPaidToOracleContract != false) {
- IsPaidToOracleContract = other.IsPaidToOracleContract;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (designatedNodeList_ == null) {
- DesignatedNodeList = new global::AElf.Contracts.Oracle.AddressList();
- }
- input.ReadMessage(DesignatedNodeList);
- break;
- }
- case 18: {
- if (aggregatorContractAddress_ == null) {
- AggregatorContractAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(AggregatorContractAddress);
- break;
- }
- case 26: {
- if (expirationTimestamp_ == null) {
- ExpirationTimestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp();
- }
- input.ReadMessage(ExpirationTimestamp);
- break;
- }
- case 32: {
- IsSufficientCommitmentsCollected = input.ReadBool();
- break;
- }
- case 40: {
- IsSufficientDataCollected = input.ReadBool();
- break;
- }
- case 50: {
- FinalResult = input.ReadString();
- break;
- }
- case 56: {
- Payment = input.ReadInt64();
- break;
- }
- case 66: {
- if (callbackInfo_ == null) {
- CallbackInfo = new global::AElf.Contracts.Oracle.CallbackInfo();
- }
- input.ReadMessage(CallbackInfo);
- break;
- }
- case 74: {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(QueryId);
- break;
- }
- case 80: {
- AggregateThreshold = input.ReadInt32();
- break;
- }
- case 90: {
- if (querySender_ == null) {
- QuerySender = new global::AElf.Types.Address();
- }
- input.ReadMessage(QuerySender);
- break;
- }
- case 96: {
- IsCommitStageFinished = input.ReadBool();
- break;
- }
- case 104: {
- CommitmentsCount = input.ReadInt32();
- break;
- }
- case 112: {
- IsCancelled = input.ReadBool();
- break;
- }
- case 122: {
- if (queryInfo_ == null) {
- QueryInfo = new global::AElf.Contracts.Oracle.QueryInfo();
- }
- input.ReadMessage(QueryInfo);
- break;
- }
- case 130: {
- Token = input.ReadString();
- break;
- }
- case 138: {
- if (dataRecords_ == null) {
- DataRecords = new global::AElf.Contracts.Oracle.DataRecords();
- }
- input.ReadMessage(DataRecords);
- break;
- }
- case 144: {
- AggregateOption = input.ReadInt32();
- break;
- }
- case 154: {
- if (taskId_ == null) {
- TaskId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(TaskId);
- break;
- }
- case 160: {
- IsPaidToOracleContract = input.ReadBool();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class CreateRegimentInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateRegimentInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[8]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CreateRegimentInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CreateRegimentInput(CreateRegimentInput other) : this() {
- manager_ = other.manager_ != null ? other.manager_.Clone() : null;
- initialMemberList_ = other.initialMemberList_.Clone();
- isApproveToJoin_ = other.isApproveToJoin_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CreateRegimentInput Clone() {
- return new CreateRegimentInput(this);
- }
-
- /// Field number for the "manager" field.
- public const int ManagerFieldNumber = 1;
- private global::AElf.Types.Address manager_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address Manager {
- get { return manager_; }
- set {
- manager_ = value;
- }
- }
-
- /// Field number for the "initial_member_list" field.
- public const int InitialMemberListFieldNumber = 2;
- private static readonly pb::FieldCodec _repeated_initialMemberList_codec
- = pb::FieldCodec.ForMessage(18, global::AElf.Types.Address.Parser);
- private readonly pbc::RepeatedField initialMemberList_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField InitialMemberList {
- get { return initialMemberList_; }
- }
-
- /// Field number for the "is_approve_to_join" field.
- public const int IsApproveToJoinFieldNumber = 3;
- private bool isApproveToJoin_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool IsApproveToJoin {
- get { return isApproveToJoin_; }
- set {
- isApproveToJoin_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as CreateRegimentInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(CreateRegimentInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Manager, other.Manager)) return false;
- if(!initialMemberList_.Equals(other.initialMemberList_)) return false;
- if (IsApproveToJoin != other.IsApproveToJoin) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (manager_ != null) hash ^= Manager.GetHashCode();
- hash ^= initialMemberList_.GetHashCode();
- if (IsApproveToJoin != false) hash ^= IsApproveToJoin.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (manager_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Manager);
- }
- initialMemberList_.WriteTo(output, _repeated_initialMemberList_codec);
- if (IsApproveToJoin != false) {
- output.WriteRawTag(24);
- output.WriteBool(IsApproveToJoin);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (manager_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Manager);
- }
- size += initialMemberList_.CalculateSize(_repeated_initialMemberList_codec);
- if (IsApproveToJoin != false) {
- size += 1 + 1;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(CreateRegimentInput other) {
- if (other == null) {
- return;
- }
- if (other.manager_ != null) {
- if (manager_ == null) {
- Manager = new global::AElf.Types.Address();
- }
- Manager.MergeFrom(other.Manager);
- }
- initialMemberList_.Add(other.initialMemberList_);
- if (other.IsApproveToJoin != false) {
- IsApproveToJoin = other.IsApproveToJoin;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (manager_ == null) {
- Manager = new global::AElf.Types.Address();
- }
- input.ReadMessage(Manager);
- break;
- }
- case 18: {
- initialMemberList_.AddEntriesFrom(input, _repeated_initialMemberList_codec);
- break;
- }
- case 24: {
- IsApproveToJoin = input.ReadBool();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class JoinRegimentInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JoinRegimentInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[9]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public JoinRegimentInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public JoinRegimentInput(JoinRegimentInput other) : this() {
- regimentAddress_ = other.regimentAddress_ != null ? other.regimentAddress_.Clone() : null;
- newMemberAddress_ = other.newMemberAddress_ != null ? other.newMemberAddress_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public JoinRegimentInput Clone() {
- return new JoinRegimentInput(this);
- }
-
- /// Field number for the "regiment_address" field.
- public const int RegimentAddressFieldNumber = 1;
- private global::AElf.Types.Address regimentAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address RegimentAddress {
- get { return regimentAddress_; }
- set {
- regimentAddress_ = value;
- }
- }
-
- /// Field number for the "new_member_address" field.
- public const int NewMemberAddressFieldNumber = 2;
- private global::AElf.Types.Address newMemberAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address NewMemberAddress {
- get { return newMemberAddress_; }
- set {
- newMemberAddress_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as JoinRegimentInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(JoinRegimentInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(RegimentAddress, other.RegimentAddress)) return false;
- if (!object.Equals(NewMemberAddress, other.NewMemberAddress)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (regimentAddress_ != null) hash ^= RegimentAddress.GetHashCode();
- if (newMemberAddress_ != null) hash ^= NewMemberAddress.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (regimentAddress_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(RegimentAddress);
- }
- if (newMemberAddress_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(NewMemberAddress);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (regimentAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegimentAddress);
- }
- if (newMemberAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewMemberAddress);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(JoinRegimentInput other) {
- if (other == null) {
- return;
- }
- if (other.regimentAddress_ != null) {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- RegimentAddress.MergeFrom(other.RegimentAddress);
- }
- if (other.newMemberAddress_ != null) {
- if (newMemberAddress_ == null) {
- NewMemberAddress = new global::AElf.Types.Address();
- }
- NewMemberAddress.MergeFrom(other.NewMemberAddress);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(RegimentAddress);
- break;
- }
- case 18: {
- if (newMemberAddress_ == null) {
- NewMemberAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(NewMemberAddress);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class LeaveRegimentInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LeaveRegimentInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[10]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LeaveRegimentInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LeaveRegimentInput(LeaveRegimentInput other) : this() {
- regimentAddress_ = other.regimentAddress_ != null ? other.regimentAddress_.Clone() : null;
- leaveMemberAddress_ = other.leaveMemberAddress_ != null ? other.leaveMemberAddress_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LeaveRegimentInput Clone() {
- return new LeaveRegimentInput(this);
- }
-
- /// Field number for the "regiment_address" field.
- public const int RegimentAddressFieldNumber = 1;
- private global::AElf.Types.Address regimentAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address RegimentAddress {
- get { return regimentAddress_; }
- set {
- regimentAddress_ = value;
- }
- }
-
- /// Field number for the "leave_member_address" field.
- public const int LeaveMemberAddressFieldNumber = 2;
- private global::AElf.Types.Address leaveMemberAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address LeaveMemberAddress {
- get { return leaveMemberAddress_; }
- set {
- leaveMemberAddress_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as LeaveRegimentInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(LeaveRegimentInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(RegimentAddress, other.RegimentAddress)) return false;
- if (!object.Equals(LeaveMemberAddress, other.LeaveMemberAddress)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (regimentAddress_ != null) hash ^= RegimentAddress.GetHashCode();
- if (leaveMemberAddress_ != null) hash ^= LeaveMemberAddress.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (regimentAddress_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(RegimentAddress);
- }
- if (leaveMemberAddress_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(LeaveMemberAddress);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (regimentAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegimentAddress);
- }
- if (leaveMemberAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(LeaveMemberAddress);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(LeaveRegimentInput other) {
- if (other == null) {
- return;
- }
- if (other.regimentAddress_ != null) {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- RegimentAddress.MergeFrom(other.RegimentAddress);
- }
- if (other.leaveMemberAddress_ != null) {
- if (leaveMemberAddress_ == null) {
- LeaveMemberAddress = new global::AElf.Types.Address();
- }
- LeaveMemberAddress.MergeFrom(other.LeaveMemberAddress);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(RegimentAddress);
- break;
- }
- case 18: {
- if (leaveMemberAddress_ == null) {
- LeaveMemberAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(LeaveMemberAddress);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class AddRegimentMemberInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddRegimentMemberInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[11]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public AddRegimentMemberInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public AddRegimentMemberInput(AddRegimentMemberInput other) : this() {
- regimentAddress_ = other.regimentAddress_ != null ? other.regimentAddress_.Clone() : null;
- newMemberAddress_ = other.newMemberAddress_ != null ? other.newMemberAddress_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public AddRegimentMemberInput Clone() {
- return new AddRegimentMemberInput(this);
- }
-
- /// Field number for the "regiment_address" field.
- public const int RegimentAddressFieldNumber = 1;
- private global::AElf.Types.Address regimentAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address RegimentAddress {
- get { return regimentAddress_; }
- set {
- regimentAddress_ = value;
- }
- }
-
- /// Field number for the "new_member_address" field.
- public const int NewMemberAddressFieldNumber = 2;
- private global::AElf.Types.Address newMemberAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address NewMemberAddress {
- get { return newMemberAddress_; }
- set {
- newMemberAddress_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as AddRegimentMemberInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(AddRegimentMemberInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(RegimentAddress, other.RegimentAddress)) return false;
- if (!object.Equals(NewMemberAddress, other.NewMemberAddress)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (regimentAddress_ != null) hash ^= RegimentAddress.GetHashCode();
- if (newMemberAddress_ != null) hash ^= NewMemberAddress.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (regimentAddress_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(RegimentAddress);
- }
- if (newMemberAddress_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(NewMemberAddress);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (regimentAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegimentAddress);
- }
- if (newMemberAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewMemberAddress);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(AddRegimentMemberInput other) {
- if (other == null) {
- return;
- }
- if (other.regimentAddress_ != null) {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- RegimentAddress.MergeFrom(other.RegimentAddress);
- }
- if (other.newMemberAddress_ != null) {
- if (newMemberAddress_ == null) {
- NewMemberAddress = new global::AElf.Types.Address();
- }
- NewMemberAddress.MergeFrom(other.NewMemberAddress);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(RegimentAddress);
- break;
- }
- case 18: {
- if (newMemberAddress_ == null) {
- NewMemberAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(NewMemberAddress);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class DeleteRegimentMemberInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteRegimentMemberInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[12]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DeleteRegimentMemberInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DeleteRegimentMemberInput(DeleteRegimentMemberInput other) : this() {
- regimentAddress_ = other.regimentAddress_ != null ? other.regimentAddress_.Clone() : null;
- deleteMemberAddress_ = other.deleteMemberAddress_ != null ? other.deleteMemberAddress_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DeleteRegimentMemberInput Clone() {
- return new DeleteRegimentMemberInput(this);
- }
-
- /// Field number for the "regiment_address" field.
- public const int RegimentAddressFieldNumber = 1;
- private global::AElf.Types.Address regimentAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address RegimentAddress {
- get { return regimentAddress_; }
- set {
- regimentAddress_ = value;
- }
- }
-
- /// Field number for the "delete_member_address" field.
- public const int DeleteMemberAddressFieldNumber = 2;
- private global::AElf.Types.Address deleteMemberAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address DeleteMemberAddress {
- get { return deleteMemberAddress_; }
- set {
- deleteMemberAddress_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as DeleteRegimentMemberInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(DeleteRegimentMemberInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(RegimentAddress, other.RegimentAddress)) return false;
- if (!object.Equals(DeleteMemberAddress, other.DeleteMemberAddress)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (regimentAddress_ != null) hash ^= RegimentAddress.GetHashCode();
- if (deleteMemberAddress_ != null) hash ^= DeleteMemberAddress.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (regimentAddress_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(RegimentAddress);
- }
- if (deleteMemberAddress_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(DeleteMemberAddress);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (regimentAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegimentAddress);
- }
- if (deleteMemberAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeleteMemberAddress);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(DeleteRegimentMemberInput other) {
- if (other == null) {
- return;
- }
- if (other.regimentAddress_ != null) {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- RegimentAddress.MergeFrom(other.RegimentAddress);
- }
- if (other.deleteMemberAddress_ != null) {
- if (deleteMemberAddress_ == null) {
- DeleteMemberAddress = new global::AElf.Types.Address();
- }
- DeleteMemberAddress.MergeFrom(other.DeleteMemberAddress);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(RegimentAddress);
- break;
- }
- case 18: {
- if (deleteMemberAddress_ == null) {
- DeleteMemberAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(DeleteMemberAddress);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class TransferRegimentOwnershipInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TransferRegimentOwnershipInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[13]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TransferRegimentOwnershipInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TransferRegimentOwnershipInput(TransferRegimentOwnershipInput other) : this() {
- regimentAddress_ = other.regimentAddress_ != null ? other.regimentAddress_.Clone() : null;
- newManagerAddress_ = other.newManagerAddress_ != null ? other.newManagerAddress_.Clone() : null;
- originSenderAddress_ = other.originSenderAddress_ != null ? other.originSenderAddress_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TransferRegimentOwnershipInput Clone() {
- return new TransferRegimentOwnershipInput(this);
- }
-
- /// Field number for the "regiment_address" field.
- public const int RegimentAddressFieldNumber = 1;
- private global::AElf.Types.Address regimentAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address RegimentAddress {
- get { return regimentAddress_; }
- set {
- regimentAddress_ = value;
- }
- }
-
- /// Field number for the "new_manager_address" field.
- public const int NewManagerAddressFieldNumber = 2;
- private global::AElf.Types.Address newManagerAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address NewManagerAddress {
- get { return newManagerAddress_; }
- set {
- newManagerAddress_ = value;
- }
- }
-
- /// Field number for the "origin_sender_address" field.
- public const int OriginSenderAddressFieldNumber = 3;
- private global::AElf.Types.Address originSenderAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address OriginSenderAddress {
- get { return originSenderAddress_; }
- set {
- originSenderAddress_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TransferRegimentOwnershipInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TransferRegimentOwnershipInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(RegimentAddress, other.RegimentAddress)) return false;
- if (!object.Equals(NewManagerAddress, other.NewManagerAddress)) return false;
- if (!object.Equals(OriginSenderAddress, other.OriginSenderAddress)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (regimentAddress_ != null) hash ^= RegimentAddress.GetHashCode();
- if (newManagerAddress_ != null) hash ^= NewManagerAddress.GetHashCode();
- if (originSenderAddress_ != null) hash ^= OriginSenderAddress.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (regimentAddress_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(RegimentAddress);
- }
- if (newManagerAddress_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(NewManagerAddress);
- }
- if (originSenderAddress_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(OriginSenderAddress);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (regimentAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegimentAddress);
- }
- if (newManagerAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewManagerAddress);
- }
- if (originSenderAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginSenderAddress);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TransferRegimentOwnershipInput other) {
- if (other == null) {
- return;
- }
- if (other.regimentAddress_ != null) {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- RegimentAddress.MergeFrom(other.RegimentAddress);
- }
- if (other.newManagerAddress_ != null) {
- if (newManagerAddress_ == null) {
- NewManagerAddress = new global::AElf.Types.Address();
- }
- NewManagerAddress.MergeFrom(other.NewManagerAddress);
- }
- if (other.originSenderAddress_ != null) {
- if (originSenderAddress_ == null) {
- OriginSenderAddress = new global::AElf.Types.Address();
- }
- OriginSenderAddress.MergeFrom(other.OriginSenderAddress);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(RegimentAddress);
- break;
- }
- case 18: {
- if (newManagerAddress_ == null) {
- NewManagerAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(NewManagerAddress);
- break;
- }
- case 26: {
- if (originSenderAddress_ == null) {
- OriginSenderAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(OriginSenderAddress);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class AddAdminsInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddAdminsInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[14]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public AddAdminsInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public AddAdminsInput(AddAdminsInput other) : this() {
- regimentAddress_ = other.regimentAddress_ != null ? other.regimentAddress_.Clone() : null;
- newAdmins_ = other.newAdmins_.Clone();
- originSenderAddress_ = other.originSenderAddress_ != null ? other.originSenderAddress_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public AddAdminsInput Clone() {
- return new AddAdminsInput(this);
- }
-
- /// Field number for the "regiment_address" field.
- public const int RegimentAddressFieldNumber = 1;
- private global::AElf.Types.Address regimentAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address RegimentAddress {
- get { return regimentAddress_; }
- set {
- regimentAddress_ = value;
- }
- }
-
- /// Field number for the "new_admins" field.
- public const int NewAdminsFieldNumber = 2;
- private static readonly pb::FieldCodec _repeated_newAdmins_codec
- = pb::FieldCodec.ForMessage(18, global::AElf.Types.Address.Parser);
- private readonly pbc::RepeatedField newAdmins_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField NewAdmins {
- get { return newAdmins_; }
- }
-
- /// Field number for the "origin_sender_address" field.
- public const int OriginSenderAddressFieldNumber = 3;
- private global::AElf.Types.Address originSenderAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address OriginSenderAddress {
- get { return originSenderAddress_; }
- set {
- originSenderAddress_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as AddAdminsInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(AddAdminsInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(RegimentAddress, other.RegimentAddress)) return false;
- if(!newAdmins_.Equals(other.newAdmins_)) return false;
- if (!object.Equals(OriginSenderAddress, other.OriginSenderAddress)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (regimentAddress_ != null) hash ^= RegimentAddress.GetHashCode();
- hash ^= newAdmins_.GetHashCode();
- if (originSenderAddress_ != null) hash ^= OriginSenderAddress.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (regimentAddress_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(RegimentAddress);
- }
- newAdmins_.WriteTo(output, _repeated_newAdmins_codec);
- if (originSenderAddress_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(OriginSenderAddress);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (regimentAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegimentAddress);
- }
- size += newAdmins_.CalculateSize(_repeated_newAdmins_codec);
- if (originSenderAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginSenderAddress);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(AddAdminsInput other) {
- if (other == null) {
- return;
- }
- if (other.regimentAddress_ != null) {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- RegimentAddress.MergeFrom(other.RegimentAddress);
- }
- newAdmins_.Add(other.newAdmins_);
- if (other.originSenderAddress_ != null) {
- if (originSenderAddress_ == null) {
- OriginSenderAddress = new global::AElf.Types.Address();
- }
- OriginSenderAddress.MergeFrom(other.OriginSenderAddress);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(RegimentAddress);
- break;
- }
- case 18: {
- newAdmins_.AddEntriesFrom(input, _repeated_newAdmins_codec);
- break;
- }
- case 26: {
- if (originSenderAddress_ == null) {
- OriginSenderAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(OriginSenderAddress);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class DeleteAdminsInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteAdminsInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[15]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DeleteAdminsInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DeleteAdminsInput(DeleteAdminsInput other) : this() {
- regimentAddress_ = other.regimentAddress_ != null ? other.regimentAddress_.Clone() : null;
- deleteAdmins_ = other.deleteAdmins_.Clone();
- originSenderAddress_ = other.originSenderAddress_ != null ? other.originSenderAddress_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DeleteAdminsInput Clone() {
- return new DeleteAdminsInput(this);
- }
-
- /// Field number for the "regiment_address" field.
- public const int RegimentAddressFieldNumber = 1;
- private global::AElf.Types.Address regimentAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address RegimentAddress {
- get { return regimentAddress_; }
- set {
- regimentAddress_ = value;
- }
- }
-
- /// Field number for the "delete_admins" field.
- public const int DeleteAdminsFieldNumber = 2;
- private static readonly pb::FieldCodec _repeated_deleteAdmins_codec
- = pb::FieldCodec.ForMessage(18, global::AElf.Types.Address.Parser);
- private readonly pbc::RepeatedField deleteAdmins_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField DeleteAdmins {
- get { return deleteAdmins_; }
- }
-
- /// Field number for the "origin_sender_address" field.
- public const int OriginSenderAddressFieldNumber = 3;
- private global::AElf.Types.Address originSenderAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address OriginSenderAddress {
- get { return originSenderAddress_; }
- set {
- originSenderAddress_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as DeleteAdminsInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(DeleteAdminsInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(RegimentAddress, other.RegimentAddress)) return false;
- if(!deleteAdmins_.Equals(other.deleteAdmins_)) return false;
- if (!object.Equals(OriginSenderAddress, other.OriginSenderAddress)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (regimentAddress_ != null) hash ^= RegimentAddress.GetHashCode();
- hash ^= deleteAdmins_.GetHashCode();
- if (originSenderAddress_ != null) hash ^= OriginSenderAddress.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (regimentAddress_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(RegimentAddress);
- }
- deleteAdmins_.WriteTo(output, _repeated_deleteAdmins_codec);
- if (originSenderAddress_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(OriginSenderAddress);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (regimentAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegimentAddress);
- }
- size += deleteAdmins_.CalculateSize(_repeated_deleteAdmins_codec);
- if (originSenderAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OriginSenderAddress);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(DeleteAdminsInput other) {
- if (other == null) {
- return;
- }
- if (other.regimentAddress_ != null) {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- RegimentAddress.MergeFrom(other.RegimentAddress);
- }
- deleteAdmins_.Add(other.deleteAdmins_);
- if (other.originSenderAddress_ != null) {
- if (originSenderAddress_ == null) {
- OriginSenderAddress = new global::AElf.Types.Address();
- }
- OriginSenderAddress.MergeFrom(other.OriginSenderAddress);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(RegimentAddress);
- break;
- }
- case 18: {
- deleteAdmins_.AddEntriesFrom(input, _repeated_deleteAdmins_codec);
- break;
- }
- case 26: {
- if (originSenderAddress_ == null) {
- OriginSenderAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(OriginSenderAddress);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class QueryTask : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QueryTask());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[16]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryTask() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryTask(QueryTask other) : this() {
- eachPayment_ = other.eachPayment_;
- supposedQueryTimes_ = other.supposedQueryTimes_;
- queryInfo_ = other.queryInfo_ != null ? other.queryInfo_.Clone() : null;
- endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null;
- designatedNodeList_ = other.designatedNodeList_ != null ? other.designatedNodeList_.Clone() : null;
- aggregatorContractAddress_ = other.aggregatorContractAddress_ != null ? other.aggregatorContractAddress_.Clone() : null;
- actualQueriedTimes_ = other.actualQueriedTimes_;
- callbackInfo_ = other.callbackInfo_ != null ? other.callbackInfo_.Clone() : null;
- creator_ = other.creator_ != null ? other.creator_.Clone() : null;
- aggregateThreshold_ = other.aggregateThreshold_;
- aggregateOption_ = other.aggregateOption_;
- onGoing_ = other.onGoing_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryTask Clone() {
- return new QueryTask(this);
- }
-
- /// Field number for the "each_payment" field.
- public const int EachPaymentFieldNumber = 1;
- private long eachPayment_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long EachPayment {
- get { return eachPayment_; }
- set {
- eachPayment_ = value;
- }
- }
-
- /// Field number for the "supposed_query_times" field.
- public const int SupposedQueryTimesFieldNumber = 2;
- private int supposedQueryTimes_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int SupposedQueryTimes {
- get { return supposedQueryTimes_; }
- set {
- supposedQueryTimes_ = value;
- }
- }
-
- /// Field number for the "query_info" field.
- public const int QueryInfoFieldNumber = 3;
- private global::AElf.Contracts.Oracle.QueryInfo queryInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.QueryInfo QueryInfo {
- get { return queryInfo_; }
- set {
- queryInfo_ = value;
- }
- }
-
- /// Field number for the "end_time" field.
- public const int EndTimeFieldNumber = 4;
- private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime {
- get { return endTime_; }
- set {
- endTime_ = value;
- }
- }
-
- /// Field number for the "designated_node_list" field.
- public const int DesignatedNodeListFieldNumber = 5;
- private global::AElf.Contracts.Oracle.AddressList designatedNodeList_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.AddressList DesignatedNodeList {
- get { return designatedNodeList_; }
- set {
- designatedNodeList_ = value;
- }
- }
-
- /// Field number for the "aggregator_contract_address" field.
- public const int AggregatorContractAddressFieldNumber = 6;
- private global::AElf.Types.Address aggregatorContractAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address AggregatorContractAddress {
- get { return aggregatorContractAddress_; }
- set {
- aggregatorContractAddress_ = value;
- }
- }
-
- /// Field number for the "actual_queried_times" field.
- public const int ActualQueriedTimesFieldNumber = 7;
- private int actualQueriedTimes_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int ActualQueriedTimes {
- get { return actualQueriedTimes_; }
- set {
- actualQueriedTimes_ = value;
- }
- }
-
- /// Field number for the "callback_info" field.
- public const int CallbackInfoFieldNumber = 8;
- private global::AElf.Contracts.Oracle.CallbackInfo callbackInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.CallbackInfo CallbackInfo {
- get { return callbackInfo_; }
- set {
- callbackInfo_ = value;
- }
- }
-
- /// Field number for the "creator" field.
- public const int CreatorFieldNumber = 9;
- private global::AElf.Types.Address creator_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address Creator {
- get { return creator_; }
- set {
- creator_ = value;
- }
- }
-
- /// Field number for the "aggregate_threshold" field.
- public const int AggregateThresholdFieldNumber = 10;
- private int aggregateThreshold_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int AggregateThreshold {
- get { return aggregateThreshold_; }
- set {
- aggregateThreshold_ = value;
- }
- }
-
- /// Field number for the "aggregate_option" field.
- public const int AggregateOptionFieldNumber = 11;
- private int aggregateOption_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int AggregateOption {
- get { return aggregateOption_; }
- set {
- aggregateOption_ = value;
- }
- }
-
- /// Field number for the "on_going" field.
- public const int OnGoingFieldNumber = 12;
- private bool onGoing_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool OnGoing {
- get { return onGoing_; }
- set {
- onGoing_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as QueryTask);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(QueryTask other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (EachPayment != other.EachPayment) return false;
- if (SupposedQueryTimes != other.SupposedQueryTimes) return false;
- if (!object.Equals(QueryInfo, other.QueryInfo)) return false;
- if (!object.Equals(EndTime, other.EndTime)) return false;
- if (!object.Equals(DesignatedNodeList, other.DesignatedNodeList)) return false;
- if (!object.Equals(AggregatorContractAddress, other.AggregatorContractAddress)) return false;
- if (ActualQueriedTimes != other.ActualQueriedTimes) return false;
- if (!object.Equals(CallbackInfo, other.CallbackInfo)) return false;
- if (!object.Equals(Creator, other.Creator)) return false;
- if (AggregateThreshold != other.AggregateThreshold) return false;
- if (AggregateOption != other.AggregateOption) return false;
- if (OnGoing != other.OnGoing) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (EachPayment != 0L) hash ^= EachPayment.GetHashCode();
- if (SupposedQueryTimes != 0) hash ^= SupposedQueryTimes.GetHashCode();
- if (queryInfo_ != null) hash ^= QueryInfo.GetHashCode();
- if (endTime_ != null) hash ^= EndTime.GetHashCode();
- if (designatedNodeList_ != null) hash ^= DesignatedNodeList.GetHashCode();
- if (aggregatorContractAddress_ != null) hash ^= AggregatorContractAddress.GetHashCode();
- if (ActualQueriedTimes != 0) hash ^= ActualQueriedTimes.GetHashCode();
- if (callbackInfo_ != null) hash ^= CallbackInfo.GetHashCode();
- if (creator_ != null) hash ^= Creator.GetHashCode();
- if (AggregateThreshold != 0) hash ^= AggregateThreshold.GetHashCode();
- if (AggregateOption != 0) hash ^= AggregateOption.GetHashCode();
- if (OnGoing != false) hash ^= OnGoing.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (EachPayment != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(EachPayment);
- }
- if (SupposedQueryTimes != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(SupposedQueryTimes);
- }
- if (queryInfo_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(QueryInfo);
- }
- if (endTime_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(EndTime);
- }
- if (designatedNodeList_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(DesignatedNodeList);
- }
- if (aggregatorContractAddress_ != null) {
- output.WriteRawTag(50);
- output.WriteMessage(AggregatorContractAddress);
- }
- if (ActualQueriedTimes != 0) {
- output.WriteRawTag(56);
- output.WriteInt32(ActualQueriedTimes);
- }
- if (callbackInfo_ != null) {
- output.WriteRawTag(66);
- output.WriteMessage(CallbackInfo);
- }
- if (creator_ != null) {
- output.WriteRawTag(74);
- output.WriteMessage(Creator);
- }
- if (AggregateThreshold != 0) {
- output.WriteRawTag(80);
- output.WriteInt32(AggregateThreshold);
- }
- if (AggregateOption != 0) {
- output.WriteRawTag(88);
- output.WriteInt32(AggregateOption);
- }
- if (OnGoing != false) {
- output.WriteRawTag(96);
- output.WriteBool(OnGoing);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (EachPayment != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(EachPayment);
- }
- if (SupposedQueryTimes != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(SupposedQueryTimes);
- }
- if (queryInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryInfo);
- }
- if (endTime_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime);
- }
- if (designatedNodeList_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(DesignatedNodeList);
- }
- if (aggregatorContractAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(AggregatorContractAddress);
- }
- if (ActualQueriedTimes != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(ActualQueriedTimes);
- }
- if (callbackInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(CallbackInfo);
- }
- if (creator_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Creator);
- }
- if (AggregateThreshold != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregateThreshold);
- }
- if (AggregateOption != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregateOption);
- }
- if (OnGoing != false) {
- size += 1 + 1;
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(QueryTask other) {
- if (other == null) {
- return;
- }
- if (other.EachPayment != 0L) {
- EachPayment = other.EachPayment;
- }
- if (other.SupposedQueryTimes != 0) {
- SupposedQueryTimes = other.SupposedQueryTimes;
- }
- if (other.queryInfo_ != null) {
- if (queryInfo_ == null) {
- QueryInfo = new global::AElf.Contracts.Oracle.QueryInfo();
- }
- QueryInfo.MergeFrom(other.QueryInfo);
- }
- if (other.endTime_ != null) {
- if (endTime_ == null) {
- EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
- }
- EndTime.MergeFrom(other.EndTime);
- }
- if (other.designatedNodeList_ != null) {
- if (designatedNodeList_ == null) {
- DesignatedNodeList = new global::AElf.Contracts.Oracle.AddressList();
- }
- DesignatedNodeList.MergeFrom(other.DesignatedNodeList);
- }
- if (other.aggregatorContractAddress_ != null) {
- if (aggregatorContractAddress_ == null) {
- AggregatorContractAddress = new global::AElf.Types.Address();
- }
- AggregatorContractAddress.MergeFrom(other.AggregatorContractAddress);
- }
- if (other.ActualQueriedTimes != 0) {
- ActualQueriedTimes = other.ActualQueriedTimes;
- }
- if (other.callbackInfo_ != null) {
- if (callbackInfo_ == null) {
- CallbackInfo = new global::AElf.Contracts.Oracle.CallbackInfo();
- }
- CallbackInfo.MergeFrom(other.CallbackInfo);
- }
- if (other.creator_ != null) {
- if (creator_ == null) {
- Creator = new global::AElf.Types.Address();
- }
- Creator.MergeFrom(other.Creator);
- }
- if (other.AggregateThreshold != 0) {
- AggregateThreshold = other.AggregateThreshold;
- }
- if (other.AggregateOption != 0) {
- AggregateOption = other.AggregateOption;
- }
- if (other.OnGoing != false) {
- OnGoing = other.OnGoing;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- EachPayment = input.ReadInt64();
- break;
- }
- case 16: {
- SupposedQueryTimes = input.ReadInt32();
- break;
- }
- case 26: {
- if (queryInfo_ == null) {
- QueryInfo = new global::AElf.Contracts.Oracle.QueryInfo();
- }
- input.ReadMessage(QueryInfo);
- break;
- }
- case 34: {
- if (endTime_ == null) {
- EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
- }
- input.ReadMessage(EndTime);
- break;
- }
- case 42: {
- if (designatedNodeList_ == null) {
- DesignatedNodeList = new global::AElf.Contracts.Oracle.AddressList();
- }
- input.ReadMessage(DesignatedNodeList);
- break;
- }
- case 50: {
- if (aggregatorContractAddress_ == null) {
- AggregatorContractAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(AggregatorContractAddress);
- break;
- }
- case 56: {
- ActualQueriedTimes = input.ReadInt32();
- break;
- }
- case 66: {
- if (callbackInfo_ == null) {
- CallbackInfo = new global::AElf.Contracts.Oracle.CallbackInfo();
- }
- input.ReadMessage(CallbackInfo);
- break;
- }
- case 74: {
- if (creator_ == null) {
- Creator = new global::AElf.Types.Address();
- }
- input.ReadMessage(Creator);
- break;
- }
- case 80: {
- AggregateThreshold = input.ReadInt32();
- break;
- }
- case 88: {
- AggregateOption = input.ReadInt32();
- break;
- }
- case 96: {
- OnGoing = input.ReadBool();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class CommitInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommitInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[17]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CommitInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CommitInput(CommitInput other) : this() {
- queryId_ = other.queryId_ != null ? other.queryId_.Clone() : null;
- commitment_ = other.commitment_ != null ? other.commitment_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CommitInput Clone() {
- return new CommitInput(this);
- }
-
- /// Field number for the "query_id" field.
- public const int QueryIdFieldNumber = 1;
- private global::AElf.Types.Hash queryId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash QueryId {
- get { return queryId_; }
- set {
- queryId_ = value;
- }
- }
-
- /// Field number for the "commitment" field.
- public const int CommitmentFieldNumber = 2;
- private global::AElf.Types.Hash commitment_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash Commitment {
- get { return commitment_; }
- set {
- commitment_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as CommitInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(CommitInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(QueryId, other.QueryId)) return false;
- if (!object.Equals(Commitment, other.Commitment)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (queryId_ != null) hash ^= QueryId.GetHashCode();
- if (commitment_ != null) hash ^= Commitment.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (queryId_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(QueryId);
- }
- if (commitment_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Commitment);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (queryId_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryId);
- }
- if (commitment_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Commitment);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(CommitInput other) {
- if (other == null) {
- return;
- }
- if (other.queryId_ != null) {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- QueryId.MergeFrom(other.QueryId);
- }
- if (other.commitment_ != null) {
- if (commitment_ == null) {
- Commitment = new global::AElf.Types.Hash();
- }
- Commitment.MergeFrom(other.Commitment);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(QueryId);
- break;
- }
- case 18: {
- if (commitment_ == null) {
- Commitment = new global::AElf.Types.Hash();
- }
- input.ReadMessage(Commitment);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class RevealInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RevealInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[18]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RevealInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RevealInput(RevealInput other) : this() {
- queryId_ = other.queryId_ != null ? other.queryId_.Clone() : null;
- data_ = other.data_;
- salt_ = other.salt_ != null ? other.salt_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public RevealInput Clone() {
- return new RevealInput(this);
- }
-
- /// Field number for the "query_id" field.
- public const int QueryIdFieldNumber = 1;
- private global::AElf.Types.Hash queryId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash QueryId {
- get { return queryId_; }
- set {
- queryId_ = value;
- }
- }
-
- /// Field number for the "data" field.
- public const int DataFieldNumber = 2;
- private string data_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Data {
- get { return data_; }
- set {
- data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "salt" field.
- public const int SaltFieldNumber = 3;
- private global::AElf.Types.Hash salt_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash Salt {
- get { return salt_; }
- set {
- salt_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as RevealInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(RevealInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(QueryId, other.QueryId)) return false;
- if (Data != other.Data) return false;
- if (!object.Equals(Salt, other.Salt)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (queryId_ != null) hash ^= QueryId.GetHashCode();
- if (Data.Length != 0) hash ^= Data.GetHashCode();
- if (salt_ != null) hash ^= Salt.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (queryId_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(QueryId);
- }
- if (Data.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(Data);
- }
- if (salt_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(Salt);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (queryId_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryId);
- }
- if (Data.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Data);
- }
- if (salt_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Salt);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(RevealInput other) {
- if (other == null) {
- return;
- }
- if (other.queryId_ != null) {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- QueryId.MergeFrom(other.QueryId);
- }
- if (other.Data.Length != 0) {
- Data = other.Data;
- }
- if (other.salt_ != null) {
- if (salt_ == null) {
- Salt = new global::AElf.Types.Hash();
- }
- Salt.MergeFrom(other.Salt);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(QueryId);
- break;
- }
- case 18: {
- Data = input.ReadString();
- break;
- }
- case 26: {
- if (salt_ == null) {
- Salt = new global::AElf.Types.Hash();
- }
- input.ReadMessage(Salt);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class CommitmentMap : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommitmentMap());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[19]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CommitmentMap() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CommitmentMap(CommitmentMap other) : this() {
- value_ = other.value_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CommitmentMap Clone() {
- return new CommitmentMap(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.ForMessage(18, global::AElf.Types.Hash.Parser), 10);
- private readonly pbc::MapField value_ = new pbc::MapField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField Value {
- get { return value_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as CommitmentMap);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(CommitmentMap 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]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= Value.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- value_.WriteTo(output, _map_value_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += value_.CalculateSize(_map_value_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(CommitmentMap other) {
- if (other == null) {
- return;
- }
- value_.Add(other.value_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- 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;
- }
- }
- }
- }
-
- }
-
- public sealed partial class OracleNodeThreshold : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OracleNodeThreshold());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[20]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OracleNodeThreshold() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OracleNodeThreshold(OracleNodeThreshold other) : this() {
- minimumOracleNodesCount_ = other.minimumOracleNodesCount_;
- defaultRevealThreshold_ = other.defaultRevealThreshold_;
- defaultAggregateThreshold_ = other.defaultAggregateThreshold_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public OracleNodeThreshold Clone() {
- return new OracleNodeThreshold(this);
- }
-
- /// Field number for the "minimum_oracle_nodes_count" field.
- public const int MinimumOracleNodesCountFieldNumber = 1;
- private int minimumOracleNodesCount_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int MinimumOracleNodesCount {
- get { return minimumOracleNodesCount_; }
- set {
- minimumOracleNodesCount_ = value;
- }
- }
-
- /// Field number for the "default_reveal_threshold" field.
- public const int DefaultRevealThresholdFieldNumber = 2;
- private int defaultRevealThreshold_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int DefaultRevealThreshold {
- get { return defaultRevealThreshold_; }
- set {
- defaultRevealThreshold_ = value;
- }
- }
-
- /// Field number for the "default_aggregate_threshold" field.
- public const int DefaultAggregateThresholdFieldNumber = 3;
- private int defaultAggregateThreshold_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int DefaultAggregateThreshold {
- get { return defaultAggregateThreshold_; }
- set {
- defaultAggregateThreshold_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as OracleNodeThreshold);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(OracleNodeThreshold other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (MinimumOracleNodesCount != other.MinimumOracleNodesCount) return false;
- if (DefaultRevealThreshold != other.DefaultRevealThreshold) return false;
- if (DefaultAggregateThreshold != other.DefaultAggregateThreshold) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (MinimumOracleNodesCount != 0) hash ^= MinimumOracleNodesCount.GetHashCode();
- if (DefaultRevealThreshold != 0) hash ^= DefaultRevealThreshold.GetHashCode();
- if (DefaultAggregateThreshold != 0) hash ^= DefaultAggregateThreshold.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (MinimumOracleNodesCount != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(MinimumOracleNodesCount);
- }
- if (DefaultRevealThreshold != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(DefaultRevealThreshold);
- }
- if (DefaultAggregateThreshold != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(DefaultAggregateThreshold);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (MinimumOracleNodesCount != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinimumOracleNodesCount);
- }
- if (DefaultRevealThreshold != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(DefaultRevealThreshold);
- }
- if (DefaultAggregateThreshold != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(DefaultAggregateThreshold);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(OracleNodeThreshold other) {
- if (other == null) {
- return;
- }
- if (other.MinimumOracleNodesCount != 0) {
- MinimumOracleNodesCount = other.MinimumOracleNodesCount;
- }
- if (other.DefaultRevealThreshold != 0) {
- DefaultRevealThreshold = other.DefaultRevealThreshold;
- }
- if (other.DefaultAggregateThreshold != 0) {
- DefaultAggregateThreshold = other.DefaultAggregateThreshold;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- MinimumOracleNodesCount = input.ReadInt32();
- break;
- }
- case 16: {
- DefaultRevealThreshold = input.ReadInt32();
- break;
- }
- case 24: {
- DefaultAggregateThreshold = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class ResultList : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResultList());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[21]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ResultList() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ResultList(ResultList other) : this() {
- results_ = other.results_.Clone();
- frequencies_ = other.frequencies_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ResultList Clone() {
- return new ResultList(this);
- }
-
- /// Field number for the "results" field.
- public const int ResultsFieldNumber = 1;
- private static readonly pb::FieldCodec _repeated_results_codec
- = pb::FieldCodec.ForString(10);
- private readonly pbc::RepeatedField results_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField Results {
- get { return results_; }
- }
-
- /// Field number for the "frequencies" field.
- public const int FrequenciesFieldNumber = 2;
- private static readonly pb::FieldCodec _repeated_frequencies_codec
- = pb::FieldCodec.ForInt32(18);
- private readonly pbc::RepeatedField frequencies_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField Frequencies {
- get { return frequencies_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as ResultList);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ResultList other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!results_.Equals(other.results_)) return false;
- if(!frequencies_.Equals(other.frequencies_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= results_.GetHashCode();
- hash ^= frequencies_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- results_.WriteTo(output, _repeated_results_codec);
- frequencies_.WriteTo(output, _repeated_frequencies_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += results_.CalculateSize(_repeated_results_codec);
- size += frequencies_.CalculateSize(_repeated_frequencies_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ResultList other) {
- if (other == null) {
- return;
- }
- results_.Add(other.results_);
- frequencies_.Add(other.frequencies_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- results_.AddEntriesFrom(input, _repeated_results_codec);
- break;
- }
- case 18:
- case 16: {
- frequencies_.AddEntriesFrom(input, _repeated_frequencies_codec);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class DataRecord : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataRecord());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[22]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DataRecord() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DataRecord(DataRecord other) : this() {
- address_ = other.address_ != null ? other.address_.Clone() : null;
- data_ = other.data_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DataRecord Clone() {
- return new DataRecord(this);
- }
-
- /// Field number for the "address" field.
- public const int AddressFieldNumber = 1;
- private global::AElf.Types.Address address_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address Address {
- get { return address_; }
- set {
- address_ = value;
- }
- }
-
- /// Field number for the "data" field.
- public const int DataFieldNumber = 2;
- private string data_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Data {
- get { return data_; }
- set {
- data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as DataRecord);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(DataRecord other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(Address, other.Address)) return false;
- if (Data != other.Data) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (address_ != null) hash ^= Address.GetHashCode();
- if (Data.Length != 0) hash ^= Data.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (address_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Address);
- }
- if (Data.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(Data);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (address_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address);
- }
- if (Data.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Data);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(DataRecord other) {
- if (other == null) {
- return;
- }
- if (other.address_ != null) {
- if (address_ == null) {
- Address = new global::AElf.Types.Address();
- }
- Address.MergeFrom(other.Address);
- }
- if (other.Data.Length != 0) {
- Data = other.Data;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (address_ == null) {
- Address = new global::AElf.Types.Address();
- }
- input.ReadMessage(Address);
- break;
- }
- case 18: {
- Data = input.ReadString();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class DataRecords : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataRecords());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[23]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DataRecords() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DataRecords(DataRecords other) : this() {
- value_ = other.value_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public DataRecords Clone() {
- return new DataRecords(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.Oracle.DataRecord.Parser);
- private readonly pbc::RepeatedField value_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField Value {
- get { return value_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as DataRecords);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(DataRecords 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]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= value_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- value_.WriteTo(output, _repeated_value_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += value_.CalculateSize(_repeated_value_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(DataRecords other) {
- if (other == null) {
- return;
- }
- value_.Add(other.value_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- 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;
- }
- }
- }
- }
-
- }
-
- public sealed partial class PlainResult : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlainResult());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[24]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public PlainResult() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public PlainResult(PlainResult other) : this() {
- dataRecords_ = other.dataRecords_ != null ? other.dataRecords_.Clone() : null;
- regimentAddress_ = other.regimentAddress_ != null ? other.regimentAddress_.Clone() : null;
- queryInfo_ = other.queryInfo_ != null ? other.queryInfo_.Clone() : null;
- token_ = other.token_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public PlainResult Clone() {
- return new PlainResult(this);
- }
-
- /// Field number for the "data_records" field.
- public const int DataRecordsFieldNumber = 1;
- private global::AElf.Contracts.Oracle.DataRecords dataRecords_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.DataRecords DataRecords {
- get { return dataRecords_; }
- set {
- dataRecords_ = value;
- }
- }
-
- /// Field number for the "regiment_address" field.
- public const int RegimentAddressFieldNumber = 2;
- private global::AElf.Types.Address regimentAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address RegimentAddress {
- get { return regimentAddress_; }
- set {
- regimentAddress_ = value;
- }
- }
-
- /// Field number for the "query_info" field.
- public const int QueryInfoFieldNumber = 3;
- private global::AElf.Contracts.Oracle.QueryInfo queryInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.QueryInfo QueryInfo {
- get { return queryInfo_; }
- set {
- queryInfo_ = value;
- }
- }
-
- /// Field number for the "token" field.
- public const int TokenFieldNumber = 4;
- private string token_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Token {
- get { return token_; }
- set {
- token_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as PlainResult);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(PlainResult other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(DataRecords, other.DataRecords)) return false;
- if (!object.Equals(RegimentAddress, other.RegimentAddress)) return false;
- if (!object.Equals(QueryInfo, other.QueryInfo)) return false;
- if (Token != other.Token) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (dataRecords_ != null) hash ^= DataRecords.GetHashCode();
- if (regimentAddress_ != null) hash ^= RegimentAddress.GetHashCode();
- if (queryInfo_ != null) hash ^= QueryInfo.GetHashCode();
- if (Token.Length != 0) hash ^= Token.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (dataRecords_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(DataRecords);
- }
- if (regimentAddress_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(RegimentAddress);
- }
- if (queryInfo_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(QueryInfo);
- }
- if (Token.Length != 0) {
- output.WriteRawTag(34);
- output.WriteString(Token);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (dataRecords_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(DataRecords);
- }
- if (regimentAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegimentAddress);
- }
- if (queryInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryInfo);
- }
- if (Token.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Token);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(PlainResult other) {
- if (other == null) {
- return;
- }
- if (other.dataRecords_ != null) {
- if (dataRecords_ == null) {
- DataRecords = new global::AElf.Contracts.Oracle.DataRecords();
- }
- DataRecords.MergeFrom(other.DataRecords);
- }
- if (other.regimentAddress_ != null) {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- RegimentAddress.MergeFrom(other.RegimentAddress);
- }
- if (other.queryInfo_ != null) {
- if (queryInfo_ == null) {
- QueryInfo = new global::AElf.Contracts.Oracle.QueryInfo();
- }
- QueryInfo.MergeFrom(other.QueryInfo);
- }
- if (other.Token.Length != 0) {
- Token = other.Token;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (dataRecords_ == null) {
- DataRecords = new global::AElf.Contracts.Oracle.DataRecords();
- }
- input.ReadMessage(DataRecords);
- break;
- }
- case 18: {
- if (regimentAddress_ == null) {
- RegimentAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(RegimentAddress);
- break;
- }
- case 26: {
- if (queryInfo_ == null) {
- QueryInfo = new global::AElf.Contracts.Oracle.QueryInfo();
- }
- input.ReadMessage(QueryInfo);
- break;
- }
- case 34: {
- Token = input.ReadString();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class LockTokensInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LockTokensInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[25]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LockTokensInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LockTokensInput(LockTokensInput other) : this() {
- oracleNodeAddress_ = other.oracleNodeAddress_ != null ? other.oracleNodeAddress_.Clone() : null;
- lockAmount_ = other.lockAmount_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public LockTokensInput Clone() {
- return new LockTokensInput(this);
- }
-
- /// Field number for the "oracle_node_address" field.
- public const int OracleNodeAddressFieldNumber = 1;
- private global::AElf.Types.Address oracleNodeAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address OracleNodeAddress {
- get { return oracleNodeAddress_; }
- set {
- oracleNodeAddress_ = value;
- }
- }
-
- /// Field number for the "lock_amount" field.
- public const int LockAmountFieldNumber = 2;
- private long lockAmount_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long LockAmount {
- get { return lockAmount_; }
- set {
- lockAmount_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as LockTokensInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(LockTokensInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(OracleNodeAddress, other.OracleNodeAddress)) return false;
- if (LockAmount != other.LockAmount) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (oracleNodeAddress_ != null) hash ^= OracleNodeAddress.GetHashCode();
- if (LockAmount != 0L) hash ^= LockAmount.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (oracleNodeAddress_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(OracleNodeAddress);
- }
- if (LockAmount != 0L) {
- output.WriteRawTag(16);
- output.WriteInt64(LockAmount);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (oracleNodeAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OracleNodeAddress);
- }
- if (LockAmount != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(LockAmount);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(LockTokensInput other) {
- if (other == null) {
- return;
- }
- if (other.oracleNodeAddress_ != null) {
- if (oracleNodeAddress_ == null) {
- OracleNodeAddress = new global::AElf.Types.Address();
- }
- OracleNodeAddress.MergeFrom(other.OracleNodeAddress);
- }
- if (other.LockAmount != 0L) {
- LockAmount = other.LockAmount;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (oracleNodeAddress_ == null) {
- OracleNodeAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(OracleNodeAddress);
- break;
- }
- case 16: {
- LockAmount = input.ReadInt64();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class UnlockTokensInput : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnlockTokensInput());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[26]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public UnlockTokensInput() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public UnlockTokensInput(UnlockTokensInput other) : this() {
- oracleNodeAddress_ = other.oracleNodeAddress_ != null ? other.oracleNodeAddress_.Clone() : null;
- withdrawAmount_ = other.withdrawAmount_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public UnlockTokensInput Clone() {
- return new UnlockTokensInput(this);
- }
-
- /// Field number for the "oracle_node_address" field.
- public const int OracleNodeAddressFieldNumber = 1;
- private global::AElf.Types.Address oracleNodeAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address OracleNodeAddress {
- get { return oracleNodeAddress_; }
- set {
- oracleNodeAddress_ = value;
- }
- }
-
- /// Field number for the "withdraw_amount" field.
- public const int WithdrawAmountFieldNumber = 2;
- private long withdrawAmount_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long WithdrawAmount {
- get { return withdrawAmount_; }
- set {
- withdrawAmount_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as UnlockTokensInput);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(UnlockTokensInput other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(OracleNodeAddress, other.OracleNodeAddress)) return false;
- if (WithdrawAmount != other.WithdrawAmount) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (oracleNodeAddress_ != null) hash ^= OracleNodeAddress.GetHashCode();
- if (WithdrawAmount != 0L) hash ^= WithdrawAmount.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (oracleNodeAddress_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(OracleNodeAddress);
- }
- if (WithdrawAmount != 0L) {
- output.WriteRawTag(16);
- output.WriteInt64(WithdrawAmount);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (oracleNodeAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OracleNodeAddress);
- }
- if (WithdrawAmount != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(WithdrawAmount);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(UnlockTokensInput other) {
- if (other == null) {
- return;
- }
- if (other.oracleNodeAddress_ != null) {
- if (oracleNodeAddress_ == null) {
- OracleNodeAddress = new global::AElf.Types.Address();
- }
- OracleNodeAddress.MergeFrom(other.OracleNodeAddress);
- }
- if (other.WithdrawAmount != 0L) {
- WithdrawAmount = other.WithdrawAmount;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (oracleNodeAddress_ == null) {
- OracleNodeAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(OracleNodeAddress);
- break;
- }
- case 16: {
- WithdrawAmount = input.ReadInt64();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class QueryInfo : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QueryInfo());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[27]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryInfo() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryInfo(QueryInfo other) : this() {
- title_ = other.title_;
- options_ = other.options_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryInfo Clone() {
- return new QueryInfo(this);
- }
-
- /// Field number for the "title" field.
- public const int TitleFieldNumber = 1;
- private string title_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Title {
- get { return title_; }
- set {
- title_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "options" field.
- public const int OptionsFieldNumber = 2;
- private static readonly pb::FieldCodec _repeated_options_codec
- = pb::FieldCodec.ForString(18);
- private readonly pbc::RepeatedField options_ = new pbc::RepeatedField();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField Options {
- get { return options_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as QueryInfo);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(QueryInfo other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Title != other.Title) return false;
- if(!options_.Equals(other.options_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Title.Length != 0) hash ^= Title.GetHashCode();
- hash ^= options_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Title.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Title);
- }
- options_.WriteTo(output, _repeated_options_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Title.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Title);
- }
- size += options_.CalculateSize(_repeated_options_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(QueryInfo other) {
- if (other == null) {
- return;
- }
- if (other.Title.Length != 0) {
- Title = other.Title;
- }
- options_.Add(other.options_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- Title = input.ReadString();
- break;
- }
- case 18: {
- options_.AddEntriesFrom(input, _repeated_options_codec);
- break;
- }
- }
- }
- }
-
- }
-
- ///
- /// Events
- ///
- public sealed partial class QueryCreated : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QueryCreated());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[28]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryCreated() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryCreated(QueryCreated other) : this() {
- payment_ = other.payment_;
- callbackInfo_ = other.callbackInfo_ != null ? other.callbackInfo_.Clone() : null;
- aggregatorContractAddress_ = other.aggregatorContractAddress_ != null ? other.aggregatorContractAddress_.Clone() : null;
- designatedNodeList_ = other.designatedNodeList_ != null ? other.designatedNodeList_.Clone() : null;
- queryInfo_ = other.queryInfo_ != null ? other.queryInfo_.Clone() : null;
- aggregateThreshold_ = other.aggregateThreshold_;
- querySender_ = other.querySender_ != null ? other.querySender_.Clone() : null;
- queryId_ = other.queryId_ != null ? other.queryId_.Clone() : null;
- token_ = other.token_;
- maximumPermissibleDeviation_ = other.maximumPermissibleDeviation_;
- aggregateOption_ = other.aggregateOption_;
- taskId_ = other.taskId_ != null ? other.taskId_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryCreated Clone() {
- return new QueryCreated(this);
- }
-
- /// Field number for the "payment" field.
- public const int PaymentFieldNumber = 1;
- private long payment_;
- ///
- /// Maximum for this query option.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Payment {
- get { return payment_; }
- set {
- payment_ = value;
- }
- }
-
- /// Field number for the "callback_info" field.
- public const int CallbackInfoFieldNumber = 2;
- private global::AElf.Contracts.Oracle.CallbackInfo callbackInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.CallbackInfo CallbackInfo {
- get { return callbackInfo_; }
- set {
- callbackInfo_ = value;
- }
- }
-
- /// Field number for the "aggregator_contract_address" field.
- public const int AggregatorContractAddressFieldNumber = 3;
- private global::AElf.Types.Address aggregatorContractAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address AggregatorContractAddress {
- get { return aggregatorContractAddress_; }
- set {
- aggregatorContractAddress_ = value;
- }
- }
-
- /// Field number for the "designated_node_list" field.
- public const int DesignatedNodeListFieldNumber = 4;
- private global::AElf.Contracts.Oracle.AddressList designatedNodeList_;
- ///
- /// Will be regiment address if count is 1.
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.AddressList DesignatedNodeList {
- get { return designatedNodeList_; }
- set {
- designatedNodeList_ = value;
- }
- }
-
- /// Field number for the "query_info" field.
- public const int QueryInfoFieldNumber = 5;
- private global::AElf.Contracts.Oracle.QueryInfo queryInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.QueryInfo QueryInfo {
- get { return queryInfo_; }
- set {
- queryInfo_ = value;
- }
- }
-
- /// Field number for the "aggregate_threshold" field.
- public const int AggregateThresholdFieldNumber = 6;
- private int aggregateThreshold_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int AggregateThreshold {
- get { return aggregateThreshold_; }
- set {
- aggregateThreshold_ = value;
- }
- }
-
- /// Field number for the "query_sender" field.
- public const int QuerySenderFieldNumber = 7;
- private global::AElf.Types.Address querySender_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address QuerySender {
- get { return querySender_; }
- set {
- querySender_ = value;
- }
- }
-
- /// Field number for the "query_id" field.
- public const int QueryIdFieldNumber = 8;
- private global::AElf.Types.Hash queryId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash QueryId {
- get { return queryId_; }
- set {
- queryId_ = value;
- }
- }
-
- /// Field number for the "token" field.
- public const int TokenFieldNumber = 9;
- private string token_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Token {
- get { return token_; }
- set {
- token_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "maximum_permissible_deviation" field.
- public const int MaximumPermissibleDeviationFieldNumber = 10;
- private int maximumPermissibleDeviation_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int MaximumPermissibleDeviation {
- get { return maximumPermissibleDeviation_; }
- set {
- maximumPermissibleDeviation_ = value;
- }
- }
-
- /// Field number for the "aggregate_option" field.
- public const int AggregateOptionFieldNumber = 11;
- private int aggregateOption_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int AggregateOption {
- get { return aggregateOption_; }
- set {
- aggregateOption_ = value;
- }
- }
-
- /// Field number for the "task_id" field.
- public const int TaskIdFieldNumber = 12;
- private global::AElf.Types.Hash taskId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash TaskId {
- get { return taskId_; }
- set {
- taskId_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as QueryCreated);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(QueryCreated other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Payment != other.Payment) return false;
- if (!object.Equals(CallbackInfo, other.CallbackInfo)) return false;
- if (!object.Equals(AggregatorContractAddress, other.AggregatorContractAddress)) return false;
- if (!object.Equals(DesignatedNodeList, other.DesignatedNodeList)) return false;
- if (!object.Equals(QueryInfo, other.QueryInfo)) return false;
- if (AggregateThreshold != other.AggregateThreshold) return false;
- if (!object.Equals(QuerySender, other.QuerySender)) return false;
- if (!object.Equals(QueryId, other.QueryId)) return false;
- if (Token != other.Token) return false;
- if (MaximumPermissibleDeviation != other.MaximumPermissibleDeviation) return false;
- if (AggregateOption != other.AggregateOption) return false;
- if (!object.Equals(TaskId, other.TaskId)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Payment != 0L) hash ^= Payment.GetHashCode();
- if (callbackInfo_ != null) hash ^= CallbackInfo.GetHashCode();
- if (aggregatorContractAddress_ != null) hash ^= AggregatorContractAddress.GetHashCode();
- if (designatedNodeList_ != null) hash ^= DesignatedNodeList.GetHashCode();
- if (queryInfo_ != null) hash ^= QueryInfo.GetHashCode();
- if (AggregateThreshold != 0) hash ^= AggregateThreshold.GetHashCode();
- if (querySender_ != null) hash ^= QuerySender.GetHashCode();
- if (queryId_ != null) hash ^= QueryId.GetHashCode();
- if (Token.Length != 0) hash ^= Token.GetHashCode();
- if (MaximumPermissibleDeviation != 0) hash ^= MaximumPermissibleDeviation.GetHashCode();
- if (AggregateOption != 0) hash ^= AggregateOption.GetHashCode();
- if (taskId_ != null) hash ^= TaskId.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Payment != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(Payment);
- }
- if (callbackInfo_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(CallbackInfo);
- }
- if (aggregatorContractAddress_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(AggregatorContractAddress);
- }
- if (designatedNodeList_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(DesignatedNodeList);
- }
- if (queryInfo_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(QueryInfo);
- }
- if (AggregateThreshold != 0) {
- output.WriteRawTag(48);
- output.WriteInt32(AggregateThreshold);
- }
- if (querySender_ != null) {
- output.WriteRawTag(58);
- output.WriteMessage(QuerySender);
- }
- if (queryId_ != null) {
- output.WriteRawTag(66);
- output.WriteMessage(QueryId);
- }
- if (Token.Length != 0) {
- output.WriteRawTag(74);
- output.WriteString(Token);
- }
- if (MaximumPermissibleDeviation != 0) {
- output.WriteRawTag(80);
- output.WriteInt32(MaximumPermissibleDeviation);
- }
- if (AggregateOption != 0) {
- output.WriteRawTag(88);
- output.WriteInt32(AggregateOption);
- }
- if (taskId_ != null) {
- output.WriteRawTag(98);
- output.WriteMessage(TaskId);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Payment != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Payment);
- }
- if (callbackInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(CallbackInfo);
- }
- if (aggregatorContractAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(AggregatorContractAddress);
- }
- if (designatedNodeList_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(DesignatedNodeList);
- }
- if (queryInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryInfo);
- }
- if (AggregateThreshold != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregateThreshold);
- }
- if (querySender_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QuerySender);
- }
- if (queryId_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryId);
- }
- if (Token.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Token);
- }
- if (MaximumPermissibleDeviation != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaximumPermissibleDeviation);
- }
- if (AggregateOption != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregateOption);
- }
- if (taskId_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(TaskId);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(QueryCreated other) {
- if (other == null) {
- return;
- }
- if (other.Payment != 0L) {
- Payment = other.Payment;
- }
- if (other.callbackInfo_ != null) {
- if (callbackInfo_ == null) {
- CallbackInfo = new global::AElf.Contracts.Oracle.CallbackInfo();
- }
- CallbackInfo.MergeFrom(other.CallbackInfo);
- }
- if (other.aggregatorContractAddress_ != null) {
- if (aggregatorContractAddress_ == null) {
- AggregatorContractAddress = new global::AElf.Types.Address();
- }
- AggregatorContractAddress.MergeFrom(other.AggregatorContractAddress);
- }
- if (other.designatedNodeList_ != null) {
- if (designatedNodeList_ == null) {
- DesignatedNodeList = new global::AElf.Contracts.Oracle.AddressList();
- }
- DesignatedNodeList.MergeFrom(other.DesignatedNodeList);
- }
- if (other.queryInfo_ != null) {
- if (queryInfo_ == null) {
- QueryInfo = new global::AElf.Contracts.Oracle.QueryInfo();
- }
- QueryInfo.MergeFrom(other.QueryInfo);
- }
- if (other.AggregateThreshold != 0) {
- AggregateThreshold = other.AggregateThreshold;
- }
- if (other.querySender_ != null) {
- if (querySender_ == null) {
- QuerySender = new global::AElf.Types.Address();
- }
- QuerySender.MergeFrom(other.QuerySender);
- }
- if (other.queryId_ != null) {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- QueryId.MergeFrom(other.QueryId);
- }
- if (other.Token.Length != 0) {
- Token = other.Token;
- }
- if (other.MaximumPermissibleDeviation != 0) {
- MaximumPermissibleDeviation = other.MaximumPermissibleDeviation;
- }
- if (other.AggregateOption != 0) {
- AggregateOption = other.AggregateOption;
- }
- if (other.taskId_ != null) {
- if (taskId_ == null) {
- TaskId = new global::AElf.Types.Hash();
- }
- TaskId.MergeFrom(other.TaskId);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Payment = input.ReadInt64();
- break;
- }
- case 18: {
- if (callbackInfo_ == null) {
- CallbackInfo = new global::AElf.Contracts.Oracle.CallbackInfo();
- }
- input.ReadMessage(CallbackInfo);
- break;
- }
- case 26: {
- if (aggregatorContractAddress_ == null) {
- AggregatorContractAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(AggregatorContractAddress);
- break;
- }
- case 34: {
- if (designatedNodeList_ == null) {
- DesignatedNodeList = new global::AElf.Contracts.Oracle.AddressList();
- }
- input.ReadMessage(DesignatedNodeList);
- break;
- }
- case 42: {
- if (queryInfo_ == null) {
- QueryInfo = new global::AElf.Contracts.Oracle.QueryInfo();
- }
- input.ReadMessage(QueryInfo);
- break;
- }
- case 48: {
- AggregateThreshold = input.ReadInt32();
- break;
- }
- case 58: {
- if (querySender_ == null) {
- QuerySender = new global::AElf.Types.Address();
- }
- input.ReadMessage(QuerySender);
- break;
- }
- case 66: {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(QueryId);
- break;
- }
- case 74: {
- Token = input.ReadString();
- break;
- }
- case 80: {
- MaximumPermissibleDeviation = input.ReadInt32();
- break;
- }
- case 88: {
- AggregateOption = input.ReadInt32();
- break;
- }
- case 98: {
- if (taskId_ == null) {
- TaskId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(TaskId);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class QueryTaskCreated : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QueryTaskCreated());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[29]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryTaskCreated() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryTaskCreated(QueryTaskCreated other) : this() {
- eachPayment_ = other.eachPayment_;
- supposedQueryTimes_ = other.supposedQueryTimes_;
- queryInfo_ = other.queryInfo_ != null ? other.queryInfo_.Clone() : null;
- endTime_ = other.endTime_ != null ? other.endTime_.Clone() : null;
- designatedNodeList_ = other.designatedNodeList_ != null ? other.designatedNodeList_.Clone() : null;
- aggregatorContractAddress_ = other.aggregatorContractAddress_ != null ? other.aggregatorContractAddress_.Clone() : null;
- callbackInfo_ = other.callbackInfo_ != null ? other.callbackInfo_.Clone() : null;
- creator_ = other.creator_ != null ? other.creator_.Clone() : null;
- aggregateThreshold_ = other.aggregateThreshold_;
- aggregateOption_ = other.aggregateOption_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryTaskCreated Clone() {
- return new QueryTaskCreated(this);
- }
-
- /// Field number for the "each_payment" field.
- public const int EachPaymentFieldNumber = 1;
- private long eachPayment_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long EachPayment {
- get { return eachPayment_; }
- set {
- eachPayment_ = value;
- }
- }
-
- /// Field number for the "supposed_query_times" field.
- public const int SupposedQueryTimesFieldNumber = 2;
- private int supposedQueryTimes_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int SupposedQueryTimes {
- get { return supposedQueryTimes_; }
- set {
- supposedQueryTimes_ = value;
- }
- }
-
- /// Field number for the "query_info" field.
- public const int QueryInfoFieldNumber = 3;
- private global::AElf.Contracts.Oracle.QueryInfo queryInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.QueryInfo QueryInfo {
- get { return queryInfo_; }
- set {
- queryInfo_ = value;
- }
- }
-
- /// Field number for the "end_time" field.
- public const int EndTimeFieldNumber = 4;
- private global::Google.Protobuf.WellKnownTypes.Timestamp endTime_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Google.Protobuf.WellKnownTypes.Timestamp EndTime {
- get { return endTime_; }
- set {
- endTime_ = value;
- }
- }
-
- /// Field number for the "designated_node_list" field.
- public const int DesignatedNodeListFieldNumber = 5;
- private global::AElf.Contracts.Oracle.AddressList designatedNodeList_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.AddressList DesignatedNodeList {
- get { return designatedNodeList_; }
- set {
- designatedNodeList_ = value;
- }
- }
-
- /// Field number for the "aggregator_contract_address" field.
- public const int AggregatorContractAddressFieldNumber = 6;
- private global::AElf.Types.Address aggregatorContractAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address AggregatorContractAddress {
- get { return aggregatorContractAddress_; }
- set {
- aggregatorContractAddress_ = value;
- }
- }
-
- /// Field number for the "callback_info" field.
- public const int CallbackInfoFieldNumber = 7;
- private global::AElf.Contracts.Oracle.CallbackInfo callbackInfo_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.CallbackInfo CallbackInfo {
- get { return callbackInfo_; }
- set {
- callbackInfo_ = value;
- }
- }
-
- /// Field number for the "creator" field.
- public const int CreatorFieldNumber = 8;
- private global::AElf.Types.Address creator_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address Creator {
- get { return creator_; }
- set {
- creator_ = value;
- }
- }
-
- /// Field number for the "aggregate_threshold" field.
- public const int AggregateThresholdFieldNumber = 9;
- private int aggregateThreshold_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int AggregateThreshold {
- get { return aggregateThreshold_; }
- set {
- aggregateThreshold_ = value;
- }
- }
-
- /// Field number for the "aggregate_option" field.
- public const int AggregateOptionFieldNumber = 10;
- private int aggregateOption_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int AggregateOption {
- get { return aggregateOption_; }
- set {
- aggregateOption_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as QueryTaskCreated);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(QueryTaskCreated other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (EachPayment != other.EachPayment) return false;
- if (SupposedQueryTimes != other.SupposedQueryTimes) return false;
- if (!object.Equals(QueryInfo, other.QueryInfo)) return false;
- if (!object.Equals(EndTime, other.EndTime)) return false;
- if (!object.Equals(DesignatedNodeList, other.DesignatedNodeList)) return false;
- if (!object.Equals(AggregatorContractAddress, other.AggregatorContractAddress)) return false;
- if (!object.Equals(CallbackInfo, other.CallbackInfo)) return false;
- if (!object.Equals(Creator, other.Creator)) return false;
- if (AggregateThreshold != other.AggregateThreshold) return false;
- if (AggregateOption != other.AggregateOption) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (EachPayment != 0L) hash ^= EachPayment.GetHashCode();
- if (SupposedQueryTimes != 0) hash ^= SupposedQueryTimes.GetHashCode();
- if (queryInfo_ != null) hash ^= QueryInfo.GetHashCode();
- if (endTime_ != null) hash ^= EndTime.GetHashCode();
- if (designatedNodeList_ != null) hash ^= DesignatedNodeList.GetHashCode();
- if (aggregatorContractAddress_ != null) hash ^= AggregatorContractAddress.GetHashCode();
- if (callbackInfo_ != null) hash ^= CallbackInfo.GetHashCode();
- if (creator_ != null) hash ^= Creator.GetHashCode();
- if (AggregateThreshold != 0) hash ^= AggregateThreshold.GetHashCode();
- if (AggregateOption != 0) hash ^= AggregateOption.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (EachPayment != 0L) {
- output.WriteRawTag(8);
- output.WriteInt64(EachPayment);
- }
- if (SupposedQueryTimes != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(SupposedQueryTimes);
- }
- if (queryInfo_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(QueryInfo);
- }
- if (endTime_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(EndTime);
- }
- if (designatedNodeList_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(DesignatedNodeList);
- }
- if (aggregatorContractAddress_ != null) {
- output.WriteRawTag(50);
- output.WriteMessage(AggregatorContractAddress);
- }
- if (callbackInfo_ != null) {
- output.WriteRawTag(58);
- output.WriteMessage(CallbackInfo);
- }
- if (creator_ != null) {
- output.WriteRawTag(66);
- output.WriteMessage(Creator);
- }
- if (AggregateThreshold != 0) {
- output.WriteRawTag(72);
- output.WriteInt32(AggregateThreshold);
- }
- if (AggregateOption != 0) {
- output.WriteRawTag(80);
- output.WriteInt32(AggregateOption);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (EachPayment != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(EachPayment);
- }
- if (SupposedQueryTimes != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(SupposedQueryTimes);
- }
- if (queryInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryInfo);
- }
- if (endTime_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndTime);
- }
- if (designatedNodeList_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(DesignatedNodeList);
- }
- if (aggregatorContractAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(AggregatorContractAddress);
- }
- if (callbackInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(CallbackInfo);
- }
- if (creator_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Creator);
- }
- if (AggregateThreshold != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregateThreshold);
- }
- if (AggregateOption != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(AggregateOption);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(QueryTaskCreated other) {
- if (other == null) {
- return;
- }
- if (other.EachPayment != 0L) {
- EachPayment = other.EachPayment;
- }
- if (other.SupposedQueryTimes != 0) {
- SupposedQueryTimes = other.SupposedQueryTimes;
- }
- if (other.queryInfo_ != null) {
- if (queryInfo_ == null) {
- QueryInfo = new global::AElf.Contracts.Oracle.QueryInfo();
- }
- QueryInfo.MergeFrom(other.QueryInfo);
- }
- if (other.endTime_ != null) {
- if (endTime_ == null) {
- EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
- }
- EndTime.MergeFrom(other.EndTime);
- }
- if (other.designatedNodeList_ != null) {
- if (designatedNodeList_ == null) {
- DesignatedNodeList = new global::AElf.Contracts.Oracle.AddressList();
- }
- DesignatedNodeList.MergeFrom(other.DesignatedNodeList);
- }
- if (other.aggregatorContractAddress_ != null) {
- if (aggregatorContractAddress_ == null) {
- AggregatorContractAddress = new global::AElf.Types.Address();
- }
- AggregatorContractAddress.MergeFrom(other.AggregatorContractAddress);
- }
- if (other.callbackInfo_ != null) {
- if (callbackInfo_ == null) {
- CallbackInfo = new global::AElf.Contracts.Oracle.CallbackInfo();
- }
- CallbackInfo.MergeFrom(other.CallbackInfo);
- }
- if (other.creator_ != null) {
- if (creator_ == null) {
- Creator = new global::AElf.Types.Address();
- }
- Creator.MergeFrom(other.Creator);
- }
- if (other.AggregateThreshold != 0) {
- AggregateThreshold = other.AggregateThreshold;
- }
- if (other.AggregateOption != 0) {
- AggregateOption = other.AggregateOption;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- EachPayment = input.ReadInt64();
- break;
- }
- case 16: {
- SupposedQueryTimes = input.ReadInt32();
- break;
- }
- case 26: {
- if (queryInfo_ == null) {
- QueryInfo = new global::AElf.Contracts.Oracle.QueryInfo();
- }
- input.ReadMessage(QueryInfo);
- break;
- }
- case 34: {
- if (endTime_ == null) {
- EndTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
- }
- input.ReadMessage(EndTime);
- break;
- }
- case 42: {
- if (designatedNodeList_ == null) {
- DesignatedNodeList = new global::AElf.Contracts.Oracle.AddressList();
- }
- input.ReadMessage(DesignatedNodeList);
- break;
- }
- case 50: {
- if (aggregatorContractAddress_ == null) {
- AggregatorContractAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(AggregatorContractAddress);
- break;
- }
- case 58: {
- if (callbackInfo_ == null) {
- CallbackInfo = new global::AElf.Contracts.Oracle.CallbackInfo();
- }
- input.ReadMessage(CallbackInfo);
- break;
- }
- case 66: {
- if (creator_ == null) {
- Creator = new global::AElf.Types.Address();
- }
- input.ReadMessage(Creator);
- break;
- }
- case 72: {
- AggregateThreshold = input.ReadInt32();
- break;
- }
- case 80: {
- AggregateOption = input.ReadInt32();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class QueryCancelled : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QueryCancelled());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[30]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryCancelled() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryCancelled(QueryCancelled other) : this() {
- queryId_ = other.queryId_ != null ? other.queryId_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryCancelled Clone() {
- return new QueryCancelled(this);
- }
-
- /// Field number for the "query_id" field.
- public const int QueryIdFieldNumber = 1;
- private global::AElf.Types.Hash queryId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash QueryId {
- get { return queryId_; }
- set {
- queryId_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as QueryCancelled);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(QueryCancelled other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(QueryId, other.QueryId)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (queryId_ != null) hash ^= QueryId.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (queryId_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(QueryId);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (queryId_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryId);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(QueryCancelled other) {
- if (other == null) {
- return;
- }
- if (other.queryId_ != null) {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- QueryId.MergeFrom(other.QueryId);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(QueryId);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class SufficientCommitmentsCollected : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SufficientCommitmentsCollected());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[31]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SufficientCommitmentsCollected() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SufficientCommitmentsCollected(SufficientCommitmentsCollected other) : this() {
- queryId_ = other.queryId_ != null ? other.queryId_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SufficientCommitmentsCollected Clone() {
- return new SufficientCommitmentsCollected(this);
- }
-
- /// Field number for the "query_id" field.
- public const int QueryIdFieldNumber = 1;
- private global::AElf.Types.Hash queryId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash QueryId {
- get { return queryId_; }
- set {
- queryId_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as SufficientCommitmentsCollected);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(SufficientCommitmentsCollected other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(QueryId, other.QueryId)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (queryId_ != null) hash ^= QueryId.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (queryId_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(QueryId);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (queryId_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryId);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(SufficientCommitmentsCollected other) {
- if (other == null) {
- return;
- }
- if (other.queryId_ != null) {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- QueryId.MergeFrom(other.QueryId);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(QueryId);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class Committed : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Committed());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[32]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Committed() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Committed(Committed other) : this() {
- queryId_ = other.queryId_ != null ? other.queryId_.Clone() : null;
- oracleNodeAddress_ = other.oracleNodeAddress_ != null ? other.oracleNodeAddress_.Clone() : null;
- commitment_ = other.commitment_ != null ? other.commitment_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Committed Clone() {
- return new Committed(this);
- }
-
- /// Field number for the "query_id" field.
- public const int QueryIdFieldNumber = 1;
- private global::AElf.Types.Hash queryId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash QueryId {
- get { return queryId_; }
- set {
- queryId_ = value;
- }
- }
-
- /// Field number for the "oracle_node_address" field.
- public const int OracleNodeAddressFieldNumber = 2;
- private global::AElf.Types.Address oracleNodeAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address OracleNodeAddress {
- get { return oracleNodeAddress_; }
- set {
- oracleNodeAddress_ = value;
- }
- }
-
- /// Field number for the "commitment" field.
- public const int CommitmentFieldNumber = 3;
- private global::AElf.Types.Hash commitment_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash Commitment {
- get { return commitment_; }
- set {
- commitment_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Committed);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Committed other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(QueryId, other.QueryId)) return false;
- if (!object.Equals(OracleNodeAddress, other.OracleNodeAddress)) return false;
- if (!object.Equals(Commitment, other.Commitment)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (queryId_ != null) hash ^= QueryId.GetHashCode();
- if (oracleNodeAddress_ != null) hash ^= OracleNodeAddress.GetHashCode();
- if (commitment_ != null) hash ^= Commitment.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (queryId_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(QueryId);
- }
- if (oracleNodeAddress_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(OracleNodeAddress);
- }
- if (commitment_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(Commitment);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (queryId_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryId);
- }
- if (oracleNodeAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OracleNodeAddress);
- }
- if (commitment_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Commitment);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Committed other) {
- if (other == null) {
- return;
- }
- if (other.queryId_ != null) {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- QueryId.MergeFrom(other.QueryId);
- }
- if (other.oracleNodeAddress_ != null) {
- if (oracleNodeAddress_ == null) {
- OracleNodeAddress = new global::AElf.Types.Address();
- }
- OracleNodeAddress.MergeFrom(other.OracleNodeAddress);
- }
- if (other.commitment_ != null) {
- if (commitment_ == null) {
- Commitment = new global::AElf.Types.Hash();
- }
- Commitment.MergeFrom(other.Commitment);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(QueryId);
- break;
- }
- case 18: {
- if (oracleNodeAddress_ == null) {
- OracleNodeAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(OracleNodeAddress);
- break;
- }
- case 26: {
- if (commitment_ == null) {
- Commitment = new global::AElf.Types.Hash();
- }
- input.ReadMessage(Commitment);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class CommitmentRevealed : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommitmentRevealed());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[33]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CommitmentRevealed() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CommitmentRevealed(CommitmentRevealed other) : this() {
- queryId_ = other.queryId_ != null ? other.queryId_.Clone() : null;
- oracleNodeAddress_ = other.oracleNodeAddress_ != null ? other.oracleNodeAddress_.Clone() : null;
- commitment_ = other.commitment_ != null ? other.commitment_.Clone() : null;
- revealData_ = other.revealData_;
- salt_ = other.salt_ != null ? other.salt_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CommitmentRevealed Clone() {
- return new CommitmentRevealed(this);
- }
-
- /// Field number for the "query_id" field.
- public const int QueryIdFieldNumber = 1;
- private global::AElf.Types.Hash queryId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash QueryId {
- get { return queryId_; }
- set {
- queryId_ = value;
- }
- }
-
- /// Field number for the "oracle_node_address" field.
- public const int OracleNodeAddressFieldNumber = 2;
- private global::AElf.Types.Address oracleNodeAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address OracleNodeAddress {
- get { return oracleNodeAddress_; }
- set {
- oracleNodeAddress_ = value;
- }
- }
-
- /// Field number for the "commitment" field.
- public const int CommitmentFieldNumber = 3;
- private global::AElf.Types.Hash commitment_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash Commitment {
- get { return commitment_; }
- set {
- commitment_ = value;
- }
- }
-
- /// Field number for the "reveal_data" field.
- public const int RevealDataFieldNumber = 4;
- private string revealData_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string RevealData {
- get { return revealData_; }
- set {
- revealData_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "salt" field.
- public const int SaltFieldNumber = 5;
- private global::AElf.Types.Hash salt_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash Salt {
- get { return salt_; }
- set {
- salt_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as CommitmentRevealed);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(CommitmentRevealed other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(QueryId, other.QueryId)) return false;
- if (!object.Equals(OracleNodeAddress, other.OracleNodeAddress)) return false;
- if (!object.Equals(Commitment, other.Commitment)) return false;
- if (RevealData != other.RevealData) return false;
- if (!object.Equals(Salt, other.Salt)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (queryId_ != null) hash ^= QueryId.GetHashCode();
- if (oracleNodeAddress_ != null) hash ^= OracleNodeAddress.GetHashCode();
- if (commitment_ != null) hash ^= Commitment.GetHashCode();
- if (RevealData.Length != 0) hash ^= RevealData.GetHashCode();
- if (salt_ != null) hash ^= Salt.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (queryId_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(QueryId);
- }
- if (oracleNodeAddress_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(OracleNodeAddress);
- }
- if (commitment_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(Commitment);
- }
- if (RevealData.Length != 0) {
- output.WriteRawTag(34);
- output.WriteString(RevealData);
- }
- if (salt_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(Salt);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (queryId_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryId);
- }
- if (oracleNodeAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OracleNodeAddress);
- }
- if (commitment_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Commitment);
- }
- if (RevealData.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(RevealData);
- }
- if (salt_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Salt);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(CommitmentRevealed other) {
- if (other == null) {
- return;
- }
- if (other.queryId_ != null) {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- QueryId.MergeFrom(other.QueryId);
- }
- if (other.oracleNodeAddress_ != null) {
- if (oracleNodeAddress_ == null) {
- OracleNodeAddress = new global::AElf.Types.Address();
- }
- OracleNodeAddress.MergeFrom(other.OracleNodeAddress);
- }
- if (other.commitment_ != null) {
- if (commitment_ == null) {
- Commitment = new global::AElf.Types.Hash();
- }
- Commitment.MergeFrom(other.Commitment);
- }
- if (other.RevealData.Length != 0) {
- RevealData = other.RevealData;
- }
- if (other.salt_ != null) {
- if (salt_ == null) {
- Salt = new global::AElf.Types.Hash();
- }
- Salt.MergeFrom(other.Salt);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(QueryId);
- break;
- }
- case 18: {
- if (oracleNodeAddress_ == null) {
- OracleNodeAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(OracleNodeAddress);
- break;
- }
- case 26: {
- if (commitment_ == null) {
- Commitment = new global::AElf.Types.Hash();
- }
- input.ReadMessage(Commitment);
- break;
- }
- case 34: {
- RevealData = input.ReadString();
- break;
- }
- case 42: {
- if (salt_ == null) {
- Salt = new global::AElf.Types.Hash();
- }
- input.ReadMessage(Salt);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class CommitmentRevealFailed : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CommitmentRevealFailed());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[34]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CommitmentRevealFailed() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CommitmentRevealFailed(CommitmentRevealFailed other) : this() {
- queryId_ = other.queryId_ != null ? other.queryId_.Clone() : null;
- oracleNodeAddress_ = other.oracleNodeAddress_ != null ? other.oracleNodeAddress_.Clone() : null;
- commitment_ = other.commitment_ != null ? other.commitment_.Clone() : null;
- revealData_ = other.revealData_;
- salt_ = other.salt_ != null ? other.salt_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public CommitmentRevealFailed Clone() {
- return new CommitmentRevealFailed(this);
- }
-
- /// Field number for the "query_id" field.
- public const int QueryIdFieldNumber = 1;
- private global::AElf.Types.Hash queryId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash QueryId {
- get { return queryId_; }
- set {
- queryId_ = value;
- }
- }
-
- /// Field number for the "oracle_node_address" field.
- public const int OracleNodeAddressFieldNumber = 2;
- private global::AElf.Types.Address oracleNodeAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address OracleNodeAddress {
- get { return oracleNodeAddress_; }
- set {
- oracleNodeAddress_ = value;
- }
- }
-
- /// Field number for the "commitment" field.
- public const int CommitmentFieldNumber = 3;
- private global::AElf.Types.Hash commitment_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash Commitment {
- get { return commitment_; }
- set {
- commitment_ = value;
- }
- }
-
- /// Field number for the "reveal_data" field.
- public const int RevealDataFieldNumber = 4;
- private string revealData_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string RevealData {
- get { return revealData_; }
- set {
- revealData_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "salt" field.
- public const int SaltFieldNumber = 5;
- private global::AElf.Types.Hash salt_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash Salt {
- get { return salt_; }
- set {
- salt_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as CommitmentRevealFailed);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(CommitmentRevealFailed other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(QueryId, other.QueryId)) return false;
- if (!object.Equals(OracleNodeAddress, other.OracleNodeAddress)) return false;
- if (!object.Equals(Commitment, other.Commitment)) return false;
- if (RevealData != other.RevealData) return false;
- if (!object.Equals(Salt, other.Salt)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (queryId_ != null) hash ^= QueryId.GetHashCode();
- if (oracleNodeAddress_ != null) hash ^= OracleNodeAddress.GetHashCode();
- if (commitment_ != null) hash ^= Commitment.GetHashCode();
- if (RevealData.Length != 0) hash ^= RevealData.GetHashCode();
- if (salt_ != null) hash ^= Salt.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (queryId_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(QueryId);
- }
- if (oracleNodeAddress_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(OracleNodeAddress);
- }
- if (commitment_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(Commitment);
- }
- if (RevealData.Length != 0) {
- output.WriteRawTag(34);
- output.WriteString(RevealData);
- }
- if (salt_ != null) {
- output.WriteRawTag(42);
- output.WriteMessage(Salt);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (queryId_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryId);
- }
- if (oracleNodeAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OracleNodeAddress);
- }
- if (commitment_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Commitment);
- }
- if (RevealData.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(RevealData);
- }
- if (salt_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Salt);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(CommitmentRevealFailed other) {
- if (other == null) {
- return;
- }
- if (other.queryId_ != null) {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- QueryId.MergeFrom(other.QueryId);
- }
- if (other.oracleNodeAddress_ != null) {
- if (oracleNodeAddress_ == null) {
- OracleNodeAddress = new global::AElf.Types.Address();
- }
- OracleNodeAddress.MergeFrom(other.OracleNodeAddress);
- }
- if (other.commitment_ != null) {
- if (commitment_ == null) {
- Commitment = new global::AElf.Types.Hash();
- }
- Commitment.MergeFrom(other.Commitment);
- }
- if (other.RevealData.Length != 0) {
- RevealData = other.RevealData;
- }
- if (other.salt_ != null) {
- if (salt_ == null) {
- Salt = new global::AElf.Types.Hash();
- }
- Salt.MergeFrom(other.Salt);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(QueryId);
- break;
- }
- case 18: {
- if (oracleNodeAddress_ == null) {
- OracleNodeAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(OracleNodeAddress);
- break;
- }
- case 26: {
- if (commitment_ == null) {
- Commitment = new global::AElf.Types.Hash();
- }
- input.ReadMessage(Commitment);
- break;
- }
- case 34: {
- RevealData = input.ReadString();
- break;
- }
- case 42: {
- if (salt_ == null) {
- Salt = new global::AElf.Types.Hash();
- }
- input.ReadMessage(Salt);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class QueryCompletedWithAggregation : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QueryCompletedWithAggregation());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[35]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryCompletedWithAggregation() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryCompletedWithAggregation(QueryCompletedWithAggregation other) : this() {
- queryId_ = other.queryId_ != null ? other.queryId_.Clone() : null;
- result_ = other.result_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryCompletedWithAggregation Clone() {
- return new QueryCompletedWithAggregation(this);
- }
-
- /// Field number for the "query_id" field.
- public const int QueryIdFieldNumber = 1;
- private global::AElf.Types.Hash queryId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash QueryId {
- get { return queryId_; }
- set {
- queryId_ = value;
- }
- }
-
- /// Field number for the "result" field.
- public const int ResultFieldNumber = 2;
- private string result_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Result {
- get { return result_; }
- set {
- result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as QueryCompletedWithAggregation);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(QueryCompletedWithAggregation other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(QueryId, other.QueryId)) return false;
- if (Result != other.Result) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (queryId_ != null) hash ^= QueryId.GetHashCode();
- if (Result.Length != 0) hash ^= Result.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (queryId_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(QueryId);
- }
- if (Result.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(Result);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (queryId_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryId);
- }
- if (Result.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Result);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(QueryCompletedWithAggregation other) {
- if (other == null) {
- return;
- }
- if (other.queryId_ != null) {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- QueryId.MergeFrom(other.QueryId);
- }
- if (other.Result.Length != 0) {
- Result = other.Result;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(QueryId);
- break;
- }
- case 18: {
- Result = input.ReadString();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class QueryCompletedWithoutAggregation : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QueryCompletedWithoutAggregation());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[36]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryCompletedWithoutAggregation() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryCompletedWithoutAggregation(QueryCompletedWithoutAggregation other) : this() {
- queryId_ = other.queryId_ != null ? other.queryId_.Clone() : null;
- result_ = other.result_ != null ? other.result_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QueryCompletedWithoutAggregation Clone() {
- return new QueryCompletedWithoutAggregation(this);
- }
-
- /// Field number for the "query_id" field.
- public const int QueryIdFieldNumber = 1;
- private global::AElf.Types.Hash queryId_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Hash QueryId {
- get { return queryId_; }
- set {
- queryId_ = value;
- }
- }
-
- /// Field number for the "result" field.
- public const int ResultFieldNumber = 2;
- private global::AElf.Contracts.Oracle.PlainResult result_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Contracts.Oracle.PlainResult Result {
- get { return result_; }
- set {
- result_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as QueryCompletedWithoutAggregation);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(QueryCompletedWithoutAggregation other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(QueryId, other.QueryId)) return false;
- if (!object.Equals(Result, other.Result)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (queryId_ != null) hash ^= QueryId.GetHashCode();
- if (result_ != null) hash ^= Result.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (queryId_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(QueryId);
- }
- if (result_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Result);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (queryId_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(QueryId);
- }
- if (result_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(QueryCompletedWithoutAggregation other) {
- if (other == null) {
- return;
- }
- if (other.queryId_ != null) {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- QueryId.MergeFrom(other.QueryId);
- }
- if (other.result_ != null) {
- if (result_ == null) {
- Result = new global::AElf.Contracts.Oracle.PlainResult();
- }
- Result.MergeFrom(other.Result);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (queryId_ == null) {
- QueryId = new global::AElf.Types.Hash();
- }
- input.ReadMessage(QueryId);
- break;
- }
- case 18: {
- if (result_ == null) {
- Result = new global::AElf.Contracts.Oracle.PlainResult();
- }
- input.ReadMessage(Result);
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class TokenLocked : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TokenLocked());
- 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.Oracle.OracleContractReflection.Descriptor.MessageTypes[37]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TokenLocked() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TokenLocked(TokenLocked other) : this() {
- oracleNodeAddress_ = other.oracleNodeAddress_ != null ? other.oracleNodeAddress_.Clone() : null;
- fromAddress_ = other.fromAddress_ != null ? other.fromAddress_.Clone() : null;
- lockedAmount_ = other.lockedAmount_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public TokenLocked Clone() {
- return new TokenLocked(this);
- }
-
- /// Field number for the "oracle_node_address" field.
- public const int OracleNodeAddressFieldNumber = 1;
- private global::AElf.Types.Address oracleNodeAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address OracleNodeAddress {
- get { return oracleNodeAddress_; }
- set {
- oracleNodeAddress_ = value;
- }
- }
-
- /// Field number for the "from_address" field.
- public const int FromAddressFieldNumber = 2;
- private global::AElf.Types.Address fromAddress_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::AElf.Types.Address FromAddress {
- get { return fromAddress_; }
- set {
- fromAddress_ = value;
- }
- }
-
- /// Field number for the "locked_amount" field.
- public const int LockedAmountFieldNumber = 3;
- private long lockedAmount_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long LockedAmount {
- get { return lockedAmount_; }
- set {
- lockedAmount_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as TokenLocked);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(TokenLocked other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(OracleNodeAddress, other.OracleNodeAddress)) return false;
- if (!object.Equals(FromAddress, other.FromAddress)) return false;
- if (LockedAmount != other.LockedAmount) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (oracleNodeAddress_ != null) hash ^= OracleNodeAddress.GetHashCode();
- if (fromAddress_ != null) hash ^= FromAddress.GetHashCode();
- if (LockedAmount != 0L) hash ^= LockedAmount.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (oracleNodeAddress_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(OracleNodeAddress);
- }
- if (fromAddress_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(FromAddress);
- }
- if (LockedAmount != 0L) {
- output.WriteRawTag(24);
- output.WriteInt64(LockedAmount);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (oracleNodeAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(OracleNodeAddress);
- }
- if (fromAddress_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(FromAddress);
- }
- if (LockedAmount != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(LockedAmount);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(TokenLocked other) {
- if (other == null) {
- return;
- }
- if (other.oracleNodeAddress_ != null) {
- if (oracleNodeAddress_ == null) {
- OracleNodeAddress = new global::AElf.Types.Address();
- }
- OracleNodeAddress.MergeFrom(other.OracleNodeAddress);
- }
- if (other.fromAddress_ != null) {
- if (fromAddress_ == null) {
- FromAddress = new global::AElf.Types.Address();
- }
- FromAddress.MergeFrom(other.FromAddress);
- }
- if (other.LockedAmount != 0L) {
- LockedAmount = other.LockedAmount;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (oracleNodeAddress_ == null) {
- OracleNodeAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(OracleNodeAddress);
- break;
- }
- case 18: {
- if (fromAddress_ == null) {
- FromAddress = new global::AElf.Types.Address();
- }
- input.ReadMessage(FromAddress);
- break;
- }
- case 24: {
- LockedAmount = input.ReadInt64();
- break;
- }
- }
- }
- }
-
- }
-
- #endregion
-
-}
-
-#endregion Designer generated code
diff --git a/src/AElf.CrossChainServer.Application.Contracts/Contracts/ReceiptIndexDto.cs b/src/AElf.CrossChainServer.Application.Contracts/Contracts/ReceiptIndexDto.cs
deleted file mode 100644
index 23a5da0..0000000
--- a/src/AElf.CrossChainServer.Application.Contracts/Contracts/ReceiptIndexDto.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System;
-
-namespace AElf.CrossChainServer.Contracts;
-
-public class ReceiptIndexDto
-{
- public string TargetChainId { get; set; }
- public Guid TokenId { get; set; }
- public long Index { get; set; }
-}
\ No newline at end of file
diff --git a/src/AElf.CrossChainServer.Application.Contracts/Contracts/ReceiptInfoDto.cs b/src/AElf.CrossChainServer.Application.Contracts/Contracts/ReceiptInfoDto.cs
deleted file mode 100644
index 96419f3..0000000
--- a/src/AElf.CrossChainServer.Application.Contracts/Contracts/ReceiptInfoDto.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System;
-
-namespace AElf.CrossChainServer.Contracts;
-
-public class ReceiptInfoDto
-{
- public string ReceiptId { get; set; }
-
- public Guid TokenId { get; set; }
-
- public string FromAddress { get; set; }
-
- public string ToChainId { get; set; }
-
- public string ToAddress { get; set; }
-
- public decimal Amount { get; set; }
-
- public long BlockHeight { get; set; }
-
- public DateTime BlockTime { get; set; }
-}
\ No newline at end of file
diff --git a/src/AElf.CrossChainServer.Application.Contracts/Contracts/ReceivedReceiptInfoDto.cs b/src/AElf.CrossChainServer.Application.Contracts/Contracts/ReceivedReceiptInfoDto.cs
deleted file mode 100644
index 99e1d09..0000000
--- a/src/AElf.CrossChainServer.Application.Contracts/Contracts/ReceivedReceiptInfoDto.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System;
-
-namespace AElf.CrossChainServer.Contracts;
-
-public class ReceivedReceiptInfoDto
-{
- public string ReceiptId { get; set; }
-
- public Guid TokenId { get; set; }
-
- public string FromAddress { get; set; }
-
- public string FromChainId { get; set; }
-
- public string ToAddress { get; set; }
-
- public decimal Amount { get; set; }
-
- public long BlockHeight { get; set; }
-
- public DateTime BlockTime { get; set; }
-}
\ No newline at end of file
diff --git a/src/AElf.CrossChainServer.Application.Contracts/Contracts/ReportContract.c.cs b/src/AElf.CrossChainServer.Application.Contracts/Contracts/ReportContract.c.cs
deleted file mode 100644
index 09a4bcc..0000000
--- a/src/AElf.CrossChainServer.Application.Contracts/Contracts/ReportContract.c.cs
+++ /dev/null
@@ -1,110 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: report_contract.proto
-//
-#pragma warning disable 0414, 1591
-#region Designer generated code
-
-using System.Collections.Generic;
-using aelf = global::AElf.CSharp.Core;
-
-namespace AElf.Contracts.Report {
-
- #region Events
- public partial class ReportProposed : aelf::IEvent
- {
- public global::System.Collections.Generic.IEnumerable GetIndexed()
- {
- return new List
- {
- };
- }
-
- public ReportProposed GetNonIndexed()
- {
- return new ReportProposed
- {
- RawReport = RawReport,
- RegimentId = RegimentId,
- Token = Token,
- RoundId = RoundId,
- QueryInfo = QueryInfo,
- TargetChainId = TargetChainId,
- };
- }
- }
-
- public partial class ReportConfirmed : aelf::IEvent
- {
- public global::System.Collections.Generic.IEnumerable GetIndexed()
- {
- return new List
- {
- };
- }
-
- public ReportConfirmed GetNonIndexed()
- {
- return new ReportConfirmed
- {
- RoundId = RoundId,
- Signature = Signature,
- RegimentId = RegimentId,
- Token = Token,
- IsAllNodeConfirmed = IsAllNodeConfirmed,
- TargetChainId = TargetChainId,
- };
- }
- }
-
- public partial class OffChainAggregationRegistered : aelf::IEvent
- {
- public global::System.Collections.Generic.IEnumerable GetIndexed()
- {
- return new List
- {
- };
- }
-
- public OffChainAggregationRegistered GetNonIndexed()
- {
- return new OffChainAggregationRegistered
- {
- Token = Token,
- OffChainQueryInfoList = OffChainQueryInfoList,
- RegimentId = RegimentId,
- ConfigDigest = ConfigDigest,
- AggregateThreshold = AggregateThreshold,
- AggregatorContractAddress = AggregatorContractAddress,
- ChainName = ChainName,
- Register = Register,
- AggregateOption = AggregateOption,
- };
- }
- }
-
- public partial class MerkleReportNodeAdded : aelf::IEvent
- {
- public global::System.Collections.Generic.IEnumerable GetIndexed()
- {
- return new List
- {
- };
- }
-
- public MerkleReportNodeAdded GetNonIndexed()
- {
- return new MerkleReportNodeAdded
- {
- Token = Token,
- NodeIndex = NodeIndex,
- NodeRoundId = NodeRoundId,
- AggregatedData = AggregatedData,
- };
- }
- }
-
- #endregion
-}
-#endregion
-
diff --git a/src/AElf.CrossChainServer.Application.Contracts/Contracts/ReportContract.g.cs b/src/AElf.CrossChainServer.Application.Contracts/Contracts/ReportContract.g.cs
deleted file mode 100644
index 41c2ba6..0000000
--- a/src/AElf.CrossChainServer.Application.Contracts/Contracts/ReportContract.g.cs
+++ /dev/null
@@ -1,9416 +0,0 @@
-//
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: report_contract.proto
-//
-#pragma warning disable 1591, 0612, 3021
-#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 AElf.Contracts.Report {
-
- /// Holder for reflection information generated from report_contract.proto
- public static partial class ReportContractReflection {
-
- #region Descriptor
- /// File descriptor for report_contract.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static ReportContractReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "ChVyZXBvcnRfY29udHJhY3QucHJvdG8aD2FlbGYvY29yZS5wcm90bxoSYWVs",
- "Zi9vcHRpb25zLnByb3RvGhtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8a",
- "H2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8aHmdvb2dsZS9wcm90",
- "b2J1Zi93cmFwcGVycy5wcm90bxoUY2FsbGJhY2tfaW5wdXQucHJvdG8i1wEK",
- "D0luaXRpYWxpemVJbnB1dBIuChdvcmFjbGVfY29udHJhY3RfYWRkcmVzcxgB",
- "IAEoCzINLmFlbGYuQWRkcmVzcxISCgpyZXBvcnRfZmVlGAIgASgDEhoKEmFw",
-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Z2xlLnByb3RvYnVmLkJvb2xWYWx1ZSIFiIn3AQESQQoKSXNPYnNlcnZl",
- "chIQLklzT2JzZXJ2ZXJJbnB1dBoaLmdvb2dsZS5wcm90b2J1Zi5Cb29sVmFs",
- "dWUiBYiJ9wEBEkwKF0dldE1vcnRnYWdlZFRva2VuQW1vdW50Eg0uYWVsZi5B",
- "ZGRyZXNzGhsuZ29vZ2xlLnByb3RvYnVmLkludDY0VmFsdWUiBYiJ9wEBEjYK",
- "D0dldE9ic2VydmVyTGlzdBINLmFlbGYuQWRkcmVzcxoNLk9ic2VydmVyTGlz",
- "dCIFiIn3AQESRQoRR2V0U2tpcE1lbWJlckxpc3QSHC5nb29nbGUucHJvdG9i",
- "dWYuU3RyaW5nVmFsdWUaCy5NZW1iZXJMaXN0IgWIifcBARoussz2ASlBRWxm",
- "LkNvbnRyYWN0cy5SZXBvcnQuUmVwb3J0Q29udHJhY3RTdGF0ZUIYqgIVQUVs",
- "Zi5Db250cmFjdHMuUmVwb3J0YgZwcm90bzM="));
- 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.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.InitializeInput), global::AElf.Contracts.Report.InitializeInput.Parser, new[]{ "OracleContractAddress", "ReportFee", "ApplyObserverFee", "InitialRegisterWhiteList", "RegimentContractAddress" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.QueryOracleInput), global::AElf.Contracts.Report.QueryOracleInput.Parser, new[]{ "Payment", "Token", "AggregateThreshold", "NodeIndex", "QueryInfo", "ChainId" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.ConfirmReportInput), global::AElf.Contracts.Report.ConfirmReportInput.Parser, new[]{ "Token", "RoundId", "Signature" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.RejectReportInput), global::AElf.Contracts.Report.RejectReportInput.Parser, new[]{ "Token", "RoundId", "AccusingNodes" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.Report), global::AElf.Contracts.Report.Report.Parser, new[]{ "QueryId", "RoundId", "Observations", "AggregatedData" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.ReportQueryRecord), global::AElf.Contracts.Report.ReportQueryRecord.Parser, new[]{ "OriginQuerySender", "PaidReportFee", "IsRejected", "IsAllNodeConfirmed", "ConfirmedNodeList", "Payment" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.ObserverList), global::AElf.Contracts.Report.ObserverList.Parser, new[]{ "Value" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.Observations), global::AElf.Contracts.Report.Observations.Parser, new[]{ "Value" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.Observation), global::AElf.Contracts.Report.Observation.Parser, new[]{ "Key", "Data" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.GetSignatureInput), global::AElf.Contracts.Report.GetSignatureInput.Parser, new[]{ "Token", "RoundId", "Address" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.GetSignatureMapInput), global::AElf.Contracts.Report.GetSignatureMapInput.Parser, new[]{ "Token", "RoundId" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.SignatureMap), global::AElf.Contracts.Report.SignatureMap.Parser, new[]{ "Value" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.MemberList), global::AElf.Contracts.Report.MemberList.Parser, new[]{ "Value" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.OffChainAggregationInfo), global::AElf.Contracts.Report.OffChainAggregationInfo.Parser, new[]{ "Token", "OffChainQueryInfoList", "RegimentId", "ConfigDigest", "AggregateThreshold", "AggregatorContractAddress", "RoundIds", "ChainName", "Register", "AggregateOption" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.RegisterOffChainAggregationInput), global::AElf.Contracts.Report.RegisterOffChainAggregationInput.Parser, new[]{ "RegimentId", "OffChainQueryInfoList", "Token", "ConfigDigest", "AggregateThreshold", "AggregatorContractAddress", "ChainId", "AggregateOption" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.BindOffChainAggregationInput), global::AElf.Contracts.Report.BindOffChainAggregationInput.Parser, new[]{ "TaskIdList", "ChainName", "Token", "ConfigDigest" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.OffChainQueryInfo), global::AElf.Contracts.Report.OffChainQueryInfo.Parser, new[]{ "Title", "Options" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.GetReportInput), global::AElf.Contracts.Report.GetReportInput.Parser, new[]{ "Token", "RoundId" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.GetMerklePathInput), global::AElf.Contracts.Report.GetMerklePathInput.Parser, new[]{ "Token", "RoundId", "NodeIndex" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.GetRawReportInput), global::AElf.Contracts.Report.GetRawReportInput.Parser, new[]{ "Token", "RoundId" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.GenerateRawReportInput), global::AElf.Contracts.Report.GenerateRawReportInput.Parser, new[]{ "Report", "ConfigDigest", "Organization" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.OffChainQueryInfoList), global::AElf.Contracts.Report.OffChainQueryInfoList.Parser, new[]{ "Value" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.AddOffChainQueryInfoInput), global::AElf.Contracts.Report.AddOffChainQueryInfoInput.Parser, new[]{ "Token", "OffChainQueryInfo" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.RemoveOffChainQueryInfoInput), global::AElf.Contracts.Report.RemoveOffChainQueryInfoInput.Parser, new[]{ "Token", "RemoveNodeIndex" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.ChangeOffChainQueryInfoInput), global::AElf.Contracts.Report.ChangeOffChainQueryInfoInput.Parser, new[]{ "Token", "NewOffChainQueryInfo" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.ApplyObserverInput), global::AElf.Contracts.Report.ApplyObserverInput.Parser, new[]{ "RegimentAddressList" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.QuitObserverInput), global::AElf.Contracts.Report.QuitObserverInput.Parser, new[]{ "RegimentAddressList" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.IsObserverInput), global::AElf.Contracts.Report.IsObserverInput.Parser, new[]{ "RegimentAddress", "OracleNodeAddress" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.SetSkipMemberListInput), global::AElf.Contracts.Report.SetSkipMemberListInput.Parser, new[]{ "Token", "Value" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.ReportProposed), global::AElf.Contracts.Report.ReportProposed.Parser, new[]{ "RawReport", "RegimentId", "Token", "RoundId", "QueryInfo", "TargetChainId" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.ReportConfirmed), global::AElf.Contracts.Report.ReportConfirmed.Parser, new[]{ "RoundId", "Signature", "RegimentId", "Token", "IsAllNodeConfirmed", "TargetChainId" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.OffChainAggregationRegistered), global::AElf.Contracts.Report.OffChainAggregationRegistered.Parser, new[]{ "Token", "OffChainQueryInfoList", "RegimentId", "ConfigDigest", "AggregateThreshold", "AggregatorContractAddress", "ChainName", "Register", "AggregateOption" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::AElf.Contracts.Report.MerkleReportNodeAdded), global::AElf.Contracts.Report.MerkleReportNodeAdded.Parser, new[]{ "Token", "NodeIndex", "NodeRoundId", "AggregatedData" }, null, null, null, null)
- }));
- }
- #endregion
-
- }
- #region Messages
- public sealed partial class InitializeInput : pb::IMessage
- #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
- , pb::IBufferMessage
- #endif
- {
- private static readonly pb::MessageParser _parser = new pb::MessageParser